4 Replies Latest reply on Apr 30, 2013 4:33 AM by Dinesh Rathore

    JBAS018040: Failed to start context

    Dinesh Rathore Newbie

      Hi,

       

      I'm migrating web application from Jboss 4.2.1 GA to Jboss EAP 6.1.

       

      I was able to depoly the application sucessfully but when trying to launch this getting erro "JBAS018040: Failed to start context:" .

       

      Would someone pls. advise me where I can find more details about this error also is there any doc available for migrating the application form pervious versions to EAP 6.1?

       

      Thanks, Dinesh.

        • 1. Re: JBAS018040: Failed to start context
          jaikiran pai Master

          Please post the entire exception stacktrace.

          • 2. Re: JBAS018040: Failed to start context
            Dinesh Rathore Newbie

            Good Morning Jai,

             

            Pls. find the detials below.

             

            Caused by: com.goodyear.gss.sap.SAPException: Failed to start IDoc server

                at com.goodyear.gss.sap.SAPAdaptor.startIDocServer(SAPAdaptor.java:137) [classes:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_17]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_17]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_17]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_17]

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414) [spring.jar:2.5.6]

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375) [spring.jar:2.5.6]

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [spring.jar:2.5.6]

                ... 27 more

            Caused by: java.lang.ExceptionInInitializerError: Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path

                at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:211) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

                at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

                at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

                at com.sap.conn.jco.rt.DefaultServerManager.<init>(DefaultServerManager.java:52) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

                at com.sap.conn.jco.rt.DefaultServerManager.<clinit>(DefaultServerManager.java:40) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

                at com.sap.conn.idoc.jco.JCoIDoc.getServer(JCoIDoc.java:93) [sapidoc3.jar:7.2002.20091030090249.0000]

                at com.goodyear.gss.sap.IDocServer.start(IDocServer.java:190) [classes:]

                at com.goodyear.gss.sap.SAPAdaptor.startIDocServer(SAPAdaptor.java:133) [classes:]

                ... 34 more

             

            11:07:35,413 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 75) JBWEB001103: Error detected during context /GSS start, will stop it

            11:07:35,491 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/GSS]] (ServerService Thread Pool -- 75) Closing Spring root WebApplicationContext

            11:07:35,538 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 75) MSC000001: Failed to start service jboss.web.deployment.default-host./GSS: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./GSS: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_17]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_17]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_17]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

                at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

            Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)

                at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)

                at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)

                ... 7 more

             

            11:07:35,788 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "GSS.war" (runtime-name : "GSS.war")

            11:07:35,788 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "CRMSales.ear" (runtime-name : "CRMSales.ear")

            11:07:35,788 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

            JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./GSS: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./GSS: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

             

            11:07:35,850 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

            11:07:35,850 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

            11:07:35,850 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.1.0.Beta1 (AS 7.2.0.Final-redhat-4) started (with errors) in 63452ms - Started 584 of 650 services (2 services failed or missing dependencies, 63 services are passive or on-demand)

            • 3. Re: JBAS018040: Failed to start context
              Nicklas Karlsson Master

              It looks like the application uses a library that uses a native lib (dll/so) that can't be found:

               

              no sapjco3 in java.library.path (some SAP connector?)

               

              You would have to place it where it can be picked up (as configured in the AS startup config by java.library.path). I think on windows, the PATH is also considered to be on that library.path(?)

              Google also turned up many hits for that line so perhaps there are more details available from those links.

              • 4. Re: JBAS018040: Failed to start context
                Dinesh Rathore Newbie

                Thanks Nick,

                 

                It worked.