deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Martínez <mnesa...@gmail.com>
Subject Shared deltaspike jars in tomcat lib folder
Date Tue, 27 Jun 2017 05:16:59 GMT
Hi Guys,

I am trying to create a custom tomcat distributable with deltaspike
included as server lib. So I can add many wars without duplicated jars. But
it does not work. It throws this exception at deploy time:

Caused by: org.apache.webbeans.exception.WebBeansDeploymentException: Error
while sending SystemEvent to a CDI Extension!
org.apache.webbeans.portable.events.discovery.AfterDeploymentValidationImpl@2306666c
    at
org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:697)
    at
org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:490)
    at
org.apache.webbeans.container.BeanManagerImpl.fireLifecycleEvent(BeanManagerImpl.java:485)
    at
org.apache.webbeans.config.BeansDeployer.fireAfterDeploymentValidationEvent(BeansDeployer.java:723)
    at
org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:316)
    at
org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:196)
    ... 20 more
Caused by: org.apache.webbeans.exception.WebBeansException:
java.lang.reflect.InvocationTargetException
    at
org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:318)
    at
org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:676)
    ... 25 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at
org.apache.webbeans.event.ObserverMethodImpl.invoke(ObserverMethodImpl.java:347)
    at
org.apache.webbeans.event.ContainerEventObserverMethodImpl.invoke(ContainerEventObserverMethodImpl.java:82)
    at
org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:312)
    ... 26 more
Caused by: java.lang.IllegalStateException: Could not find beans for
Type=class org.apache.deltaspike.core.impl.scope.window.WindowBeanHolder
and qualifiers:[]
    at
org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:153)
    at
org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension.initializeDeltaSpikeContexts(DeltaSpikeContextExtension.java:85)
    ... 33 more


Can you tell me if is it possible to put the jars in the server lib folder,
or is it mandatory to include them in each war?

Thanks for your time and for the great work.

Cheers,

Frank.

-- 
Frank D. Martínez M.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message