tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiss-Beck József <jozsef.kiss-b...@sysdata.siemens.hu>
Subject IllegalAccessError, Unable to compile class for JSP
Date Thu, 31 May 2001 11:36:02 GMT
Hi!
 
 I have problems with the Jsp examples: (servlet examples are working fine)
 
 I use the JDK version 1.3.1  (Windows NT4 SP6).
 I installed Tomcat 3.2.1 , I set the environment variables as described in
Tomcat docs.

 By the jsp examples I get the following error:

Error: 500

Location: /examples/jsp/num/numguess.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: An
error has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).
1 error

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
        at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
        at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
        at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)


Stack trace in the MSDOS window:

java.lang.IllegalAccessError: try to access method
sun.tools.java.Identifier.setType(I)V from class sun.tools.java.Scanner
        at sun.tools.java.Scanner.defineKeyword(Scanner.java:180)
        at sun.tools.java.Scanner.<clinit>(Scanner.java:188)
        at
sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:461)
        at sun.tools.javac.Main.compile(Main.java:485)
        at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:138)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
        at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
        at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
        at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

Tomcat.log:

2001-05-31 09:34:34 - Ctx( /examples ): JasperException: R( /examples +
/jsp/num/numguess.jsp + null) Unable to compile class for JSPerror: An error
has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).

Jasper.log:

2001-05-31 09:30:51 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:30:52 - Scratch dir for the JSP engine is:
D:\Apache\Tomcat\work\localhost_8080%2Fexamples
2001-05-31 09:30:52 - IMPORTANT: Do not modify the generated servlets
2001-05-31 09:30:52 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:30:52 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:30:52 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:34:33 - JspEngine --> /jsp/num/numguess.jsp
2001-05-31 09:34:33 - 	     ServletPath: /jsp/num/numguess.jsp
2001-05-31 09:34:33 - 	        PathInfo: null
2001-05-31 09:34:33 - 	        RealPath:
D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp
2001-05-31 09:34:33 - 	      RequestURI: /examples/jsp/num/numguess.jsp
2001-05-31 09:34:33 - 	     QueryString: null
2001-05-31 09:34:33 - 	  Request Params: 
2001-05-31 09:34:33 - Classpath according to the Servlet Engine is:
D:\Apache\Tomcat\webapps\examples\WEB-INF\classes
2001-05-31 09:34:33 - Package name is: jsp.num
2001-05-31 09:34:33 - Class file name is:
D:\Apache\Tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumg
uess_0002ejspnumguess.class
2001-05-31 09:34:33 - Java file name is:
D:\Apache\Tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumg
uess_0002ejspnumguess_jsp_0.java
2001-05-31 09:34:33 - Class name is:
_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0
2001-05-31 09:34:33 - 
Handling Directive: page	{import=num.NumberGuessBean}
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Directive
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(9,0)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Bean at
D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(11,0)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$SetProperty
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(12,0)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(19,0)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(22,17)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(24,2)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(28,0)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(39,0)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(41,32)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Expression
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(43,16)
2001-05-31 09:34:33 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at D:\Apache\Tomcat\webapps\examples\jsp\num\numguess.jsp(52,0)
2001-05-31 09:34:33 - Compiling with: -encoding UTF8 -classpath
D:\Apache\Tomcat\classes;D:\Apache\Tomcat\lib\ant.jar;D:\Apache\Tomcat\lib\j
asper.jar;D:\Apache\Tomcat\lib\jaxp.jar;D:\Apache\Tomcat\lib\parser.jar;D:\A
pache\Tomcat\lib\servlet.jar;D:\Apache\Tomcat\lib\webserver.jar;D:\Java\jdk1
.3.1\lib\tools.jar;D:\Apache\Tomcat\webapps\examples\WEB-INF\classes;null;D:
\Apache\Tomcat\work\localhost_8080%2Fexamples -d
D:\Apache\Tomcat\work\localhost_8080%2Fexamples
D:\Apache\Tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumg
uess_0002ejspnumguess_jsp_0.java 


Is there someone, who knows something about this IllegalAccessError?

MfG / Best regards

Jozsef Kiss-Beck
 

Mime
View raw message