You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by A Leg <ha...@yahoo.com> on 2004/09/30 10:36:40 UTC
Unable to compile class for JSP
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
Re: Unable to compile class for JSP
Posted by A Leg <ha...@yahoo.com>.
Hi
Probably because JWSDP 1.4 force me to use ant of them distrib which is
1.5xx
and some others elements I use need 1.6.1 or more. So I have both
releases install 1.6.1is in my classpath and jwsdp ant is set in the
setenv.sh script.
This must generate a conflict.
I probably have to swictch to tomcat 5.028 which will enable me tu use
ant1.6.1 for everything. (yes ?)
I use only jsp and servlets. Do I need to download something more than
Tomcat distrib ?
Best regards
Andre
QM wrote:
>On Thu, Sep 30, 2004 at 11:36:40AM +0300, A Leg wrote:
>: org.apache.jasper.JasperException: Unable to compile class for JSP
>: 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
>
>Sounds like IContract is in a sealed JAR, and somewhere in the classpath
>there's another copy.
>
>Do you have duplicate JARs, between WEB-INF/lib and Tomcat's various lib
>dirs?
>
>-QM
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Unable to compile class for JSP
Posted by QM <qm...@brandxdev.net>.
On Thu, Sep 30, 2004 at 11:36:40AM +0300, A Leg wrote:
: org.apache.jasper.JasperException: Unable to compile class for JSP
: 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
Sounds like IContract is in a sealed JAR, and somewhere in the classpath
there's another copy.
Do you have duplicate JARs, between WEB-INF/lib and Tomcat's various lib
dirs?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org