2 Replies Latest reply on Sep 3, 2007 9:25 AM by begimot

    EJB3.0 can not separate stateles bean from its interface!

    begimot

      I couldn't find similar topic so I am opening a new one.

      I have an ejb.jar. Inside it I have one stateless bean. The bean interface is putted in separate jar - ejb-interface.jar. I am using maven and it packages the both jars inside ear.jar

      +ear.jar
      +ejb.jar
      +ejb-interface.jar

      No I am trying to deploy the ear on jbos-4.2.1GA and I got the following exception:a

      15:04:15,562 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=ejb.jar
      java.lang.NoClassDefFoundError: "The path to the interface".

      Why it does not find the interface? I can not find where is the problem?