|
Re: war deployment fails with CNF exception [message #661855 is a reply to message #661750] |
Mon, 28 March 2011 10:01 |
Glyn Normington Messages: 1222 Registered: July 2009 |
Senior Member |
|
|
Jacob wrote on Sun, 27 March 2011 09:53 | Hi,
I am trying to deploy a war file to VWS, this is the activemq-fileserver war and although I added all of the proper dependency bundles to my respository I am gettting a CNF exception when attempting to access the web app.
10:39:09.995 [http-8080-1] ERROR System.err - SEVERE: Allocate exception for servlet DefaultServlet
10:39:09.996 [http-8080-1] ERROR System.err - java.lang.ClassNotFoundException: org.eclipse.jetty.servlet.DefaultServlet
10:39:09.997 [http-8080-1] ERROR System.err - at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappC lassLoader.loadClass(BundleWebappClassLoader.java:286)
10:39:09.998 [http-8080-1] ERROR System.err - at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
10:39:09.999 [http-8080-1] ERROR System.err - at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1095)
10:39:09.999 [http-8080-1] ERROR System.err - at org.apache.catalina.core.StandardWrapper.allocate(StandardWr apper.java:809)
10:39:10.000 [http-8080-1] ERROR System.err - at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:129)
10:39:10.001 [http-8080-1] ERROR System.err - at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
10:39:10.001 [http-8080-1] ERROR System.err - at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
10:39:10.002 [http-8080-1] ERROR System.err - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
10:39:10.003 [http-8080-1] ERROR System.err - at org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve.in voke(ApplicationNameTrackingValve.java:29)
10:39:10.003 [http-8080-1] ERROR System.err - at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa lve.java:555)
10:39:10.004 [http-8080-1] ERROR System.err - at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
10:39:10.005 [http-8080-1] ERROR System.err - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:298)
10:39:10.005 [http-8080-1] ERROR System.err - at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:857)
10:39:10.005 [http-8080-1] ERROR System.err - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:588)
10:39:10.005 [http-8080-1] ERROR System.err - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:489)
10:39:10.006 [http-8080-1] ERROR System.err - at java.lang.Thread.run(Thread.java:662)
After looking at the packages that are imported by the deployed bundle I can see that the CNE package is not imported.
My question is how does virgo decide which packages should be imported by the war bundle ?
|
When processing a WAR, Virgo 2.1.0 automatically imports all the packages exported by the system bundle plus the packages javax.servlet v2.5, javax.servlet.http v2.5, javax.servlet.jsp v2.1, javax.servlet.jsp.el v2.1, javax.servlet.jsp.tagext v2.1, and javax.el v1.0.
Quote: |
How can I explicitly tell him to import the missing package ?
|
Add a META-INF/MANIFEST/MF to the WAR and use an Import-Package header.
However, would you expect to use "org.eclipse.jetty.servlet.DefaultServlet" with VWS which is based on Tomcat?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02770 seconds