You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by ymaraner <tp...@gmail.com> on 2013/08/06 17:01:24 UTC
REST (EJB) in WAR inside EAR publishes twice
I have an application which is deployed as an EAR. It contains several EJB
modules, a couple of Web modules, and some library jar files.
We added a Web Module to provide RESTful web services using a particular
context-root.
Everything was fine until we needed to access an EJB that requires a
particular role to access it.
We do our authentication and authorization using custom code within our web
services, so they don't use any standard security mechanisms and the
principal is not set. The solution I found was to use @RunAs and @Session
annotations on the web service classes. This allows us to access all of the
EJBs that we need, but causes the web services to be deployed to multiple
context-roots, and appears to attempt to deploy the EJB2.x Entity Beans that
are used by the web services twice, resulting in NameAlreadyBoundExceptions.
-----
- Tim
--
View this message in context: http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by ymaraner <tp...@gmail.com>.
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] <
ml-node+s979440n4664549h87@n4.nabble.com> 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<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-tp4664545p4664551.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by Romain Manni-Bucau <rm...@gmail.com>.
fixed https://issues.apache.org/jira/browse/TOMEE-1016
*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 Romain Manni-Bucau <rm...@gmail.com>
> I think i know why. Ill check tomorrow.
> Le 6 août 2013 22:09, "hwaastad" <he...@waastad.org> a écrit :
>
> I've seen this one myself.
>> Moving the war containing the rest services to the end of application.xml
>> makes it work for me.
>> (using maven ear plugin and moving the webModule REST to the end).
>>
>> hw
>>
>>
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664559.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by Romain Manni-Bucau <rm...@gmail.com>.
I think i know why. Ill check tomorrow.
Le 6 août 2013 22:09, "hwaastad" <he...@waastad.org> a écrit :
> I've seen this one myself.
> Moving the war containing the rest services to the end of application.xml
> makes it work for me.
> (using maven ear plugin and moving the webModule REST to the end).
>
> hw
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664559.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by hwaastad <he...@waastad.org>.
I've seen this one myself.
Moving the war containing the rest services to the end of application.xml
makes it work for me.
(using maven ear plugin and moving the webModule REST to the end).
hw
--
View this message in context: http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664559.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by ymaraner <tp...@gmail.com>.
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] <
ml-node+s979440n4664557h35@n4.nabble.com> 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.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <tp...@gmail.com>
> 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 <tp...@gmail.com> 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] <
> > ml-node+s979440n4664549h87@n4.nabble.com> 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<
> 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
> >
> >>
> >
> >
>
>
> 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.
>
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by ymaraner <tp...@gmail.com>.
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 <tp...@gmail.com> 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] <
> ml-node+s979440n4664549h87@n4.nabble.com> 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<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>
>>
>
>
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.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <tp...@gmail.com>
> 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.
>
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hmm, i think the issue is maybe not linked to it but it would need a sample
to check.
*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 <tp...@gmail.com>
> To be a bit more clear on the symptoms...
>
> In the Catalina Log file, I get:
>
>
>
>
> And on STDERR, I get:
>
>
>
>
>
> -----
> - Tim
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664548.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by ymaraner <tp...@gmail.com>.
To be a bit more clear on the symptoms...
In the Catalina Log file, I get:
And on STDERR, I get:
-----
- Tim
--
View this message in context: http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545p4664548.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by ymaraner <tp...@gmail.com>.
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.
Re: REST (EJB) in WAR inside EAR publishes twice
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
@Session?
*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 <tp...@gmail.com>
> I have an application which is deployed as an EAR. It contains several EJB
> modules, a couple of Web modules, and some library jar files.
>
> We added a Web Module to provide RESTful web services using a particular
> context-root.
>
> Everything was fine until we needed to access an EJB that requires a
> particular role to access it.
>
> We do our authentication and authorization using custom code within our web
> services, so they don't use any standard security mechanisms and the
> principal is not set. The solution I found was to use @RunAs and @Session
> annotations on the web service classes. This allows us to access all of the
> EJBs that we need, but causes the web services to be deployed to multiple
> context-roots, and appears to attempt to deploy the EJB2.x Entity Beans
> that
> are used by the web services twice, resulting in
> NameAlreadyBoundExceptions.
>
>
>
> -----
> - Tim
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/REST-EJB-in-WAR-inside-EAR-publishes-twice-tp4664545.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>