[jboss-user] [JNDI/Naming/Network] - No ejb-link in web.xml and jndi-name in jboss-web.xml

vitalstrike82 do-not-reply at jboss.com
Thu Aug 10 05:19:18 EDT 2006


hi guys, i have a qns hope some of you will reply me.

I have just deploy an ear file in jboss4.0.3 and it give these errors.

Caused by: javax.naming.NamingException: ejb-ref: ejb/MyMusicCart, No ejb-link in web.xml and jndi-name in jboss-web.xml.

I have check the web.xml and i do have state the ejb-ref-name of the specific bean. However i do not have the jboss-web.xml file cos i read that jboss will auto configure the jndi.

Can anyone of you help me please? i can put up more codes if u guys request to.

partial codes for web.xml

 <ejb-ref>
  |     <ejb-ref-name>ejb/EJBMusic</ejb-ref-name>
  |     <ejb-ref-type>Session</ejb-ref-type>
  |     <home>asg.MusicEJB.MusicIteratorHome</home>
  |     <remote>asg.MusicEJB.MusicIterator</remote>
  |   </ejb-ref>
  |   <ejb-ref>
  |     <ejb-ref-name>ejb/MyMusicCart</ejb-ref-name>
  |     <ejb-ref-type>Session</ejb-ref-type>
  |     <home>asg.MusicCartEJB.MusicCartHome</home>
  |     <remote>asg.MusicCartEJB.MusicCart</remote>
  |   </ejb-ref>
  | </web-app>

codes for ejb-jar for MusicCart
display-name>MusicCartBean</display-name>
  |       <ejb-name>MusicCartBean</ejb-name>
  |       <home>asg.MusicCartEJB.MusicCartHome</home>
  |       <remote>asg.MusicCartEJB.MusicCart</remote>
  |       <ejb-class>asg.MusicCartEJB.MusicCartBean</ejb-class>
  |       <session-type>Stateful</session-type>
  |       <transaction-type>Bean</transaction-type>
  |       <security-identity>
  |         <description></description>
  |         <use-caller-identity></use-caller-identity>
  |       </security-identity>
  |     </session>
  |   </enterprise-beans>


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964292#3964292

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964292



More information about the jboss-user mailing list