0 Replies Latest reply on Apr 12, 2007 5:52 AM by c_inconnu

    File names in an EAR and NoClassDefFoundError

    c_inconnu

      Hi,

      I have a problem with the archive naming inside an EAR. Here is the EAR structure:

      a.ear
       +- META-INF
       | +- application.xml
       | +- jboss-app.xml
       +- b.jar
       +- c.war
      


      A class in c.war is calling a class in b.jar. All is working fine, but if i rename b.jar to b-b.jar (with an hyphen) and update application.xml accordingly, i get a NoClassDefFoundError. I also tried with b_b.jar and that works.

      So it seems that file names in an EAR cannot have a "-" with JBoss ??? Could someone answer that annoying question ? Thanks

      David