jboss 总是报错,这是什么原因啊。。。

吾心归航 发布于 2013/05/17 11:06
阅读 6K+
收藏 0

错误如下:

 

10:47:46,630 WARN  [verifier] EJB spec violation:
Bean   : TransInternalLend
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'com.iss.itreasury.settlement.transinternallend.bizlogic.TransInternalLendEJB': Unexpected error during load of: com.iss.itreasury.settlement.transinternallend.bizlogic.TransInternalLendEJB, msg=Bad version number in .class file

10:47:46,661 WARN  [verifier] EJB spec violation:
Bean   : TransBakReserve
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'com.iss.itreasury.settlement.transbakreserve.bizlogic.TransBakReserveEJB': Unexpected error during load of: com.iss.itreasury.settlement.transbakreserve.bizlogic.TransBakReserveEJB, msg=Bad version number in .class file

10:47:46,691 WARN  [verifier] EJB spec violation:
Bean   : TransReserve
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'com.iss.itreasury.settlement.transreserve.bizlogic.TransReserveEJB': Unexpected error during load of: com.iss.itreasury.settlement.transreserve.bizlogic.TransReserveEJB, msg=Bad version number in .class file

10:47:46,709 WARN  [verifier] EJB spec violation:
Bean   : TransNoteAcceptance
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'com.iss.itreasury.settlement.transnoteacceptance.bizlogic.TransNoteAcceptanceEJB': Unexpected error during load of: com.iss.itreasury.settlement.transnoteacceptance.bizlogic.TransNoteAcceptanceEJB, msg=Bad version number in .class file

10:47:46,710 ERROR [MainDeployer] Could not create deployment: file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/itreasuryEJB.jar/
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
 at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
 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.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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
 at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
 at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
 at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
 at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
 at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
 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 $Proxy26.create(Unknown Source)
 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
 at sun.reflect.GeneratedMethodAccessor49.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 $Proxy8.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.GeneratedMethodAccessor8.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.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)
 at $Proxy0.start(Unknown Source)
 at org.jboss.system.ServiceController.start(ServiceController.java:417)
 at sun.reflect.GeneratedMethodAccessor9.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.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 at $Proxy4.start(Unknown Source)
 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
 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.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 $Proxy5.deploy(Unknown Source)
 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
 at org.jboss.Main.boot(Main.java:200)
 at org.jboss.Main$1.run(Main.java:490)
 at java.lang.Thread.run(Thread.java:595)
10:47:46,715 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@2007969c { url=file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/itreasuryEJB.jar/ }
  deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
  status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
  state: FAILED
  watch: file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/itreasuryEJB.jar/META-INF/ejb-jar.xml
  altDD: null
  lastDeployed: 1368758863797
  lastModified: 1368754844751
  mbeans:

org.jboss.deployment.DeploymentInfo@65637ed8 { url=file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/itreasuryWEB.war/ }
  deployer: MBeanProxyExt[jboss.web:service=WebServer]
  status: null
  state: INITIALIZED
  watch: file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/itreasuryWEB.war/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1368758863850
  lastModified: 1368755020288
  mbeans:

org.jboss.deployment.DeploymentInfo@bdc6c13b { url=file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/webdocsWEB.war/ }
  deployer: MBeanProxyExt[jboss.web:service=WebServer]
  status: null
  state: INITIALIZED
  watch: file:/D:/Work/Projects/asifc3/jboss-4.0.5.GA/server/default/deploy/itreasuryEAR.ear/webdocsWEB.war/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1368758863858
  lastModified: 1368754925772
  mbeans:

加载中
0
lxbzmy
lxbzmy

Bad version number in .class file

你的编译环境比较新,服务器上的jdk太旧,要么升级jdk要么调整编译级别

0
吾心归航
吾心归航

引用来自“lxbzmy”的答案

Bad version number in .class file

你的编译环境比较新,服务器上的jdk太旧,要么升级jdk要么调整编译级别

我调低了编译级别,重新编译了一遍,ok了。谢谢你了,这个问题纠结了好几天。谢了。。。
返回顶部
顶部