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:
An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.openejb.tomcat.installer.Installer resolves to a package
An error occurred at line: 90 in the jsp file: /index.jsp
Installer cannot be resolved
87: <B>Setup</B><BR>
88: <A HREF="testhome.jsp">Testing your setup</A><BR>
89: <BR>
90: <% if (!Installer.isListenerInstalled() && !Installer.isAgentInstalled()) { %>
91: <B>Install</B><BR>
92: <A HREF="installer">[Optional] Install Listener and JavaAgent</A><BR>
93: <BR>
An error occurred at line: 90 in the jsp file: /index.jsp
Installer cannot be resolved
87: <B>Setup</B><BR>
88: <A HREF="testhome.jsp">Testing your setup</A><BR>
89: <BR>
90: <% if (!Installer.isListenerInstalled() && !Installer.isAgentInstalled()) { %>
91: <B>Install</B><BR>
92: <A HREF="installer">[Optional] Install Listener and JavaAgent</A><BR>
93: <BR>
An error occurred at line: 94 in the jsp file: /index.jsp
Installer cannot be resolved
91: <B>Install</B><BR>
92: <A HREF="installer">[Optional] Install Listener and JavaAgent</A><BR>
93: <BR>
94: <% } else if (!Installer.isListenerInstalled()) { %>
95: <B>Install</B><BR>
96: <A HREF="installer">[Optional] Install Listener</A><BR>
97: <BR>
An error occurred at line: 98 in the jsp file: /index.jsp
Installer cannot be resolved
95: <B>Install</B><BR>
96: <A HREF="installer">[Optional] Install Listener</A><BR>
97: <BR>
98: <% } else if (!Installer.isAgentInstalled()) { %>
99: <B>Install</B><BR>
100: <A HREF="installer">[Optional] JavaAgent</A><BR>
101: <BR>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.openejb.tomcat.installer.InstallerServlet or a class it depends on
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:29)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)
root cause
java.lang.ClassNotFoundException: org.apache.openejb.tomcat.installer.InstallerServlet
org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.java:286)
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:29)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
i tried to install openejb in standalone tomcat, and work just fine
please help me to solve this issue...
(apache error log file attached)
Hristo Iliev Messages: 152 Registered: May 2010 Location: Sofia, Bulgaria
Senior Member
The problem comes from the fact that OpenEJB WAR was not meant to be used in OSGI environment, but with standalone Tomcat.
In Virgo the application is confronted with the strict OSGi classloading rules.
I had a quick look at the Installer class and what it tries to do is load some classes from lib (where most of the EJB code resides), while in fact the loader can rely only to WEB-INF by default.
Besides the class loading the Installer tries to copy files in lib folder of Tomcat and install java agent. I don't think this will (or should) be possible on Virgo.