1 Reply Latest reply on Apr 16, 2004 8:10 AM by Sverker Abrahamsson

    JBoss 3.2.2/Tomcat - No Session cookies--URL rewrite

    Elias Ross Master


      In JBoss 3.2.2 default, I want to change a particular deployed .war file to use URL rewriting instead of sending the user a "session cookie" to maintain session state. Is this possible? It doesn't seem like JBoss likes it if I modify jboss-service.xml in jbossweb-tomcat41.sar and specify by context like so:




      I tried adding a LifecycleListener that would do this for me, like this, but it fails (see below):





      2003-12-05 17:31:03,689 WARN [ServiceController] (main) Problem starting service jboss.web:service=WebServer
      java.lang.NullPointerException
      at java.io.File.(File.java:180)
      at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.java:3888)
      at org.apache.catalina.core.StandardContext.getServletContext(StandardContext.java:1060)
      at org.apache.catalina.core.StandardContext.postWorkDirectory(StandardContext.java:4023)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3497)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
      at org.apache.catalina.startup.Embedded.start(Embedded.java:994)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.startService(EmbeddedTomcatService.java:273)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)