1 Reply Latest reply on Mar 30, 2007 11:19 AM by fhh

    problems with JEE aplication on jBoss

    rogerio.baldini

      Hi guys,

      I have been a lot of serious problems related to EAR with EJB3.

      I have gotten a jee application (1 web module e 1 ejb module) that runs on Glassfish and tried to run on jBoss.

      I have been a lot of problems...

      I believe that the main problem is related to ClassLoader.
      When I try a lookup in my local ejb, I always have a ClassCastException.
      If I delete the local interface of lib of war, it works in lookup but happens agains in other parts. (including linkerror).

      A lot of things were tried without success. My main focus was the configuration of META-INF/jboss-app.xml.
      <jboss-app>
      <loader-repository>myapp:app=myapp.ear</loader-repository>
      </jboss-app>

      But it's stil not working.

      I am using jBoss 4.2.

      This is my application structure:

      META-INF/
      aplication.xml
      jboss-app.xml
      MANIFEST.MF
      app-entity.jar (application entities)
      app-model.jar (ejb)
      commons.jar (generic things, local and remote interface's )
      app.war
      WEB-INF/lib
      app-entity.jar (application entities)
      app-model.jar (ejb)
      commons.jar (generic things, local and remote interface's )


      I don't know what to do anymore.
      Please, help me.

      Thanks,

      Roger




        • 1. Re: problems with JEE aplication on jBoss

          Why did you include commons.jar twice?

          Either add it as a java-module to application.xml (I think this is the formaly correct way for EJB interfaces) or add it to the mainfest's class-path of the the ejb-jars and the war (if it is a real library).

          Regards

          Felix