> > Alright,
> > Try this...
> >
> > 1. Remove the ejb-ref from your web.xml
>
> Why would he need to do that? It should work with it there; in fact it
> _shouldn't_ work without it there (logically, I don't know that bit of
> JBoss' code)
Actually, it wouldn't work until I took it out. I did exactly what was
posted and I got no errors on the loading of the war. But when I browsed the
servlet, I got 'ejb not bound' errors still.
>
> -danch
>
>
> > 2. Change your jboss-web.xml from
> > <?xml version="1.0" encoding="UTF-8"?>
> > <jboss-web>
> >
> > <ejb-ref>
> > <ejb-ref-name>DBaseFetch</ejb-ref-name>
> > <jndi-name>ejb/DBaseFetchHome</jndi-name
>
> > </ejb-ref>
> >
> > </jboss-web>
> >
> > to
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <jboss-web>
> >
> > <ejb-ref>
> > <ejb-ref-name>ejb/DBaseFetchHome</ejb-ref-name>
> > <jndi-name>ejb/DBaseFetchHome</jndi-name>
>
> Oops! that jndi-name needs to be whatever was specified in jboss.xml for
> that bean, or the ejb-name if it wasn't overridden in jboss.xml.
By doing all this, I still get from jboss output ...
[Auto deploy] Linking ejb-ref: DBaseFetch to JNDI name: null
[Auto deploy] javax.naming.NamingException: ejb-ref: DBaseFetch, expected
jndi-name in jboss-web.xml
I don't have a jboss.xml file defined. Do I need one? AFAIK, I"m not
overriding anything. I'm still trying to figure out what I need and what I
don't.
Here's my ejb-jar.xml descriptors for this bean.
<session>
<ejb-name>DBaseFetch</ejb-name>
<ejb-class>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchBean</ejb-cl
ass>
<home>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchHome</home>
<remote>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetch</remote>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
and in my jboss-web.xml I put this back in ...
<ejb-ref>
<ejb-ref-name>ejb/DBaseFetchHome</ejb-ref-name>
<jndi-name>DBaseFetch</jndi-name>
</ejb-ref>
and here's my web.xml (which i put the ejb-ref tags back in) ...
<ejb-ref>
<ejb-ref-name>DBaseFetch</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchHome</home>
<remote>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetch</remote>
</ejb-ref>
and here's my lookup ...
Object result = ctx.lookup("java:comp/env/ejb/DBaseFetchHome");
DBaseFetchHome home = (DBaseFetchHome)
javax.rmi.PortableRemoteObject.narrow(result,
DBaseFetchHome.class);
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user