facebook

Problem Debugging JSP Files under WEB-INF [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #217917 Reply

    Brian Bezanson
    Participant

    In an attempt to design a very secure Struts-based application, I have embedded all but one of my JSP pages under WEB-INF/jsp/…

    The application works very well and is exteremely secure to the user and any hacking attempts.

    However, the ME JSP debugger can only stop at break-points in the lone JSP file located at the WebRoot (a simple index.jsp file that redirects to a Struts action which them brings up pages in the WEB-INF/jsp/… directories).

    I am using the last ME 3.8.2 with fix pack 1. Does ME have a fix for this coming in the next release — please :-)? As an FYI: I found the same issue with NitroX and they are fixing it for their next release.

    #217929 Reply

    Scott Anderson
    Participant

    What server are you deploying to? JSP file path encodings are server specific and I know we fixed this in the past for Tomcat 5.

    #217934 Reply

    Riyad Kalla
    Member

    I *know* that we had this issue and then fixed it, and I also know that I just tried to duplicate this last week (wednesday?) because of a bug report a gentleman was having with JSP pages under the WEB-INF dir and it worked fine… can you give us the build ID of Eclipse that you are using (and version) and also what your page looks like and where the breakpoint is? Is the breakpoint set in a real JSP page, or in a JSP fragment? Also are you being sure to use JDK 1.4+ to run Eclipse AND Tomcat 5? (Tomcat 4 and JDK 1.3 won’t work)

    #218278 Reply

    Brian Bezanson
    Participant

    I am using Struts 1.2.4, SiteMesh 2.2.1 and JSTL 1.1.

    My application can debug fine with the just released NitroX 2.0 build 329 where they fixed the WEB-INF issue (at least on their end).

    Below is the report information you requested.

    Right now in the latest version, I can’t even get break-points to stop in my ‘index.jsp’ that forward to my /WEB-INF/jsp/Main/Login.jsp page.

    Breakpoints in either file don’t work with ME latest.

    Brian

    ———

    What operating system and version are you running?
    Windows 2000 Professional

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Eclipse 3.0.1

    – Was Eclipse freshly installed for MyEclipse?
    Yes

    – If not, was it upgraded to its current version using the update manager?
    NA

    – Are any other external plugins installed?
    3 (MyEclipse, JFaceDBC, Sunshine Reports)

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    Few

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    3.8.2 + 20040120 QuickFixes (and QucikFix 1 for 3.8.2)

    What JDK version are you using to run Eclipse? (java -version)
    1.4.2_05

    What JDK version are you using to launch your application server?
    1.4.2_05

    What steps did you take that resulted in the issue?
    Set break point in ‘index.jsp’ which is located in ‘WebRoot’. This file is only a single line:
    <% response.sendRedirect(request.getContextPath() + “/welcome.do”); %>

    The welcome.do action brings up the login page where I also set a test break-point.

    What application server are you using?
    Tomcat 5.0.28

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 25, 2004 14:20:24.938
    !MESSAGE
    Oct 25, 2004 2:20:24 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Javac exception
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:446)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.ibm.etools.validation.ValidatorLauncher.start(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.launchValidator(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.internalValidate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.validate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.run(Unknown Source)
    at com.ibm.etools.validate.ValidationBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    Caused by: java.io.IOException: CreateProcess: javac.exe -classpath “C:\dev\eclipse-3.0.1\startup.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar;C
    :\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\dnsns.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar;C:\Program Files\Java\j2re1.4.2_05\lib\
    ext\localedata.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_provider.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-
    collections.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-digester.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons
    -logging.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-validator.jar;C:\dev\code\VTC_Struts
    \WebRoot\WEB-INF\lib\jakarta-oro.jar;C:\dev\code\VTC_Struts\WebRoo?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
    … 38 more
    — Nested Exception —
    java.io.IOException: CreateProcess: javac.exe -classpath “C:\dev\eclipse-3.0.1\startup.jar;C:\
    Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.jar;C:\
    Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar;C:\
    Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\dnsns.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar;C:\Program Files\Java\j2re1.4.2_05\lib\
    ext\localedata.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_provider.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-
    collections.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-digester.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons
    -logging.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-validator.jar;C:\dev\code\VTC_Struts
    \WebRoot\WEB-INF\lib\jakarta-oro.jar;C:\dev\code\VTC_Struts\WebRoo?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.ibm.etools.validation.ValidatorLauncher.start(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.launchValidator(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.internalValidate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.validate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.run(Unknown Source)
    at com.ibm.etools.validate.ValidationBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    Oct 25, 2004 2:20:24 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Env: Compile: javaFileName=/C:/DOCUME~1/W951DSX/LOCALS~1/Temp/myeclipse-jspcc//org/apache/jsp\index_jsp.java
    classpath=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\
    sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_
    05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.
    4.2_05\lib\ext\dnsns.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar;C:\Program Files
    \Java\j2re1.4.2_05\lib\ext\localedata.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_
    provider.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-collections.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\
    commons-digester.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar;C:\dev\
    code\VTC_Struts\WebRoot\WEB-INF\lib\commons-logging.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\
    lib\commons-validator.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jakarta-oro.jar;C:\dev\code
    \VTC_Struts\WebRoot\WEB-INF\lib\struts.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\log4j-
    1.2.8.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-dbcp-1.2.1.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-pool-1.2.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\
    jasperreports-0.6.0.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\pg74.215.jdbc3.jar;C:\dev\
    code\VTC_Struts\WebRoot\WEB-INF\lib\activation-1.0.2.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\
    lib\antlr.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-lang-2.0.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\jstl.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\standard.jar;C:\
    dev\j2ee-1.4.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\sitemesh-2.2.1.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\classes;C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.eclipse.wdt.
    jsp.debug_3.8.2\lib\jasper-runtime.jar;C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.
    eclipse.wdt.jsp.debug_3.8.2\lib\jsp-api.jar
    cp=C:\dev\eclipse-3.0.1\startup.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\dnsns.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\localedata.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_provider.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-collections.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-digester.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-logging.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-validator.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jakarta-oro.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\struts.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\log4j-1.2.8.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-dbcp-1.2.1.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-pool-1.2.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jasperreports-0.6.0.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\pg74.215.jdbc3.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\activation-1.0.2.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\antlr.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-lang-2.0.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jstl.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\standard.jar
    cp=C:\dev\j2ee-1.4.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\sitemesh-2.2.1.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\classes
    cp=C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jasper-runtime.jar
    cp=C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jsp-api.jar
    work dir=C:\DOCUME~1\W951DSX\LOCALS~1\Temp\myeclipse-jspcc
    extension dir=C:\Program Files\Java\j2re1.4.2_05\lib\ext
    srcDir=C:\DOCUME~1\W951DSX\LOCALS~1\Temp\myeclipse-jspcc
    compiler=extJavac
    include=org/apache/jsp/index_jsp.java

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 25, 2004 14:20:30.837
    !MESSAGE
    Oct 25, 2004 2:20:30 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Javac exception
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:446)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.ibm.etools.validation.ValidatorLauncher.start(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.launchValidator(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.internalValidate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.validate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.run(Unknown Source)
    at com.ibm.etools.validate.ValidationBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    Caused by: java.io.IOException: CreateProcess: javac.exe -classpath “C:\dev\eclipse-3.0.1\startup.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar;C
    :\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\dnsns.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar;C:\Program Files\Java\j2re1.4.2_05\lib\
    ext\localedata.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_provider.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-
    collections.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-digester.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons
    -logging.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-validator.jar;C:\dev\code\VTC_Struts
    \WebRoot\WEB-INF\lib\jakarta-oro.jar;C:\dev\code\VTC_Struts\WebRoo?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
    … 38 more
    — Nested Exception —
    java.io.IOException: CreateProcess: javac.exe -classpath “C:\dev\eclipse-3.0.1\startup.jar;C:\
    Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.jar;C:\
    Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar;C:\
    Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\dnsns.
    jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar;C:\Program Files\Java\j2re1.4.2_05\lib\
    ext\localedata.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_provider.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-
    collections.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-digester.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons
    -logging.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-validator.jar;C:\dev\code\VTC_Struts
    \WebRoot\WEB-INF\lib\jakarta-oro.jar;C:\dev\code\VTC_Struts\WebRoo?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source)
    at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
    at com.ibm.etools.validation.ValidatorLauncher.start(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.launchValidator(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.internalValidate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.validate(Unknown Source)
    at com.ibm.etools.validate.ValidationOperation.run(Unknown Source)
    at com.ibm.etools.validate.ValidationBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:570)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:159)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:251)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:204)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:270)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:299)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    Oct 25, 2004 2:20:30 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Env: Compile: javaFileName=/C:/DOCUME~1/W951DSX/LOCALS~1/Temp/myeclipse-jspcc//org/apache/
    jsp/WEB_002dINF/jsp/Main\Login_jsp.java
    classpath=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\
    sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_
    05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.
    4.2_05\lib\ext\dnsns.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar;C:\Program Files
    \Java\j2re1.4.2_05\lib\ext\localedata.jar;C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_
    provider.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-collections.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\
    commons-digester.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar;C:\dev\
    code\VTC_Struts\WebRoot\WEB-INF\lib\commons-logging.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\
    lib\commons-validator.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jakarta-oro.jar;C:\dev\code
    \VTC_Struts\WebRoot\WEB-INF\lib\struts.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\log4j-
    1.2.8.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-dbcp-1.2.1.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\commons-pool-1.2.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\
    jasperreports-0.6.0.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\pg74.215.jdbc3.jar;C:\dev\
    code\VTC_Struts\WebRoot\WEB-INF\lib\activation-1.0.2.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\
    lib\antlr.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-lang-2.0.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\lib\jstl.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\standard.jar;C:\
    dev\j2ee-1.4.jar;C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\sitemesh-2.2.1.jar;C:\dev\code\VTC_
    Struts\WebRoot\WEB-INF\classes;C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.eclipse.wdt.
    jsp.debug_3.8.2\lib\jasper-runtime.jar;C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.
    eclipse.wdt.jsp.debug_3.8.2\lib\jsp-api.jar
    cp=C:\dev\eclipse-3.0.1\startup.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\dnsns.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\ldapsec.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\localedata.jar
    cp=C:\Program Files\Java\j2re1.4.2_05\lib\ext\sunjce_provider.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-beanutils.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-collections.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-digester.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-fileupload.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-logging.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-validator.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jakarta-oro.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\struts.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\log4j-1.2.8.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-dbcp-1.2.1.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-pool-1.2.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jasperreports-0.6.0.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\pg74.215.jdbc3.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\activation-1.0.2.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\antlr.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\commons-lang-2.0.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\jstl.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\standard.jar
    cp=C:\dev\j2ee-1.4.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\lib\sitemesh-2.2.1.jar
    cp=C:\dev\code\VTC_Struts\WebRoot\WEB-INF\classes
    cp=C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jasper-runtime.jar
    cp=C:\dev\MyEclipse-3.8.2\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jsp-api.jar
    work dir=C:\DOCUME~1\W951DSX\LOCALS~1\Temp\myeclipse-jspcc
    extension dir=C:\Program Files\Java\j2re1.4.2_05\lib\ext
    srcDir=C:\DOCUME~1\W951DSX\LOCALS~1\Temp\myeclipse-jspcc
    compiler=extJavac
    include=org/apache/jsp/WEB_002dINF/jsp/Main/Login_jsp.java

    #218281 Reply

    Riyad Kalla
    Member

    Lets take care of that javac exception stuff first: javac.exe needs to be in your System path, you can either add the /bin directory of your JDK install to your system path and restart MyEclipse or you can add the -vm command line argument pointing to the javaw.exe executable in your JDK’s /bin directory.

    As far as the breakpoint not stopping, I am not able to reproduce this locally (I have setup a simple index.jsp, TestAction that forwards to page.jsp, and in page.jsp the breakpoint is hit.

    #218622 Reply

    Brian Bezanson
    Participant

    1) Ooops, my Path hadn’t been updated to reflect my installing jdk1.4.2_05 versus jdk1.4.2_04.

    2) On your breakpoint issue, you have your project set up the following way:

    Source
    struts
    action.java (does a forward to success)
    WebRoot
    index.jsp (has TestAction.do)
    WEB-INF
    jsp
    page.jsp (brekapoint set here)
    struts-config.xml (has mapping from /TestAction.do with a success result page of /WEB-INF/jsp/page.jsp

    If your project is set up like that, maybe you can email be a zipped up version of your project to try and I could email you back a small version of mine that shows the issue. I’ll wait to see confirmation that your project has the JSP files all located under /WEB-INF/jsp/… with only a single index.jsp at the WebRoot to redirect to the first ‘welcome action/page’.

    Thanks,

    Brian

    #218625 Reply

    Riyad Kalla
    Member

    Brian,
    Here is a screenshot of the project with the breakpoints and the browser open about to activate them:

    Then here is a screenshot of the breakpoint being hit immediately after:

    And here is the project I used:
    http://www.u.arizona.edu/~rsk/myeclipse/TestBreakpoint.zip

    #218660 Reply

    Brian Bezanson
    Participant

    Thanks. I’ll see if I can get it running on my system. If I can, but my project still has issues, can you post the email address where I should send my project (it may be ~5 MB with libraries).

    Brian

    #218663 Reply

    Brian Bezanson
    Participant

    Well you can close this one out. I am able to now stop and walk through most of my JSP files.

    That said: There are still some issues. One page has heavy use of JSTL operations and when I try and step through the page, the breakpoint jumps from the top of a <htlm:form> tag to the next step is at the bottom of the file where the </html:form> tag is. If I take the same JSP and set more breakpoints inside the form, when some “<c:choose>” checks are being made, it will stop at the breakpoint but when I “step over”, the breakpoint jumps to the end of the current tag.

    Hope that helps description-wise.

    Brian

    #218669 Reply

    Riyad Kalla
    Member

    Brian,
    We are aware of some shortcommings with the JSP debugging in heavy tagged up pages and are working to see if we can resolve them (complex source mapping issues). Thank you.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Problem Debugging JSP Files under WEB-INF [Closed]

You must be logged in to post in the forum log in