I'm stuck with the following error:

    javax.ejb.CreateException: Naming Exception: Counter not found in Photo Bean

>From PhotoBean.java I do:

    newId = CounterUtils.getNextID("java:comp/env/Counter","Photo");

application.xml contains:

  <module>
    <ejb>counter.jar</ejb>
  </module>

ejb-jar contains:

      <entity>
         <description>Photo</description>
         <display-name>Photo Entity Bean</display-name>

         ...
         <ejb-ref>
           <ejb-ref-name>ejb/Counter</ejb-ref-name>
           <ejb-ref-type>Entity</ejb-ref-type>
           <home>com.evermind.ejb.CounterHome</home>
           <remote>com.evermind.ejb.Counter</remote>
           <ejb-link>com.evermind.ejb.Counter</ejb-link>
         </ejb-ref>
      </entity>

And counter.jar is in the root of the application directory:

drwxr-xr-x   4 stefan  staff    92 Sep 27 03:10 META-INF
-rw-r--r--   1 stefan  staff  6865 Sep 27 03:09 counter.jar
drwxr-xr-x   4 stefan  staff   264 Sep 27 01:13 photos-ejb
drwxr-xr-x  32 stefan  staff  1044 Sep 27 12:23 photos-web

So what's going on here? I can't figure ou why this doesn't work.

This is Orion 1.3.8.

  Stefan


Reply via email to