[jira] [Comment Edited] (TOMEE-1683) Tests for JAX-RS Webservice based on EJBContainerRunner work in OpenEJB 4.7.3 but not in 7.0.0-M1
[ https://issues.apache.org/jira/browse/TOMEE-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15067870#comment-15067870 ] Martin Wiesner edited comment on TOMEE-1683 at 12/22/15 9:49 AM: - As I wrote: "When we run the project via maven goal "tomee:run" the endpoint is exposed and clients can successfully send requests and receive HTTP 20x codes as a reply." In the TomEE launched via maven plugin there is NO Jettison but only Johnzon. So: It works when we are using it in a non-EJBConainerRunner context... that troubles me a little?! was (Author: mawiesne): As I wrote: "When we run the project via maven goal "tomee:run" the endpoint is exposed and clients can successfully send requests and receive HTTP 20x codes as a reply." In the TomEE launched via maven plugin there is NO Jettison but only Johnzon. So: It works when we are using it in a non-EJBConainerRunner context... that troubles me little?! > Tests for JAX-RS Webservice based on EJBContainerRunner work in OpenEJB 4.7.3 > but not in 7.0.0-M1 > - > > Key: TOMEE-1683 > URL: https://issues.apache.org/jira/browse/TOMEE-1683 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server >Affects Versions: 7.0.0-M1 > Environment: MacOS-10.11.2 / Linux (Ubuntu 14.04 LTS) - Maven 3.3.9 - > Java 8 (Oracle, 1.8.0-b66) >Reporter: Martin Wiesner >Priority: Critical > Labels: maven, test > Fix For: 7.0.0-M2 > > > I got a couple of JUnit Tests (> 200) based on > @RunWith(EJBContainerRunner.class) annotation which stopped working when > codebase is updated to use/run with TomEE/OpenEJB 7.0.0-M1. > I reproduced this on several projects and build a minimal example that shows > that the given Test passes with OpenEJB 4.7.3 and TomEE 1.7.3 (or: 1.7.2) but > not when we use "7.0.0-M1". The pom.xml of the example project has commented > lines for the older variant in order to quickly switch the environment. > Demo Project is available for download here: > https://download.mi.hs-heilbronn.de/tomee/ejb-container-runner-demo-ws.zip > As it seems, the environment launched via "@EJBContainerRunner" does not > start/expose the JAX-RS annotated webservice endpoint so clients can send > requests. Again, in 4.7.3/1.7.3 this worked like a charm. When we run the > project via maven goal "tomee:run" the endpoint is exposed and clients can > successfully send requests and receive HTTP 20x codes as a reply. > Maybe [~rmannibucau] could have a look at it? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (TOMEE-1683) Tests for JAX-RS Webservice based on EJBContainerRunner work in OpenEJB 4.7.3 but not in 7.0.0-M1
[ https://issues.apache.org/jira/browse/TOMEE-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15067857#comment-15067857 ] Martin Wiesner edited comment on TOMEE-1683 at 12/22/15 9:40 AM: - [~rmannibucau] Nop, I removed that completely from the project and from pom.xml (via build-helper-maven-plugin). Still the same issue, Test fails: Tests in error: DeviceWebServiceTest.testCreateDevice:37 » Processing java.net.SocketTimeoutEx... Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 As I said: Even with "weppapp" in classpath this works successfully with 4.7.3/1.7.3 was (Author: mawiesne): [~rmannibucau] Nop, I removed that completely from the project and from pom.xml (via build-helper-maven-plugin). Still the same issue, Test fails: Tests in error: DeviceWebServiceTest.testCreateDevice:37 » Processing java.net.SocketTimeoutEx... Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 As I said: Even with "weppapp" this works successfully with 4.7.3/1.7.3 > Tests for JAX-RS Webservice based on EJBContainerRunner work in OpenEJB 4.7.3 > but not in 7.0.0-M1 > - > > Key: TOMEE-1683 > URL: https://issues.apache.org/jira/browse/TOMEE-1683 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server >Affects Versions: 7.0.0-M1 > Environment: MacOS-10.11.2 / Linux (Ubuntu 14.04 LTS) - Maven 3.3.9 - > Java 8 (Oracle, 1.8.0-b66) >Reporter: Martin Wiesner >Priority: Critical > Labels: maven, test > Fix For: 7.0.0-M2 > > > I got a couple of JUnit Tests (> 200) based on > @RunWith(EJBContainerRunner.class) annotation which stopped working when > codebase is updated to use/run with TomEE/OpenEJB 7.0.0-M1. > I reproduced this on several projects and build a minimal example that shows > that the given Test passes with OpenEJB 4.7.3 and TomEE 1.7.3 (or: 1.7.2) but > not when we use "7.0.0-M1". The pom.xml of the example project has commented > lines for the older variant in order to quickly switch the environment. > Demo Project is available for download here: > https://download.mi.hs-heilbronn.de/tomee/ejb-container-runner-demo-ws.zip > As it seems, the environment launched via "@EJBContainerRunner" does not > start/expose the JAX-RS annotated webservice endpoint so clients can send > requests. Again, in 4.7.3/1.7.3 this worked like a charm. When we run the > project via maven goal "tomee:run" the endpoint is exposed and clients can > successfully send requests and receive HTTP 20x codes as a reply. > Maybe [~rmannibucau] could have a look at it? -- This message was sent by Atlassian JIRA (v6.3.4#6332)