2 Replies Latest reply on Feb 20, 2012 11:18 PM by Janakiraman Elangovan

    Servlet Exception Error in Jboss 6.0.0-CR1

    Janakiraman Elangovan Newbie

      Hi,

       

      am working on the Jboss migration from 4 to 6 and hence i deployed the applivcation successfully.

       

      But am getting the servlet exception while proceed the links in the application such as

       

      2012-02-10 10:33:39,129 INFO  [STDOUT] (http-127.0.0.1-8080-2) 2012-02-08 11:25:12,199 (AccessionsAction.java: 191) - Action /accessions successful

      2012-02-10 10:33:39,706 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/power].

      (http-127.0.0.1-8080-2) Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException

       

           at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1598) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Parser.parse(Parser.java:130) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) [:6.0.0.20101110-CR1]

           at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) [:6.0.0.20101110-CR1]

           at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.20101110-CR1]

           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.20101110-CR1]

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.20101110-CR1]

           at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [:6.0.0.20101110-CR1]

           at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621) [:6.0.0.20101110-CR1]

           at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) [:1.1]

           at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) [:1.1]

           at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) [:1.1]

           at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) [:1.1]

           at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) [:1.1]

           at org.apache.jsp.layouts.standard_jsp._jspx_meth_tiles_005fget_005f2(standard_jsp.java:148)

           at org.apache.jsp.layouts.standard_jsp._jspService(standard_jsp.java:77)

           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [:6.0.0.20101110-CR1]

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.20101110-CR1]

           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.20101110-CR1]

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.20101110-CR1]

           at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [:6.0.0.20101110-CR1]

           at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621) [:6.0.0.20101110-CR1]

           at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) [:1.1]

           at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) [:1.1]

           at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) [:1.1]

           at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) [:1.1]

           at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) [:1.1]

           at org.apache.jsp.report.accessions_jsp._jspx_meth_tiles_005finsert_005f0(accessions_jsp.java:117)

           at org.apache.jsp.report.accessions_jsp._jspService(accessions_jsp.java:65)

           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [:6.0.0.20101110-CR1]

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.20101110-CR1]

           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.20101110-CR1]

           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.20101110-CR1]

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [:6.0.0.20101110-CR1]

           at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) [:1.1]

           at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) [:1.1]

           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) [:1.1]

           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) [:1.1]

           at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) [:1.1]

           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.20101110-CR1]

           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.20101110-CR1]

           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.20101110-CR1]

           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593) [:6.0.0.20101110-CR1]

           at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

           at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.20101110-CR1]

           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.20101110-CR1]

           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.20101110-CR1]

           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.20101110-CR1]

           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.20101110-CR1]

           at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.20101110-CR1]

           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.20101110-CR1]

           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.20101110-CR1]

           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:6.0.0.20101110-CR1]

           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20101110-CR1]

           at java.lang.Thread.run(Thread.java:619) [:1.6.0_16]

       

      2012-02-08 11:25:27,687 INFO  [STDOUT] (http-127.0.0.1-8080-2) 2012-02-08 11:25:27,686 (  TilesRequestProcessor.java: 139) - Tiles definition factory found for request processor ''.

       

      Kindly,please advice for the above mentioned request..

       

      Thanks & Regards,

      Janakiraman E

        • 1. Re: Servlet Exception Error in Jboss 6.0.0-CR1
          jaikiran pai Master

          Don't use that version. Instead use either 6.1.0 or 7.1.0.Final? Infact, that specific error has been fixed in 6.1.0 (and even 7.x) https://issues.jboss.org/browse/JBAS-8579

          • 2. Re: Servlet Exception Error in Jboss 6.0.0-CR1
            Janakiraman Elangovan Newbie

            Hi Jaikaran,

             

            Thanks for ur reply..

             

            Well as you said i tried with the jboss 6.1.0 final version and hence i got the below deployment error .

             

            Kindly suggest for the mentioned error

             

            Deployment "jboss-switchboard:appName=power,module=power" is missing the following dependencies:

            Dependency "java:/queue/autoReleaseQueue" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'java:/queue/autoReleaseQueue'**")

            Dependency "java:/queue/postProcessQueue" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'java:/queue/postProcessQueue'**")

            Dependency "java:/mail/Power" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'java:/mail/Power' **")

            Deployment "jboss.web.deployment:war=/power" is missing the following dependencies:

            Dependency "jboss-switchboard:appName=power,module=power" (should be in state "Installed", but is actually in state "Create")


            DEPLOYMENTS IN ERROR:
              Deployment "java:/queue/autoReleaseQueue" is in error due to the following rea
            son(s): ** NOT FOUND Depends on 'java:/queue/autoReleaseQueue' **
              Deployment "java:/mail/Power" is in error due to the following reason(s): ** N
            OT FOUND Depends on 'java:/mail/Power' **
              Deployment "java:/queue/postProcessQueue" is in error due to the following rea
            son(s): ** NOT FOUND Depends on 'java:/queue/postProcessQueue' **

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep

             

            well my jboss-web.xml

             

            <?xml version="1.0" encoding="UTF-8"?>
            <jboss-web>
                <context-root>power</context-root>
            <security-domain>java:/jaas/PowerRealm</security-domain>
            <resource-ref>
              <res-ref-name>jdbc/Cylab</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <jndi-name>java:/jdbc/Cylab</jndi-name>
            </resource-ref>
            <resource-ref>
              <res-ref-name>mail/Power</res-ref-name>
              <res-type>javax.mail.Session</res-type>
              <jndi-name>java:/mail/Power</jndi-name>
            </resource-ref>
            <resource-ref>
              <res-ref-name>queue/autoReleaseQueue</res-ref-name>
              <res-type>javax.jms.Queue</res-type>
              <jndi-name>java:/queue/autoReleaseQueue</jndi-name>
            </resource-ref>
            <resource-ref>
              <res-ref-name>queue/postProcessQueue</res-ref-name>
              <res-type>javax.jms.Queue</res-type>
              <jndi-name>java:/queue/postProcessQueue</jndi-name>
            </resource-ref>
            <ejb-ref>
              <ejb-ref-name>ejb/ReportRenderEJB</ejb-ref-name>
              <jndi-name>ReportRenderEJB</jndi-name>
            </ejb-ref>
            </jboss-web>

             

            Please advice for the above mentioned request..

             

            Thanks & Regards,

            Janakiraman E