Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to find ejb module after deploying it

Status
Not open for further replies.

priencess

IS-IT--Management
Oct 30, 2003
2
US
Hi,
I am trying to deploy entity bean using weblogic.I am able to deploy it successfully but when i try to see that ejb from console ,i am able to see ejb as deployed but while testing through window i m getting following message.

" There are no EJBs defined in this module. "

But i have not got any error message during deploying.
Also when i try to run client i m getting following message.

"
The client was unable to lookup the EJBHome. Please make sure that you have deployed the ejb with the JNDI name ejb20-beanManaged-AccountHome on the WebLogic server at t3://localhost:7001
Unable to look up the beans home: Unable to resolve 'ejb20-beanManaged-AccountHo
me' Resolved"

Any advice will be appriciated.
thanks
 
Hi, I'm not familiar with WebLogic, only JBOss, but it sounds like a mapping problem :

As a guide, in ejb-jar.xml (for a you need something like :

<entity>
<ejb-name>PhoneEJB</ejb-name>
<home>com.titan.phone.PhoneHomeLocal</home>
<remote>com.titan.phone.PhoneRemote</remote>
<ejb-class>com.titan.phone.PhoneBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>Phone</abstract-schema-name>
<cmp-field><field-name>id</field-name></cmp-field>
<cmp-field><field-name>number</field-name></cmp-field>
<cmp-field><field-name>type</field-name></cmp-field>
<primkey-field>id</primkey-field>
<security-identity><use-caller-identity/></security-identity>
</entity>


Then there are other mapping files in EJB Containers - eg in JBoss its called &quot;jboss.xml&quot; - which maps the ejb name to the Interface you may be trying to look up :

eg

<entity>
<ejb-name>PhoneEJB</ejb-name>
<jndi-name>PhoneHomeLocal</jndi-name>
</entity>

 
Yes sedj,
Jndi name was not properly saved in deployment tool.Thatswhy i was getting this problem.Now its solved.
Thanks for help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top