openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From redemption xc <redemption...@gmail.com>
Subject Fwd: OpenWebBeans Not Running on Java 11
Date Fri, 21 Dec 2018 07:10:46 GMT
Hi

We are migrating from Java 8 to Java 11 and with Tomcat server 9 and
OpenWebBeans 2.0.8 or its any other version, I am getting following error :
*Thanks*

11:45:21,025 E - An error occurred while starting application context path
: [/abcServer]
11:45:21,025 E - Exception sending context initialized event to listener
instance of class
[org.apache.webbeans.servlet.WebBeansConfigurationListener]
org.apache.webbeans.exception.WebBeansDeploymentException:
javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[javax.xml.parsers.DocumentBuilderFactory] is not found with the qualifiers
Qualifiers: [@javax.enterprise.inject.Default()]
for injection into Field Injection Point, field name :
documentBuilderFactory, Bean Owner : [AttributeFactory,
WebBeansType:MANAGED, Name:null, API
Types:[java.lang.Object,com.xyz.abc.query.AttributeFactory],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:356)
at
org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:137)
at
org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103)
at
org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:98)
at
org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4663)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5131)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:398)
at com.xyz.abc.tools.servers.EmbeddedServer.start(EmbeddedServer.java:131)
at com.xyz.abc.tools.servers.EmbeddedServer.main(EmbeddedServer.java:47)
Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[javax.xml.parsers.DocumentBuilderFactory] is not found with the qualifiers
Qualifiers: [@javax.enterprise.inject.Default()]
for injection into Field Injection Point, field name :
documentBuilderFactory, Bean Owner : [AttributeFactory,
WebBeansType:MANAGED, Name:null, API
Types:[java.lang.Object,com.xyz.abc.query.AttributeFactory],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
at
org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
at
org.apache.webbeans.container.InjectionResolver.checkInjectionPoint(InjectionResolver.java:251)
at
org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1232)
at org.apache.webbeans.util.WebBeansUtil.validate(WebBeansUtil.java:1506)
at
org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:1190)
at
org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:1101)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:327)
... 30 more

2018-12-20 11:45:21,106 [17664]  INFO : Setting constant home directory:
D:\\abcApp\\abc-core\\abcServer
2018-12-20 11:45:21,122 [17664]  INFO : Setting home directory:
D:\\abcApp\\abc-core\\abcServer
11:45:21,137 E - Exception sending context initialized event to listener
instance of class
[com.xyz.abc.application.impl.ApplicationControllerAdapter]
javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[javax.xml.parsers.DocumentBuilderFactory] is not found with the qualifiers
Qualifiers: [@javax.enterprise.inject.Default()]
for injection into Field Injection Point, field name :
documentBuilderFactory, Bean Owner : [License, WebBeansType:MANAGED,
Name:null, API Types:[java.lang.Object,com.xyz.abc.licensing.License],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
at
org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
at
org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:292)
at
org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:79)
at
org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
at
org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:227)
at
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:213)
at
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:203)
at
org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:126)
at org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:66)
at
org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:76)
at
org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:159)
at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)
at
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:101)
at
org.apache.webbeans.intercept.ApplicationScopedBeanInterceptorHandler.getContextualInstance(ApplicationScopedBeanInterceptorHandler.java:65)
at
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:71)
at
com.xyz.abc.licensing.License$$OwbNormalScopeProxy0.setDocument(com/xyz/abc/licensing/License.java)
at
com.xyz.abc.application.impl.ApplicationStarted.execute(ApplicationStarted.java:165)
at
com.xyz.abc.application.impl.ApplicationControllerAdapter.contextInitialized(ApplicationControllerAdapter.java:36)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4663)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5131)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:398)
at com.xyz.abc.tools.servers.EmbeddedServer.start(EmbeddedServer.java:131)
at com.xyz.abc.tools.servers.EmbeddedServer.main(EmbeddedServer.java:47)

11:45:21,137 I - WSSERVLET12: JAX-WS context listener initializing
11:45:21,137 E - One or more listeners failed to start. Full details will
be found in the appropriate container log file
11:45:21,214 E - Context [/abcServer] startup failed due to previous errors
11:45:21,214 I - WSSERVLET15: JAX-WS servlet destroyed
11:45:21,230 I - WSSERVLET13: JAX-WS context listener destroyed
11:45:21,334 E - Exception sending context destroyed event to listener
instance of class
[com.xyz.abc.application.impl.ApplicationControllerAdapter]
javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[javax.xml.parsers.DocumentBuilderFactory] is not found with the qualifiers
Qualifiers: [@javax.enterprise.inject.Default()]
for injection into Field Injection Point, field name :
documentBuilderFactory, Bean Owner : [License, WebBeansType:MANAGED,
Name:null, API Types:[java.lang.Object,com.xyz.abc.licensing.License],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
at
org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
at
org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:292)
at
org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:79)
at
org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
at
org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:227)
at
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:213)
at
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:203)
at
org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:126)
at org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:66)
at
org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:76)
at
org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:159)
at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)
at
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:101)
at
org.apache.webbeans.intercept.ApplicationScopedBeanInterceptorHandler.getContextualInstance(ApplicationScopedBeanInterceptorHandler.java:65)
at
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:71)
at
com.xyz.abc.licensing.License$$OwbNormalScopeProxy0.getFeatures(com/xyz/abc/licensing/License.java)
at
com.xyz.abc.application.impl.ApplicationStopped.execute(ApplicationStopped.java:102)
at
com.xyz.abc.application.impl.ApplicationControllerAdapter.contextDestroyed(ApplicationControllerAdapter.java:28)
at
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4710)
at
org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5353)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:398)
at com.xyz.abc.tools.servers.EmbeddedServer.start(EmbeddedServer.java:131)
at com.xyz.abc.tools.servers.EmbeddedServer.main(EmbeddedServer.java:47)

11:45:21,339 I - OpenWebBeans Container was stopped for context path,
[/abcServer]
11:45:21,346 I - WSSERVLET13: JAX-WS context listener destroyed
11:45:21,417 I - Starting ProtocolHandler ["https-jsse-nio-8443"]
Exception in thread "main"
javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[com.xyz.abc.tools.log.LogMessages] is not found with the qualifiers
Qualifiers: [@javax.enterprise.inject.Default()]
for injection into Field Injection Point, field name :  logMessages, Bean
Owner : [null]
at
org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
at
org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:292)
at
org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:79)
at
org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
at
org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:227)
at
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:213)
at
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:203)
at com.xyz.abc.inject.CDIUtils.injectFields(CDIUtils.java:37)
at com.xyz.abc.tools.log.MemoryAppender.<init>(MemoryAppender.java:24)
at com.xyz.abc.tools.servers.EmbeddedServer.start(EmbeddedServer.java:133)
at com.xyz.abc.tools.servers.EmbeddedServer.main(EmbeddedServer.java:47)

Mime
View raw message