Were you able to test with this update?

In the sample you shared jersey doesnt seem configured, is it?

- Romain
Le 4 sept. 2012 19:56, "Romain Manni-Bucau" <[email protected]> a
écrit :

> just allowed tomee to load jaxrs from the webapp (not very logical but
> hope it will help)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau*
> *Blog: http://rmannibucau.wordpress.com*
>
>
>
>
> 2012/9/3 Romain Manni-Bucau <[email protected]>
>
>> Think i got some more info: jersey-core includes javax.ws.rs (rest api)
>> so tomee excludes the jar (the api should be in common loader). That's done
>> only for war, that's why you can maybe provide jersey in an ear libs. I
>> dont know if jersey provides a correct packaging of its core. A solution is
>> to move jersey in common loader and remove geronimo jaxrs api jar.
>> Le 3 sept. 2012 20:53, "Romain Manni-Bucau" <[email protected]> a
>> écrit :
>>
>>> Hmm, as i said im a bit off these days so as fast as it is to test
>>> better it is
>>>
>>> I think excluding atmosphere and jersey can be a workaround
>>> Le 3 sept. 2012 19:49, "Luca Merolla" <[email protected]> a écrit :
>>>
>>>> Atmosphere does works without jersey but it won't work with REST call if
>>>> jersey present. There is a dependency module called atmosphere-jersey
>>>> which
>>>> is for that purpose.
>>>>
>>>> I have the same war and it's deployed inside an EAR in the apps folder.
>>>> Perhaps you can try to deploy it in the apps.
>>>>
>>>> On Mon, Sep 3, 2012 at 7:40 PM, Romain Manni-Bucau <
>>>> [email protected]>wrote:
>>>>
>>>> > yeah and removing it i have other classnotfound on jersey
>>>> >
>>>> > does atmosphere works without jersey? (at least the deps of the sample
>>>> > project)
>>>> >
>>>> > *Romain Manni-Bucau*
>>>> > *Twitter: @rmannibucau*
>>>> > *Blog: http://rmannibucau.wordpress.com*
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > 2012/9/3 Luca Merolla <[email protected]>
>>>> >
>>>> > > Strange, is jersey-core jar packed inside the war?
>>>> > >
>>>> > > On Mon, Sep 3, 2012 at 7:31 PM, Romain Manni-Bucau <
>>>> > [email protected]
>>>> > > >wrote:
>>>> > >
>>>> > > > with this sample i get java.lang.ClassNotFoundException:
>>>> > > > com.sun.jersey.core.util.FeaturesAndProperties
>>>> > > >
>>>> > > > *Romain Manni-Bucau*
>>>> > > > *Twitter: @rmannibucau*
>>>> > > > *Blog: http://rmannibucau.wordpress.com*
>>>> > > >
>>>> > > >
>>>> > > >
>>>> > > >
>>>> > > > 2012/9/3 Luca Merolla <[email protected]>
>>>> > > >
>>>> > > > > I have this war project which I was using to test it. You can
>>>> > download
>>>> > > > the
>>>> > > > > source from here. There is the pom.xml which builds the war,
>>>> there
>>>> > are
>>>> > > > also
>>>> > > > > some java classes which are taken from atmosphere samples.
>>>> > > > >
>>>> > > > > *
>>>> > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> http://www.fileconvoy.com/dfl.php?id=gf1dd7836996a45c61431907a3c54a2df259f9a
>>>> > > > > *
>>>> > > > >
>>>> > > > > I hope it can help.
>>>> > > > > *
>>>> > > > > *
>>>> > > > >
>>>> > > > > On Mon, Sep 3, 2012 at 5:19 PM, Romain Manni-Bucau <
>>>> > > > [email protected]
>>>> > > > > >wrote:
>>>> > > > >
>>>> > > > > > Well im more looking to a mvn project ready to run.
>>>> > > > > >
>>>> > > > > > Fyi injecting as field the request now works.
>>>> > > > > >
>>>> > > > > > - Romain
>>>> > > > > > Le 3 sept. 2012 17:14, "Luca Merolla" <[email protected]>
>>>> a
>>>> > > > écrit :
>>>> > > > > >
>>>> > > > > > > After the build was successful I have downloaded the build
>>>> from
>>>> > > here:
>>>> > > > > > >
>>>> > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.1.0-SNAPSHOT/
>>>> > > > > > >
>>>> > > > > > > As very minimal test I can provide you a WAR file with the
>>>> > > libraries
>>>> > > > > and
>>>> > > > > > > one class which is enough to get the exception.
>>>> > > > > > >
>>>> > > > > > > @ApplicationPath("/rest")
>>>> > > > > > > public class TestApplication extends Application {
>>>> > > > > > > }
>>>> > > > > > >
>>>> > > > > > > If I remove this class, it deploys, but I guess it's not
>>>> even
>>>> > > loading
>>>> > > > > the
>>>> > > > > > > libraries from atmosphere in that case.
>>>> > > > > > >
>>>> > > > > > >
>>>> > > > > > > On Mon, Sep 3, 2012 at 4:10 PM, Romain Manni-Bucau <
>>>> > > > > > [email protected]
>>>> > > > > > > >wrote:
>>>> > > > > > >
>>>> > > > > > > > weird, tried something shipped with this build
>>>> > > > > > > >
>>>> http://ci.apache.org/builders/openejb-trunk-deploy/builds/518
>>>> > > > > > > >
>>>> > > > > > > > PS: any simple way to test atmosphere in a unit test?
>>>> > > > > > > >
>>>> > > > > > > > *Romain Manni-Bucau*
>>>> > > > > > > > *Twitter: @rmannibucau*
>>>> > > > > > > > *Blog: http://rmannibucau.wordpress.com*
>>>> > > > > > > >
>>>> > > > > > > >
>>>> > > > > > > >
>>>> > > > > > > >
>>>> > > > > > > > 2012/9/3 Luca Merolla <[email protected]>
>>>> > > > > > > >
>>>> > > > > > > > > I have tried and it seems that it goes a bit further
>>>> compared
>>>> > > to
>>>> > > > > > > before.
>>>> > > > > > > > > However, now I get a different exception:
>>>> > > > > > > > >
>>>> > > > > > > > > SEVERE: Application could not be deployed:
>>>> > > > > > > > >  /home/luca/bin/apache-tomee-snapshot/apps/Test.ear
>>>> > > > > > > > > org.apache.openejb.OpenEJBException: Creating
>>>> application
>>>> > > failed:
>>>> > > > > > > > > /home/luca/bin/apache-tomee-snapshot/apps/Test.ear:
>>>> Error
>>>> > > > building
>>>> > > > > > bean
>>>> > > > > > > > > 'pn-portone.war.Comp'.  Exception: class
>>>> > > > > > > > > org.apache.openejb.OpenEJBException: Unable to infer
>>>> type for
>>>> > > > > > > > >
>>>> comp/env/org.atmosphere.jersey.BaseInjectableProvider/req:
>>>> > > Unable
>>>> > > > > to
>>>> > > > > > > > infer
>>>> > > > > > > > > type for
>>>> > > > comp/env/org.atmosphere.jersey.BaseInjectableProvider/req
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:929)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:521)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:422)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:330)
>>>> > > > > > > > >         at
>>>> > > > > > org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
>>>> > > > > > > > >         at
>>>> org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:231)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:131)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:113)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > >
>>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>>>> > > > > > > > >         at
>>>> > > > > > org.apache.catalina.startup.Catalina.load(Catalina.java:624)
>>>> > > > > > > > >         at
>>>> > > > > > org.apache.catalina.startup.Catalina.load(Catalina.java:649)
>>>> > > > > > > > >         at
>>>> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> > > > > > Method)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>> > > > > > > > >         at
>>>> java.lang.reflect.Method.invoke(Method.java:597)
>>>> > > > > > > > >         at
>>>> > > > > > >
>>>> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
>>>> > > > > > > > >         at
>>>> > > > > > >
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
>>>> > > > > > > > > Caused by: org.apache.openejb.OpenEJBException: Error
>>>> > building
>>>> > > > bean
>>>> > > > > > > > > 'pn-portone.war.Comp'.  Exception: class
>>>> > > > > > > > > org.apache.openejb.OpenEJBException: Unable to infer
>>>> type for
>>>> > > > > > > > >
>>>> comp/env/org.atmosphere.jersey.BaseInjectableProvider/req:
>>>> > > Unable
>>>> > > > > to
>>>> > > > > > > > infer
>>>> > > > > > > > > type for
>>>> > > > comp/env/org.atmosphere.jersey.BaseInjectableProvider/req
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:81)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:689)
>>>> > > > > > > > >         ... 20 more
>>>> > > > > > > > > Caused by: org.apache.openejb.OpenEJBException: Unable
>>>> to
>>>> > infer
>>>> > > > > type
>>>> > > > > > > for
>>>> > > > > > > > >
>>>> comp/env/org.atmosphere.jersey.BaseInjectableProvider/req
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.JndiEncBuilder.inferType(JndiEncBuilder.java:597)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.JndiEncBuilder.getType(JndiEncBuilder.java:583)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.JndiEncBuilder.buildMap(JndiEncBuilder.java:278)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.JndiEncBuilder.buildBindings(JndiEncBuilder.java:160)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.JndiEncBuilder.build(JndiEncBuilder.java:144)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.EnterpriseBeanBuilder.build(EnterpriseBeanBuilder.java:145)
>>>> > > > > > > > >         at
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:66)
>>>> > > > > > > > >         ... 21 more
>>>> > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > > > On Mon, Sep 3, 2012 at 11:04 AM, Romain Manni-Bucau
>>>> > > > > > > > > <[email protected]>wrote:
>>>> > > > > > > > >
>>>> > > > > > > > > > please retry when
>>>> > > > > > > > > >
>>>> > > http://ci.apache.org/builders/openejb-trunk-deploy/builds/517is
>>>> > > > > > > green
>>>> > > > > > > > > > (forgot to commit a file yesterday, sorry)
>>>> > > > > > > > > >
>>>> > > > > > > > > > *Romain Manni-Bucau*
>>>> > > > > > > > > > *Twitter: @rmannibucau*
>>>> > > > > > > > > > *Blog: http://rmannibucau.wordpress.com*
>>>> > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > > > 2012/9/3 Luca Merolla <[email protected]>
>>>> > > > > > > > > >
>>>> > > > > > > > > > > I have tried with snapshot from the 3rd of
>>>> september,
>>>> > still
>>>> > > > > same
>>>> > > > > > > > issue
>>>> > > > > > > > > > with
>>>> > > > > > > > > > > the HttpServletRequest.
>>>> > > > > > > > > > > I can  increase the logs and see where it fails
>>>> exactly
>>>> > and
>>>> > > > > > provide
>>>> > > > > > > > > you a
>>>> > > > > > > > > > > full log if that can help.
>>>> > > > > > > > > > > Which package should I increase to FINE?
>>>> > > > > > > > > > >
>>>> > > > > > > > > > > On Sun, Sep 2, 2012 at 5:53 PM, Romain Manni-Bucau <
>>>> > > > > > > > > > [email protected]
>>>> > > > > > > > > > > >wrote:
>>>> > > > > > > > > > >
>>>> > > > > > > > > > > > can you give it another try with the next snapshot
>>>> > please
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > > > *Romain Manni-Bucau*
>>>> > > > > > > > > > > > *Twitter: @rmannibucau*
>>>> > > > > > > > > > > > *Blog: http://rmannibucau.wordpress.com*
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > > > 2012/8/31 Romain Manni-Bucau <
>>>> [email protected]>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > > > > It can be.
>>>> > > > > > > > > > > > >
>>>> > > > > > > > > > > > > I can have a look around the 10th of september
>>>> > > > > > > > > > > > > Le 31 août 2012 20:58, "Luca Merolla" <
>>>> > > > > > [email protected]>
>>>> > > > > > > a
>>>> > > > > > > > > > > écrit :
>>>> > > > > > > > > > > > >
>>>> > > > > > > > > > > > > I have done some tests with my war with the
>>>> latest
>>>> > > > snapshot
>>>> > > > > > of
>>>> > > > > > > > > TomEE.
>>>> > > > > > > > > > > > These
>>>> > > > > > > > > > > > >> are the libraries that are inside the
>>>> WEB-INF/lib of
>>>> > > the
>>>> > > > > war
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> asm-3.1.jar
>>>> > > > > > > > > > > > >> atmosphere-annotations-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> atmosphere-compat-jbossweb-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> atmosphere-compat-tomcat-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> atmosphere-compat-tomcat7-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> atmosphere-jersey-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> atmosphere-jgroups-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> atmosphere-runtime-1.0.0.beta5.jar
>>>> > > > > > > > > > > > >> commons-logging-1.1.1.jar
>>>> > > > > > > > > > > > >> jersey-core-1.12.jar
>>>> > > > > > > > > > > > >> jersey-server-1.12.jar
>>>> > > > > > > > > > > > >> jersey-servlet-1.12.jar
>>>> > > > > > > > > > > > >> jgroups-2.8.0.GA.jar
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> with these libraries I still get the previous
>>>> > excetion
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> No provider available for resource-ref 'null'
>>>> of
>>>> > type
>>>> > > > > > > > > > > > >> 'javax.servlet.http.HttpServletRequest' for
>>>> > > > > > > 'pn-test.war.Comp'.
>>>> > > > > > > > > > > > >> org.apache.openejb.OpenEJBException: No
>>>> provider
>>>> > > > available
>>>> > > > > > for
>>>> > > > > > > > > > > > >> resource-ref
>>>> > > > > > > > > > > > >> 'null' of type
>>>> > 'javax.servlet.http.HttpServletRequest'
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> However, if I do remove the atmosphere-*
>>>> libraries I
>>>> > > > don't
>>>> > > > > > get
>>>> > > > > > > > the
>>>> > > > > > > > > > > > >> exception and the war is deployed. Obviously in
>>>> > order
>>>> > > to
>>>> > > > > > > remove
>>>> > > > > > > > > the
>>>> > > > > > > > > > > > >> atmosphere libraries I had to remove the class
>>>> files
>>>> > > > that
>>>> > > > > > were
>>>> > > > > > > > > using
>>>> > > > > > > > > > > the
>>>> > > > > > > > > > > > >> libraries.
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> Probably what has been done to fix Jersey
>>>> libraries
>>>> > > can
>>>> > > > be
>>>> > > > > > > done
>>>> > > > > > > > > also
>>>> > > > > > > > > > > for
>>>> > > > > > > > > > > > >> Atmosphere ones? Or it is a different issue?
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> On Thu, Aug 30, 2012 at 6:03 PM, Romain
>>>> Manni-Bucau
>>>> > > > > > > > > > > > >> <[email protected]>wrote:
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > > >> > Hmm i think today it will not work but it is
>>>> an
>>>> > easy
>>>> > > > > > update
>>>> > > > > > > we
>>>> > > > > > > > > can
>>>> > > > > > > > > > > do.
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >> > I can have a look in 2 weeks if nobody
>>>> hacked on
>>>> > it.
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >> > Btw you can use a filter + a thread local to
>>>> avoid
>>>> > > the
>>>> > > > > > need
>>>> > > > > > > of
>>>> > > > > > > > > the
>>>> > > > > > > > > > > > >> > injection (at least this is 100%
>>>> standard)...a
>>>> > > little
>>>> > > > > > > > workaround
>>>> > > > > > > > > > > which
>>>> > > > > > > > > > > > >> is
>>>> > > > > > > > > > > > >> > often used
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >> > - Romain
>>>> > > > > > > > > > > > >> > Le 30 août 2012 15:54, "Luca Merolla" <
>>>> > > > > > > [email protected]
>>>> > > > > > > > >
>>>> > > > > > > > > a
>>>> > > > > > > > > > > > écrit
>>>> > > > > > > > > > > > >> :
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >> > > Honestly I don't know if it's the
>>>> standard, but
>>>> > I
>>>> > > > have
>>>> > > > > > > been
>>>> > > > > > > > > > using
>>>> > > > > > > > > > > it
>>>> > > > > > > > > > > > >> in
>>>> > > > > > > > > > > > >> > > both Jersey and Resteasy.
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> > > I'll give a try to see if I can workaround
>>>> by
>>>> > > using
>>>> > > > > > > > > > > > >> > > @Resource HttpServletRequest servletRequest
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> > > On Thu, Aug 30, 2012 at 3:21 PM, Romain
>>>> > > Manni-Bucau
>>>> > > > > > > > > > > > >> > > <[email protected]>wrote:
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> > > > I think it is currently not supported,
>>>> not
>>>> > sure
>>>> > > it
>>>> > > > > is
>>>> > > > > > a
>>>> > > > > > > > bug
>>>> > > > > > > > > or
>>>> > > > > > > > > > > not
>>>> > > > > > > > > > > > >> but
>>>> > > > > > > > > > > > >> > i
>>>> > > > > > > > > > > > >> > > > thought it was not standard, is it?
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > > > - Romain
>>>> > > > > > > > > > > > >> > > > Le 30 août 2012 14:42, "Luca Merolla" <
>>>> > > > > > > > > [email protected]
>>>> > > > > > > > > > >
>>>> > > > > > > > > > > a
>>>> > > > > > > > > > > > >> > écrit :
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > > > > I used to use @Context for the
>>>> > > > HttpServletRequest
>>>> > > > > in
>>>> > > > > > > the
>>>> > > > > > > > > > REST
>>>> > > > > > > > > > > > >> > > resources.
>>>> > > > > > > > > > > > >> > > > In
>>>> > > > > > > > > > > > >> > > > > example:
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > > > @Path("/site/account")
>>>> > > > > > > > > > > > >> > > > > public interface AccountResource {
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > > > @POST
>>>> > > > > > > > > > > > >> > > > > @Path("create")
>>>> > > > > > > > > > > > >> > > > >
>>>> > > @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
>>>> > > > > > > > > > > > >> > > > > @Produces(MediaType.APPLICATION_JSON)
>>>> > > > > > > > > > > > >> > > > > ResponseDTO createAccount(@Context
>>>> > > > > > HttpServletRequest
>>>> > > > > > > > req,
>>>> > > > > > > > > > > > >> > > > >  @Context SecurityContext sec,
>>>> > RESTAccountDTO
>>>> > > > > > account)
>>>> > > > > > > > > > > > >> > > > > throws WebException;
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > > > On Thu, Aug 30, 2012 at 2:29 PM, Romain
>>>> > > > > Manni-Bucau
>>>> > > > > > > > > > > > >> > > > > <[email protected]>wrote:
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > > > > Is the request injected with
>>>> @resource?
>>>> > > > > > > > > > > > >> > > > > > Le 30 août 2012 14:10, "Luca
>>>> Merolla" <
>>>> > > > > > > > > > > [email protected]
>>>> > > > > > > > > > > > >
>>>> > > > > > > > > > > > >> a
>>>> > > > > > > > > > > > >> > > > écrit :
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > > > > Still not working. The war with
>>>> the REST
>>>> > > > calls
>>>> > > > > > is
>>>> > > > > > > > > giving
>>>> > > > > > > > > > > > this
>>>> > > > > > > > > > > > >> > > error:
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > WARNING: Jar not loaded.
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > >
>>>> > > > > /home/luca/bin/apache-tomee-plus-1.1.0-SNAPSHOT/apps/Test.ear.
>>>> > > > > > > > > > > > >> >  No
>>>> > > > > > > > > > > > >> > > > > > provider
>>>> > > > > > > > > > > > >> > > > > > > available for resource-ref 'null'
>>>> of
>>>> > type
>>>> > > > > > > > > > > > >> > > > > > >
>>>> 'javax.servlet.http.HttpServletRequest'
>>>> > > for
>>>> > > > '
>>>> > > > > > > > > > > > >> pn-portone.war.Co
>>>> > > > > > > > > > > > >> > > > > > > mp'.
>>>> > > > > > > > > > > > >> > > > > > >
>>>> org.apache.openejb.OpenEJBException: No
>>>> > > > > provider
>>>> > > > > > > > > > available
>>>> > > > > > > > > > > > for
>>>> > > > > > > > > > > > >> > > > > > resource-ref
>>>> > > > > > > > > > > > >> > > > > > > 'null' of type
>>>> > > > > > > > 'javax.servlet.http.HttpServletRequest'
>>>> > > > > > > > > > for
>>>> > > > > > > > > > > > >> > > > > > > 'pn-portone.war.Comp'.
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.AutoConfig.autoCreateResource(AutoConfig.java:1747)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1740)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1691)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.AutoConfig.processResourceRef(AutoConfig.java:1083)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > >
>>>> > > > > >
>>>> org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:816)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > >
>>>> > > > > >
>>>> org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:178)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:355)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:842)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:694)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:470)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:350)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:329)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > >
>>>> org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:231)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > >
>>>> > > > org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:131)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:113)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > >
>>>> > > > >
>>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > >
>>>> org.apache.catalina.startup.Catalina.load(Catalina.java:624)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > >
>>>> org.apache.catalina.startup.Catalina.load(Catalina.java:649)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > >
>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> > > > > > > > > > > > >> > > > Method)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > java.lang.reflect.Method.invoke(Method.java:597)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > >
>>>> > > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
>>>> > > > > > > > > > > > >> > > > > > >         at
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > >
>>>> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
>>>> > > > > > > > > > > > >> > > > > > > Aug 30, 2012 2:03:50 PM
>>>> > > > > > > > > > org.apache.openejb.util.OptionsLog
>>>> > > > > > > > > > > > >> info
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > Here is the web.xml of the WAR:
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > <?xml version="1.0"
>>>> encoding="UTF-8"?>
>>>> > > > > > > > > > > > >> > > > > > > <web-app xmlns:xsi="
>>>> > > > > > > > > > > > http://www.w3.org/2001/XMLSchema-instance
>>>> > > > > > > > > > > > >> "
>>>> > > > > > > > > > > > >> > > > > > > xmlns="
>>>> > http://java.sun.com/xml/ns/javaee";
>>>> > > > > > > > xmlns:web="
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
>>>> > > > > > > "
>>>> > > > > > > > > > > > >> > > > > > > xsi:schemaLocation="
>>>> > > > > > > > http://java.sun.com/xml/ns/javaee
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
>>>> > > > > > > "
>>>> > > > > > > > > > > > >> > > > > > > version="3.0">
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >
>>>> <display-name>PN-Portone</display-name>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > >     <servlet>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > <description>AtmosphereServlet</description>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > <servlet-name>AtmosphereServlet</servlet-name>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > >
>>>> > > >
>>>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > <async-supported>true</async-supported>
>>>> > > > > > > > > > > > >> > > > > > >         <!--
>>>> > > > > load-on-startup>0</load-on-startup
>>>> > > > > > > -->
>>>> > > > > > > > > > > > >> > > > > > >     </servlet>
>>>> > > > > > > > > > > > >> > > > > > >     <servlet-mapping>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > <servlet-name>AtmosphereServlet</servlet-name>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > <url-pattern>/atmosphere/*</url-pattern>
>>>> > > > > > > > > > > > >> > > > > > >     </servlet-mapping>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > <security-constraint>
>>>> > > > > > > > > > > > >> > > > > > > <web-resource-collection>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > <web-resource-name>Resteasy</web-resource-name>
>>>> > > > > > > > > > > > >> > > > > > > <url-pattern>/*</url-pattern>
>>>> > > > > > > > > > > > >> > > > > > > <http-method>GET</http-method>
>>>> > > > > > > > > > > > >> > > > > > > <http-method>POST</http-method>
>>>> > > > > > > > > > > > >> > > > > > > </web-resource-collection>
>>>> > > > > > > > > > > > >> > > > > > > <auth-constraint>
>>>> > > > > > > > > > > > >> > > > > > > <role-name>admin</role-name>
>>>> > > > > > > > > > > > >> > > > > > > <role-name>user</role-name>
>>>> > > > > > > > > > > > >> > > > > > > </auth-constraint>
>>>> > > > > > > > > > > > >> > > > > > > </security-constraint>
>>>> > > > > > > > > > > > >> > > > > > > <login-config>
>>>> > > > > > > > > > > > >> > > > > > > <auth-method>BASIC</auth-method>
>>>> > > > > > > > > > > > >> > > > > > > <realm-name>resteasy</realm-name>
>>>> > > > > > > > > > > > >> > > > > > > </login-config>
>>>> > > > > > > > > > > > >> > > > > > > <security-role>
>>>> > > > > > > > > > > > >> > > > > > > <role-name>admin</role-name>
>>>> > > > > > > > > > > > >> > > > > > > </security-role>
>>>> > > > > > > > > > > > >> > > > > > > <security-role>
>>>> > > > > > > > > > > > >> > > > > > > <role-name>user</role-name>
>>>> > > > > > > > > > > > >> > > > > > > </security-role>
>>>> > > > > > > > > > > > >> > > > > > >  <welcome-file-list>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > <welcome-file>index.jsp</welcome-file>
>>>> > > > > > > > > > > > >> > > > > > >     </welcome-file-list>
>>>> > > > > > > > > > > > >> > > > > > > </web-app>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > On Thu, Aug 30, 2012 at 1:21 PM,
>>>> Luca
>>>> > > > Merolla
>>>> > > > > <
>>>> > > > > > > > > > > > >> > > > [email protected]
>>>> > > > > > > > > > > > >> > > > > > > >wrote:
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > > Sorry, it works. It tries to
>>>> deploy
>>>> > but
>>>> > > I
>>>> > > > > > > couldn't
>>>> > > > > > > > > see
>>>> > > > > > > > > > > it
>>>> > > > > > > > > > > > in
>>>> > > > > > > > > > > > >> > the
>>>> > > > > > > > > > > > >> > > > > Tomcat
>>>> > > > > > > > > > > > >> > > > > > > > Web Application Manager.
>>>> > > > > > > > > > > > >> > > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > > Now I have another error,
>>>> probably
>>>> > > > something
>>>> > > > > > is
>>>> > > > > > > > > wrong
>>>> > > > > > > > > > in
>>>> > > > > > > > > > > > the
>>>> > > > > > > > > > > > >> > > > > > persistence
>>>> > > > > > > > > > > > >> > > > > > > > or jdbc resources:
>>>> > > > > > > > > > > > >> > > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > > SEVERE: FAIL ...
>>>> PayoutStructureEAO:
>>>> > > >  The
>>>> > > > > > > > > reference
>>>> > > > > > > > > > > > >> > > > > > > > @PersistenceContext(name="em",
>>>> > > > > > > > unitName="gamgamEJB")
>>>> > > > > > > > > > > > cannot
>>>> > > > > > > > > > > > >> be
>>>> > > > > > > > > > > > >> > > > > resolved
>>>> > > > > > > > > > > > >> > > > > > > as
>>>> > > > > > > > > > > > >> > > > > > > > there are 2 units with the same
>>>> name.
>>>> > > > >  Update
>>>> > > > > > > your
>>>> > > > > > > > > > > > unitName
>>>> > > > > > > > > > > > >> to
>>>> > > > > > > > > > > > >> > > one
>>>> > > > > > > > > > > > >> > > > of
>>>> > > > > > > > > > > > >> > > > > > the
>>>> > > > > > > > > > > > >> > > > > > > > following:gamgamEJB 500754579
>>>> > > > > > > > > > > > >> > > > > > > > gamgamEJB 811645777
>>>> > > > > > > > > > > > >> > > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > > On Thu, Aug 30, 2012 at 1:10 PM,
>>>> Luca
>>>> > > > > Merolla
>>>> > > > > > <
>>>> > > > > > > > > > > > >> > > > > [email protected]
>>>> > > > > > > > > > > > >> > > > > > > >wrote:
>>>> > > > > > > > > > > > >> > > > > > > >
>>>> > > > > > > > > > > > >> > > > > > > >> in tomee.xml I have the
>>>> following
>>>> > > > > > > > > > > > >> > > > > > > >>
>>>> > > > > > > > > > > > >> > > > > > > >> <Deployments dir="apps/" />
>>>> > > > > > > > > > > > >> > > > > > > >>
>>>> > > > > > > > > > > > >> > > > > > > >> I have created this folder
>>>> > > > > {tomee.home}/apps
>>>> > > > > > > and
>>>> > > > > > > > I
>>>> > > > > > > > > > have
>>>> > > > > > > > > > > > put
>>>> > > > > > > > > > > > >> > > there
>>>> > > > > > > > > > > > >> > > > > the
>>>> > > > > > > > > > > > >> > > > > > > EAR
>>>> > > > > > > > > > > > >> > > > > > > >> folder but the problem is that
>>>> it
>>>> > > doesn't
>>>> > > > > > > deploy
>>>> > > > > > > > > > there.
>>>> > > > > > > > > > > > >> > > > > > > >>
>>>> > > > > > > > > > > > >> > > > > > > >> Should I make some changes to
>>>> the
>>>> > > > > > configuration
>>>> > > > > > > > to
>>>> > > > > > > > > > make
>>>> > > > > > > > > > > > >> apps
>>>> > > > > > > > > > > > >> > > > folder
>>>> > > > > > > > > > > > >> > > > > > > work?
>>>> > > > > > > > > > > > >> > > > > > > >>
>>>> > > > > > > > > > > > >> > > > > > > >> On Thu, Aug 30, 2012 at 12:19
>>>> PM,
>>>> > > Romain
>>>> > > > > > > > > Manni-Bucau
>>>> > > > > > > > > > <
>>>> > > > > > > > > > > > >> > > > > > > >> [email protected]> wrote:
>>>> > > > > > > > > > > > >> > > > > > > >>
>>>> > > > > > > > > > > > >> > > > > > > >>> Hi,
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > > >>> Did you package an ear? If so
>>>> can
>>>> > you
>>>> > > > try
>>>> > > > > to
>>>> > > > > > > put
>>>> > > > > > > > > it
>>>> > > > > > > > > > in
>>>> > > > > > > > > > > > >> apps
>>>> > > > > > > > > > > > >> > > > instead
>>>> > > > > > > > > > > > >> > > > > > of
>>>> > > > > > > > > > > > >> > > > > > > >>> webapps?
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > > >>> Jersey should work (we have a
>>>> sample
>>>> > > in
>>>> > > > > our
>>>> > > > > > > > > > examples)
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > > >>> - Romain
>>>> > > > > > > > > > > > >> > > > > > > >>> Le 30 août 2012 11:53, "Luca
>>>> > Merolla"
>>>> > > <
>>>> > > > > > > > > > > > >> > [email protected]>
>>>> > > > > > > > > > > > >> > > a
>>>> > > > > > > > > > > > >> > > > > > > écrit :
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > > >>> > Hi,
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> > I have downloaded the
>>>> snapshot
>>>> > from
>>>> > > > the
>>>> > > > > > 29th
>>>> > > > > > > > of
>>>> > > > > > > > > > > > August.
>>>> > > > > > > > > > > > >> > > > > > > >>> > Now I get a different error:
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> > Aug 30, 2012 11:43:21 AM
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > org.apache.tomee.catalina.TomcatWebAppBuilder
>>>> > > > > > > > > > > > >> > > > > > > >>> > startInternal
>>>> > > > > > > > > > > > >> > > > > > > >>> > SEVERE: Unable to deploy
>>>> collapsed
>>>> > > ear
>>>> > > > > in
>>>> > > > > > > war
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Test.ear]
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > org.apache.openejb.OpenEJBException:
>>>> > > > No
>>>> > > > > > > > provider
>>>> > > > > > > > > > > > >> available
>>>> > > > > > > > > > > > >> > > for
>>>> > > > > > > > > > > > >> > > > > > > >>> resource-ref
>>>> > > > > > > > > > > > >> > > > > > > >>> > 'null' of type
>>>> > > > > > > > > > > 'javax.servlet.http.HttpServletRequest'
>>>> > > > > > > > > > > > >> for
>>>> > > > > > > > > > > > >> > > > > > > >>> > 'pn-portone.war.Comp'.
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.AutoConfig.autoCreateResource(AutoConfig.java:1747)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1740)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > >
>>>> > > > >
>>>> > >
>>>> org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1691)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.AutoConfig.processResourceRef(AutoConfig.java:1083)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > >
>>>> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:816)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > >
>>>> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:178)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:355)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:842)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:781)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:736)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>> > > > > > > > > > > > >> > > > > > > >>> >         at
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>> >
>>>> > > > > > > > > > > > >> > > > > > > >>>
>>>> > > > > > > > > > > > >> > > > > > >
>>>> > > > > > > > > > > > >> > > > > >
>>>> > > > > > > > > > > > >> > > > >
>>>> > > > > > > > > > > > >> > > >
>>>> > > > > > > > > > > > >> > >
>>>> > > > > > > > > > > > >> >
>>>> > > > > > > > > > > > >>
>>>> > > > > > > > > > > >
>>>> > > > > > > > > > >
>>>> > > > > > > > > >
>>>> > > > > > > > >
>>>> > > > > > > >
>>>> > > > > > >
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> > org.apache.catalina.core.StandardContext.sta
>>>
>>> ...

Reply via email to