tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Leg <hale_in...@yahoo.com>
Subject Unable to compile class for JSP
Date Thu, 30 Sep 2004 08:36:40 GMT
Hi

I had some pb my my projects jsps. I am obliged to precompile them.
I tried to get the same problem with a small appli.

I write a very simple jsp :

<html>
<body>
<%java.util.Date d = new java.util.Date();%>
Todays date is <%= d.getDate()%>  hello!
</body>
</html>

When I start tomcat everythings seems ok,

When I launch the page I have the same problem :

*an exception*

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


*root cause*

java.lang.SecurityException: class "org.apache.tools.ant.taskdefs.optional.IContract"'s signer
information does not match signer information of other classes in the same package


Full error page below.

Any help appreciated

Best regards

Andre


  HTTP Status 500 -

------------------------------------------------------------------------

*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._

*exception*

org.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:513)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:258)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:205)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:324)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:263)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

*root cause*

java.lang.SecurityException: class "org.apache.tools.ant.taskdefs.optional.IContract"'s signer
information does not match signer information of other classes in the same package
	java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
	java.lang.ClassLoader.defineClass(ClassLoader.java:532)
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	java.security.AccessController.doPrivileged(Native Method)
	java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:473)
	org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:810)
	org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:709)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:141)
	org.apache.tools.ant.Project.init(Project.java:274)
	org.apache.jasper.compiler.Compiler.getProject(Compiler.java:114)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:288)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:416)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:397)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:258)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:205)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:324)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:263)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

*note* _The full stack trace of the root cause is available in the 
Tomcat logs._

------------------------------------------------------------------------


      Sun-Java-System/Web-Services-Pack-1.4



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message