Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Jboss - DeploymentException (session calling entity bean)

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic