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: Problem when placing jar in tomcat/lib
Date Wed, 13 May 2015 09:20:17 GMT
Bonjour Ludovic,

are you sure there is no javax.inject API in the webapp?


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-13 11:18 GMT+02:00 l.penet@senat.fr <l.penet@senat.fr>:

> Dear all,
>
> I currently working on a project which features multiple, small,
> KISS-philosophy, webapps sharing a common lib (a common jar in java).
>
> Those webapps work perfectly fine when I include the common lib in all of
> them.
>
> I am now trying to share this common jar between webapps. What I do is I
> place it in Tomcat lib directory and set the dependency as provided in the
> webapps pom.xml.
>
> When I do this way, I have the exception copy/pasted at the end of this
> message. Do you have an idea of what can cause this problem ? Is there a
> setting I should use ?
>
> In the logs, I can see that OWB is properly initialized, that the jar I
> placed in tomcat/lib is scanned at webapp startup and that beans are found.
>
> I am using Tomcat 8.0.21 / Java 8u45, OWB 1.5.0.
>
> Thanks in advance,
>
> Ludovic
>
> ========
>
> 13-May-2015 10:30:48.250 WARNING [http-nio-8444-exec-7]
> org.glassfish.jersey.internal.Errors.logErrors The following warnings have
> been detected: WARNING: Unknown HK2 failure detected:
> MultiException stack 1 of 1
> org.apache.webbeans.exception.ProxyGenerationException:
> java.lang.IllegalArgumentException: Can not set javax.inject.Provider field
> fr.senat.presences.rest.api.v1.ActivitesRestService$$OwbNormalScopeProxy0.owbContextualInstanceProvider
> to org.apache.webbeans.web.intercept.RequestScopedBeanInterceptorHandler
>         at
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyInstance(NormalScopeProxyFactory.java:302)
>         at
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createNormalScopeProxy(NormalScopeProxyFactory.java:152)
>         at
> org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:763)
>         at
> org.apache.webbeans.container.InjectableBeanManager.getReference(InjectableBeanManager.java:165)
>         at
> org.glassfish.jersey.ext.cdi1x.internal.CdiBeanHk2Factory$1.getInstance(CdiBeanHk2Factory.java:122)
>         at
> org.glassfish.jersey.ext.cdi1x.internal.CdiBeanHk2Factory.provide(CdiBeanHk2Factory.java:89)
>         at
> org.jvnet.hk2.internal.FactoryCreator.create(FactoryCreator.java:152)
>         at
> org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:470)
>         at
> org.jvnet.hk2.internal.PerLookupContext.findOrCreate(PerLookupContext.java:69)
>         at
> org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2064)
>         at
> org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:712)
>         at
> org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:654)
>         at
> org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:169)
>         at
> org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:185)
>         at
> org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:74)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:109)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:92)
>         at
> org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:61)
>         at
> org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
>         at
> org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:297)
>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
>         at
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
>         at
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288)
>         at
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110)
>         at
> org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401)
>         at
> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
>         at
> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
>         at
> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)
>         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.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:614)
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>         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:518)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
>         at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

Mime
View raw message