• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jboss - DeploymentException (session calling entity bean)  RSS feed

 
Martin Lawrence
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm currently trying to use a session bean (TravelAgentBean) to
call an entity bean (CabinBean); every time I deploy the jar file
I get the following:-
[Container factory] Deploying CabinBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[Container factory] Deploying TravelAgentBean
[Container factory] Container Invoker RMI Port='4444'
[Container factory] Container Invoker Optimize='true'
[JAWS] Initializing JAWS plugin for CabinBean
[JAWS] Loading standardjaws.xml : file:/C:/jboss/conf/default/standardjaws.xml
[JAWS] Table 'CabinBean' already exists
[Container factory] Binding an EJBReference ejb/Cabin
[Container factory] Binding ejb/Cabin to internal JNDI source: com.titan.cabin.CabinBean
[Container factory] org.jboss.ejb.DeploymentException: Bean com.titan.cabin.CabinBean not found within this application.
All the java files are in the same package(i.e com.titan.cabin).
My ejb-jar.xml contains both session and entity stuff.
Note within <session> I also include the following:-
<ejb-ref>
<ejb-ref-name>ejb/Cabin</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.titan.cabin.CabinHome</home>
<remote>com.titan.cabin.Cabin</remote>
<ejb-link>com.titan.cabin.CabinBean</ejb-link>
</ejb-ref>

My jboss.xml contains the following:-
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<enterprise-beans>
<entity>
<ejb-name>CabinBean</ejb-name>
<jndi-name>travel/Cabin</jndi-name>
<configuration-name/>
</entity>
<session>
<ejb-name>TravelAgentBean</ejb-name>
<jndi-name>travel/TravelAgent</jndi-name>
<configuration-name/>
</session>
<secure>false</secure>
</enterprise-beans>
</jboss>
Can anybody help?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!