[
https://issues.apache.org/jira/browse/TOMEE-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15384476#comment-15384476
]
Romain Manni-Bucau commented on TOMEE-1545:
-------------------------------------------
Don't you get:
{code}
19-Jul-2016 18:43:13.027 SEVERE [localhost-startStop-2]
org.apache.openejb.observer.ObserverManager$MethodInvocation.invoke error
invoking org.apache.tomee.webservices.TomeeJaxRsService@6b6776cb
org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219)
at
org.apache.openejb.server.cxf.rs.CxfRsHttpListener.deployApplication(CxfRsHttpListener.java:629)
at
org.apache.openejb.server.rest.RESTService.deployApplication(RESTService.java:471)
at
org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:278)
at
org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.openejb.observer.ObserverManager$MethodInvocation.invoke(ObserverManager.java:406)
at
org.apache.openejb.observer.ObserverManager.doFire(ObserverManager.java:111)
at
org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:100)
at
org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:217)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1710)
at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:116)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:170)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: There
is an endpoint already running on http://localhost:8080/RestTest/.
at
org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:85)
at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:206)
... 27 more
{code}
in the logs as well?
> Problem with parallel deployment + REST
> ---------------------------------------
>
> Key: TOMEE-1545
> URL: https://issues.apache.org/jira/browse/TOMEE-1545
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.7.1, 7.0.0-M1, 1.7.2
> Reporter: Felipe Jaekel
> Priority: Minor
> Attachments: catalina.out
>
>
> Hi
> I mentioned on issue 1511 that REST was working fine with parallel
> deployment, but I noticed that the application stops working when the server
> is restarted. When I was creating the test case I also noticed that the first
> version deployed doesn't works too.
> I have the following changes in system.properties:
> openejb.deploymentId.format = {ejbJarId}/{ejbName}
> openejb.jndiname.format = {deploymentId}{interfaceType.annotationName}
> openejb.wsAddress.format = /{ejbName}
> server.xml: added undeployOldVersions="true" to Host
> Sample application, based on
> http://tomee.apache.org/examples-trunk/simple-rest/README.html:
> https://www.dropbox.com/s/rfeo0dmgfco1dga/RestTest%23%2320150330-1600.war?dl=0
> https://www.dropbox.com/s/biwp655xg22s6ei/RestTest%23%2320150330-1712.war?dl=0
> Results when accessing http://localhost:8080/RestTest/greetingEjb on the
> browser:
> - Deployed the first version of the application -> 404 error
> - Deployed a second version of the application -> works fine
> - Restarted server -> 404 error
> Tested with 1.7.1 plus, 1.7.2-20150404.041012-211-plus and
> 2.0.0-20150404.041007-250-plus.
> I can add the server log if it's relevant.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)