java.lang.NoClassDefFoundError at java.lang.Class.getDeclare


`HI I am trying to deploy ejb 2 project in jboss 7.1 and getting the NoClassDef found` `error of rt.jar . the detail error is as below.`

错误

 Caused by: java.lang.NoClassDefFoundError: au/id/jericho/lib/html/Segment

at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_45]

at java.lang.Class.privateGetDeclaredFields(Class.java:2397) [rt.jar:1.7.0_45]

at java.lang.Class.getDeclaredFields(Class.java:1806) [rt.jar:1.7.0_45]

at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>

(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] 在

org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentRefle ctionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] ...另外 10 enter code here

只需将丢失的jar文件添加到类路径中,这里是链接:http://search.maven.org/remotecontent?filepath=net/htmlparser/jericho/jericho-html/2.6.1/jericho-html-2.6.1.jar

相关内容

  • 没有找到相关文章

最新更新