Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Installing OpenEJB in Eclipse Virgo
Installing OpenEJB in Eclipse Virgo [message #641552] Fri, 26 November 2010 02:56 Go to next message
dimas  is currently offline dimas Friend
Messages: 7
Registered: November 2010
Junior Member
i tried to install openEJB into Eclipse virgo (by copying openejb.war into \pickup directory, or upload manually using eclipse virgo console)

when i access it from browser (http://localhost:8080/openejb/), i found this error:

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.


and when i access http://localhost:8080/openejb/installer, My browser goes like this

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)
  • Attachment: log.log
    (Size: 57.72KB, Downloaded 277 times)
Re: Installing OpenEJB in Eclipse Virgo [message #642844 is a reply to message #641552] Thu, 02 December 2010 22:11 Go to previous message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
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.

This guide http://openejb.apache.org/osgi-openejb.html may proof to be of use.
Previous Topic:Virgo Snaps / Spring DM Slices in Glassfish 3
Next Topic:Testing bundle by Tycho, log4j does not work
Goto Forum:
  


Current Time: Fri Apr 19 22:22:32 GMT 2024

Powered by FUDForum. Page generated in 0.03315 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top