3 Replies Latest reply on Sep 19, 2005 7:24 AM by holeinone

    Error during context restart

    garym

      Jboss 3,2,6 with Tomcat 5.
      Trying to reploy a web app by touching the web.xml and receive the following error:

      2004-12-07 11:33:25,387 INFO [org.apache.catalina.startup.HostConfig] restartContext()
      2004-12-07 11:33:25,387 INFO [tomcat.localhost.ROOT.Context] Reloading this Context has started
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filters
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'HeaderSetFilter'
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'CommonHeadersFilter'
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'SessionCheckFilter'
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'PageAccessFilter'
      2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'LoadWaitFilter'
      2004-12-07 11:33:25,388 INFO [STDOUT] LoadWaitFilter:destroy:
      2004-12-07 11:33:25,400 DEBUG [tomcat.localhost.ROOT.Context] Processing standard container shutdown
      2004-12-07 11:33:25,427 DEBUG [tomcat.localhost.ROOT.Context] Sending application stop events
      2004-12-07 11:33:25,427 DEBUG [tomcat.localhost.ROOT.Context] resetContext jboss.web:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none org.jboss.mx.server.MBeanServerImpl@1e0ff2f
      2004-12-07 11:33:25,427 DEBUG [tomcat.localhost.ROOT.Context] Stopping complete
      2004-12-07 11:33:25,428 DEBUG [tomcat.localhost.ROOT.Context] Starting tomcat.localhost.ROOT.Context
      2004-12-07 11:33:25,626 DEBUG [tomcat.localhost.ROOT.Context] Processing standard container startup
      2004-12-07 11:33:25,627 DEBUG [tomcat.localhost.ROOT.Context] Checking for jboss.web:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none
      2004-12-07 11:33:25,636 WARN [org.apache.catalina.startup.HostConfig] Error during context restart
      java.lang.NullPointerException
      at org.jboss.web.tomcat.tc5.WebCtxLoader.start(WebCtxLoader.java:109)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4231)
      at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3043)
      at org.apache.catalina.startup.HostConfig.restartContext(HostConfig.java:873)
      at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.java:759)
      at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
      at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
      at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
      at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
      at java.lang.Thread.run(Thread.java:534)

      Using the default context with redeployable set to true. Using ROOT.war as a sym link to our web app directory. Deploys fine restarting jBoss.

      Any ideas? Any further info needed?

      Gary

        • 1. Error during context restart
          starksm64

          Jboss 3,2,6 with Tomcat 5.
          Trying to reploy a web app by touching the web.xml and receive the following error:

          2004-12-07 11:33:25,387 INFO [org.apache.catalina.startup.HostConfig] restartContext()
          2004-12-07 11:33:25,387 INFO [tomcat.localhost.ROOT.Context] Reloading this Context has started
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filters
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'HeaderSetFilter'
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'CommonHeadersFilter'
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'SessionCheckFilter'
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'PageAccessFilter'
          2004-12-07 11:33:25,387 DEBUG [tomcat.localhost.ROOT.Context] Stopping filter 'LoadWaitFilter'
          2004-12-07 11:33:25,388 INFO [STDOUT] LoadWaitFilter:destroy:
          2004-12-07 11:33:25,400 DEBUG [tomcat.localhost.ROOT.Context] Processing standard container shutdown
          2004-12-07 11:33:25,427 DEBUG [tomcat.localhost.ROOT.Context] Sending application stop events
          2004-12-07 11:33:25,427 DEBUG [tomcat.localhost.ROOT.Context] resetContext jboss.web:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none org.jboss.mx.server.MBeanServerImpl@1e0ff2f
          2004-12-07 11:33:25,427 DEBUG [tomcat.localhost.ROOT.Context] Stopping complete
          2004-12-07 11:33:25,428 DEBUG [tomcat.localhost.ROOT.Context] Starting tomcat.localhost.ROOT.Context
          2004-12-07 11:33:25,626 DEBUG [tomcat.localhost.ROOT.Context] Processing standard container startup
          2004-12-07 11:33:25,627 DEBUG [tomcat.localhost.ROOT.Context] Checking for jboss.web:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none
          2004-12-07 11:33:25,636 WARN [org.apache.catalina.startup.HostConfig] Error during context restart
          java.lang.NullPointerException
          at org.jboss.web.tomcat.tc5.WebCtxLoader.start(WebCtxLoader.java:109)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4231)
          at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3043)
          at org.apache.catalina.startup.HostConfig.restartContext(HostConfig.java:873)
          at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.java:759)
          at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
          at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
          at java.lang.Thread.run(Thread.java:534)

          Using the default context with redeployable set to true. Using ROOT.war as a sym link to our web app directory. Deploys fine restarting jBoss.

          Any ideas? Any further info needed?

          Gary

          • 2. Re: Error during context restart
            garym

            Still have this issue and finally got around to creating a sample to recreate it:

            Error for the sample shows:


            09:10:51,234 INFO [HostConfig] restartContext(/check)
            09:10:51,250 INFO [Context] Reloading this Context has started
            09:10:51,265 WARN [HostConfig] Error during context /check restart
            java.lang.NullPointerException
            at org.jboss.web.tomcat.tc5.WebCtxLoader.start(WebCtxLoader.java:109)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
            231)
            at org.apache.catalina.core.StandardContext.reload(StandardContext.java:
            3043)
            at org.apache.catalina.startup.HostConfig.restartContext(HostConfig.java
            :873)
            at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostC
            onfig.java:759)
            at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
            :327)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
            eSupport.java:119)
            at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.
            java:800)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
            rocessChildren(ContainerBase.java:1619)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
            rocessChildren(ContainerBase.java:1628)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
            un(ContainerBase.java:1608)
            at java.lang.Thread.run(Thread.java:534)


            web.xml:
            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE web-app
             PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
             "http://java.sun.com/dtd/web-app_2_3.dtd">
            
            <web-app>
             <display-name>hello-world</display-name>
            
             <description>
             My Hello World servlet.
             </description>
            
             <servlet>
             <servlet-name>hello-world</servlet-name>
             <servlet-class>test.HelloServlet</servlet-class>
             </servlet>
            
             <servlet-mapping>
             <servlet-name>hello-world</servlet-name>
             <url-pattern>/test/hello-world</url-pattern>
             </servlet-mapping>
            </web-app>
            


            Host settings in Server.xml:
             <Host name="localhost" autoDeploy="true" deployOnStartup="false" deployXML="false">
            
             <!-- Default context parameters -->
             <DefaultContext cookies="true" crossContext="true" override="true" reloadable="true"/>
            
             </Host>
            


            HelloServlet:
            package test;
            
            import java.io.*;
            import javax.servlet.http.*;
            import javax.servlet.*;
            
            public class HelloServlet extends HttpServlet
            {
            
             public void init() throws ServletException
             {
             }
            
             public void doGet ( HttpServletRequest request,
             HttpServletResponse response)
             throws ServletException, IOException
             {
             PrintWriter out = response.getWriter();
            
             out.println("Hello, betty!");
             out.close();
             }
            }
            


            No context.xml

            Are we missing a necessary setting to get this to work?

            Any direction would be appreciated!

            Gary

            • 3. Re: Error during context restart
              holeinone

              Just an 'I have this problem too' msg I'm afraid.
              ever found a solution to this problem?

              Regards,

              Hugo