1 Reply Latest reply on Aug 16, 2002 5:32 AM by shaun

    no ejb-link match

      When I deploy my *.war file I get the following error:

      2002-08-16 09:17:59,890 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/jemsBank.war
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-ref: Account, no ejb-link match, use jndi-name in jboss-web.xml)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      ...

      I am using the following jboss-web.xml file (based upon the one in the JBoss template) which defines Account as the jndi-name:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-web
      PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
      "http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd">

      <jboss-web>

      <ejb-ref>
      <ejb-ref-name>examples/Account</ejb-ref-name>
      <jndi-name>Account</jndi-name>
      </ejb-ref>

      </jboss-web>

      can anybody tell me what I am doing wrong.

      Thanks in advance,

      Shaun

        • 1. Re: no ejb-link match

          Having the jboss-web.xml file as

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE jboss-web
          PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
          "http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd">

          <jboss-web>

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

          </jboss-web>

          makes it deploy without complaining.
          But the webpages now fail - something else to look at.

          Shaun