facebook

JSP compile problem in Tomcat5.5.9

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #234317 Reply

    rkgeorge
    Member

    Hi,

    I have been using MyEclipse for awhile but had to do a reinstall recently.
    Since then I have had trouble with jsp compilation.
    If I run my webapp using a Windows service to start Tomcat, the jsp files
    compile as expected. However, when using the MyEclipse Tomcat service start, the
    jsp files are not compiled and the Eclipse is switched to Debug mode with the
    following line:
    Source not found for Scanner.getNextToken() line: 883
    The line: 883 is the same regardless of the jsp file.

    The jsp file is written to the Tomcat work path
    ..\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\Test\org\apache\jsp\security\login_jsp.java
    but the compilation errors out?

    I also tried the Eclipse -clean startup with no change.
    I have double checked that the Tomcat JDK points to the JDK root:
    E:\Program Files\Java\jdk1.5.0_04

    I hope there is some minor setting I have forgotten since I depend heavily on
    MyEclipse. It’s the best IDE I have used!

    thanks
    randy

    What operating system and version are you running?
    Windows 2003 server

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

    – Was Eclipse freshly installed for MyEclipse?
    Yes

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

    – Are any other external plugins installed?
    Yes

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

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    Version: 3.8.4 Build id: 200501171200-3.8.4

    What JDK version are you using to run Eclipse? (java -version)
    jdk1.5.0_04

    What JDK version are you using to launch your application server?
    jdk1.5.0_04

    What steps did you take that resulted in the issue? see above

    What application server are you using?
    Apache Tomcat/5.5.9

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

    #234323 Reply

    Riyad Kalla
    Member

    When you run Tomcat from MyEclipse, and it switches to the debug perspective, can you click the “Breakpoints” view, and thenr ight click “Remove all” and then hit the Play button to continue.

    I don’t quite understand what the problem is when you run through MYEclipse, does the Tomcat server get stuck at a phantom breakpoint OR something else?

    #234330 Reply

    rkgeorge
    Member

    I’m not sure I follow your suggestion. There do not appear to be breakpoints just a red text:
    Source not found for Scanner.getNextToken() line: 883

    The Debug tab shows a list of threads. At thread 22 it shows:
    Thread[http-80-Processor22](Suspended(exception ArrayIndexOutOfBoundsException))
    Scanner.getNextToken() line: 883
    Parser.parse()line:5430
    .
    .

    Interestingly if I right select the Thread 22 and click resume, compilation of the jsp completes without further complaint?

    randy

    #234331 Reply

    Riyad Kalla
    Member

    This is the ghost breakpoint issue we have seen before, normally using -clean fixes it, but as you mentioned it didn’t help. The solution is to create a new workspace and reimport your projects into it. We have been unable to track down why breakpoints are getting set or where they come from, and it happens very infrequently. I’ve had it happen once to me, and I know 2 other users that had it happen. In all cases a new workspace fixed it and it never came back.

    #234332 Reply

    rkgeorge
    Member

    Hi,

    Yes, that worked. Too bad it’s so much work to import all my existing projects into a new workspace.

    thanks
    randy

    #234333 Reply

    Riyad Kalla
    Member

    Too bad it’s so much work to import all my existing projects into a new workspace.

    File > Import Existing Project?

    #234372 Reply

    rkgeorge
    Member

    Hi,

    File > Import Existing Project? times 64!

    Is this problem in the Eclipse 3.1 version as well?

    thanks

    #234373 Reply

    Riyad Kalla
    Member

    Is this problem in the Eclipse 3.1 version as well?

    I can’t say with any level of certainty if it is or isn’t, but I’ve not seen this issue reported with Eclipse 3.1 on the forums nor have I run into it personally on 3 separtae active workspaces in my own work. So I would hope it’s not.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: JSP compile problem in Tomcat5.5.9

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