1 Reply Latest reply on Sep 28, 2004 1:27 PM by Robin Gray

    Deploy EAR with a SAR in it

    Stan Y Newbie

      Hi All,
      I packaged the hibernate service in a SAR, which is then packaged into a EAR with my other WARs and such. When deploying the EAR on jboss, it seems ignore the SAR and did not deploy it. I then found some information about jboss-app.xml, I added it to the ear. But when I deploy it to jboss, I got the following errors. Did I miss anyting? Thank you for your help!
      Stan

      03:37:16,562 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      03:37:16,562 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      03:37:16,563 ERROR [STDERR] log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3@95a253{ url=file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp33845cactus-sample-ejb.ear ,addedOrder=35}] whereas object of type
      03:37:16,563 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1bc4459].
      03:37:16,802 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
      03:37:16,803 ERROR [STDERR] java.lang.ClassCastException
      03:37:16,804 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)
      03:37:16,804 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
      03:37:16,890 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      03:37:16,890 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      03:37:16,890 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      03:37:16,891 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      03:37:16,891 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      03:37:16,891 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      03:37:16,891 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      03:37:16,891 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      03:37:16,978 ERROR [STDERR] at org.apache.log4j.LogManager.(LogManager.java:113)
      03:37:16,978 ERROR [STDERR] at org.apache.log4j.Category.getInstance(Category.java:530)
      03:37:16,979 ERROR [STDERR] at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
      03:37:16,979 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:253)
      03:37:16,979 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
      03:37:16,979 ERROR [STDERR] at net.sf.hibernate.jmx.HibernateService.(HibernateService.java:30)
      03:37:16,979 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      03:37:16,979 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      03:37:17,084 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      03:37:17,084 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      03:37:17,084 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:847)
      03:37:17,084 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:291)
      03:37:17,084 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:318)
      03:37:17,085 ERROR [STDERR] at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
      03:37:17,085 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:155)
      03:37:17,085 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
      03:37:17,172 ERROR [STDERR] at org.jboss.system.ServiceController.install(ServiceController.java:225)
      03:37:17,172 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
      03:37:17,172 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      03:37:17,172 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      03:37:17,172 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      03:37:17,173 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      03:37:17,173 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      03:37:17,261 ERROR [STDERR] at $Proxy4.install(Unknown Source)
      03:37:17,261 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      03:37:17,261 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      03:37:17,261 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      03:37:17,261 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      03:37:17,261 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      03:37:17,262 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      03:37:17,262 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      03:37:17,349 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      03:37:17,349 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      03:37:17,349 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      03:37:17,350 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      03:37:17,350 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
      03:37:17,350 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      03:37:17,350 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      03:37:17,350 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      03:37:17,437 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      03:37:17,437 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      03:37:17,438 ERROR [STDERR] log4j:ERROR Could not parse input source [org.xml.sax.InputSource@e2e276].
      03:37:17,438 ERROR [STDERR] java.lang.NullPointerException
      03:37:17,438 ERROR [STDERR] at java.util.Hashtable.put(Hashtable.java:393)
      03:37:17,525 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:141)
      03:37:17,525 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      03:37:17,525 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      03:37:17,525 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      03:37:17,525 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      03:37:17,525 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      03:37:17,526 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      03:37:17,526 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      03:37:17,615 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      03:37:17,615 ERROR [STDERR] at org.apache.log4j.LogManager.(LogManager.java:113)
      03:37:17,615 ERROR [STDERR] at org.apache.log4j.Category.getInstance(Category.java:530)
      03:37:17,615 ERROR [STDERR] at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
      03:37:17,615 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:253)
      03:37:17,616 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
      03:37:17,616 ERROR [STDERR] at net.sf.hibernate.jmx.HibernateService.(HibernateService.java:30)
      03:37:17,616 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      03:37:17,709 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      03:37:17,709 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      03:37:17,709 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      03:37:17,709 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:847)
      03:37:17,709 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:291)
      03:37:17,710 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:318)
      03:37:17,710 ERROR [STDERR] at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
      03:37:17,710 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:155)
      03:37:17,798 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
      03:37:17,798 ERROR [STDERR] at org.jboss.system.ServiceController.install(ServiceController.java:225)
      03:37:17,798 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
      03:37:17,798 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      03:37:17,798 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      03:37:17,798 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      03:37:17,799 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      03:37:17,799 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      03:37:17,886 ERROR [STDERR] at $Proxy4.install(Unknown Source)
      03:37:17,886 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      03:37:17,887 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      03:37:17,887 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      03:37:17,887 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      03:37:17,887 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      03:37:17,887 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      03:37:17,887 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      03:37:17,974 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      03:37:17,975 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      03:37:17,975 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      03:37:17,975 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      03:37:17,975 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
      03:37:17,975 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      03:37:17,975 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      03:37:17,975 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      03:37:18,062 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      03:37:18,063 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      03:37:18,173 INFO [ServiceConfigurator] Problem configuring service jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter
      org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=ManagedConnectionFactoryName value=jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter on mbean jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter; - nested throwable: (javax.management.AttributeNotFoundException: Writable attribute 'ManagedConnectionFactoryName' not found)
      at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:478)
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:363)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: javax.management.AttributeNotFoundException: Writable attribute 'ManagedConnectionFactoryName' not found
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:190)
      at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:500)
      at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:474)
      ... 30 more