btw, I suspect that the reason final
static fields work is because there is no reference to the original class
in the classfile. It actually compiles the *value* of the constant inline
in the target.
<Simon.Kaegi@xxxxxxxxxx> Sent by: equinox-dev-bounces@xxxxxxxxxxx
Please respond to
Equinox development mailing list
mailing list" <equinox-dev@xxxxxxxxxxx>
RE: [equinox-dev] NoClassDefFoundError
in Equinox servlet container
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 ?
[mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Matthew Davis
Sent: Thursday, June 08, 2006 5:56 PM
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.
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.
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. _______________________________________________
equinox-dev mailing list