JBossWeb HTTP Session Clustering - Null Pointer Exception
wingba Oct 21, 2002 5:46 PMI'm attempting to get the JBossWeb Http Session Clustering working. I'm not modifying any of the configurations in the all/deploy directory. JBoss starts with no ERRORS and the DefaultPartition appears to have started okay.
I can deploy the template application and everything works fine. If I add the tag to the template's web.xml file and deploy I get the following exception:
14:41:06,078 INFO [MainDeployer] Starting deployment of package: file:/endeca/jboss-3.0.3/server/all/deploy/web-client.wa
r
14:41:06,403 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=4,context=/web-client
14:41:07,356 INFO [jbossweb] Extract jar:file:/endeca/jboss-3.0.3/server/all/tmp/deploy/server/all/deploy/web-client.war/
79.web-client.war!/ to /var/tmp/Jetty_0_0_0_0_8080__web-client/webapp
14:41:08,301 INFO [JBossWebApplicationContext#/web-client] using Distributable HttpSession Manager: org.mortbay.j2ee.sess
ion.Manager@8ef117
14:41:08,334 INFO [jbossweb] Stopped WebApplicationContext[/web-client,Web Client]
14:41:08,341 INFO [jbossweb] Deregister jboss.web:Jetty=0,JBossWebApplicationContext=4,context=/web-client
14:41:08,342 INFO [jbossweb] Successfully undeployed file:/endeca/jboss-3.0.3/server/all/tmp/deploy/server/all/deploy/web
-client.war/79.web-client.war
14:41:08,375 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@
3a90ff0a{ url=file:/endeca/jboss-3.0.3/server/all/deploy/web-client.war, deployedLastModified=1035232778000 }
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
at org.jboss.jetty.Jetty.deploy(Jetty.java:434)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:553)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
Caused by: java.lang.NullPointerException
at org.mortbay.j2ee.session.Manager.start(Manager.java:159)
at org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:409)
at org.mortbay.jetty.servlet.WebApplicationHandler.start(WebApplicationHandler.java:142)
at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1780)
at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:280)
at org.mortbay.http.HttpContext.start(HttpContext.java:1750)
at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:412)
... 17 more
I've tried both the Java Groups and CMP blocks in the jboss-service.xml of jbossweb.sar. I get the same errors. I can deploy my own application and verify that the HA-JNDI clustering works fine. If I remove the tag on my app, it also works but without HTTP Session Clustering.
I'm running this on Sparc Solaris 8. I've tried setting all the attributes from the clustering PDF document in the cluster-service.xml. This gives me better control for the HA-JNDI, but didn't help the HTTP Clustering.
Any ideas of what I'm doing wrong? Thanks in advance.