当前位置: 代码迷 >> JBoss >> jboss发布ear时,抛了一个导常。该怎么解决
  详细解决方案

jboss发布ear时,抛了一个导常。该怎么解决

热度:2792   发布时间:2013-02-26 00:00:00.0
jboss发布ear时,抛了一个导常。。
11:21:26,484 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
11:21:32,921 INFO [EARDeployer] Init J2EE application: file:/D:/JBuilder2007/thirdparty/jboss-4.0.5.GA/server/default/deploy/JPCEAR.ear
11:21:41,906 ERROR [MainDeployer] Could not initialise deployment: file:/D:/JBuilder2007/thirdparty/jboss-4.0.5.GA/server/default/deploy/JPCEAR.ear
org.jboss.deployment.DeploymentException: Could not find meta data META-INF/ra.xml for deployment file:/D:/JBuilder2007/thirdparty/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52697JPCEAR.ear-contents/JPCModule.jar-contents/hbmxml.rar at org.jboss.deployment.SimpleSubDeployerSupport.getMetaDataResource(SimpleSubDeployerSupport.java:183)
at org.jboss.deployment.SimpleSubDeployerSupport.init(SimpleSubDeployerSupport.java:87)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
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:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)


这是由什么原因引起的呢?

第一次用jboss !==
求指教!

------解决方案--------------------------------------------------------
找个5.0试试;
------解决方案--------------------------------------------------------
少文件了,可能是你的hbm那个文件没有找到,这个文件是配置数据库连接信息的。