Yes it is used and its purpose it to map the application jndi name references
onto the actual deployment environment jndi name. In the 2.2.2 release the
parsing the web descriptor jndi elements was cleaned up to better conform
to the spec.

The ejb-ref element in the web.xml descriptor:
<ejb-ref>
 <ejb-ref-name>ContactSession</ejb-ref-name>
 <ejb-ref-type>Session</ejb-ref-type>
 <home>org.ogs.contact.session.ContactSessionHome</home>
 <remote>org.ogs.contact.session.ContactSession</remote>
</ejb-ref>

does not have an ejb-link element to indicate which bean in the ear the ref
is to. There should either be an ejb-link element in the web.xml descriptor,
or an ejb-ref in a jboss-web.xml descriptor along with the deployed ejb's
jndi-name.

In the previous versions of JBoss there was an assumption that if this info
was not supplied the jndi-name was the same as the ejb-ref-name. In order
for this to work you have to go against the conventional use of binding ejb-ref
under the ejb subcontext of the java:comp/env ENC namespace.



----- Original Message ----- 
From: "Jm Seigneur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 6:19 AM
Subject: [JBoss-user] jboss-web.xml in JBoss2.2.2


> Hello,
> 
> I'd like to know whether jboss-web.xml is still used in JBoss2.2.2
> and what is its purpose.
> 
> I have tried to run the application of
> http://www.oakgrovesoftware.com/~rbackhouse/
> It is deployed but it doesn't work. In fact during the start of JBoss, I get
> the
> error below.
> 
> What do you think of that?
> The author told me it could be a faulty congiguration of JBoss concerning
> the
> default datasource but I haven't changed any things related.
> 
> Bye,
> 
> Jm
> 
> > [Auto deploy] Linking ejb-ref: ContactSession to JNDI name: null
> > [Auto deploy] javax.naming.NamingException: ejb-ref: ContactSession,
> > expected jndi-name in jboss-web.xml
> > [Auto deploy]   at
> >
> org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:359
> > )
> > [Auto deploy]   at
> >



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to