tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Legendre <hale_in...@yahoo.com>
Subject Help for jsp
Date Wed, 07 Jul 2004 05:51:22 GMT
Hi

I try to run jsp from a servlet
Servlet was working good without jsp.

Any help welcome.

Andre

To try I first make a very basic jsp page :

<html>
<body bgcolor="white">
<h1>
First try of :
<% out.print (request.getAttribute("servletName").toString()); %>
Servlet.
</h1>
</html>

The doGet method is also very simple :
            String jspPage = "/MFGserviceViewer.jsp";
        request.setAttribute ("servletName", "mfg_Servlet");
            
getServletConfig().getServletContext().getRequestDispatcher(jspPage).forward(request, 
response);

 but I get following errors :

2004-07-07 08:42:44 SingleSignOn[localhost]: Process request for 
'/Mfg_Scm/servlet/mfg_Servlet'
2004-07-07 08:42:44 SingleSignOn[localhost]:  Checking for SSO cookie
2004-07-07 08:42:44 SingleSignOn[localhost]:  SSO cookie is not present
2004-07-07 08:42:45 ApplicationDispatcher[/Mfg_Scm] Servlet.service() 
for servlet jsp threw exception
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
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
    at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
    at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
    at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at org.apache.tools.ant.Project.init(Project.java:274)
    at org.apache.jasper.compiler.Compiler.getProject(Compiler.java:164)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:339)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:455)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
    at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
    at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:516)
    at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:453)
    at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:369)
    at 
org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.processRequest(Unknown 
Source)
    at 
org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.doGet(Unknown 
Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
    at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:499)
    at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
    at java.lang.Thread.run(Thread.java:534)

2004-07-07 08:42:45 StandardWrapperValve[mfg_Servlet]: Servlet.service() 
for servlet mfg_Servlet threw exception
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
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
    at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
    at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
    at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at org.apache.tools.ant.Project.init(Project.java:274)
    at org.apache.jasper.compiler.Compiler.getProject(Compiler.java:164)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:339)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:455)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
    at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
    at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:516)
    at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:453)
    at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:369)
    at 
org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.processRequest(Unknown 
Source)
    at 
org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.doGet(Unknown 
Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
    at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:499)
    at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
    at java.lang.Thread.run(Thread.java:534)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message