1 Reply Latest reply on Mar 23, 2006 10:39 AM by Urs Wagner

    I need a good advice

    Urs Wagner Novice

      Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/ShoppingController found in jboss-web.xml but not in web.xml

      web.xml entry


      <ejb-local-ref>
      <ejb-ref-name>ejb/ShoppingController</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>com.sun.j2ee.blueprints.petstore.controller.ejb.ShoppingControllerLocalHome</local-home>
      com.sun.j2ee.blueprints.petstore.controller.ejb.ShoppingControllerLocal
      <ejb-link>ShoppingController</ejb-link>
      </ejb-local-ref>


      jboss-web.xml



      <ejb-ref>
      <ejb-ref-name>ejb/ShoppingController</ejb-ref-name>
      <jndi-name>ShoppingController</jndi-name>
      </ejb-ref>

        • 1. Re: I need a good advice
          Urs Wagner Novice

          I think I correct it the jndi-name was wrong.

          jboss-web.xml



          <ejb-ref>
          <ejb-ref-name>ejb/ShoppingController</ejb-ref-name>
          <local-jndi-name>ShoppingControllerLocal</local-jndi-name>
          </ejb-ref>



          The next error message is now:


          org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameNotFoundException: comp not bound)

          I don't think I have a class comp in my application. What have I to understand under comp?

          Thanks