Mariano Eloy Fernández created KARAF-7400:
---------------------------------------------
Summary: WebContainer NullPointerException on deploying Spring
Boot WAR sample application
Key: KARAF-7400
URL: https://issues.apache.org/jira/browse/KARAF-7400
Project: Karaf
Issue Type: Bug
Components: karaf
Affects Versions: 4.3.6
Reporter: Mariano Eloy Fernández
Attachments: spring.boot.demo.three.zip
I am following the steps on https://karaf.apache.org/manual/latest/webcontainer
to deploy a simple Spring Booot WAR.
I download the Spring Booot sample from https://start.spring.io/ and {{mvn
install it}}.
Then I execute:
{code}
bundle:install -s
"webbundle:mvn:org.example.osgi/spring.boot.demo.three/0.0.1-SNAPSHOT/war?Bundle-SymbolicName=demo-three&Web-ContextPath=/three"
{code}
I get this error:
{code}
10:31:34.124 INFO [paxweb-extender-1-thread-1] will add
org.apache.jasper.servlet.JasperInitializer to ServletContainerInitializers
10:31:34.124 INFO [paxweb-extender-1-thread-1] Skipt
org.apache.jasper.servlet.JasperInitializer, because specialized handler will
be present
10:31:34.124 INFO [paxweb-extender-1-thread-1] will add
org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer
to ServletContainerInitializers
10:31:34.125 INFO [paxweb-extender-1-thread-1] added
ServletContainerInitializer:
org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer
10:31:34.125 INFO [paxweb-extender-1-thread-1] will add
org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer
to ServletContainerInitializers
10:31:34.267 ERROR [paxweb-extender-1-thread-1] Exception starting HttpContext
registration
java.lang.NullPointerException
10:31:34.267 ERROR [paxweb-extender-1-thread-1] Error deploying web application
java.lang.NullPointerExceptio
{code}
There is no hint on what is causing this {{NullPointerException}}. I tried to
{{log:set TRACE}} but it still gives no further information.
My ultimate goal is to deploy several Spring Boot apps as WARs to let Karaf's
Jetty route calls to these apps based on their {{context-path}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)