1 2 3 Previous Next 31 Replies Latest reply on May 22, 2013 9:53 AM by xdury

    Package name conflicting with class name

    lukascz

      I found following problem in JBoss 7.1.1.Final. When I try to deploy following package

      com.company.model.businessobjects.contest

      and further I have class com.company.model.businessobjects.Contest

       

      It fails on

      Caused by: java.lang.NoClassDefFoundError: com/company/model/businessobjects/contest (wrong name: com/company/model/businessobjects/Contest)

       

      It seems it's not able to handle class that has the same name as package

       

      Is this a bug or expected behaviour?

       

      Thanks.

       

      Lukas

        1 2 3 Previous Next