12 Replies Latest reply on Dec 2, 2010 1:10 AM by mike just

    Errors when deploying project in JBoss 5.1.0

    mike just Master

      I've met some errors when deplying project in JBoss 5.1.0 version. Here is an error happening. It seems some jar files missing? Could anyone please give me some suggestions?

       

      16:42:04,703 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminCaptureRootCA
      16:42:04,703 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminClients
      16:42:04,703 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminConnections
      16:42:04,718 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminEvents
      16:42:04,718 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminJDBC
      16:42:04,718 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminLicense
      16:42:04,750 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminMain
      16:42:04,765 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminProps
      16:42:04,765 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminRealm
      16:42:04,765 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminThreads
      16:42:04,781 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminVersion
      16:42:04,796 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: com.globalsight.everest.serv
      let.L10nRequesterServlet
      16:42:04,828 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: com.globalsight.dotNet.L10nS
      erviceServlet
      16:42:04,843 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: admin.AdminMain
      16:42:04,921 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: xdeSpellApplet
      16:42:05,156 INFO  [TomcatDeployment] deploy, ctxPath=/globalsight
      16:42:05,671 ERROR [[/globalsight]] Error configuring application listener of class org.apache.axis.
      transport.http.AxisHTTPSessionListener
      java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
              at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
              at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
              at org.apache.axis.transport.http.AxisHTTPSessionListener.<clinit>(AxisHTTPSessionListener.j
      ava:33)

       

      ...

       

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(
      AbstractProfileService.java:306)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst
      rap.java:271)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.discovery.tools.DiscoverSingleton fr
      om BaseClassLoader@80d069{VFSClassLoaderPolicy@f2d004{name=vfsfile:/C:/tmp/GlobalSight_7.1/jboss/jbo
      ss_server/server/default/deploy/globalsight.ear/ domain=ClassLoaderDomain@15a0316{name=org.w3c:loade
      r=globalsight.ear parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@4b82d2{DefaultDomain}}

       

       

      I'm thinking the root cause is some jar files have confict with those in JBoss itself. But need further suggestions on how to get rid of this error.

        • 1. Re: Errors when deploying project in JBoss 5.1.0
          Wolf-Dieter Fink Master

          Do you have some apache commons jars in your application?

           

          Could you post the ear structure and append the deployment descriptor?

          • 2. Re: Errors when deploying project in JBoss 5.1.0
            mike just Master

            Main directory structure:

             

            globalsight.ear

                 cxe-ejb.jar

                    META-INF

                        ejb-jar.xml

                        jboss.xml

                        MANIFEST.MF

                 globalsight-web.war

                     WEB-INF

                        web.xml

                 META-INF

                     application.xml

                     jboss-app.xml

                 lib

             

            ejb-jar.xml:

            <?xml version="1.0" encoding="UTF-8"?>
            <ejb-jar
                xmlns="http://java.sun.com/xml/ns/javaee"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
                version="3.0">
            <enterprise-beans>
              <!-- File System Adapters -->
              <message-driven>
               <ejb-name>FileSystemSourceAdapterMDB</ejb-name>
               <ejb-class>
                com.globalsight.cxe.adaptermdb.filesystem.FileSystemSourceAdapterMDB
               </ejb-class>
               <messaging-type>javax.jms.MessageListener</messaging-type>
               <transaction-type>Bean</transaction-type>
               <message-destination-type>javax.jms.Topic</message-destination-type>
              </message-driven>

            </enterprise-beans>

            <assembly-descriptor>
              <container-transaction>
               <!-- CXE MDBs -->
               <method>
                <ejb-name>FileSystemSourceAdapterMDB</ejb-name>
                <method-name>onMessage</method-name>
               </method>

            <!-- Transaction Attribute -->
               <trans-attribute>Required</trans-attribute>
              </container-transaction>
            </assembly-descriptor>
            </ejb-jar>

             

            jboss.xml:

            <?xml version="1.0" encoding="utf-8"?>
            <jboss xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_1.xsd" version="5.1">
            <!-- File System Adapters -->
            <enterprise-beans>

              <message-driven>
               <ejb-name>FileSystemSourceAdapterMDB</ejb-name><!--javax.jms.Topic-->
               <destination-jndi-name>
                topic/com.globalsight.cxe.jms.ForFileSystemSourceAdapter
               </destination-jndi-name>
               <mdb-subscription-id>
                FileSystemSourceAdapterMDB
               </mdb-subscription-id>
              </message-driven>

            </enterprise-beans>
            </jboss>

             

            There is an apache-mime4j-0.6.jar under lib folder. Maybe others have confict as well. What I want to decide is if now the problem is only the issue of confict class in my project's jar and jboss' jar.

            • 3. Re: Errors when deploying project in JBoss 5.1.0
              mike just Master

              Anybody gives me a hand on this? The classpatch was set and working under JBoss 4.0.3 but it seems that the libs can not be found under 5.1.0 now. The classpath is set in MANIFEST.MF under globalsight.ear\cxe-ejb.jar. Is there anything that JBoss 5.1.0 requires differently on the classpath setting?

              • 4. Re: Errors when deploying project in JBoss 5.1.0
                mike just Master

                I have removed the class-path attribute in the MANIFEST.MF and removed all the jars from globalsight.ear\lib and am putting all the required jars in the same directory of globalsight.ear\globalsight-web.war\WEB-INF\lib. Are all the jars needed to be put in the same directory of globalsight.ear\globalsight-web.war\WEB-INF\lib? If not, is there a way to specify different category of libs which are put in different folders?

                 

                So far I am getting following errors:

                12:15:46,828 ERROR [[/globalsight]] Error configuring application listener of class org.apache.axis.
                transport.http.AxisHTTPSessionListener
                java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLog
                gerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/jboss/clas
                sloader/spi/base/BaseClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loade
                r (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, org/slf4j/impl/St
                aticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the sig
                nature
                        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:274)
                        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
                        at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
                        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
                        at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
                        at org.apache.axis.transport.http.AxisHTTPSessionListener.<clinit>(AxisHTTPSessionListener.j
                ava:33)
                        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
                39)
                        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
                pl.java:27)
                        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                        at java.lang.Class.newInstance0(Class.java:355)
                        at java.lang.Class.newInstance(Class.java:308)
                        at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContaine
                r.java:264)
                        at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContaine
                r.java:256)
                        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeplo
                yment.java:310)
                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.ja
                va:142)
                        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                        at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:597)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                        at $Proxy38.start(Unknown Source)
                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycle
                Action.java:42)
                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycle
                Action.java:37)
                        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(Sim
                pleControllerContextAction.java:62)
                        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControlle
                rContextAction.java:71)
                        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerC
                ontextActions.java:51)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                java:348)
                        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext
                .java:286)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                4)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                082)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                84)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                        at org.jboss.system.ServiceController.start(ServiceController.java:460)
                        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Abstra
                ctSimpleRealDeployer.java:62)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer
                .java:50)
                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                va:1157)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                va:1178)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                va:1210)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                java:348)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                4)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                082)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                84)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeploye
                rAdapter.java:117)
                        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDepl
                oyAction.java:70)
                        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractP
                rofileAction.java:53)
                        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(Abstract
                ProfileService.java:361)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                java:348)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                4)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                082)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                84)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(
                AbstractProfileService.java:306)
                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst
                rap.java:271)
                        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                        at org.jboss.Main.boot(Main.java:221)
                        at org.jboss.Main$1.run(Main.java:556)
                        at java.lang.Thread.run(Thread.java:619)
                12:15:46,843 ERROR [[/globalsight]] Skipped installing application listeners due to previous error(s
                )
                12:15:46,843 ERROR [StandardContext] Error listenerStart
                12:15:46,843 ERROR [StandardContext] Context [/globalsight] startup failed due to previous errors
                12:15:46,843 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:w
                ar=/globalsight state=Create mode=Manual requiredState=Installed
                org.jboss.deployers.spi.DeploymentException: URL file:/C:/tmp/GlobalSight_7.1/jboss/jboss_server/ser
                ver/default/deploy/globalsight.ear/globalsight-web.war/ deployment failed
                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeplo
                yment.java:331)
                        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.ja
                va:142)
                        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                        at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:597)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                        at $Proxy38.start(Unknown Source)
                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycle
                Action.java:42)
                        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycle
                Action.java:37)
                        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(Sim
                pleControllerContextAction.java:62)
                        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControlle
                rContextAction.java:71)
                        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerC
                ontextActions.java:51)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                java:348)
                        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext
                .java:286)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                4)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                082)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                84)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                        at org.jboss.system.ServiceController.start(ServiceController.java:460)
                        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Abstra
                ctSimpleRealDeployer.java:62)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer
                .java:50)
                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                va:1157)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                va:1178)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja
                va:1210)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                java:348)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                4)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                082)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                84)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeploye
                rAdapter.java:117)
                        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDepl
                oyAction.java:70)
                        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractP
                rofileAction.java:53)
                        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(Abstract
                ProfileService.java:361)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.
                java:348)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:93
                4)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1
                082)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9
                84)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(
                AbstractProfileService.java:306)
                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst
                rap.java:271)
                        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                        at org.jboss.Main.boot(Main.java:221)
                        at org.jboss.Main$1.run(Main.java:556)
                        at java.lang.Thread.run(Thread.java:619)

                 

                 

                Any suggestions would be pretty much appreciated.

                • 5. Re: Errors when deploying project in JBoss 5.1.0
                  jaikiran pai Master

                  What happens when you remove those slf4j api jar from your application?

                  • 6. Re: Errors when deploying project in JBoss 5.1.0
                    mike just Master

                    Could you please confirm this question?

                     

                    "Are all the jars needed to be put in the same directory of globalsight.ear\globalsight-web.war\WEB-INF\lib? If not, is there a way to specify different category of libs which are put in different folders?"

                    • 7. Re: Errors when deploying project in JBoss 5.1.0
                      mike just Master

                      When I delete the jar, this error throws. It is also a conflict between my application's jar and jboss'?

                       

                      17:32:19,218 ERROR [[/globalsight]] Exception sending context initialized event to listener instance
                      of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
                      java.lang.ClassCastException: com.documentum.xerces_2_6_2.xerces.jaxp.SAXParserFactoryImpl cannot be
                      cast to javax.xml.parsers.SAXParserFactory
                              at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
                              at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureList
                      ener.java:698)
                              at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListe
                      ner.java:670)
                              at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:644)

                      • 8. Re: Errors when deploying project in JBoss 5.1.0
                        mike just Master

                        Hi, I am wondering if there is a way to turn off such jar conflict because removing my application's jar does not resolve this issue from the root, right?

                         

                        Is there a configuration that can turn off such staff?

                        • 9. Re: Errors when deploying project in JBoss 5.1.0
                          mike just Master

                          Could anybody give me a hand? Hi Wolf-Dieter Fink? Hi jaikiran?

                          • 10. Re: Errors when deploying project in JBoss 5.1.0
                            Wolfgang Knauf Master

                            Hi Mike,

                             

                            your last exception ("java.lang.ClassCastException: com.documentum.xerces_2_6_2.xerces.jaxp.SAXParserFactoryImpl cannot be
                            cast to javax.xml.parsers.SAXParserFactory") can be fixed by removing xerces related jars from your deployment archive.

                             

                            Please post a list of all JAR files that are contained in your app, e.g. in "ear-file\lib" or "war-file\WEB-INF\lib".

                             

                            It seems that this issue will be fixed in JBoss 6: https://jira.jboss.org/browse/JBAS-7210

                            But in earlier versions, the easiest way to work around this is to remove all jar files which are already bundled with JBoss. Another approach is classloading configuration (http://community.jboss.org/wiki/ClassLoadingConfiguration ), but it seems that this does not work well with Xerces.

                             

                            Best regards

                             

                            Wolfgang

                            • 11. Re: Errors when deploying project in JBoss 5.1.0
                              mike just Master

                              Thanks for your kind reply, Wolfgang.

                               

                              Could you explain how to set the classloading configuration a bit more detailedly? How to set the loader-repository based on my application structure?

                               

                              globalsight.ear

                                   cxe-ejb.jar

                                      META-INF

                                          ejb-jar.xml

                                          jboss.xml

                                          MANIFEST.MF

                                   globalsight-web.war

                                       WEB-INF

                                          web.xml

                                   META-INF

                                       application.xml

                                       jboss-app.xml

                               

                               

                              <loader-repository>
                                 XXXX=XXXX?
                                 </loader-repository>

                              • 12. Re: Errors when deploying project in JBoss 5.1.0
                                mike just Master

                                Does anyone know how to apply the patch for this bug?

                                https://jira.jboss.org/browse/JBAS-7210

                                 

                                I'm really confused about how to eliminate the xerces jar conflict issue.