0 Replies Latest reply on Apr 4, 2006 10:25 AM by Urs Wagner

    I have an entry in web.xml und ebj-jar.xml

    Urs Wagner Novice

      Hello

      I get the error


      16:03:16,171 ERROR [[PopulateServlet]] Servlet.service() for servlet PopulateServlet threw exception
      javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: com.sun.j2ee.blueprints.signon.user.ejb.UserLocalHome not bound]


      I have the necessary entries, I think.

      ejb-jar.xml



      User
      <display-name>UserEJB</display-name>
      <ejb-name>UserEJB</ejb-name>
      <local-home>com.sun.j2ee.blueprints.signon.user.ejb.UserLocalHome</local-home>
      com.sun.j2ee.blueprints.signon.user.ejb.UserLocal
      <ejb-class>com.sun.j2ee.blueprints.signon.user.ejb.UserEJB</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>User</abstract-schema-name>
      <cmp-field>
      <field-name>password</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>userName</field-name>
      </cmp-field>

      <query-method>
      <method-name>findAllUsers</method-name>
      <method-params/>
      </query-method>
      <ejb-ql>
      [CDATA[
      SELECT OBJECT(u) FROM User AS u
      ]]
      </ejb-ql>




      web.xml

      <ejb-local-ref>
      <ejb-ref-name>ejb/User</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <local-home>com.sun.j2ee.blueprints.signon.user.ejb.UserLocalHome</local-home>
      com.sun.j2ee.blueprints.signon.user.ejb.UserLocal
      <ejb-link>UserEJB</ejb-link>
      </ejb-local-ref>