2 Replies Latest reply on Sep 20, 2011 2:05 PM by JBOSS user

    War file doesn't work while exploded folder works on JBOSS 6

    JBOSS user Newbie

      Hello,

      I'm currently using JBOSS 6.0 Final. I have a war file which is under default / deploy folder, when I start the server, the application doesn't come up. All the static html pages come up but anypage that has a db call does not work . But I unzip this war file and have it as an exploded war file (with a .war extension though), it works fine. I find that JBOSS 6 uses the VFS. I also see that the tmp/deploy folder is empty. Any help will be appreciated.

        • 1. Re: War file doesn't work while exploded folder works on JBOSS 6
          jaikiran pai Master

          What exactly do you mean by "does not work"? Do you see any errors or exception stacktraces?

          • 2. Re: War file doesn't work while exploded folder works on JBOSS 6
            JBOSS user Newbie

            Hello Jaikiran,

            Thank you for your reply. Any page that has a call to the Database throws DataRetriever Exception

             

            13:59:08,782 ERROR [STDERR]  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)

            13:59:08,782 ERROR [STDERR]  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)

            13:59:08,782 ERROR [STDERR]  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

            13:59:08,782 ERROR [STDERR]  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

            13:59:08,782 ERROR [STDERR]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

            13:59:08,782 ERROR [STDERR]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

            13:59:08,782 ERROR [STDERR]  at com.ma.tracking.TrackingFilter.doFilter(TrackingFilter.java:93)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

            13:59:08,782 ERROR [STDERR]  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593)

            13:59:08,782 ERROR [STDERR]  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)

            13:59:08,782 ERROR [STDERR]  at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

            13:59:08,782 ERROR [STDERR]  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            13:59:08,782 ERROR [STDERR]  at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)

            13:59:08,782 ERROR [STDERR]  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

            13:59:08,782 ERROR [STDERR]  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

            13:59:08,782 ERROR [STDERR]  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)

            13:59:08,782 ERROR [STDERR]  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

            13:59:08,782 ERROR [STDERR]  at java.lang.Thread.run(Thread.java:662)

            13:59:08,845 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[action]] Servlet.service() for servlet action threw exception: java.lang.NullPointerException
            at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:384) [:1.2.9]
            at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) [:1.2.9]
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241) [:1.2.9]
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [:1.2.9]
            at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [:1.2.9]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
            at com.ma.tracking.TrackingFilter.doFilter(TrackingFilter.java:93) [:]
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593) [:6.0.0.Final]
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
            at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

             

            When the same war file is unzipped, it works fine. Please advise.