openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Testing a REST service implemented using Jersey 2.17 and OWB 1.2.17
Date Thu, 07 May 2015 14:34:59 GMT
hmm did you try not putting hk2 in your war?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-05-07 16:29 GMT+02:00 l.penet@senat.fr <l.penet@senat.fr>:

>  On 07/05/2015 14:47, Romain Manni-Bucau wrote:
>
> Did you add cdi modules? And is the jndi entry bound:
> java:comp/BeanManager? (and not java:comp/env/BeanManager)
>
>  Using OWB 1.5 can also solve it since they have a fallback using
> CDI.current()
>
> I have to admit that I am a bit reluctant to go with 1.5, as it is its
> first release, as it seemed to me that it is not a drop-in replacement for
> 1.2.x and as my project is on a very tight schedule.
>
> Anyway, I tried this option and I now have the following exception :
>
> 07-May-2015 16:26:27.138 SEVERE [http-nio-8080-exec-2]
> org.apache.catalina.core.StandardContext.listenerStart Exception lors de
> l'envoi de l'évènement contexte initialisé (context initialized) à
> l'instance de classe d'écoute (listener)
> org.apache.webbeans.servlet.WebBeansConfigurationListener
>  org.apache.webbeans.exception.WebBeansDeploymentException:
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> [org.glassfish.hk2.api.ServiceLocator] is not found with the qualifiers
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Constructor Injection Point, constructor name :
> org.glassfish.jersey.server.internal.inject.BeanParamValueFactoryProvider,
> Bean Owner : [BeanParamValueFactoryProvider, WebBeansType:MANAGED,
> Name:null, API
> Types:[org.glassfish.jersey.server.internal.inject.AbstractValueFactoryProvider,org.glassfish.jersey.server.internal.inject.BeanParamValueFactoryProvider,java.lang.Object,org.glassfish.jersey.server.spi.internal.ValueFactoryProvider],
> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
>     at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:293)
>     at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:138)
>     at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:104)
>     at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:90)
>     at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:86)
>     at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4728)
>     at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5162)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
>     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
>     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
>     at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
>     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:455)
>     at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1493)
>     at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:497)
>     at
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
>     at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
>     at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
>     at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1460)
>     at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:906)
>     at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:344)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
>     at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:613)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>     at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
>     at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
>     at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
>     at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
>     at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
>     at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>     at java.lang.Thread.run(Thread.java:745)
>
> Still looking...
>
> Ludovic
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

Mime
View raw message