2 Replies Latest reply on Sep 26, 2005 6:49 PM by divya nair

    no ejb-link in web.xml and no jndi name in jboss-web.xml

    haripriya Newbie

      Hi,

      The beans are getting deployed by the war file is throwing exceptions which say,

      14:20:09,555 ERROR [WebModule] Starting failed jboss.web.deployment:war=myapp.war,id=907090138
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-ref: SampleBean, no ejb-link in web.xml and no jndi-name in jboss-web.xml)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:383)

      I have ejb-link in the web.xml and I do not have jboss-web.xml as there are only internal beans. What could the reason be? (for jboss 4.0.1). Here is the web.xml. Thanks for yout time

      <ejb-ref>
       <ejb-ref-name>SampleBean</ejb-ref-name>
       <ejb-ref-type>Session</ejb-ref-type>
       <home>com.admin.beans.SecurityHome</home>
       <remote>com.admin.beans.SecurityObject</remote>
       <ejb-link>SecurityBean</ejb-link>
       </ejb-ref>