You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/07/19 17:06:20 UTC

[jira] [Resolved] (TOMEE-1545) Problem with parallel deployment + REST

     [ https://issues.apache.org/jira/browse/TOMEE-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved TOMEE-1545.
---------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 7.0.2

Issue is we use a single http destination factory for CXF (one for all applications) and in this case parallel deployments conflict

Fix (for 7.0.2) is to configure cxf to use one factory by deployment:

{code}
ยป cat apache-tomee/conf/conf.d/cxf-rs.properties
# defaults tomee should fill at first startup
server      = org.apache.openejb.server.cxf.rs.CxfRSService
auth = NONE
realm = PropertiesLogin

#
# this line request one factory per deployment
#
openejb.cxf-rs.factoryByListener = true
{code}

> 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
>            Assignee: Romain Manni-Bucau
>            Priority: Minor
>             Fix For: 7.0.2
>
>         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)