• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

see the compiler error output for details

 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Tomcat gave me this message:
see the compiler error output for details
where can I go to check the compiler error output?
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Tomcat error message includes the file name of the translated JSP.
For instance, if I place this JSP in webapps/myApp/bad.jsp:

Tomcat will say:


org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 0 in the jsp file: /bad.jsp
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] /usr/local/jakarta-tomcat-4.1.24-LE-jdk14/work/Standalone/localhost/myApp/bad_jsp.java:48: cannot resolve symbol
[javac] symbol : variable foobar
[javac] location: class org.apache.jsp.bad_jsp
[javac] out.print( foobar );
[javac] ^
[javac] 1 error

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is true, but my output looks like this:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
error: compiler message file broken: key=compiler.err.file com\novell\ecb\ldap\ReadLdapEntry.class not found arguments=null, null, null, null, null, null, null
1 error
It generates a login_jsp.java file. I can go to tomcat\work\standalone\...\
and try to compile login_jsp.java
with javac login_jsp.java
and I get:
C:\PROGRA~1\Tomcat\work\Standalone\localhost\lite>javac login_jsp.java
error: compiler message file broken: key=compiler.err.file com\novell\ecb\ldap\ReadLdapEntry.class not found argument
ull, null, null, null, null, null, null
1 error
I do have the class it refers to in my ClassPath variable. I guess I am asking for a hint on where to look next.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat 4 ignores the environment CLASSPATH - look at the Class-Loader how-to page in the online documentation - under the Administrators heading.
Bill
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat doesn't recognize CLASSPATH! I'll be damned. I'm glad I asked.
[ August 14, 2003: Message edited by: Tim McGuire ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic