facebook

Dependent java project throws NoClassDefFoundError

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #260094 Reply

    BDSrini
    Member

    Here is my setup, I have a j2ee project with an ejb module, the ejb references the java project, and I have the “Jar dependent Java project” settings enabled for “Dependent Java Project deployment policy”, when I depoy to JBoss 4.0.2, I do see the dependent java project as jar file in lowercase, but the deploy fails with this:

    15:41:50,187 WARN [EJBDeployer] Verify failed; continuing
    java.lang.NoClassDefFoundError: com/ltg/transformation/CDSWrapper/LoanWrapper

    the above class exists in java project, and the ejb manifest file has this jar file in the classpath.

    #260179 Reply

    Riyad Kalla
    Member

    If you rename the JAR file with proper casing, does it work? I have seen this problem internally so I know what you are talking about, we just don’t know at this point how severe it is, only a few folks have reported it.

    #260268 Reply

    BDSrini
    Member

    ok got the deployment working, I had to update the EJBs manifest file by right clicking the j2ee project MyEclipse – New Module Manifest, now the EAR deploys fine, but when I run the application I get NoClassDefFoundError exception for the class whose jar is imported to the EAR’s root level.

    #260270 Reply

    Riyad Kalla
    Member

    … did renaming the JAR with correct capitalization matter?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Dependent java project throws NoClassDefFoundError

You must be logged in to post in the forum log in