That *is *the issue. The RESTful web service is only supposed to be deployed to the endpoint that contains the web services (/RestTest/).
If you remove the @Singleton annotation, it works as expected, except that the @RunAs annotation is ignored. Tim Haley On Tue, Aug 6, 2013 at 2:23 PM, Romain Manni-Bucau [via OpenEJB] < [email protected]> wrote: > both webapps have an endpoint returning "Hello from the RESTful Admin > Service!"? > > just tested on trunk with no issue > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/8/6 ymaraner <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4664557&i=0>> > > > > Attached is an example ear that demonstrates the problem. Source code is > > included in the ear. > > > > I discovered that the problem only occurs when I have a second web > > application and a META-INF/application.xml file in the ear as well. > > > > Unfortunately, I need the application.xml file to specify the > context-root > > of one of the web applications, since I cannot use the war file name as > the > > context-root and I have found no other way to specify the context-root > for > > an EJB Transport module (needed for remote EJB access since we don't > deploy > > tomee.war). > > > > Tim Haley > > > > > > On Tue, Aug 6, 2013 at 11:34 AM, Tim Haley <[hidden > > email]<http://user/SendEmail.jtp?type=node&node=4664557&i=1>> > wrote: > > > > > I don't' yet have an example I can share, but I will set one up. > > > > > > This is using TomEE from the snapshot download: > > > apache-tomee-1.6.0-20130730.041218-140-plus.zip > > > > > > I will try it with the latest snapshot and see if it is still present. > > > > > > > > > Tim Haley > > > > > > > > > On Tue, Aug 6, 2013 at 11:27 AM, Romain Manni-Bucau [via OpenEJB] < > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=4664557&i=2>> > wrote: > > > > > >> Hehe, was obvious, sorry, i missed thi sone. > > >> > > >> > > >> About your issue: are you able to reproduce it in a shareable sample? > Is > > >> it > > >> on trunk? > > >> > > >> > > >> > > >> *Romain Manni-Bucau* > > >> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > >> *Blog: **http://rmannibucau.wordpress.com/*< > > >> http://rmannibucau.wordpress.com/> > > >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > >> *Github: https://github.com/rmannibucau* > > >> > > >> > > >> > > >> 2013/8/6 ymaraner <[hidden email]< > > http://user/SendEmail.jtp?type=node&node=4664549&i=0>> > > >> > > >> > > >> > Sorry, @Stateless or @Singleton. Either one results in the same > > issues. > > >> > > > >> > > > >> > > > >> > ----- > > >> > - Tim > > >> > -- > > >> > View this message in context: > > >> > > > >> > > > http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664547.html > > >> > > >> > Sent from the OpenEJB User mailing list archive at Nabble.com. > > >> > > > >> > > >> > > >> ------------------------------ > > >> If you reply to this email, your message will be added to the > > >> discussion below: > > >> > > >> > > > http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664549.html > > >> To unsubscribe from REST (EJB) in WAR inside EAR publishes twice, > click > > >> here< > > > > > > >> . > > >> NAML< > > > http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > >> > > > > > > > > > > > > RestTest.ear (3K) < > > http://openejb.979440.n4.nabble.com/attachment/4664554/0/RestTest.ear> > > > > > > > > > > ----- > > - Tim > > -- > > View this message in context: > > > http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664554.html > > > Sent from the OpenEJB User mailing list archive at Nabble.com. > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664557.html > To unsubscribe from REST (EJB) in WAR inside EAR publishes twice, click > here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4664545&code=dHBoYWxleUBnbWFpbC5jb218NDY2NDU0NXwxMzE0NDUyOTky> > . > NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > ----- - Tim -- View this message in context: http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664558.html Sent from the OpenEJB User mailing list archive at Nabble.com.
