[jira] [Updated] (TOMEE-2148) 404 in multiple jax rs application context

2017-11-17 Thread JIRA

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

Florent Ulvé updated TOMEE-2148:

Description: 
When deploying a war file containing mulitple jax rs application, some jax rs 
routes return a http code 404 if one application have a empty @ApplicationPath.

Note : provider auto scanning have to be disable.

Example:


{code:java}
@ApplicationPath("/")
public class App1 extends Application{

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello.class);
return set;
}

}
{code}


{code:java}
@ApplicationPath("/app2")
public class App2 extends Application {

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello2.class);
return set;
}

}
{code}

disable auto scanning in openejb-jar.xml
{code:xml}

http://www.openejb.org/openejb-jar/1.1;>


cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  

{code}

Deployment log are  Ok but when trying to access an App2 route 
http://localhost:8080/war/app2/hello an 404 NotFoundException is thrown:


{code:java}
nov. 17, 2017 7:24:35 PM 
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
AVERTISSEMENT: javax.ws.rs.NotFoundException: HTTP 404 Not Found
at 
org.apache.cxf.jaxrs.utils.SpecExceptions.toNotFoundException(SpecExceptions.java:89)
at 
org.apache.cxf.jaxrs.utils.ExceptionUtils.toNotFoundException(ExceptionUtils.java:129)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:169)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
{code}








  was:
When deploying a war file containing mulitple jax rs application, all jax rs 
routes return a http code 404 if one application have a empty @ApplicationPath.

Note : provider auto scanning have to be disable.

Example:


{code:java}
@ApplicationPath("/")
public class App1 extends Application{

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello.class);
return set;
}

}
{code}


{code:java}
@ApplicationPath("/app2")
public class App2 extends Application {

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello2.class);
return set;
}

}
{code}

disable auto scanning in openejb-jar.xml
{code:xml}

http://www.openejb.org/openejb-jar/1.1;>


cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  

{code}

Deployment log are  Ok but when trying to access an App2 route 
http://localhost:8080/war/app2/hello an 404 NotFoundException is thrown:


{code:java}
nov. 17, 2017 7:24:35 PM 
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
AVERTISSEMENT: javax.ws.rs.NotFoundException: HTTP 404 Not Found
at 
org.apache.cxf.jaxrs.utils.SpecExceptions.toNotFoundException(SpecExceptions.java:89)
at 
org.apache.cxf.jaxrs.utils.ExceptionUtils.toNotFoundException(ExceptionUtils.java:129)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:169)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
{code}









> 404 in multiple jax rs application context
> --
>
> Key: TOMEE-2148
> URL: https://issues.apache.org/jira/browse/TOMEE-2148
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 7.0.4
>Reporter: Florent Ulvé
>Priority: Minor
>
> When deploying a war file containing mulitple jax rs application, some jax rs 
> routes return a http code 404 if one application have a empty 
> @ApplicationPath.
> Note : provider auto scanning have to be disable.
> 

[jira] [Updated] (TOMEE-2148) 404 in multiple jax rs application context

2017-11-17 Thread JIRA

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

Florent Ulvé updated TOMEE-2148:

Description: 
When deploying a war file containing mulitple jax rs application, all jax rs 
routes return a http code 404 if one application have a empty @ApplicationPath.

Note : provider auto scanning have to be disable.

Example:


{code:java}
@ApplicationPath("/")
public class App1 extends Application{

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello.class);
return set;
}

}
{code}


{code:java}
@ApplicationPath("/app2")
public class App2 extends Application {

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello2.class);
return set;
}

}
{code}

disable auto scanning in openejb-jar.xml
{code:xml}

http://www.openejb.org/openejb-jar/1.1;>


cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  

{code}

Deployment log are  Ok but when trying to access an App2 route 
http://localhost:8080/war/app2/hello an 404 NotFoundException is thrown:


{code:java}
nov. 17, 2017 7:24:35 PM 
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
AVERTISSEMENT: javax.ws.rs.NotFoundException: HTTP 404 Not Found
at 
org.apache.cxf.jaxrs.utils.SpecExceptions.toNotFoundException(SpecExceptions.java:89)
at 
org.apache.cxf.jaxrs.utils.ExceptionUtils.toNotFoundException(ExceptionUtils.java:129)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:169)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
{code}








  was:
When deploying a war file containing mulitple jax rs application, all jax rs 
routes return a http code 404 if one application have a empty @ApplicationPath.

Note : provider auto scanning have to be disable.

Example:


{code:java}
@ApplicationPath("/")
public class App1 extends Application{

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello.class);
return set;
}

}
{code}


{code:java}
@ApplicationPath("/app2")
public class App2 extends Application {

@Override
public Set getClasses() {
LinkedHashSet set = new LinkedHashSet();
set.add(Hello2.class);
return set;
}

}
{code}

disable auto scanning in openejb-jar.xml
{code:xml}

http://www.openejb.org/openejb-jar/1.1;>


cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  
 

cxf.jaxrs.skip-provider-scanning = true

  

{code}

Deployment log are  Ok but when trying to access a route an exception is thrown:


{code:java}
nov. 17, 2017 7:24:35 PM 
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
AVERTISSEMENT: javax.ws.rs.NotFoundException: HTTP 404 Not Found
at 
org.apache.cxf.jaxrs.utils.SpecExceptions.toNotFoundException(SpecExceptions.java:89)
at 
org.apache.cxf.jaxrs.utils.ExceptionUtils.toNotFoundException(ExceptionUtils.java:129)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:169)
at 
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
{code}









> 404 in multiple jax rs application context
> --
>
> Key: TOMEE-2148
> URL: https://issues.apache.org/jira/browse/TOMEE-2148
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 7.0.4
>Reporter: Florent Ulvé
>Priority: Minor
>
> When deploying a war file containing mulitple jax rs application, all jax rs 
> routes return a http code 404 if one application have a empty 
> @ApplicationPath.
> Note : provider auto scanning have to be disable.
> Example:
> {code:java}
> @ApplicationPath("/")
> public 

[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-17 Thread Romain Manni-Bucau (JIRA)

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

Romain Manni-Bucau commented on TOMEE-1825:
---

[~modest...@gmail.com] yes

> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (TOMEE-1825) allow to configure converters for johnzon jaxrs provider

2017-11-17 Thread Andre Rodrigues (JIRA)

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

Andre Rodrigues commented on TOMEE-1825:


Thank you Ramain Manni-Bucau.

The problem was that TomEE 7.0.3 uses Johnzon version 1.0.0 and I was using 
version 1.1.4.
So, I did the following:
1) I removed johnzon-*-1.0.0.jar files from TomEE libs dir;
2) I copied johnzon-*-1.1.4.jar, geronimo-jsonb_1.0_spec-1.0.jar and 
geronimo-json_1.1_spec-1.0.jar to TomEE libs dir.

After that every thing worked, except the new attribute 'deduplicateObjects'... 
and I think that's beacuse the method 'setDeduplicateObjects' in 
'ConfigurableJohnzonProvider' should return 'void' insted of 'MapperBuilder'. 
Am I corret?

Thanks very much.


> allow to configure converters for johnzon jaxrs provider
> 
>
> Key: TOMEE-1825
> URL: https://issues.apache.org/jira/browse/TOMEE-1825
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 7.0.1
>
>
> org.apache.openejb.server.cxf.rs.johnzon.TomEEConfigurableJohnzon extends 
> johnzon one and has converter (single), converters (collection:$ref1,$ref2) 
> an adapter/adatpers setters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)