I only work with The tomee plugin.
I'll try to deactivate the tomee jaxrs but i don't understand where i have
tout put The property ? In conf/system.properties ?
Le 2 juil. 2014 19:13, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
[email protected]> a écrit :

> check you local installation or reproduce it with tomee maven plugin
> to let us dig.
>
> Maybe try forcing tomee jaxrs to be deactivated:
> conf/conf.d/cxf-rs.properties and set disabled = true.
>
> BTW you don't need jersey to do JAXRS with tomee.
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-07-02 18:49 GMT+02:00 herau <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4670275&i=0>>:
>
> > spring is configured to /titi and a Jersey filter is set to /titi/api
> for
> > Rest resources (with org.springframework.security.web.FilterChainProxy)
> >
> > /titi/api works (even if i still have the Execption : invoking
> > Observer{class=org.apache.tomee.webservices.TomeeJaxRsService})
> >
> > but /titi is ko
> >
> > 2014-07-02 18:47:15,995 ERROR
> > com.dassault_systemes.dsi.servlet.ErrorServlet : Exception caught lately
> in
> > web layer
> > java.lang.NullPointerException
> >  at
> >
> org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:170)
>
> > at org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> > at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> >  at
> >
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>
> > at
> >
> com.dassault_systemes.dsi.cas.DsiStandaloneCasFilter.doFilter(DsiStandaloneCasFilter.java:35)
>
> >  at
> >
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>
> > at
> >
> com.dassault_systemes.dsi.servlet.SetupFilter.doFilter(SetupFilter.java:98)
> >  at
> >
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>
> > at
> >
> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
>
> >  at
> >
> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
>
> > at
> >
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
>
> >  at
> >
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
>
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> > at
> >
> com.dassault_systemes.dsi.servlet.VaryFilter.doFilterInternal(VaryFilter.java:31)
>
> >  at
> >
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
>
> > at
> >
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
>
> >  at
> >
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
>
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> > at
> >
> com.dassault_systemes.dsi.servlet.XForwardedFilter.doFilter(XForwardedFilter.java:919)
>
> >  at
> >
> com.dassault_systemes.dsi.servlet.XForwardedFilter.doFilter(XForwardedFilter.java:1015)
>
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> >  at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>
> > at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> >  at
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>
> >  at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
>
> > at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
> >  at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> >  at
> >
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
>
> > at
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
>
> >  at
> >
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
>
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
> >  at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
> > at java.lang.Thread.run(Thread.java:744)
> >
> >
> > ErrorServlet is configured like this :
> >
> > <servlet>
> >         <servlet-name>ErrorServlet</servlet-name>
> >
> >
> <servlet-class>com.dassault_systemes.dsi.servlet.ErrorServlet</servlet-class>
>
> >     </servlet>
> >     <servlet-mapping>
> >         <servlet-name>ErrorServlet</servlet-name>
> >         <url-pattern>/WEB-INF/ErrorServlet</url-pattern>
> >     </servlet-mapping>
> >     <error-page>
> >         <error-code>500</error-code>
> >         <location>/WEB-INF/ErrorServlet</location>
> >     </error-page>
> >
> >
> > 2014-07-02 17:32 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4670275&i=1>>:
> >
> >> no, this works fine. Did you ensure there is no mapping conflict
> >> between both? (/spring/* and /rest/* instead of /spring/* and
> >> /spring/rest/* for instance)
> >>
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >> 2014-07-02 17:16 GMT+02:00 herau <[hidden email]
> >> <http://user/SendEmail.jtp?type=node&node=4670273&i=0>>:
> >>
> >> > If i set in my system.properties this property :
> >> >
> >> > *openejb.jaxrs.application = false*
> >> >
> >> > i can go to my index page but my rest ressources doesn't works.
> >> >
> >> > my index page is rendered with spring mvc but my rest api is managed
> by
> >> > jersey (through a filter declared in spring security)
> >> >
> >> > any known issue with spring mvc
> >> > and org.springframework.security.web.FilterChainProxy ?
> >> >
> >> >
> >> >
> >> > 2014-07-02 15:41 GMT+02:00 Aurélien Leboulanger <
> >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4670273&i=1>>:
>
> >> >
> >> >> i run only one instance of tomee.
> >> >>
> >> >> i use tomEE+ 1.6.0 and i only modify the conf/system.properties to
> add
> >> the
> >> >> jersey property.
> >> >>
> >> >> i have the same issue with the tomee plugin :
> >> >>
> >> >> <plugin>
> >> >>                 <groupId>org.apache.openejb.maven</groupId>
> >> >>                 <artifactId>tomee-maven-plugin</artifactId>
> >> >>                 <version>1.6.0</version>
> >> >>                 <configuration>
> >> >>                     <systemVariables>
> >> >>
> >> >>
> >>
> <com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager>true</com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager>
>
> >>
> >> >>                     </systemVariables>
> >> >>                     <!--<path>/wp</path>-->
> >> >>                     <context>wp</context>
> >> >>                     <tomeeClassifier>plus</tomeeClassifier>
> >> >>                      <libs>
> >> >>                         <lib>mysql:mysql-connector-java:5.1.23</lib>
> >> >>                     </libs>
> >> >>                 </configuration>
> >> >>             </plugin>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> 2014-07-02 12:41 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB]
> <
> >> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4670273&i=2>>:
>
> >>
> >> >>
> >> >>  hi
> >> >>>
> >> >>> yes the conf/system.property is global.
> >> >>>
> >> >>> I use jersey with 1.6.0.2 without much more than this property.
> >> >>>
> >> >>> something is weird, dont you have another tomee instance running
> >> >>> somewhere? seems you run on webprofile but then the error can't
> happen
> >> >>> since these classes are nor here
> >> >>>
> >> >>>
> >> >>>
> >> >>> Romain Manni-Bucau
> >> >>> Twitter: @rmannibucau
> >> >>> Blog: http://rmannibucau.wordpress.com/
> >> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> >>> Github: https://github.com/rmannibucau
> >> >>>
> >> >>>
> >> >>> 2014-07-02 10:42 GMT+02:00 herau <[hidden email]
> >> >>> <http://user/SendEmail.jtp?type=node&node=4670267&i=0>>:
> >> >>>
> >> >>> > maybe helpful to known that when i launch TomEE, i have this kind
> of
> >> >>> logs :
> >> >>> >
> >> >>> > Jul 02, 2014 10:38:57 AM org.apache.tomee.catalina.TomcatLoader
> >> >>> > optionalService
> >> >>> > INFO: Optional service not installed:
> >> >>> > org.apache.tomee.webservices.TomeeJaxRsService
> >> >>> > Jul 02, 2014 10:38:57 AM org.apache.tomee.catalina.TomcatLoader
> >> >>> > optionalService
> >> >>> > INFO: Optional service not installed:
> >> >>> > org.apache.tomee.webservices.TomeeJaxWsService
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > View this message in context:
> >> >>>
> >>
> http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670266.html
> >> >>>
> >> >>> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >> >>>
> >> >>>
> >> >>> ------------------------------
> >> >>>  If you reply to this email, your message will be added to the
> >> >>> discussion below:
> >> >>>
> >> >>>
> >>
> http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670267.html
> >> >>>  To unsubscribe from IllegalArgument TomEEJaxRsService, click here
> >> >>> <
> >>
> >> >>> .
> >> >>> NAML
> >> >>> <
> >>
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Aurélien Leboulanger
> >> >> portail web : http://etudiant.univ-mlv.fr/~aleboula/
> >> >> 06 - 87 - 75 - 44 - 87
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Aurélien Leboulanger
> >> > portail web : http://etudiant.univ-mlv.fr/~aleboula/
> >> > 06 - 87 - 75 - 44 - 87
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670272.html
> >>
> >> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670273.html
> >>  To unsubscribe from IllegalArgument TomEEJaxRsService, click here
> >> <
> >> .
> >> NAML
> >> <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> > --
> > Aurélien Leboulanger
> > portail web : http://etudiant.univ-mlv.fr/~aleboula/
> > 06 - 87 - 75 - 44 - 87
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670274.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670275.html
>  To unsubscribe from IllegalArgument TomEEJaxRsService, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4670252&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzAyNTJ8LTgzNDU4MTk5MA==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/IllegalArgument-TomEEJaxRsService-tp4670252p4670276.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to