tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Jaekel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-1545) Problem with parallel deployment + REST
Date Mon, 17 Aug 2015 20:43:45 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14700185#comment-14700185
] 

Felipe Jaekel commented on TOMEE-1545:
--------------------------------------

Hi,

I tested today with apache-tomee-7.0.0-20150518.041133-5-plus.

When I deploy for the first time or restart the server, I see this on the log:

INFORMAÇÕES - REST Application: http://localhost:8080/RestTest/             -> org.apache.openejb.server.rest.InternalApplication
INFORMAÇÕES -      Service URI: http://localhost:8080/RestTest/greetingEjb  ->  EJB org.superbiz.rest.GreetingServiceEjb
INFORMAÇÕES -               GET http://localhost:8080/RestTest/greetingEjb/ ->      String
message()        
INFORMAÇÕES -              POST http://localhost:8080/RestTest/greetingEjb/ ->      String
lowerCase(String)

But when I try to access the service on the browser, I get 404 error.

On subsequent deploys the version number is appended, then it works:

INFORMAÇÕES - REST Application: http://localhost:8080/RestTest%23%2320150330-1712/     
       -> org.apache.openejb.server.rest.InternalApplication
INFORMAÇÕES -      Service URI: http://localhost:8080/RestTest%23%2320150330-1712/greetingEjb
 ->  EJB org.superbiz.rest.GreetingServiceEjb
INFORMAÇÕES -               GET http://localhost:8080/RestTest%23%2320150330-1712/greetingEjb/
->      String message()        
INFORMAÇÕES -              POST http://localhost:8080/RestTest%23%2320150330-1712/greetingEjb/
->      String lowerCase(String)


Maybe this is related: https://issues.apache.org/jira/browse/TOMEE-1412

Thanks again for your time

> 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)

Mime
View raw message