1 Reply Latest reply on Nov 17, 2003 7:41 AM by darranl

    NameNotFoundException and the solution

    pjo2003

      Hi, NameNotFoundException expertise.
      After creating the jar and deploying
      I use to get the error "NameNotFoundException" when I run the client program.

      So, I took a look at the jar and see how it was put together. And it looked similiar to this

      com/titan/customer/CustomerBean.class
      com/titan/customer/CustomerHomeRemote.class
      com/titan/customer/CustomerRemote.class
      com/titan/customer/META-INF/ejb-jar.xml
      com/titan/customer/META-INF/jboss.xml
      com/titan/customer/META-INF/jbosscmp-jdbc.xml

      This is wrong.

      Notice the "com/titan/customer" before the META-INF. When I moved the META-INF directory so it was no longer under com/titan/customer. It now looks something similar to this.

      META-INF/ejb-jar.xml
      META-INF/jboss.xml
      META-INF/jbosscmp-jdbc.xml
      com/titan/customer/CustomerBean.class
      com/titan/customer/CustomerRemote.class
      ....

      This is right.

      It would work just fine. Why is that?
      What info out there talks about the right place for the META-INF?

      Thanks

        • 1. Re: NameNotFoundException and the solution
          darranl

          The reason that your first solution did not work was because you had packaged your jar incorrectly.

          The reason that the second solution worked was because you had packaged it correctly.

          The META-INF folder should be at the root of the jar.