9 Replies Latest reply on Oct 28, 2013 6:46 AM by Barsha Bajaj

    Parse Error in JBoss

    Barsha Bajaj Newbie

      Hi,

       

      I am getting parse error when trying to deploy an .ear file using Jboss-as-7.0.1 that was earlier deployed in WebSphere using RAD.

      The error  looks like :

       

      PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"project.ear\".\"projectWeb.war\".PARSE: Failed to process phase PARSE of subdeployment \"projectWeb.war\" of deployment \"project.ear\""}}

       

      ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.subunit.\"project.ear\".\"projectWeb.war\".

       

      PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"project.ear\".\"projectWeb.war\".PARSE: Failed to process phase PARSE of subdeployment \"projectWeb.war\" of deployment \"project.ear\""}}}}

       

      The code in .ear file is basically V1.2 and I know JBoss supports Java  V1.6+. I think that cant be the reason for this parse error. Would anyone please let me know the reason behind it.

       

      Thanks,

      Barsha

        • 1. Re: Parse Error in JBoss
          Tomaz Cerar Master

          Why are you using 7.0.1? that is really old and does not implement EE6 full profile.

           

          Try with 7.2.0.Final / EAP 6.1.alpha from http://download.jboss.org/jbosseap/6/jboss-eap-6.1.0.Alpha/jboss-eap-6.1.0.Alpha.zip

          or at least 7.1.1.Final.

          1 of 1 people found this helpful
          • 2. Re: Parse Error in JBoss
            Barsha Bajaj Newbie

            Thanks Tomaz.

             

            I have now used EAP 6.1.alpha but encountered this error:

             

            Services which failed to start:   service jboss.deployment.subunit."project.ear"."projectWeb.war".

            PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."project.ear"."projectWeb.war".

            PARSE: JBAS018733: Failed to process phase PARSE of subdeployment "projectWeb.war" of deployment "project.ear".

             

            What rectification does my application need?

             

            Thanks,

             

            Barsha

            • 3. Re: Parse Error in JBoss
              Tomaz Cerar Master

              can you post full boot server.log so we can see what i going on.

              • 4. Re: Parse Error in JBoss
                Barsha Bajaj Newbie

                Hi,

                 

                Here is the stack trace of the error:

                 

                17:38:12,533 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PROJECT].[jsp]] (http-localhost/127.0.0.1:8080-1)
                JBWEB000236: Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
                at com.database.DBConnection.getConnection(DBConnection.java:19) [classes:]
                at com.util.HelperClass.getWelcomeMessage(HelperClass.java:147) [classes:]
                  at org.apache.jsp.index_jsp._jspService(index_jsp.java:72)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]


                  at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

                 

                17:38:12,558 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PROJECT].[jsp]] (http-localhost/127.0.0.1:8080-1)
                JBWEB000236: Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
                  at org.apache.jsp.error1_jsp._jspService(error1_jsp.java:136)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:523) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:370) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]


                at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

                 

                17:38:12,569 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]] (http-localhost/127.0.0.1:8080-1)
                JBWEB000313: Exception processing error page /error1.jsp: org.apache.jasper.JasperException: java.lang.NullPointerException
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:409) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:523) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:370) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]


                  at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

                 


                Caused by: java.lang.NullPointerException
                at org.apache.jsp.error1_jsp._jspService(error1_jsp.java:136)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]


                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

                 

                 

                I have included three external .jars namely:  jsp-api-2.0.jar,servlet-api-2.5.jar,javax.servlet-3.1.jar.javax.servlet.jsp.jar.,jaxp.jar there. But still these errors remain. I wish to mention that I cant modify the application.xml file. Though I need to add Datasource, configure the Oracle Db and all but JDS does not allow me to modify it. Could you please help me out?

                Waiting for your reply.

                 

                Thanks,

                Barsha

                • 5. Re: Parse Error in JBoss
                  Barsha Bajaj Newbie

                  Thanks Tomaz!

                   

                  I think There is some problem in JDBC connection. Would you please let me know what will the exact process to create connection.

                  Waiting for your reply.

                   

                  Thanks,

                   

                  karabi

                  • 7. Re: Parse Error in JBoss
                    Barsha Bajaj Newbie

                    Thanks Indranil and Tomaz !!!

                     

                    My problem is sorted out. It was due to JNDI name Mismatching and Improper DB Connectivity.

                     

                    Thanks a lot for your kind co-operation.

                     

                    Barsha

                    • 8. Re: Parse Error in JBoss
                      Wolf-Dieter Fink Master

                      Hi Barsha,

                      you should mark the the correct answer and the thread as 'answered' to make it easy to find the answer for other people.

                      Also marking as answerd help to not look into finished threads if someone want to help

                      • 9. Re: Parse Error in JBoss
                        Barsha Bajaj Newbie

                        Hi Wolf-Dieter Fink,


                        Both Tomaz and Indranil helped me to find out solution, So marking any answer as a correct answer would not be good practice,hence I opted for HeplFul answer as these two approaches led me to the right path.

                         

                        Thanks to you for introducing me with right process to change this thread to "answered" .


                        Thanks,


                        Barsha.