Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Servlet-api problems
Servlet-api problems [message #69045] Wed, 28 June 2006 13:41 Go to next message
Benjamin Podszun is currently offline Benjamin PodszunFriend
Messages: 4
Registered: July 2009
Junior Member
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 15:55 Go to previous message
Eclipse UserFriend
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
Previous Topic:OHF Bridge implemented using server-side Equinox/OSGi
Next Topic:http service questions
Goto Forum:
  


Current Time: Sun Oct 06 14:22:54 GMT 2024

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

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

Back to the top