I am trying to deploy a war developed for Glassfish to Karaf. I have a an
example app working so I am pretty sure the web features are setup
correctly.
Earlier I had a problem where if I was repeat deploying to the "deploy"
directory it didn't appear to be removing the old context so the bundle was
being set to active but the "Web-State" - "Waiting" state and there was a
"collisionid=[<bundleId>,<same bundleId>]". When i changed the
"Webapp-Context" to something different I no longer received this problem
but it began throwing the exception at the bottom of this message.
Why would http context be null? I am not sure whether this was a result of
changing the "Webapp-Context", could it be possible?
2013-10-31 10:10:10,298 | DEBUG | BundleWatcher: 3 | RegisterWebAppVisitorWC
| 104 - org.ops4j.pax.web.pax-web-extender-war - 3.0.0.M3 | visiting
webappWebApp{displayName=GeMaS,contextName=gemas4,m_httpContext=null}
2013-10-31 10:10:10,298 | DEBUG | BundleWatcher: 3 | HttpServiceProxy
| 100 - org.ops4j.pax.web.pax-web-runtime - 3.0.0.M3 | Creating a default
context
2013-10-31 10:10:10,298 | WARN | BundleWatcher: 3 | HttpServiceStopped
| 100 - org.ops4j.pax.web.pax-web-runtime - 3.0.0.M3 | Http service has
already been stopped
2013-10-31 10:10:10,298 | ERROR | BundleWatcher: 3 | WebXmlObserver
| 104 - org.ops4j.pax.web.pax-web-extender-war - 3.0.0.M3 | Could not parse
web.xml
org.ops4j.lang.NullArgumentException: http context is null.
at
org.ops4j.lang.NullArgumentException.validateNotNull(NullArgumentException.java:75)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebAppHttpContext.<init>(WebAppHttpContext.java:83)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext.<init>(WebAppWebContainerContext.java:49)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:102)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:615)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.register(WebAppPublisher.java:190)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:243)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:131)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)[org.apache.felix.framework-4.0.3.jar:]
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:906)[org.apache.felix.framework-4.0.3.jar:]
at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)[org.apache.felix.framework-4.0.3.jar:]
at
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:185)[org.apache.felix.framework-4.0.3.jar:]
at
org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:348)[org.apache.felix.framework-4.0.3.jar:]
at
org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:283)[org.apache.felix.framework-4.0.3.jar:]
at
org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:89)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebObserver.deploy(WebObserver.java:66)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.web.extender.war.internal.WebXmlObserver.addingEntries(WebXmlObserver.java:173)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
org.ops4j.pax.swissbox.extender.BundleWatcher$3.run(BundleWatcher.java:226)[104:org.ops4j.pax.web.pax-web-extender-war:3.0.0.M3]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_40]
at
java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_40]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_40]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
2013-10-31 10:10:10,298 | DEBUG | BundleWatcher: 3 | WebEventDispatcher
| 104 - org.ops4j.pax.web.pax-web-extender-war - 3.0.0.M3 | Sending web
event WebEvent [replay=false, type=5, bundle=common-web-client [126],
extenderBundle=org.ops4j.pax.web.pax-web-extender-war [104],
cause=org.ops4j.lang.NullArgumentException: http context is null.,
timestamp=1383235810298, contextPath=/gemas4, collisionIds=null,
httpService=null, httpContext=null] for bundle common-web-client
--
View this message in context:
http://karaf.922171.n3.nabble.com/org-ops4j-lang-NullArgumentException-http-context-is-null-tp4030138.html
Sent from the Karaf - User mailing list archive at Nabble.com.