Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] NoClassDefFoundError in Equinox servlet container

Hi Matthew,
 
I tried to find the classes in your stack trace but with no luck in the ohf CVS.
 
My guess is that on one of the classes referenced in Consumer (instance field or perhaps a class referenced in a method) isn't being found and the NoClassDefFoundError is masking the real problem. I'd use a debugger and walk very carefully through the "first" loading of the Consumer class.
 
Also, when you say running in Equinox directly from Eclipse could you describe a bit more.
Are you using org.eclipse.equinox.http or perhaps doing something completely different ?
 
-Simon
 
 
 


From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Matthew Davis
Sent: Thursday, June 08, 2006 5:56 PM
To: equinox-dev@xxxxxxxxxxx
Subject: [equinox-dev] NoClassDefFoundError in Equinox servlet container

I'm having an interesting problem with the Equinox servlet container in Tomcat.

When attempting to access a class that exists in an imported package (exported from a different bundle), I receive a NoClassDefFoundError.  However, the oddity is, when I attempt to access a final static field within that class, it returns the value of the field without a problem.  I do not encounter this error when running in Equinox directly from within Eclipse.

I saw a post on the newsgroup that seemed to have a similar problem, but was never answered definitively.

Here is a full stack trace of the error:

java.lang.NoClassDefFoundError: org/eclipse/ohf/ihe/xds/consumer/Consumer
    org.eclipse.ohf.bridge.test2.ConsumerServlet.doGet(ConsumerServlet.java:29)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:123)
    org.eclipse.equinox.servlet.bridge.http.internal.ServletRegistration.handleRequest(ServletRegistration.java :57)
    org.eclipse.equinox.servlet.bridge.http.internal.ProxyServlet.processAlias(ProxyServlet.java:74)
    org.eclipse.equinox.servlet.bridge.http.internal.ProxyServlet.service(ProxyServlet.java:56)
    javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
    org.eclipse.equinox.servlet.bridge.launcher.BridgeServlet.service(BridgeServlet.java:95)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is when attempting to invoke as a servlet.  A similar error is produced (also falling back to NoClassDefFoundError) when attempting to invoke using an activator.

I'm using Eclipse 3.2RC7 and Tomcat 5.5.17.

Thanks,
Matt
 
     This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.

Back to the top