Re: Using local EJBs in web application
It's probably just my issue but I am not seeing your war file as valid. What do you mean?
RE: Using local EJBs in web application
From: Violeta Georgieva [mailto:miles...@gmail.com] Subject: Re: Using local EJBs in web application It's probably just my issue but I am not seeing your war file as valid. What do you mean? I think it means we've got another Martin G on our hands... In other words, all posts from Code Animal are ignorable. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using local EJBs in web application
Hi, Which one? Tomcat + OpenEJB in OSGi environment Looks like your integration isn't exactly complete. Yep it cannot reach the OpenEjb at all because there is no binding in the naming for local EJBs Local EJB refs aren't bound, only (non-local) EJB refs? Yep Looks like nobody has done anything about that. Tomcat is a servlet container that provides minimal support for EJBs and things like that. It's no shock to me that something like this is unimplemented. If you are interested in providing a patch, we'd be glad to consider it for inclusion. Thanks. I'll definitely do it today or tomorrow. Regards Violeta 2012/2/15 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Violetta, On 2/15/12 3:11 PM, Violeta Georgieva wrote: I integrated Tomcat 7.0.25 with an EJB container. Which one? I have simple web application that uses ejb-local-ref (see the attachment). Unfortunately when I request the web application it cannot find the ejb at all: javax.naming.NameNotFoundException: Name ejb is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:820) org.apache.naming.NamingContext.lookup(NamingContext.java:154) org.apache.naming.NamingContext.lookup(NamingContext.java:831) Looks like your integration isn't exactly complete. I can see that local EJB refs are not bound, but only EJB refs - Local EJB refs aren't bound, only (non-local) EJB refs? org.apache.catalina.core.NamingContextListener.createNamingContext() Also in the same class I can see that addLocalEJB method is marked as NO-OP. Is that intentional? What I have to do in order to have this sample running? Looks like nobody has done anything about that. Tomcat is a servlet container that provides minimal support for EJBs and things like that. It's no shock to me that something like this is unimplemented. If you are interested in providing a patch, we'd be glad to consider it for inclusion. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk88F78ACgkQ9CaO5/Lv0PAmngCgjNb2EMZvQb5owI5td+lRxngk xX0AnjGr9t++WXtUn4rURQt4bCWvGVD3 =xkuk -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using local EJBs in web application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Violetta, On 2/15/12 3:11 PM, Violeta Georgieva wrote: I integrated Tomcat 7.0.25 with an EJB container. Which one? I have simple web application that uses ejb-local-ref (see the attachment). Unfortunately when I request the web application it cannot find the ejb at all: javax.naming.NameNotFoundException: Name ejb is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:820) org.apache.naming.NamingContext.lookup(NamingContext.java:154) org.apache.naming.NamingContext.lookup(NamingContext.java:831) Looks like your integration isn't exactly complete. I can see that local EJB refs are not bound, but only EJB refs - Local EJB refs aren't bound, only (non-local) EJB refs? org.apache.catalina.core.NamingContextListener.createNamingContext() Also in the same class I can see that addLocalEJB method is marked as NO-OP. Is that intentional? What I have to do in order to have this sample running? Looks like nobody has done anything about that. Tomcat is a servlet container that provides minimal support for EJBs and things like that. It's no shock to me that something like this is unimplemented. If you are interested in providing a patch, we'd be glad to consider it for inclusion. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk88F78ACgkQ9CaO5/Lv0PAmngCgjNb2EMZvQb5owI5td+lRxngk xX0AnjGr9t++WXtUn4rURQt4bCWvGVD3 =xkuk -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using local EJBs in web application
On 2/15/2012 3:11 PM, Violeta Georgieva wrote: Hi, I integrated Tomcat 7.0.25 with an EJB container. I have simple web application that uses ejb-local-ref (see the attachment). Unfortunately when I request the web application it cannot find the ejb at all: javax.naming.NameNotFoundException: Name ejb is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:820) org.apache.naming.NamingContext.lookup(NamingContext.java:154) org.apache.naming.NamingContext.lookup(NamingContext.java:831) I can see that local EJB refs are not bound, but only EJB refs - org.apache.catalina.core.NamingContextListener.createNamingContext() Also in the same class I can see that addLocalEJB method is marked as NO-OP. Is that intentional? What I have to do in order to have this sample running? Thanks in advance. Regards Violeta PP: Here is a link to the attached example for those who cannot open attachments https://docs.google.com/open?id=0B-HUwAvkRIKJYjE2ZTliMzItOGFkNi00MGVhLTlhM2MtZWM1NmJjOWQxZTc0 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org What happens if you deliver this war file as an exploded file?
Re: Using local EJBs in web application
It's probably just my issue but I am not seeing your war file as valid. On 2/15/2012 3:11 PM, Violeta Georgieva wrote: Hi, I integrated Tomcat 7.0.25 with an EJB container. I have simple web application that uses ejb-local-ref (see the attachment). Unfortunately when I request the web application it cannot find the ejb at all: javax.naming.NameNotFoundException: Name ejb is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:820) org.apache.naming.NamingContext.lookup(NamingContext.java:154) org.apache.naming.NamingContext.lookup(NamingContext.java:831) I can see that local EJB refs are not bound, but only EJB refs - org.apache.catalina.core.NamingContextListener.createNamingContext() Also in the same class I can see that addLocalEJB method is marked as NO-OP. Is that intentional? What I have to do in order to have this sample running? Thanks in advance. Regards Violeta PP: Here is a link to the attached example for those who cannot open attachments https://docs.google.com/open?id=0B-HUwAvkRIKJYjE2ZTliMzItOGFkNi00MGVhLTlhM2MtZWM1NmJjOWQxZTc0 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org