且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Web应用程序中的随机NoClassDefFound错误

更新时间:2023-10-22 22:43:16

不确定这会有所帮助,但我们遇到了Jetty 8和java 6的注释问题。
总而言之,该版本中的注释处理似乎依赖于libasm,例如字节码检查。因此我们必须小心

Not sure this can help but we ran into annotations problems with Jetty 8 and java 6. To make a long story short, annotations processing in that version seem to rely on libasm e.g. bytecode inspection. So we have to be careful with


  • 我们编写类的内容(例如; JDK版本等等)

  • 我们不通过依赖项拉多个asm / javassist库,最终加载错误的

我不熟悉Jetty 6和Jaxb处理注释的方式,但我真的很惊讶你可以在Java 7上运行。你能尝试用Java 6运行你的代码吗?

I am not familiar with with the way Jetty 6 and Jaxb process annotations but I am actually surprised you can get both running on Java 7. Can you try running you code with Java 6 ?