Hi people,
I'm currently using JBoss 3.0 on Windows 2000.
I've deployed various EJBs via XDoclet with success, but now I've decided to use a web client....which I'm not familiar with in JBoss env as I'm newbie in JBoss.
I used a ear file. The ear file consists of the EJBs in jar and web client side in war file.
Here's what the war file contains: -
*.classes
*.jsp
Manifest.mf
web-inf - jboss-web.xml, web.xml
Is this the structure?
Here's what my web.xml looks like: -
<web-app>
<display-name>Web Client</display-name>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>ejb/webtest/DogSession</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
transaction.interfaces.DogSessionHome
transaction.interfaces.DogSession
</ejb-ref>
</web-app>
And the jboss-web.xml: -
<jboss-web>
<ejb-ref>
<ejb-ref-name>ejb/webtest/DogSession</ejb-ref-name>
<jndi-name>ejb/dog/DogSession</jndi-name>
</ejb-ref>
</jboss-web>
My Session bean XDoclet comments: -
* @ejb:bean name="dog/DogSession"
* display-name="Dog Session"
* type="Stateless"
* view-type="remote"
* jndi-name="ejb/dog/DogSession"
Here is my error upon deployment: -
17:01:23,374 ERROR [MainDeployer] could not start deployment: njar:file:/D:/jboss-3.0.0_tomcat-4.0.3 /server/default/tmp/deploy/server/default/deploy/ejb-test.ear/84.ejb-test.ear^/web-client.war
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-ref: ejb/webtest/DogSession, no ejb-link match, use jndi-name in jboss-web.xml)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
I believe the server side works well as I've tested with an EJB client before. Only the web client is not working.