1 2 Previous Next 17 Replies Latest reply on Jul 26, 2018 4:22 PM by ruisaraivasp

    Error listenerStart - when deployed war in jboss as7

    n_msrao

      Hi

      I am getting below error while deploying war on Jboss 6 EAP (as 7). Please help me
      =====================================================================================
      14:14:17,658 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) JBAS018567: Deployment "deployme
      nt.ppts-lan.war" is using a private module ("org.jboss.as.web:main") which may be changed or removed in future
      versions without notice.
      14:14:24,923 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deploymen
      t.ppts-lan.war:main" from Service Module Loader
      14:14:38,313 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
      14:14:38,313 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/ppts-lan] sta
      rtup failed due to previous errors
      14:14:38,345 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jb
      oss.web.deployment.default-host./ppts-lan: org.jboss.msc.service.StartException in service jboss.web.deploymen
      t.default-host./ppts-lan: JBAS018040: Failed to start context
              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-m
      sc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_2
      0]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_20]
              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

      14:14:38,704 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ppt
      s-lan.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.defau
      lt-host./ppts-lan" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ppts
      -lan: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["
      jboss.deployment.unit.\"ppts-lan.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive depende
      ncies>]"]}

      ----------------------------------------------------------------------------------------------------------------------------------------------------
      This error is occuring when I add the below entry in web.xml file is uncommented


      <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener

      if I comment the above entry in web.xml then it is deploying without issues but giving error while accessing app URL.


      below are jar list in WEB-INF/libfolder


      *ant-antlr-1.6.5

      *antlr-2.7.6rc1

      *aopalliance-1.0

      *aspectjrt

      *aspectjweaver

      bcprov-jdk15-145

      *c3p0-0.9.0

      *cglib-nodep-2.1_3

      cmu-codec-2.0

      *commons-beanutils-1.7.0

      commons-codec-1.4

      commons-collections-3.2.1

      commons-configuration-1.6

      commons-dbcp-1.2.2

      commons-digester-1.8

      commons-el-1.0

      commons-io-1.4

      commons-lang-2.4

      commons-logging

      commons-pool-1.3

      *dom4j-1.6.1

      *ehcache-core-2.2.0

      *el-impl-1.0

      *hibernate3

      *hibernate-annotations

      *hibernate-validator-4.1.0.Final

      iText-5.0.2

      jasper-el

      *jsch-0.1.48

      *jsf-facelets-1.1.15

      *jstl

      *jta

      junit-4.4

      *log4j

      *mail

      poi-3.7-20101029

      poi-ooxml-3.7-20101029

      poi-ooxml-schemas-3.7-20101029

      poi-scratchpad-3.7-20101029

      richfaces-api-3.3.3.Final

      richfaces-impl-3.3.3.Final

      richfaces-ui-3.3.3.Final

      slf4j-api-1.5.11

      slf4j-jdk14-1.5.11

      spring-aop-3.0.2.RELEASE

      spring-asm-3.0.2.RELEASE

      spring-aspect-3.0.2.RELEASE

      spring-beans-3.0.2.RELEASE

      spring-context-3.0.2.RELEASE

      spring-context-support-3.0.2.RELEASE

      spring-core-3.0.2.RELEASE

      spring-expression-3.0.2.RELEASE

      spring-jdbc-3.0.2.RELEASE

      spring-ldap-1.3.1.RELEASE-all

      spring-mock-2.0.1

      spring-orm-3.0.2.RELEASE

      spring-transaction-3.0.2.RELEASE

      spring-web-3.0.2.RELEASE

      standard-1.1.1

      standard-1.1.2

      validation-api-1.0.0.GA

      xalanj1compat

      xmlbeans-2.3.0

       

      Tried to remove * marked jar's and deploy but getting lot of other errors.

        • 1. Re: Error listenerStart - when deployed war in jboss as7
          sfcoy

          Please attach the entire server.log so that we can see what is going on. Show one with errors with the Spring listener enabled, since you won't get far without it.

           

          You should remove the following jars:

           

          • jstl
          • jta
          • mail
          • standard-1.1.1
          • standard-1.1.2

           

          The following jars look suspicious:

           

          • el-impl-1.0
          • jasper-el
          • jsf-facelets-1.1.15
          • validation-api-1.0.0.GA
          • xalanj1compat

           

          but leave them for now.

          • 2. Re: Error listenerStart - when deployed war in jboss as7
            n_msrao

            Thanks Stephen for your quick response..

            I tried removing all jar's which are you pointed out and redeployed the war but still facing same error..

             

            I even removed below and tried but no luck

            • el-impl-1.0
            • jasper-el
            • jsf-facelets-1.1.15
            • validation-api-1.0.0.GA
            • xalanj1compat
            • 3. Re: Error listenerStart - when deployed war in jboss as7
              sfcoy

              Stephen Coy wrote:

               

              Please attach the entire server.log so that we can see what is going on. Show one with errors with the Spring listener enabled, since you won't get far without it.

               

              ...

              • 4. Re: Error listenerStart - when deployed war in jboss as7
                n_msrao

                Hi Stephen

                Here I am attaching the server.log file with Spring listener enabled.

                • 5. Re: Error listenerStart - when deployed war in jboss as7
                  nickarls

                  Not much to go on there - probably some redudant jar being included that causes the problem.

                  • 6. Re: Error listenerStart - when deployed war in jboss as7
                    sfcoy

                    Does your application contain a jboss-deployment-structure.xml file? If so, why? Please attach it.

                     

                    Also, it appears that you did not provide a complete list of jars, as I can see xalan-2.7.1.jar in the log.

                     

                    Finally, please try adding:

                    {code:xml}<logger category="org.springframework">

                         <level name="DEBUG"/>

                    </logger>{code}

                    to the logging configuration.

                    • 7. Re: Error listenerStart - when deployed war in jboss as7
                      n_msrao

                      Hi Stephen

                       

                      Yes, I created jboss-deployment-structure.xml as we are using JSF1.2 version and getting ClassNotFound exception if this dependency is not mentioned in "jboss-deployment-structure.xml" . I am attaching here.

                       

                      Regarding xalan-2.7.1.jar--  Looks like I missed only this jar anyway I removed this jar as well now.

                       

                      I tried with below loggin entry but no change. getting same error. attaching new log.

                      • 8. Re: Error listenerStart - when deployed war in jboss as7
                        nickarls

                        Try adding

                         

                        <context-param>

                              <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>

                              <param-value>Mojarra-1.2</param-value>

                        </context-param>

                         

                        to web.xml and nuke the jboss-deployment.structure.xml (add facelets.jar to the app if you are using it. Show a new list of jars you now bundle.

                        • 9. Re: Error listenerStart - when deployed war in jboss as7
                          n_msrao

                          Hi Nicklas

                          Below are list of jar in my lib. I removed jboss-deployment.structure.xml and added above entry to web.xml. Now it worked fine without jboss-deployment.structure.xml.

                          But still facing Error listenerStart - issue. 

                          lib.GIF

                          • 10. Re: Error listenerStart - when deployed war in jboss as7
                            ssilvert

                            First off, do follow Nicklas' advice about org.jboss.jbossfaces.JSF_CONFIG_NAME.  That's the correct way to do it.   And cleaning out unneeded jars is always a good thing.

                             

                            It looks like a stack trace is being swallowed somewhere.  I don't see a root cause of the exception.

                             

                            Stan

                            • 11. Re: Error listenerStart - when deployed war in jboss as7
                              nickarls

                              Can you drop the hibernate jars and use Hibernate 4 from the AS? If, not, you need to configure explicit bundling for them. And there are still extra jars:in there but let's start with hibernate...

                              • 12. Re: Error listenerStart - when deployed war in jboss as7
                                sfcoy

                                You need to upgrade to a newer version of Spring Framework jars.

                                 

                                A fix for JBoss VFS component scanning was added in Spring 3.0.3. See http://static.springsource.org/spring/docs/3.0.3.RELEASE/changelog.txt.

                                 

                                All versions of the Spring Framework between 2.5 and 3.0.2 have this problem on JBossAS.

                                • 13. Re: Error listenerStart - when deployed war in jboss as7
                                  sfcoy

                                  I've found that Hibernate 3.x works just fine in AS7 with it's jars (and non-javax dependencies) installed in WEB-INF/lib.

                                  • 14. Re: Error listenerStart - when deployed war in jboss as7
                                    jaysensharma

                                    Hi,

                                     

                                    12:30:21,433 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart

                                    12:30:21,448 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/ppts-lan] startup failed due to previous errors

                                    12:30:21,480 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.web.deployment.default-host./ppts-lan: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ppts-lan: JBAS018040: Failed to start context

                                              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

                                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

                                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

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

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

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

                                     

                                     

                                    From your above server.log snippet it seems that the actual cause (root cause) of the Deployment failure is bwing Supressed .... So try to add the following System Property  (In $JBOSS_HOME/bin/standalone.conf) while starting your JBoss sothat JBoss will

                                     

                                    ./standalone.sh -Dorg.jboss.as.logging.per-deployment=false

                                     

                                    Above system property will help in revealing the actual cause of the deployment failure.

                                    1 2 Previous Next