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.startInternal(StandardContext.java:5173)
> > >>> > at
> > >>> >
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> > >>> > at
> > >>> >
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> > >>> > at
> > >>> >
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
> > >>> > at
> > >>> >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> > >>> > at
> > >>> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> > >>> > at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > >>> > at java.lang.Thread.run(Thread.java:662)
> > >>> > Aug 30, 2012 11:43:21 AM org.apache.catalina.core.ContainerBase
> > >>> removeChild
> > >>> > SEVERE: ContainerBase.removeChild: destroy:
> > >>> > org.apache.catalina.LifecycleException: An invalid Lifecycle
> > >>> transition was
> > >>> > attempted ([before_destroy]) for component
> > >>> >
> > >>> >
> > >>>
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Test.ear]]
> > >>> > in state [STARTING_PREP]
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> > >>> > at
> > >>> >
> > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> > >>> > at
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:952)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:931)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:787)
> > >>> > 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.startInternal(StandardContext.java:5173)
> > >>> > at
> > >>> >
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> > >>> > at
> > >>> >
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> > >>> > at
> > >>> >
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
> > >>> > at
> > >>> >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> > >>> > at
> > >>> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> > >>> > at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > >>> > at java.lang.Thread.run(Thread.java:662)
> > >>> > Aug 30, 2012 11:43:21 AM org.apache.catalina.core.ContainerBase
> > >>> > addChildInternal
> > >>> > SEVERE: ContainerBase.addChild: start:
> > >>> > org.apache.catalina.LifecycleException: Failed to start component
> > >>> >
> > >>> >
> > >>>
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Test.ear]]
> > >>> > at
> > >>> >
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> > >>> > at
> > >>> >
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> > >>> > at
> > >>> >
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
> > >>> > at
> > >>> >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> > >>> > at
> > >>> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> > >>> > at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > >>> > at java.lang.Thread.run(Thread.java:662)
> > >>> > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> > >>> > 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.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:790)
> > >>> > 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.startInternal(StandardContext.java:5173)
> > >>> > at
> > >>> >
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >>> > ... 11 more
> > >>> > Caused by: 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)
> > >>> > ... 17 more
> > >>> > Aug 30, 2012 11:43:21 AM org.apache.catalina.startup.HostConfig
> > >>> > deployDirectory
> > >>> > SEVERE: Error deploying web application directory
> > >>> > /home/luca/bin/apache-tomee-plus-1.1.0-SNAPSHOT/webapps/Test.ear
> > >>> > java.lang.IllegalStateException: ContainerBase.addChild: start:
> > >>> > org.apache.catalina.LifecycleException: Failed to start component
> > >>> >
> > >>> >
> > >>>
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Test.ear]]
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
> > >>> > at
> > >>> >
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> > >>> > at
> > >>> >
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
> > >>> > at
> > >>> >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> > >>> > at
> > >>> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> > >>> > at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > >>> > at
> > >>> >
> > >>> >
> > >>>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > >>> > at java.lang.Thread.run(Thread.java:662)
> > >>> > Aug 30, 2012 11:43:21 AM org.apache.coyote.AbstractProtocol start
> > >>> >
> > >>> > Should I remove CXF from TomEE or Jersey is supposed to work in the
> > >>> > snapshot version?
> > >>> >
> > >>> > Thanks in advance,
> > >>> > Luca
> > >>> >
> > >>> >
> > >>> > On Wed, Aug 29, 2012 at 6:09 PM, Romain Manni-Bucau
> > >>> > <[email protected]>wrote:
> > >>> >
> > >>> > > Hi,
> > >>> > >
> > >>> > > This is fixed on the snapshot
> > >>> > > Le 29 août 2012 15:57, "Luca Merolla" <[email protected]> a
> > >>> écrit :
> > >>> > >
> > >>> > > > Hello guys,
> > >>> > > >
> > >>> > > > I'm trying to port an application to TomEE. This application
> > makes
> > >>> > usage
> > >>> > > of
> > >>> > > > Atmosphere framework which uses Jersey to handle REST calls.
> > >>> > > >
> > >>> > > > I have tried to deploy the WAR with inside the atmosphere and
> > >>> jersey
> > >>> > jars
> > >>> > > > and later I have tried to add the jersey jars into
> > >>> {tomee.home}/lib but
> > >>> > > in
> > >>> > > > both cases I get the following error:
> > >>> > > >
> > >>> > > > WARNING: Error deploying application
> > >>> > > > /home/luca/bin/apache-tomee-plus-1.0.0/webapps/Test.ear
> > >>> > > > org.apache.openejb.OpenEJBException: No provider available for
> > >>> > > resource-ref
> > >>> > > > 'null' of type
> 'com.sun.jersey.spi.container.ResourceMethodCusto
> > >>> > > > mInvokerDispatchFactory' for 'pn-portone.war.Comp'.
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.openejb.config.AutoConfig.autoCreateResource(AutoConfig.java:1665)
> > >>> > > > at
> > >>> > > >
> > >>> >
> > >>>
> > org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1658)
> > >>> > > > at
> > >>> > > >
> > >>> >
> > >>>
> > org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1609)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.openejb.config.AutoConfig.processResourceRef(AutoConfig.java:1046)
> > >>> > > > at
> > >>> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:812)
> > >>> > > > at
> > >>> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:174)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:321)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:792)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:1015)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:123)
> > >>> > > > 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.ContainerBase.backgroundProcess(ContainerBase.java:1379)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1537)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)
> > >>> > > > at
> > >>> > > >
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1526)
> > >>> > > > at java.lang.Thread.run(Thread.java:662)
> > >>> > > >
> > >>> > > > Does anybody has any suggestion what can be the cause? I
> thought
> > it
> > >>> > might
> > >>> > > > conflict with Apache CXF so I was wondering if it's difficult
> to
> > >>> remove
> > >>> > > CXF
> > >>> > > > from TomEE.
> > >>> > > > I see that there is a file in tomee/META-INF/dependencies.xml
> > which
> > >>> > lists
> > >>> > > > the dependencies, would it be enough to edit this file?
> > >>> > > >
> > >>> > > > Thanks in advance,
> > >>> > > > Luca
> > >>> > > >
> > >>> > > >
> > >>> > > > --
> > >>> > > > *Luca Merolla*
> > >>> > > > Management, Business & Technology Consultant
> > >>> > > >
> > >>> > > >
> > >>> > > > <http://maps.google.com/maps?q=&hl=en> *Mobile:*
> +393774569974
> > >>> > > > *http://nl.linkedin.com/in/lucamerolla*
> > >>> > > > *Blog <http://lucamerolla.wordpress.com>*
> > >>> > > >
> > >>> > > >
> > >>> > > > Merolla Consulting Limited
> > >>> > > >
> > >>> > >
> > >>> >
> > >>> >
> > >>> >
> > >>> > --
> > >>> > *Luca Merolla*
> > >>> > Management, Business & Technology Consultant
> > >>> >
> > >>> >
> > >>> > <http://maps.google.com/maps?q=&hl=en> *Mobile:* +393774569974
> > >>> > *Email:* [email protected]
> > >>> > *http://nl.linkedin.com/in/lucamerolla*
> > >>> > *Blog <http://lucamerolla.wordpress.com>*
> > >>> >
> > >>> >
> > >>> > Merolla Consulting Limited
> > >>> >
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> *Luca Merolla*
> > >>
> > >> Management, Business & Technology Consultant
> > >>
> > >>
> > >> <http://maps.google.com/maps?q=&hl=en>
> > >> *Mobile:* +393774569974
> > >> *Email:* [email protected]
> > >> *http://nl.linkedin.com/in/lucamerolla*
> > >> *Blog <http://lucamerolla.wordpress.com>*
> > >>
> > >>
> > >> Merolla Consulting Limited
> > >>
> > >
> > >
> > >
> > > --
> > > *Luca Merolla*
> > > Management, Business & Technology Consultant
> > >
> > >
> > > <http://maps.google.com/maps?q=&hl=en> *Mobile:* +393774569974
> > > *Email:* [email protected]
> > > *http://nl.linkedin.com/in/lucamerolla*
> > > *Blog <http://lucamerolla.wordpress.com>*
> > >
> > >
> > > Merolla Consulting Limited
> > >
> >
> >
> >
> > --
> > *Luca Merolla*
> > Management, Business & Technology Consultant
> >
> >
> > <http://maps.google.com/maps?q=&hl=en> *Mobile:* +393774569974
> > *Email:* [email protected]
> > *http://nl.linkedin.com/in/lucamerolla*
> > *Blog <http://lucamerolla.wordpress.com>*
> >
> >
> > Merolla Consulting Limited
> >
>
--
*Luca Merolla*
Management, Business & Technology Consultant
<http://maps.google.com/maps?q=&hl=en> *Mobile:* +393774569974
*Email:* [email protected]
*http://nl.linkedin.com/in/lucamerolla*
*Blog <http://lucamerolla.wordpress.com>*
Merolla Consulting Limited