Servlet-api problems [message #69045] |
Wed, 28 June 2006 09:41  |
Eclipse User |
|
|
|
Hi there.
I'm using equinox for a standalone project of mine (read: without any
other eclipse stuff) and try to deploy some servlets currently.
I tried various ways of providing a servlet-api bundle.. I packaged it
myself, downloaded the latest drop from equinox and used the obr one:
Still no luck.
My simple test bundle here (created with eclipse) has the following
imports:
Import-Package: javax.servlet,
javax.servlet.http,
org.osgi.framework;version="1.3.0",
org.osgi.service.http,
org.osgi.util.tracker
so from my humble point of view it should just work. However, I'm
currently going crazy because starting this bundle always results in
java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
in one of my constructors (a ServiceTracker implementation). That's
driving me insane, because
a) javax.servlet.GenericServlet exists in all servlet-api bundles that I
tried
b) javax.servlet is exported by all servlet-api bundles that I tried
c) This is even more wicked because I'm using a subclass of HttpServlet at
that point. So it seems to find HttpServlet but stops there?
Any help would be greatly appreciated here.
Thanks in advance,
Ben
|
|
|
Re: Servlet-api problems [message #69089 is a reply to message #69045] |
Wed, 28 June 2006 11:55  |
Eclipse User |
|
|
|
Originally posted by: simon.kaegi.cognos.com
Hi Ben,
It really looks like the "javax.servlet" import isn't working although I'm
not sure why as what you describe looks fine.
You might try using "-console" and then doing a bundle "x" where x is your
Servlet test bundle. This should tell you where things are being imported
from. If that isn't helpful I'd suggest slowly walking through and debugging
the first load of HttpServlet.
Hope this helps
-Simon
|
|
|
Powered by
FUDForum. Page generated in 0.07719 seconds