日期:2014-05-20  浏览次数:20714 次

JBOSS诡异的问题,急求高手帮帮忙
同一个EAP工程(EJB+WEB)部署在glassfish中能运行,部署在JBOSS中WEB工程就部署不上(web用了框架struts和spring,spring访问EJB组建) 换个不用框架的EAP工程就能部署上去,换个ssh的纯web工程也能顺利部署上去且顺利运行。。。。。。。 
一:能成功部署SSH架构的web工程 
二:能成功部署一个EAP工程(EJB+WEB,web没有用框架) 
三:把上面的EAP工程中WEB工程改成struts+spring(spring访问EJB组建)架构的就出现了异常(此工程部署在glassfish中就能成功运行):异常是: 

org.jboss.deployers.spi.DeploymentException: URL file:/E:/jboss-5.1.0.GA/server/default/deploy/SSEJBDemo.ear/SSEJBDemoWeb.war/ deployment failed 
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) 
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316) 
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java: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(StartStopLifecycleAc。。。。。。。。 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
at java.lang.Thread.run(Thread.java:619) 
Caused by: LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature 
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4150) 
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310) 
... 62 more 


这是为什么呢?急。。。。 



------解决方案--------------------
可能是哪个包没导入或者冲突。