1 Reply Latest reply on Oct 16, 2007 3:09 PM by Ryan Dawe

    EJB3Trail not bound when running the EJB3Trailblazer tutoria

    dritan tako Newbie

      I am getting this error:
      "javax.naming.NameNotFoundException: EJB3Trail not bound"
      when trying to run the EJB3Trail tutorial in JBOSS 4.0.5. This is very strange and i cannot get this to work no matter what i do. It works fine in JBOSS 4.2.x, but it doesn't work in JBOSS 4.0.5. The problem seems to be with class loading. In JBOSS 4.2.x, the ejb classes load as I deploy the ear file. However, this doesn't not happen in JBOSS 4.0.5. The ear file deploys without errors, but when i try to access the ejb, i get the error mentioned above.
      (As a side note, I could not get to deploy ejb 2.1 on both versions of the server, i believe due to class loading issues).

      I am using Java 1.5.0_12 and i believe there are some issues with the security manager, but I might be wrong. Anyone encountered this issue?

        • 1. Re: EJB3Trail not bound when running the EJB3Trailblazer tut
          Ryan Dawe Newbie

          I had a similar problem with jboss 4.0.5 and came to realize that the ejb3.0 persistence modules were not in fact bundled with 4.0.5. (I had simply downloaded jboss AS 4.0.5 with that expectation) Once I used the graphical installer (jems) and chose to explicitly install the ejb3.0 module, it worked out of the box for me.

          I have not had much luck trying to manually add the persistence module via the manual steps (jboss-EJB-3.0-RC6-PFD) (just yet...)

          -ryan