-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Deploying MBean SAR Error
PostPosted: Tue Sep 28, 2004 9:48 am 
Newbie

Joined: Tue Sep 28, 2004 9:42 am
Posts: 2
Hey ! I am getting the following error while deploying hibernate as a MBean. Does anyone have an idea why ??



Hibernate version: 2.1.4

Mapping documents:

jboss-service.xml
Code:
<server>
   <mbean code="net.sf.hibernate.jmx.HibernateService"
         name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
      
      <depends>jboss.jca:service=RARDeployer</depends>
      <depends>jboss.jca:service=LocalTxCM,name=MSSQLDS</depends>
      
      <!-- Make it deploy ONLY after DataSource had been started -->   
      <attribute name="MapResources">br/gov/sc/tce/esfinge/common/model/beans/MensagemErro.hbm.xml</attribute>   
      <attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>   
      <attribute name="Datasource">java:/MSSQLDS</attribute>   
      <attribute name="Dialect">net.sf.hibernate.dialect.SQLServerDialect</attribute>   
      <attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>   
      <attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>   
      <attribute name="UseOuterJoin">false</attribute>   
      <attribute name="ShowSql">true</attribute>   
      <attribute name="UserTransactionName">UserTransaction</attribute>
   </mbean>
</server>

Full stack trace of any exception that occurs:

10:41:21,960 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
10:41:22,011 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: not found: ManagedConnectionFactoryName)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:490)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:375)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:160)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
at org.jboss.system.ServiceController.install(ServiceController.java:198)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:204)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:367)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
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:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
at org.jboss.Main.boot(Main.java:145)
at org.jboss.Main$1.run(Main.java:399)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.management.AttributeNotFoundException: not found: ManagedConnectionFactoryName
at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:351)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:455)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:486)
... 84 more
10:41:22,251 INFO [EjbModule] Deploying TestBean
10:41:22,511 INFO [EJBDeployer] Deployed: file:/C:/Java/jboss-3.2.5/server/default/tmp/deploy/tmp53539SCO EAR Deploy.ear-contents/sco.jar
10:41:22,601 INFO [TomcatDeployer] deploy, ctxPath=/sco, warUrl=file:/C:/Java/jboss-3.2.5/server/default/tmp/deploy/tmp53539SCO EAR Deploy.ear-contents/scoweb.war/
10:41:23,413 INFO [Engine] StandardContext[/sco]action: []: Verifying ModuleConfig for this module
10:41:23,423 INFO [Engine] StandardContext[/sco]action: []: Verification of ModuleConfig has been completed
10:41:23,433 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validator-rules.xml'
10:41:23,443 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml'
10:41:23,833 INFO [EARDeployer] Started J2EE application: file:/C:/Java/jboss-3.2.5/server/default/deploy/SCO EAR Deploy.ear
10:41:23,833 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter
state: FAILED
I Depend On: jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter

Depends On Me: 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: not found: ManagedConnectionFactoryName)
ObjectName: jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter
state: CONFIGURED
I Depend On: jboss.jca:service=RARDeployment,name=Hibernate Resource Adapter

Depends On Me: jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter


MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.jca:service=RARDeployment,name=Hibernate Resource Adapter
state: NOTYETINSTALLED
I Depend On:
Depends On Me: jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 28, 2004 4:33 pm 
Newbie

Joined: Tue Sep 28, 2004 9:42 am
Posts: 2
This error has been resolved but now I am getting another error.

Basically if I deploy the Hibernate SAR seperatly to the EAR then I have no problems. But if I package the SAR inside the EAR I get the following error. Note if the EAR is deployed without the SAR it also executes no problem.

The Hibernate Factory loads no problem but causes erros with STRUTS, without the Hibernate Facory, STRUTS starts noi problem:

Code:
17:33:02,619 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: java:/hibernate/HibernateFactory
17:33:02,619 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
17:33:02,809 INFO  [EJBDeployer] Deployed: file:/C:/Java/jboss-3.2.5/server/default/tmp/deploy/tmp2744SCO EAR Deploy.ear-contents/sco.jar
17:33:02,899 INFO  [TomcatDeployer] deploy, ctxPath=/sco, warUrl=file:/C:/Java/jboss-3.2.5/server/default/tmp/deploy/tmp2744SCO EAR Deploy.ear-contents/scoweb.war/
17:33:03,210 ERROR [Context] Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /sco
javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /sco
   at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:548)
   at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4260)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   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:324)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
   at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.apache.catalina.core.StandardContext.init(StandardContext.java:5412)
   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:324)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
   at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:286)
   at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:70)
   at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
   at org.jboss.web.WebModule.startModule(WebModule.java:62)
   at org.jboss.web.WebModule.startService(WebModule.java:40)
   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
   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:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
   at $Proxy17.start(Unknown Source)
   at org.jboss.system.ServiceController.start(ServiceController.java:367)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
   at $Proxy32.start(Unknown Source)
   at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
   at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
   at $Proxy7.deploy(Unknown Source)
   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
   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)
17:33:03,370 INFO  [Engine] StandardContext[/sco]Marking servlet action as unavailable
17:33:03,370 ERROR [Engine] StandardContext[/sco]Servlet /sco threw load() exception
javax.servlet.ServletException: Class org.apache.struts.action.ActionServlet is not a Servlet
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:981)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   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:324)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
   at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.apache.catalina.core.StandardContext.init(StandardContext.java:5412)
   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:324)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
   at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:286)
   at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:70)
   at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
   at org.jboss.web.WebModule.startModule(WebModule.java:62)
   at org.jboss.web.WebModule.startService(WebModule.java:40)
   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
   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:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
   at $Proxy17.start(Unknown Source)
   at org.jboss.system.ServiceController.start(ServiceController.java:367)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
   at $Proxy32.start(Unknown Source)
   at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
   at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
   at $Proxy7.deploy(Unknown Source)
   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
   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)
17:33:03,370 ERROR [Engine] ----- Root Cause -----
java.lang.ClassCastException
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:977)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   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:324)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
   at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.apache.catalina.core.StandardContext.init(StandardContext.java:5412)
   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:324)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
   at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:286)
   at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:70)
   at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
   at org.jboss.web.WebModule.startModule(WebModule.java:62)
   at org.jboss.web.WebModule.startService(WebModule.java:40)
   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
   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:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
   at $Proxy17.start(Unknown Source)
   at org.jboss.system.ServiceController.start(ServiceController.java:367)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
   at $Proxy32.start(Unknown Source)
   at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
   at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
   at $Proxy7.deploy(Unknown Source)
   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
   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)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 07, 2004 3:58 pm 
Newbie

Joined: Tue Nov 11, 2003 5:25 pm
Posts: 17
Location: Milwaukee, Wi
Might your problem be related to supporting JARs? commons-xxx?

I don't know any reasons why this would happen otherwise.

I'm using WebWork, not Struts, and have a EAR hierarchy like this:

app.ear
|
|__app-ejb.jar
|
|__app.sar
|
|__hibernate.sar
|
|__app.war

I've pulled all the commonly used JAR files (including some Jakarta commons stuff) into the top EAR level, and put them in as modules of the application.xml. Anything that is specifically needed by the other modules is embedded within them.

HTH
-- Damien


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.