Hey All,
I have a session bean that I want to invoke from a servlet, all through local interfaces using JBoss 3.2.2. I'm getting the following error:
DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref TestBean found in jboss-web.xml but not in web.xml)
I have this all packaged in an .ear file because I know that the <ejb-link> tag will not work in separate deployments.
Any help on this would be greatly appreciated. Thanks again.
Here are my descriptor files:
--------------------------------------------
web.xml
--------------------------------------------
<web-app >
<servlet>
<servlet-name>SessionLocalClient</servlet-name>
<display-name>JMS Testing Client</display-name>
<servlet-class>SessionLocalClient</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SessionLocalClient</servlet-name>
<url-pattern>/testClient/*</url-pattern>
</servlet-mapping>
<ejb-local-ref>
<ejb-ref-name>TestBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>ejb.TestBeanLocalHome</local-home>
<local>ejb.TestBeanLocal</local>
<ejb-link>TestBean</ejb-link>
</ejb-local-ref>
</web-app>
----------------------------------------------------
jboss-web.xml
----------------------------------------------------
<jboss-web>
<ejb-ref>
<ejb-ref-name>TestBean</ejb-ref-name>
<jndi-name>ejb/TestBean</jndi-name>
</ejb-ref>
</jboss-web>
-
Invoking a session bean from a servlet (0 messages)
- Posted by: mark greene
- Posted on: August 28 2003 01:55 EDT