`
happyxiaomo
  • 浏览: 6804 次
文章分类
社区版块
存档分类
最新评论

让人受不了的Unknown constant tag 0 in class file

阅读更多
今天再给JLYD部署测试程序的时候,程序总是报这个错误,快折磨死我了,class文件都重新编译好几遍了
java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.eastcompeace.ssap.business.ConfigListener'
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
        Truncated. see log file for complete stacktrace
java.lang.ClassFormatError: Unknown constant tag 0 in class file com/eastcompeace/ssap/business/ConfigListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
        Truncated. see log file for complete stacktrace
>
<2012-8-24 09ʱ57MT+08:00> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'ssap' due to error weblogic.application.ModuleException: .
weblogic.application.ModuleException:
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
        Truncated. see log file for complete stacktrace
java.lang.ClassFormatError: Unknown constant tag 0 in class file com/eastcompeace/ssap/business/ConfigListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
        Truncated. see log file for complete stacktrace

今天一定要把这个问题解决掉!!!!
可能原因:jdk版本兼容的问题
          class文件受损
          上传文件方式(ASCII,二进制)
          部署服务的那个人没有正确替换程序(部署路径的问题)
分享到:
评论
1 楼 happyxiaomo 2012-08-27  
是jdk版本兼容问题:不管是高版本,还是低版本,最好发布的程序的jdk版本要和服务器上的一模一样,避免问题产生。

相关推荐

Global site tag (gtag.js) - Google Analytics