Random NoClassDefFound error in Web Application

不问归期 提交于 2019-12-01 19:19:30

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

  • what we compile our classes with (e.g; JDK version, etc...)
  • that we do not pull multiple asm/javassist librairies through our dependencies and end up loading the wrong one

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 ?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!