Hunter, remove any reference in the jboss-web.xml, they're not mandatory.
Mine only has the security domain. Remember to not use
PortableRemoteObject.narrow, since they are not needed with local
interfaces.

I use local interfaces without any kind of problems since two months ago.
The only difference I have is that I don't call any local interfaces from
the servlets. I don't use ejb-ref in my web.xml (so the beans map to their
default names), and don't think that ejb-local-ref is mandatory either. Have
you looked the 8082 JNDIView service?

Are your local interfaces correctly implemented? I mean, do they extend
EJBLocalObject and EJBLocalHome?

Ok, suppose you answered all the questions. Then, I ran out of ideas :)

> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]En nombre de
> Hunter Hillegas
> Enviado el: lunes, 26 de noviembre de 2001 23:24
> Para: Dain Sundstrom; JBoss Dev
> Asunto: Re: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?
>
>
> So you think this is a JNDI issue? Just me getting the wrong response from
> the lookup? Before I was getting errors doing the lookup, now it
> appears to
> be at least contacting JNDI, just not getting the correct class?
>
> Is that response from the debug statement you had me add what you expected
> to see?
>
> There is a file called jboss-web.xml that is discussed in the
> manual, though
> there is no mention of local interface support in that section at
> all (it's
> from the 2.x days). Mine is specified as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jboss-web>
>     <ejb-local-ref>
>         <ejb-ref-name>groundswell/ShoppingManager</ejb-ref-name>
>         <jndi-name>groundswell/ShoppingManager</jndi-name>
>     </ejb-local-ref>
> </jboss-web>
>
> Which was a guess from the setup of the existing spec. Using <ejb-ref>
> instead of <ejb-local-ref> didn't help at all... I heard that
> <ejb-local-ref> still wasn't implemented in AbstractWebContainer, but I'm
> not totally sure if that effects this situation...
>
> I am using the Jetty4 support recently integrated into JBoss3alpha for my
> Web container.
>
> So... Are we sure this is a JNDI issue and a matter of me just getting the
> wrong bean? Have I simply misconfigured something?
>
> Thanks,
> Hunter
>
> > From: Dain Sundstrom <[EMAIL PROTECTED]>
> > Date: Mon, 26 Nov 2001 17:12:32 -0600
> > To: "'Hunter Hillegas'" <[EMAIL PROTECTED]>, JBoss Dev
> > <[EMAIL PROTECTED]>
> > Subject: RE: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?
> >
> > Well that was my only idea.  Any thing else is beyond my
> knowledge of JNDI.
> > Isn't there are way to specify JNDI references in the web deployment
> > descriptor. I remember a jboss-web.xml or something like that.
> Of course
> > this would involve your web container supporting integrated
> JNDI.  What web
> > container are you using?
> >
> > -dain
> >
> >> -----Original Message-----
> >> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
> >> Sent: Monday, November 26, 2001 4:37 PM
> >> To: Dain Sundstrom; 'marc fleury'; JBoss Dev
> >> Subject: Re: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?
> >>
> >>
> >> Any more ideas on this one?
> >>
> >> I'm still getting this from the code you had me insert:
> >>
> >> 14:34:31,379 INFO  [Default] [Ljava.lang.Class;@1d4c74
> >> 14:34:31,384 WARN  [JettyService] WARNING: Servlet Exception for
> >> /groundswell/groundswellController?action=createProductGroupCo
> >> llection&url=.
> >> ./commerce/backend_label_commerce_add1.jsp
> >> javax.servlet.ServletException: java.lang.ClassCastException: $Proxy27
> >>
> >> Any ideas? Anyone else using local interfaces to access your
> >> EJBs from the
> >> Web container?
> >>
> >> Thanks,
> >> Hunter
> >>
> >>> From: Dain Sundstrom <[EMAIL PROTECTED]>
> >>> Date: Sun, 25 Nov 2001 18:10:24 -0600
> >>> To: "'marc fleury'" <[EMAIL PROTECTED]>, Hunter Hillegas
> >>> <[EMAIL PROTECTED]>, JBoss Dev
> >> <[EMAIL PROTECTED]>
> >>> Subject: RE: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?
> >>>
> >>> Actually I didn't write the local interface code.  I'll
> >> assume that you are
> >>> using an integrated stack (integrated web server). Did you use the
> >>> local-jndi-name in the jboss.xml file, which I did write?
> >> It looks like
> >>> this: (I'm typing this on the fly so there may be errors)
> >>>
> >>> <jboss>
> >>>  <enterprise-beans>
> >>>     <entity>
> >>>        <ejb-name>OrderEJB</ejb-name>
> >>>        <local-jndi-name>commerce/Order</local-jndi-name>
> >>>     </entity>
> >>>  </enterprise-beans>
> >>> </jboss>
> >>>
> >>> I know this works between EJBs, and it works with regular
> >> classes.  I have
> >>> not tested from a web tier, because I didn't know one was
> >> integrated yet.
> >>>
> >>> -dain
> >>>
> >>>> -----Original Message-----
> >>>> From: marc fleury [mailto:[EMAIL PROTECTED]]
> >>>> Sent: Sunday, November 25, 2001 4:46 PM
> >>>> To: Hunter Hillegas; JBoss Dev
> >>>> Subject: RE: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?
> >>>>
> >>>>
> >>>> I will let dain answer this, but afaik his stuff relies on
> >> it so if it
> >>>> wasn't implemented you would see it.
> >>>>
> >>>> For the record, I will mention that only NEW features where
> >>>> added to RH, it
> >>>> is not like we went I rewrote the stuff, in fact MOST of the
> >>>> codebase in RH
> >>>> is the old one.  We are rewriting as we go, but stuff that
> >>>> dramatically
> >>>> changes from one to the other just shouldn't be there.
> >>>>
> >>>> That being said is there a test for local stuff in RH?  We
> >>>> would need to run
> >>>> that and make sure.
> >>>>
> >>>> marcf
> >>>>
> >>>> |-----Original Message-----
> >>>> |From: [EMAIL PROTECTED]
> >>>> |[mailto:[EMAIL PROTECTED]]On Behalf Of
> >>>> |Hunter Hillegas
> >>>> |Sent: Sunday, November 25, 2001 4:43 PM
> >>>> |To: JBoss Dev
> >>>> |Subject: [JBoss-dev] Local Interfaces in Rabbit Hole - Working?
> >>>> |
> >>>> |
> >>>> |Is local interface support completely implemented in Rabbit
> >>>> Hole at this
> >>>> |point?
> >>>> |
> >>>> |I thought that it was but I am having trouble with my app
> >>>> that uses only
> >>>> |local interfaces...
> >>>> |
> >>>> |Basically any attempt to grab beans via their local
> >>>> interfaces from my
> >>>> |servlets fail with a NameNotFound exception. I verified the
> >>>> JNDI names in
> >>>> |the Jboss Web console but integrated Jetty fails to track
> >> them down.
> >>>> |
> >>>> |Julian Gosnell suggested that perhaps local interfaces were
> >>>> not completely
> >>>> |implemented...
> >>>> |
> >>>> |I was wondering if that is the case...
> >>>> |
> >>>> |Thanks for any info,
> >>>> |Hunter
> >>>> |
> >>>> |
> >>>> |_______________________________________________
> >>>> |Jboss-development mailing list
> >>>> |[EMAIL PROTECTED]
> >>>> |https://lists.sourceforge.net/lists/listinfo/jboss-development
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Jboss-development mailing list
> >>>> [EMAIL PROTECTED]
> >>>> https://lists.sourceforge.net/lists/listinfo/jboss-development
> >>>>
> >>
> >>
> >> _______________________________________________
> >> Jboss-development mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/jboss-development
> >>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>
>


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to