Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.7.1, 1.7.2, 7.0.0-M1
-
None
-
None
Description
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