java.lang.NoClassDefFoundError when the file is there

Posted by tsOverflow on Stack Overflow See other posts from Stack Overflow or by tsOverflow
Published on 2011-01-14T04:34:03Z Indexed on 2011/01/14 4:53 UTC
Read the original article Hit count: 167

I've tried to look around for postings that might help me, cant find any.

I am deploying an ear to JBoss4 server, and I started having this problem since I added a new project.

this new project is defined as Java project in eclipse, and the EAR project has an EJB project that has the new Java project as one of the projects as its dependent upon - if deployed on JBoss locally through eclipse, there's no problem and everything goes smoothly

But when being deployed to JBoss in test environment (outside eclipse), kept getting java.lang.NoClassDefFoundError on one of the classes that are defined in the new Java project.

I looked inside the EAR file to get to the jar (EJB project), and then inside the jar, I can see the directory structure and all the class files from the new Java project - ie. The class that it complains about is right there inside the EAR->JAR and matching the exact structure that it's looking for.

I am at lost to what else I can look at.

Any pointers are greatly appreciated!

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about jboss