classNotFound exception in servlet bridge [message #64073] |
Tue, 28 March 2006 03:44 |
Eclipse User |
|
|
|
Originally posted by: kiran.bagepalli.gmail.com
I am using the equinox servlet bridge with tomcat. When a servlet in a
bundle is invoked its bundle activator does not seem to be called(I have
checked activate bundle in the manifest). Also if this bundle has
dependencies on other bundles, if I reference then in the doGet(...)
method, I get a classnotfound exception.
I check that my bundle in resolved but not active. Can anyone throw some
light why I am getting a classNotFound exception for classes in my
required bundles of the servlet bundle.
Thanks
Kiran
|
|
|
Re: classNotFound exception in servlet bridge [message #64125 is a reply to message #64073] |
Wed, 29 March 2006 04:42 |
Eclipse User |
|
|
|
Originally posted by: skaegi.sympatico.ca
Hi Kiran,
It sounds to me like a dependency is missing somewhere in your servlet's
bundle.
It's not activating because it's throwing an exception in start().
You should walk through this code in a debugger, potentially catching
ClassNotFoundExceptions until you can figure out which import your bundle is
missing.
I find that calling start from the console sometimes helps. Be suspicious of
any of the direct dependencies of CNF Exception class.
Hope this helps.
-Simon
"kiran" <kiran.bagepalli@gmail.com> wrote in message
news:8587df3af0371a65aff05ea9ea515f2e$1@www.eclipse.org...
> I am using the equinox servlet bridge with tomcat. When a servlet in a
> bundle is invoked its bundle activator does not seem to be called(I have
> checked activate bundle in the manifest). Also if this bundle has
> dependencies on other bundles, if I reference then in the doGet(...)
> method, I get a classnotfound exception.
> I check that my bundle in resolved but not active. Can anyone throw some
> light why I am getting a classNotFound exception for classes in my
> required bundles of the servlet bundle.
>
> Thanks
> Kiran
>
|
|
|
Re: classNotFound exception in servlet bridge [message #64196 is a reply to message #64125] |
Wed, 29 March 2006 17:30 |
Eclipse User |
|
|
|
Originally posted by: bvkiran.hotmail.com
I downloaded the application which was published on infonia. I get this
exception even with a very simple bundle dependency.
org.rsp.demo is a simple class with one class Customer whose package is
exported.
If I refer to this class in MyServlet.java(this plugin has specified
required bundle on org.rsp.demo) I get an exception. This is the only
bundle I have a depedency on. org.rsp.sample.usage.servlet has a extension
on org.eclipse.equinox.servlet.ext.servlets.
Is there a demo application anywhere which uses Tomcat and Eclipse
together on the equinox site.
java.lang.NoClassDefFoundError: org/rsp/demo/Customer
org.rsp.sample.usage.servlet.MyServlet.doGet(MyServlet.java: 65)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.eclipse.equinox.servlet.httpservice.ServletRegistration. handleRequest(ServletRegistration.java:57)
org.eclipse.equinox.servlet.httpservice.ProxyServlet.service (ProxyServlet.java:74)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.eclipse.equinox.servlet.bridge.BridgeServlet.service(Bri dgeServlet.java:72)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.taglibs.standard.tag.common.core.ImportSupport.ac quireString(Unknown
Source)
org.apache.taglibs.standard.tag.common.core.ImportSupport.do EndTag(Unknown
Source)
org.apache.jsp.index_jsp._jspx_meth_c_import_0(org.apache.js p.index_jsp:139)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_js p:79)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
|
|
|
Powered by
FUDForum. Page generated in 0.02683 seconds