We are migrating from 6.0.48 to 7.0.82 , after updating the libraries we
are hitting the below issue


java.lang.NullPointerException
        at
org.apache.catalina.core.ApplicationContext.populateSessionTrackingModes(ApplicationContext.java:1263)
        at
org.apache.catalina.core.ApplicationContext.<init>(ApplicationContext.java:126)
        at
org.apache.catalina.core.StandardContext.getServletContext(StandardContext.java:2483)
        at
org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer2.createDeployment(TomcatWarDeployer2.java:137)
        at
org.springframework.osgi.web.deployer.support.AbstractWarDeployer.deploy(AbstractWarDeployer.java:83)
        at
org.springframework.osgi.web.extender.internal.activator.WarLoaderListener$DeploymentManager$DeployTask.doRun(WarLoaderListener.java:257)
        at
org.springframework.osgi.web.extender.internal.activator.WarLoaderListener$DeploymentManager$BaseTask.run(WarLoaderListener.java:222)
        at
org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
        at java.util.TimerThread.mainLoop(Timer.java:567)
        at java.util.TimerThread.run(Timer.java:517)
2018-03-06 10:09:40.379 SEVERE
[org.springframework.osgi.web.extender.internal.activator.WarLoaderListener$DeploymentManager$DeployTask]
War deployment of bundle null (com.approuter.nmc) failed
Throwable occurred:
org.springframework.osgi.web.deployer.OsgiWarDeploymentException: Cannot
create war deployment for bundle [null (com.approuter.nmc)] at [/] on
server org.apache.catalina.core.St
        at
org.springframework.osgi.web.deployer.support.AbstractWarDeployer.deploy(AbstractWarDeployer.java:86)
        at
org.springframework.osgi.web.extender.internal.activator.WarLoaderListener$DeploymentManager$DeployTask.doRun(WarLoaderListener.java:257)
        at
org.springframework.osgi.web.extender.internal.activator.WarLoaderListener$DeploymentManager$BaseTask.run(WarLoaderListener.java:222)
        at
org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
        at java.util.TimerThread.mainLoop(Timer.java:567)
        at java.util.TimerThread.run(Timer.java:517)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at
org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer2.createDeployment(TomcatWarDeployer2.java:156)
        at
org.springframework.osgi.web.deployer.support.AbstractWarDeployer.deploy(AbstractWarDeployer.java:83)
        ... 5 more
Caused by: java.lang.NullPointerException
        at
org.apache.catalina.core.ApplicationContext.populateSessionTrackingModes(ApplicationContext.java:1263)
        at
org.apache.catalina.core.ApplicationContext.<init>(ApplicationContext.java:126)
        at
org.apache.catalina.core.StandardContext.getServletContext(StandardContext.java:2483)
        at
org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer2.createDeployment(TomcatWarDeployer2.java:137)
        ... 6 more



We are using a custom tomcatwardeployer program (available
in spring-osgi-web-1.2.1-sources.jar.zip).

it looks like application context not getting added to the host. Please
help us in resolving the above issue.

Is there any configuration related changes for connecting application
context to the host.

Thank you
Madhavi

Reply via email to