Re: Help me! about Karaf with spring-DM webApp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Help me! about Karaf with spring-DM webApp

Guillaume Nodet
Could you reformat your code ? I think a lot has been lost.  Also,
this is more a question for the users list, so I'm answering there.
Last, but not least, which version of Karaf do you use ? If you don't
use 2.2.0 which has been released, maybe you could try that one ?

On Thu, Mar 10, 2011 at 09:55, stream <[hidden email]> wrote:

>
> there is a problem that "a java.lang.NullPointerException" always happen
> when i used spring-dm in my webApp project. unless deleted the code
>
>
>       contextClass
>
> org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext
>
>
>
>                org.springframework.web.context.ContextLoaderListener
>
>
> in my web.xml..
>
> who can help me....
> i have spent three day...
>
>
>
> exception
> Could not start the servlet context for http context
> [org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext@cb5d35]
> java.lang.NullPointerException
> at
> org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.addContext(JettyServerWrapper.java:209)[86:org.ops4j.pax.web.pax-web-jetty:1.0.1]
>        at
> org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.getOrCreateContext(JettyServerWrapper.java:112)[86:org.ops4j.pax.web.pax-web-jetty:1.0.1]
>        at
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:137)[86:org.ops4j.pax.web.pax-web-jetty:1.0.1]
>        at
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:266)[86:org.ops4j.pax.web.pax-web-jetty:1.0.1]
>        at
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:107)[86:org.ops4j.pax.web.pax-web-jetty:1.0.1]
>        at
> org.ops4j.pax.web.service.internal.HttpServiceStarted.registerResources(HttpServiceStarted.java:180)[85:org.ops4j.pax.web.pax-web-runtime:1.0.1]
>        at
> org.ops4j.pax.web.service.internal.HttpServiceProxy.registerResources(HttpServiceProxy.java:66)[85:org.ops4j.pax.web.pax-web-runtime:1.0.1]
>        at
> org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:138)[89:org.ops4j.pax.web.pax-web-extender-war:1.0.1]
>        at
> org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:558)[89:org.ops4j.pax.web.pax-web-extender-war:1.0.1]
>        at
> org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebAppPublisher.java:170)[89:org.ops4j.pax.web.pax-web-extender-war:1.0.1]
>
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Help-me-about-Karaf-with-spring-DM-webApp-tp2659667p2659667.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com