DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13060

org.apache.jasper.JasperException: Unable to compile class for JSP

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From [EMAIL PROTECTED]  2002-11-19 13:01 -------
I have installed J2SE v1.4.1 and Windows 2000 Pro on my Pentium 4 PC.
I have downloaded jakarta-tomcat-4.1.12-LE-jdk14.exe and have installed it 
successfully as a service
When i try to acces to my pages i see the same error:

...
An error occurred at line: -1 in the jsp file: null
...

When i start Tomcat not as a service but with "catalina run" all works fine.

I have changed the verbosity of the compiler from WARNING to DEBUG in 
conf\web.xml:
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>logVerbosityLevel</param-name>
            <param-value>DEBUG</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>
    
if you look at logs\localhost_log.yyyy-mm-dd.txt you can see 
(if you guess /indexf.jsp with your browser),

**for Tomcat started with batch file (right display):**
2002-11-19 13:48:10 Scratch dir for the JSP engine is: C:\server\tomcat_2
\work\Standalone\localhost\webdav
2002-11-19 13:48:10 IMPORTANT: Do not modify the generated servlets
2002-11-19 13:49:23 JspEngine --> /indexf.jsp
2002-11-19 13:49:23          ServletPath: /indexf.jsp
2002-11-19 13:49:23             PathInfo: null
2002-11-19 13:49:23             RealPath: C:\server\tomcat_2
\bin\..\webapps\ROOT\indexf.jsp
2002-11-19 13:49:23           RequestURI: /indexf.jsp
2002-11-19 13:49:23          QueryString: null
2002-11-19 13:49:23       Request Params: 

**for Tomcat started as a service (display the error):**
2002-11-19 13:47:36 JspEngine --> /indexf.jsp
2002-11-19 13:47:36          ServletPath: /indexf.jsp
2002-11-19 13:47:36             PathInfo: null
2002-11-19 13:47:36             RealPath: C:\server\tomcat_2
\webapps\ROOT\indexf.jsp
2002-11-19 13:47:36           RequestURI: /indexf.jsp
2002-11-19 13:47:36          QueryString: null
2002-11-19 13:47:36       Request Params: 
2002-11-19 13:47:37 Error compiling file: C:\server\tomcat_2
\work\Standalone\localhost\_\/indexf_jsp.java Detected Java version: 1.4 in: 
D:\programmi\programmazione\java\jdk\j2sdk\jre
Detected OS: Windows 2000
    [javac] indexf_jsp.java added as C:\server\tomcat_2
\work\Standalone\localhost\_\indexf_jsp.class doesn't exist.
    [javac] Compiling 1 source file

2002-11-19 13:47:37 StandardWrapperValve[jsp]: Servlet.service() for servlet 
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
Detected Java version: 1.4 in: D:\programmi\programmazione\java\jdk\j2sdk\jre
Detected OS: Windows 2000
    [javac] indexf_jsp.java added as C:\server\tomcat_2
\work\Standalone\localhost\_\indexf_jsp.class doesn't exist.
    [javac] Compiling 1 source file



        at org.apache.jasper.compiler.DefaultErrorHandler.javacError
(DefaultErrorHandler.java:120)
...

==> My Comment:
    It seems that the file separator is wrong: 
    look at "\/" in ..Standalone\localhost\_\/indexf_jsp.java..
    
    Why?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to