You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Anthony Fryer <ap...@hotmail.com> on 2013/11/25 06:33:55 UTC
tomee 1.6.0 plus error deploying app with jax-rs
I've just deployed an application that i had running in tomee1.5.2 into tomee
1.6.0. When the application starts up, i get the following error printed
out to the console that i didn't get when deploying to tomee 1.5.2. Any
ideas what might be causing this?
25/11/2013 3:28:13 PM org.apache.openejb.server.rest.RESTService
logOldDeploymentUsage
INFO: Using deployment by endpoint instead of by application for JAXRS
deployment because an old configuration (by class/ejb) was found on
com.thc.lc.rest.system.GroupService
25/11/2013 3:28:14 PM org.apache.openejb.server.cxf.rs.CxfRsHttpListener
configureFactory
INFO: Using providers [com.thc.lc.rest.EJBExceptionMapper@6bcedaf2,
org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider@59887d29,
com.thc.lc.rest.DateParameterHandler@fd13cab,
com.thc.lc.rest.JsonProvider@71e606a9,
com.thc.lc.rest.LCExceptionMapper@34bf7baa]
25/11/2013 3:28:14 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
http://localhost:8080/LemonadeCloud
25/11/2013 3:28:14 PM org.apache.openejb.server.rest.RESTService deployPojo
INFO: REST Service: http://localhost:8080/LemonadeCloud/service/group/* ->
Pojo com.thc.lc.rest.system.GroupService
25/11/2013 3:28:14 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
http://localhost:8080/LemonadeCloud
25/11/2013 3:28:14 PM org.apache.openejb.observer.ObserverManager fireEvent
SEVERE: error invoking
Observer{class=org.apache.tomee.webservices.TomeeJaxRsService}
org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:194)
at
org.apache.openejb.server.cxf.rs.CxfRsHttpListener.deploy(CxfRsHttpListener.java:291)
at
org.apache.openejb.server.cxf.rs.CxfRsHttpListener.deployPojo(CxfRsHttpListener.java:248)
at
org.apache.openejb.server.rest.RESTService.deployPojo(RESTService.java:712)
at
org.apache.openejb.server.rest.RESTService.fullServletDeployment(RESTService.java:409)
at
org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:276)
at
org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:51)
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.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:149)
at
org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
at
org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:108)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1600)
at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.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:402)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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: java.lang.RuntimeException: Already a destination on
http://localhost:8080/LemonadeCloud
at
org.apache.cxf.transport.http.DestinationRegistryImpl.addDestination(DestinationRegistryImpl.java:49)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.activate(AbstractHTTPDestination.java:853)
at
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
at
org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
at
org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:89)
at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:185)
... 26 more
--
View this message in context: http://openejb.979440.n4.nabble.com/tomee-1-6-0-plus-error-deploying-app-with-jax-rs-tp4666376.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: tomee 1.6.0 plus error deploying app with jax-rs
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Can you reproduce it?
Le 25 nov. 2013 06:35, "Anthony Fryer" <ap...@hotmail.com> a écrit :
> I've just deployed an application that i had running in tomee1.5.2 into
> tomee
> 1.6.0. When the application starts up, i get the following error printed
> out to the console that i didn't get when deploying to tomee 1.5.2. Any
> ideas what might be causing this?
>
> 25/11/2013 3:28:13 PM org.apache.openejb.server.rest.RESTService
> logOldDeploymentUsage
> INFO: Using deployment by endpoint instead of by application for JAXRS
> deployment because an old configuration (by class/ejb) was found on
> com.thc.lc.rest.system.GroupService
> 25/11/2013 3:28:14 PM org.apache.openejb.server.cxf.rs.CxfRsHttpListener
> configureFactory
> INFO: Using providers [com.thc.lc.rest.EJBExceptionMapper@6bcedaf2,
> org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider@59887d29,
> com.thc.lc.rest.DateParameterHandler@fd13cab,
> com.thc.lc.rest.JsonProvider@71e606a9,
> com.thc.lc.rest.LCExceptionMapper@34bf7baa]
> 25/11/2013 3:28:14 PM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be
> http://localhost:8080/LemonadeCloud
> 25/11/2013 3:28:14 PM org.apache.openejb.server.rest.RESTService deployPojo
> INFO: REST Service: http://localhost:8080/LemonadeCloud/service/group/* ->
> Pojo com.thc.lc.rest.system.GroupService
> 25/11/2013 3:28:14 PM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be
> http://localhost:8080/LemonadeCloud
> 25/11/2013 3:28:14 PM org.apache.openejb.observer.ObserverManager fireEvent
> SEVERE: error invoking
> Observer{class=org.apache.tomee.webservices.TomeeJaxRsService}
> org.apache.cxf.service.factory.ServiceConstructionException
> at
>
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:194)
> at
>
> org.apache.openejb.server.cxf.rs.CxfRsHttpListener.deploy(CxfRsHttpListener.java:291)
> at
>
> org.apache.openejb.server.cxf.rs.CxfRsHttpListener.deployPojo(CxfRsHttpListener.java:248)
> at
> org.apache.openejb.server.rest.RESTService.deployPojo(RESTService.java:712)
> at
>
> org.apache.openejb.server.rest.RESTService.fullServletDeployment(RESTService.java:409)
> at
>
> org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:276)
> at
>
> org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:51)
> 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.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:149)
> at
>
> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
> at
> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:108)
> at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1600)
> at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.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:402)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> 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: java.lang.RuntimeException: Already a destination on
> http://localhost:8080/LemonadeCloud
> at
>
> org.apache.cxf.transport.http.DestinationRegistryImpl.addDestination(DestinationRegistryImpl.java:49)
> at
>
> org.apache.cxf.transport.http.AbstractHTTPDestination.activate(AbstractHTTPDestination.java:853)
> at
>
> org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
> at
>
> org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
> at
>
> org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:89)
> at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
> at
>
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:185)
> ... 26 more
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/tomee-1-6-0-plus-error-deploying-app-with-jax-rs-tp4666376.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>