You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by zeeman <ha...@fastmail.us> on 2012/07/06 18:05:13 UTC

CDI @Requires issue with Tomee

Seam security module has a @Requires on drools. If drools jar is not on class
path Seam logs a warning. But this should not fail, on jBoss 7 the server
still loads and a message is logged. But on Tomee the server stops and shows
a class not found exception. 

In seam security check
org.jboss.seam.security.permission.RuleBasedPermissionResolver and how it
uses @Requires("org.drools.KnowledgeBase"). To get around this I have to
include drools api and compiler as dependencies, which adds over 3.5mb of
unneeded jars. Anyway to fix this?

On seam forum  jBoss https://community.jboss.org/message/731656#731656

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
yes add it as system property (or in conf/system.properties)

- Romain


2012/7/9 zeeman <ha...@fastmail.us>

> So should I pass -Dopenejb.cdi.skip-class-not-found=true  to Tomee JVM or
> forget about it, live with extra jars in my WAR?
>
> Yes, some design decisions in Seam don't make sense. But it works for the
> most part. Too bad CODI is not well marketed and was not mature enough when
> Seam 3 was released.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656186.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
So should I pass -Dopenejb.cdi.skip-class-not-found=true  to Tomee JVM or
forget about it, live with extra jars in my WAR?

Yes, some design decisions in Seam don't make sense. But it works for the
most part. Too bad CODI is not well marketed and was not mature enough when
Seam 3 was released.

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656186.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
the alternative is useless since it doesn"t replace the bean when it fails
(it is done later).

i just added the need of the flag openejb.cdi.skip-class-not-found=true
(system property for instance) since skipping beans not loadable can lead
to error in normal case.

Here @Requires still sounds weird for me (and some others ;)) so i prefer
to not break the default behavior.

- Romain


2012/7/9 zeeman <ha...@fastmail.us>

> So you pushed some Tomee changes that got it to work with alternative? Is
> the
> snapshot build ready for me to test it?
>
> Thanks for spotting the misspelling in alternative. I hope Deltaspike will
> be released soon to relieve developers from fragmented CDI/JSF extensions.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656184.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
So you pushed some Tomee changes that got it to work with alternative? Is the
snapshot build ready for me to test it?

Thanks for spotting the misspelling in alternative. I hope Deltaspike will
be released soon to relieve developers from fragmented CDI/JSF extensions.

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656184.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
your alternative is in come package, not com.

pushed some more changed, if it doesnt break tck thats fine otherwise thats
not possible

- Romain


2012/7/9 zeeman <ha...@fastmail.us>

> hi Romain,
>
> I have updated the project as you asked. Also, I added @Alternative config,
> hopefully you'll spot what I missed.
>
> Finally, I have the drools dependency disabled in POM (line 301) so  you'll
> get the error when you start Tomee. If you enable it, Tomee will start
> fine.
>
> The offending class that requires Drools is RuleBasedPermissionResolver
> from
> seam security. If you use Eclipse, it should pull the source for it
> automatically.
>
> https://github.com/z00/test
>
> Thanks!
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656178.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
hi Romain,

I have updated the project as you asked. Also, I added @Alternative config,
hopefully you'll spot what I missed.

Finally, I have the drools dependency disabled in POM (line 301) so  you'll
get the error when you start Tomee. If you enable it, Tomee will start fine.

The offending class that requires Drools is RuleBasedPermissionResolver from
seam security. If you use Eclipse, it should pull the source for it
automatically.

https://github.com/z00/test

Thanks!

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656178.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hmm, means you need to add used methods.

Not sure why alternative doesnt work.

Can you update your sample please (and remove skipcurrent project fron
tomee plugin and remove the finalname)?
Le 9 juil. 2012 04:00, "zeeman" <ha...@fastmail.us> a écrit :

> I mocked drools classes under their own package. I get below:
>
> It would have been nice to get the alternative to work, but it does not
> seem
> to get picked up.
>
> java.lang.VerifyError: (class:
> org/jboss/seam/security/permission/RuleBasedPermissionResolver, method:
> synchronizeContext signature: ()V) Incompatible argument to function
>         at java.lang.Class.getDeclaredFields0(Native Method)
>         at java.lang.Class.privateGetDeclaredFields(Unknown Source)
>         at java.lang.Class.getDeclaredFields(Unknown Source)
>         at
>
> org.apache.xbean.finder.AnnotationFinder.findAnnotatedFields(AnnotationFinder.java:780)
>         at
>
> org.apache.openejb.config.FinderFactory$ModuleLimitedFinder.findAnnotatedFields(FinderFactory.java:152)
>         at
>
> org.apache.openejb.config.rules.CheckInjectionPointUsage.validate(CheckInjectionPointUsage.java:35)
>         at
>
> org.apache.openejb.config.rules.ValidationBase.validate(ValidationBase.java:45)
>         at
> org.apache.openejb.config.AppValidator.validate(AppValidator.java:97)
>         at
> org.apache.openejb.config.ValidateModules.deploy(ValidateModules.java:37)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:322)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:781)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656164.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
I mocked drools classes under their own package. I get below:

It would have been nice to get the alternative to work, but it does not seem
to get picked up.

java.lang.VerifyError: (class:
org/jboss/seam/security/permission/RuleBasedPermissionResolver, method:
synchronizeContext signature: ()V) Incompatible argument to function
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Unknown Source)
	at java.lang.Class.getDeclaredFields(Unknown Source)
	at
org.apache.xbean.finder.AnnotationFinder.findAnnotatedFields(AnnotationFinder.java:780)
	at
org.apache.openejb.config.FinderFactory$ModuleLimitedFinder.findAnnotatedFields(FinderFactory.java:152)
	at
org.apache.openejb.config.rules.CheckInjectionPointUsage.validate(CheckInjectionPointUsage.java:35)
	at
org.apache.openejb.config.rules.ValidationBase.validate(ValidationBase.java:45)
	at org.apache.openejb.config.AppValidator.validate(AppValidator.java:97)
	at
org.apache.openejb.config.ValidateModules.deploy(ValidateModules.java:37)
	at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:322)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:781)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656164.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm

are you sure the alternative was activated? did you use WEB-INF/beans.xml?

well if it doesn't work the mock is the easier solution

maybe get in touch with JBoss to see how (or if) @Requires should work in
other containers...

- Romain


2012/7/9 zeeman <ha...@fastmail.us>

> I tried using an alternative but I get the same validation stack trace. Any
> idea?
>
> I implemented the interface PermissionResolver, which the class with
> @Required implements. Added @Alternative to my class, and added Alternative
> element to beans.xml
>
> Anything else?
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656161.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
I tried using an alternative but I get the same validation stack trace. Any
idea?

I implemented the interface PermissionResolver, which the class with
@Required implements. Added @Alternative to my class, and added Alternative
element to beans.xml

Anything else? 

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656161.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
not sure (= didnt try) but maybe trying to play with alternative can do the
trick

the idea is to simply replace the class by another one.

Do you have idea of the classes needed?

if you only need some classes without their API maybe mocking them is the
easier (i'd personally try it)

- Romain


2012/7/8 zeeman <ha...@fastmail.us>

> jBoss Solder is what processes annotated @Required classes. You're right
> it's
> not from CDI. The class that does annotation processing from Solder is
> CoreExtension.
>
> I tried to veto the org.drools.KnowledgeBased package in @Required on Seam
> security RuleBasedPermissionResolver but I was not able to. Do you know if
> there is a way around this? I hate having to include jars for the sake of
> it.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656153.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
jBoss Solder is what processes annotated @Required classes. You're right it's
not from CDI. The class that does annotation processing from Solder is
CoreExtension. 

I tried to veto the org.drools.KnowledgeBased package in @Required on Seam
security RuleBasedPermissionResolver but I was not able to. Do you know if
there is a way around this? I hate having to include jars for the sake of
it. 

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656153.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm @Requires is not in CDI but in seam so maybe there is an issue with it.

- Romain


2012/7/8 zeeman <ha...@fastmail.us>

> There might be an issue with Seam security and how it depends on drools.
> Maybe it should be 2 different jars.
> But from Tomee perceptive; I'm guessing an app should deploy, if a method
> is
> called on a bean with a @requires that's not satisfied then the class not
> found exception would be displayed. Should not this be the CDI behavior?
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656145.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
There might be an issue with Seam security and how it depends on drools.
Maybe it should be 2 different jars. 
But from Tomee perceptive; I'm guessing an app should deploy, if a method is
called on a bean with a @requires that's not satisfied then the class not
found exception would be displayed. Should not this be the CDI behavior?

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656145.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
i updated our failing validation to be skipped if such an error happen but
i got another error:

Caused by: java.lang.NoClassDefFoundError: org/drools/runtime/ObjectFilter
at java.lang.Class.getDeclaredFields0(Native Method)
 at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
 at
org.apache.openejb.cdi.ManagedSecurityService$PrivilegedActionForClass.run(ManagedSecurityService.java:236)
at java.security.AccessController.doPrivileged(Native Method)
 at
org.apache.openejb.cdi.ManagedSecurityService.doPrivilegedGetDeclaredFields(ManagedSecurityService.java:158)
at
org.apache.webbeans.portable.AnnotatedTypeImpl.init(AnnotatedTypeImpl.java:77)
 at
org.apache.webbeans.portable.AnnotatedTypeImpl.getMethods(AnnotatedTypeImpl.java:193)
at
org.jboss.seam.transaction.TransactionExtension.processAnnotatedType(TransactionExtension.java:100)
 ... 37 more
Caused by: java.lang.ClassNotFoundException: org.drools.runtime.ObjectFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
... 46 more


Not sure how seam is expected to be used, maybe in JBoss @requires
extension is forced to be the first one to be loaded because if any other
extension uses the class (fields + method) before it will obviously fail
with a classnotfound. All errors can't be skipped.

any clues to go further?

- Romain


2012/7/8 zeeman <ha...@fastmail.us>

> I have put a sample project https://github.com/z00/test
>
> in POM.xml if you comment out dependency on line 301, you'll get the below
> error. If you keep it enabled (default) Tomee will work fine.
>
>
> Here is the full Tomee log:
>
>
>
> Jul 8, 2012 12:56:24 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: C:\Program
>
> Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
> Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program
> Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave
> Systems Corp\Gemalto\Access Client\v5\;C:\Program
> Files\Java\jdk1.6.0_31\bin;C:\dev\apache-maven-3.0.4\bin;C:\Program Files
> (x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;.
> Jul 8, 2012 12:56:24 PM org.apache.tomcat.util.digester.SetPropertiesRule
> begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to 'org.eclipse.jst.jee.server:test' did not find a
> matching property.
> Jul 8, 2012 12:56:24 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Jul 8, 2012 12:56:24 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Jul 8, 2012 12:56:25 PM org.apache.openejb.server.ServiceLogger <clinit>
> INFO: can't find log4j MDC class
> Jul 8, 2012 12:56:25 PM org.apache.tomee.catalina.TomcatLoader
> optionalService
> INFO: Optional service not installed:
> org.apache.tomee.webservices.TomeeJaxRsService
> Jul 8, 2012 12:56:25 PM org.apache.tomee.catalina.TomcatLoader
> optionalService
> INFO: Optional service not installed:
> org.apache.tomee.webservices.TomeeJaxWsService
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO:
>
> ********************************************************************************
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: OpenEJB http://openejb.apache.org/
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Startup: Sun Jul 08 12:56:25 EDT 2012
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Copyright 1999-2012 (C) Apache OpenEJB Project, All Rights Reserved.
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Version: 4.1.0-SNAPSHOT
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Build date: 20120706
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: Build time: 12:33
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO:
>
> ********************************************************************************
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: openejb.home = C:\dev\apache-tomee-webprofile-1.1.0-SNAPSHOT
> Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
> INFO: openejb.base =
>
> C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
> Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
> INFO: Created new singletonService
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@46d999a
> Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
> INFO: Succeeded in installing singleton service
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory init
> INFO: openejb configuration file is
>
> 'C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\openejb.xml'
> Jul 8, 2012 12:56:25 PM org.apache.openejb.util.OptionsLog info
> INFO: Using 'openejb.provider.default=org.apache.tomee'
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=Tomcat Security Service, type=SecurityService,
> provider-id=Tomcat Security Service)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=Default Transaction Manager,
> type=TransactionManager, provider-id=Default Transaction Manager)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My DataSource, type=Resource,
> provider-id=Default JDBC Database)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Unmanaged DataSource, type=Resource,
> provider-id=Default JDBC Database)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Singleton Container, type=Container,
> provider-id=Default Singleton Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Stateful Container, type=Container,
> provider-id=Default Stateful Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=My Stateless Container, type=Container,
> provider-id=Default Stateless Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.util.OptionsLog info
> INFO: Using 'openejb.system.apps=true'
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
> configureApplication
> INFO: Configuring enterprise application: null
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Using openejb.deploymentId.format '{ejbName}'
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb openejb/Deployer:
> EjbDeployment(deployment-id=openejb/Deployer)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb openejb/ConfigurationInfo:
> EjbDeployment(deployment-id=openejb/ConfigurationInfo)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJB)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.config.AppInfoBuilder build
> INFO: Enterprise application "openejb" loaded.
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating TransactionManager(id=Default Transaction Manager)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating SecurityService(id=Tomcat Security Service)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Resource(id=My DataSource)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Resource(id=My Unmanaged DataSource)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=My Singleton Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=My Stateful Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.core.stateful.SimplePassivater
> init
> INFO: Using directory c:\temp for stateful session passivation
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=My Stateless Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Assembling app: openejb
> Jul 8, 2012 12:56:25 PM org.hibernate.validator.util.Version <clinit>
> INFO: Hibernate Validator 4.2.0.Final
> Jul 8, 2012 12:56:25 PM org.hibernate.validator.engine.ConfigurationImpl
> parseValidationXml
> INFO: Ignoring XML configuration.
> Jul 8, 2012 12:56:25 PM org.apache.openejb.util.OptionsLog info
> INFO: Using
> 'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=openejb/DeployerBusinessRemote) -->
> Ejb(deployment-id=openejb/Deployer)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
>
> Jndi(name=global/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
> --> Ejb(deployment-id=openejb/Deployer)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/openejb/Deployer) -->
> Ejb(deployment-id=openejb/Deployer)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
> Ejb(deployment-id=openejb/ConfigurationInfo)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
>
> Jndi(name=global/openejb/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
> --> Ejb(deployment-id=openejb/ConfigurationInfo)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/openejb/ConfigurationInfo) -->
> Ejb(deployment-id=openejb/ConfigurationInfo)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/MEJB!javax.management.j2ee.ManagementHome)
> --> Ejb(deployment-id=MEJB)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/openejb/MEJB) --> Ejb(deployment-id=MEJB)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.CdiBuilder initSingleton
> INFO: Existing thread singleton service in SystemInstance()
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@46d999a
> Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container is starting...
> Jul 8, 2012 12:56:25 PM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> Jul 8, 2012 12:56:25 PM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.BeansDeployer
> validateInjectionPoints
> INFO: All injection points were validated successfully.
> Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container has started, it took [75] ms.
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Created Ejb(deployment-id=openejb/Deployer,
> ejb-name=openejb/Deployer,
> container=My Stateless Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
> Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Created Ejb(deployment-id=openejb/ConfigurationInfo,
> ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Started Ejb(deployment-id=openejb/Deployer,
> ejb-name=openejb/Deployer,
> container=My Stateless Container)
> Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
> Container)
> Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Started Ejb(deployment-id=openejb/ConfigurationInfo,
> ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
> Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
> deployMBean
> INFO: Deployed
>
> MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
> Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Deployed Application(path=openejb)
> Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager
> start
> INFO:   ** Bound Services **
> Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager
> printRow
> INFO:   NAME                 IP              PORT
> Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager
> start
> INFO: -------
> Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager
> start
> INFO: Ready!
> Jul 8, 2012 12:56:26 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 2024 ms
> Jul 8, 2012 12:56:26 PM
> org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
> INFO: Importing a Tomcat Resource with id 'UserDatabase' of type
> 'org.apache.catalina.UserDatabase'.
> Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Resource(id=UserDatabase)
> Jul 8, 2012 12:56:26 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Jul 8, 2012 12:56:26 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
> Jul 8, 2012 12:56:26 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
> INFO: -------------------------
> TomcatWebAppBuilder.init
> Jul 8, 2012 12:56:26 PM org.apache.openejb.config.DeploymentLoader
> addFacesConfigs
> INFO: faces config file is null
> Jul 8, 2012 12:56:26 PM org.apache.openejb.config.ConfigurationFactory
> configureApplication
> INFO: Configuring enterprise application:
>
> C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT
> Jul 8, 2012 12:56:26 PM org.apache.openejb.config.AppInfoBuilder build
> INFO: Enterprise application
>
> "C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT"
> loaded.
> Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Assembling app:
>
> C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT
> Jul 8, 2012 12:56:26 PM org.hibernate.validator.engine.ConfigurationImpl
> parseValidationXml
> INFO: Ignoring XML configuration.
> Jul 8, 2012 12:56:26 PM org.hibernate.validator.engine.ConfigurationImpl
> parseValidationXml
> INFO: Ignoring XML configuration.
> Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.CdiBuilder initSingleton
> INFO: Existing thread singleton service in SystemInstance()
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@46d999a
> Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container is starting...
> Jul 8, 2012 12:56:26 PM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> Jul 8, 2012 12:56:26 PM org.apache.webbeans.plugins.PluginLoader startUp
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.BeansDeployer
> validateInjectionPoints
> INFO: All injection points were validated successfully.
> Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
> INFO: OpenWebBeans Container has started, it took [4] ms.
> Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Deployed
>
> Application(path=C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT)
> Jul 8, 2012 12:56:26 PM org.apache.myfaces.webapp.AbstractFacesInitializer
> initFaces
> WARNING: No mappings of FacesServlet found. Abort initializing MyFaces.
> Jul 8, 2012 12:56:26 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
> INFO: -------------------------
> TomcatWebAppBuilder.init /test
> Jul 8, 2012 12:56:26 PM org.apache.openejb.config.DeploymentLoader
> addFacesConfigs
> INFO: faces config file is null
> Jul 8, 2012 12:56:28 PM org.apache.openejb.config.ConfigurationFactory
> configureApplication
> INFO: Configuring enterprise application:
>
> C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\test
> java.lang.NoClassDefFoundError: Lorg/drools/KnowledgeBase;
>         at java.lang.Class.getDeclaredFields0(Native Method)
>         at java.lang.Class.privateGetDeclaredFields(Unknown Source)
>         at java.lang.Class.getDeclaredFields(Unknown Source)
>         at
>
> org.apache.xbean.finder.AnnotationFinder.findAnnotatedFields(AnnotationFinder.java:780)
>         at
>
> org.apache.openejb.config.FinderFactory$ModuleLimitedFinder.findAnnotatedFields(FinderFactory.java:152)
>         at
>
> org.apache.openejb.config.rules.CheckInjectionPointUsage.validate(CheckInjectionPointUsage.java:35)
>         at
>
> org.apache.openejb.config.rules.ValidationBase.validate(ValidationBase.java:45)
>         at
> org.apache.openejb.config.AppValidator.validate(AppValidator.java:97)
>         at
> org.apache.openejb.config.ValidateModules.deploy(ValidateModules.java:37)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:322)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:781)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException: org.drools.KnowledgeBase
>         at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:131)
>         at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:83)
>         ... 25 more
> Caused by: java.io.IOException: Stream closed
>         at java.io.BufferedInputStream.getInIfOpen(Unknown Source)
>         at java.io.BufferedInputStream.fill(Unknown Source)
>         at java.io.BufferedInputStream.read1(Unknown Source)
>         at java.io.BufferedInputStream.read(Unknown Source)
>         at java.io.FilterInputStream.read(Unknown Source)
>         at org.apache.openejb.loader.IO.copy(IO.java:270)
>         at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:128)
>         ... 26 more
> Jul 8, 2012 12:56:29 PM org.apache.openejb.config.InitEjbDeployments deploy
> INFO: Auto-deploying ejb localhost/test.Comp:
> EjbDeployment(deployment-id=localhost/test.Comp)
> Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> INFO: Configuring Service(id=Default Managed Container, type=Container,
> provider-id=Default Managed Container)
> Jul 8, 2012 12:56:29 PM org.apache.openejb.config.AutoConfig
> createContainer
> INFO: Auto-creating a container for bean localhost/test.Comp:
> Container(type=MANAGED, id=Default Managed Container)
> Jul 8, 2012 12:56:29 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating Container(id=Default Managed Container)
> Jul 8, 2012 12:56:29 PM org.apache.openejb.core.managed.SimplePassivater
> init
> INFO: Using directory c:\temp for stateful session passivation
> Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ReportValidationResults
> logResults
> SEVERE: ERROR ... null: Cannot validate jar: Lorg/drools/KnowledgeBase;
> Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ReportValidationResults
> logResults
> SEVERE: Invalid AppModule(name=test,
>
> path=C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\test)
> Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ReportValidationResults
> deploy
> INFO: Set the 'openejb.validation.output.level' system property to VERBOSE
> for increased validation details.
> Jul 8, 2012 12:56:29 PM org.apache.catalina.core.ContainerBase removeChild
> SEVERE: ContainerBase.removeChild: destroy:
> org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
> attempted ([before_destroy]) for component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
> in
> state [STARTING_PREP]
>         at
>
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
>         at
> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
>         at
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1053)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:843)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:828)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:683)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Jul 8, 2012 12:56:29 PM org.apache.tomee.catalina.TomcatWebAppBuilder
> startInternal
> SEVERE: Unable to deploy collapsed ear in war /test: Exception: Module
> failed validation. AppModule(name=test)
> org.apache.openejb.config.ValidationFailedException: Module failed
> validation. AppModule(name=test)
>         at
>
> org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
>         at
> org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:267)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:784)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Jul 8, 2012 12:56:29 PM org.apache.catalina.core.ContainerBase
> startInternal
> SEVERE: A child container failed during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
>         at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
>         at java.util.concurrent.FutureTask.get(Unknown Source)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         ... 7 more
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.openejb.config.ValidationFailedException: Module failed
> validation. AppModule(name=test)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:687)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Caused by: org.apache.openejb.config.ValidationFailedException: Module
> failed validation. AppModule(name=test)
>         at
>
> org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
>         at
> org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:267)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:784)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
>         ... 13 more
> Jul 8, 2012 12:56:29 PM org.apache.catalina.core.ContainerBase
> startInternal
> SEVERE: A child container failed during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost]]
>         at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
>         at java.util.concurrent.FutureTask.get(Unknown Source)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)
>         at
>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.catalina.LifecycleException: A child container failed
> during start
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Jul 8, 2012 12:56:29 PM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardServer[8005]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardService[Catalina]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 9 more
> Caused by: org.apache.catalina.LifecycleException: A child container failed
> during start
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)
>         at
>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 11 more
> Jul 8, 2012 12:56:29 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3227 ms
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656143.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
I have put a sample project https://github.com/z00/test

in POM.xml if you comment out dependency on line 301, you'll get the below
error. If you keep it enabled (default) Tomee will work fine.


Here is the full Tomee log:



Jul 8, 2012 12:56:24 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program
Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave
Systems Corp\Gemalto\Access Client\v5\;C:\Program
Files\Java\jdk1.6.0_31\bin;C:\dev\apache-maven-3.0.4\bin;C:\Program Files
(x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;.
Jul 8, 2012 12:56:24 PM org.apache.tomcat.util.digester.SetPropertiesRule
begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:test' did not find a
matching property.
Jul 8, 2012 12:56:24 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 8, 2012 12:56:24 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 8, 2012 12:56:25 PM org.apache.openejb.server.ServiceLogger <clinit>
INFO: can't find log4j MDC class
Jul 8, 2012 12:56:25 PM org.apache.tomee.catalina.TomcatLoader
optionalService
INFO: Optional service not installed:
org.apache.tomee.webservices.TomeeJaxRsService
Jul 8, 2012 12:56:25 PM org.apache.tomee.catalina.TomcatLoader
optionalService
INFO: Optional service not installed:
org.apache.tomee.webservices.TomeeJaxWsService
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO:
********************************************************************************
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: OpenEJB http://openejb.apache.org/
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Startup: Sun Jul 08 12:56:25 EDT 2012
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Copyright 1999-2012 (C) Apache OpenEJB Project, All Rights Reserved.
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Version: 4.1.0-SNAPSHOT
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build date: 20120706
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build time: 12:33
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO:
********************************************************************************
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.home = C:\dev\apache-tomee-webprofile-1.1.0-SNAPSHOT
Jul 8, 2012 12:56:25 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.base =
C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Created new singletonService
org.apache.openejb.cdi.ThreadSingletonServiceImpl@46d999a
Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Succeeded in installing singleton service
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory init
INFO: openejb configuration file is
'C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\openejb.xml'
Jul 8, 2012 12:56:25 PM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.provider.default=org.apache.tomee'
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Tomcat Security Service, type=SecurityService,
provider-id=Tomcat Security Service)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My DataSource, type=Resource,
provider-id=Default JDBC Database)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Unmanaged DataSource, type=Resource,
provider-id=Default JDBC Database)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Singleton Container, type=Container,
provider-id=Default Singleton Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Stateful Container, type=Container,
provider-id=Default Stateful Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=My Stateless Container, type=Container,
provider-id=Default Stateless Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.system.apps=true'
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application: null
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Using openejb.deploymentId.format '{ejbName}'
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/Deployer:
EjbDeployment(deployment-id=openejb/Deployer)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb openejb/ConfigurationInfo:
EjbDeployment(deployment-id=openejb/ConfigurationInfo)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJB)
Jul 8, 2012 12:56:25 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application "openejb" loaded.
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating TransactionManager(id=Default Transaction Manager)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating SecurityService(id=Tomcat Security Service)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=My DataSource)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=My Unmanaged DataSource)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Singleton Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Stateful Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.core.stateful.SimplePassivater
init
INFO: Using directory c:\temp for stateful session passivation
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=My Stateless Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app: openejb
Jul 8, 2012 12:56:25 PM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator 4.2.0.Final
Jul 8, 2012 12:56:25 PM org.hibernate.validator.engine.ConfigurationImpl
parseValidationXml
INFO: Ignoring XML configuration.
Jul 8, 2012 12:56:25 PM org.apache.openejb.util.OptionsLog info
INFO: Using
'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/DeployerBusinessRemote) -->
Ejb(deployment-id=openejb/Deployer)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
--> Ejb(deployment-id=openejb/Deployer)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/Deployer) -->
Ejb(deployment-id=openejb/Deployer)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO:
Jndi(name=global/openejb/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
--> Ejb(deployment-id=openejb/ConfigurationInfo)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/openejb/ConfigurationInfo) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/MEJB!javax.management.j2ee.ManagementHome)
--> Ejb(deployment-id=MEJB)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/openejb/MEJB) --> Ejb(deployment-id=MEJB)
Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@46d999a
Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Jul 8, 2012 12:56:25 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Jul 8, 2012 12:56:25 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points were validated successfully.
Jul 8, 2012 12:56:25 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took [75] ms.
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Created Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
container=My Stateless Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Created Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Started Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
container=My Stateless Container)
Jul 8, 2012 12:56:25 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless
Container)
Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Started Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
deployMBean
INFO: Deployed
MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed Application(path=openejb)
Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager start
INFO:   ** Bound Services **
Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager
printRow
INFO:   NAME                 IP              PORT  
Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager start
INFO: -------
Jul 8, 2012 12:56:26 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Ready!
Jul 8, 2012 12:56:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2024 ms
Jul 8, 2012 12:56:26 PM
org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
INFO: Importing a Tomcat Resource with id 'UserDatabase' of type
'org.apache.catalina.UserDatabase'.
Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=UserDatabase)
Jul 8, 2012 12:56:26 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jul 8, 2012 12:56:26 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
Jul 8, 2012 12:56:26 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init 
Jul 8, 2012 12:56:26 PM org.apache.openejb.config.DeploymentLoader
addFacesConfigs
INFO: faces config file is null
Jul 8, 2012 12:56:26 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT
Jul 8, 2012 12:56:26 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT"
loaded.
Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app:
C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT
Jul 8, 2012 12:56:26 PM org.hibernate.validator.engine.ConfigurationImpl
parseValidationXml
INFO: Ignoring XML configuration.
Jul 8, 2012 12:56:26 PM org.hibernate.validator.engine.ConfigurationImpl
parseValidationXml
INFO: Ignoring XML configuration.
Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@46d999a
Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container is starting...
Jul 8, 2012 12:56:26 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Jul 8, 2012 12:56:26 PM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.BeansDeployer
validateInjectionPoints
INFO: All injection points were validated successfully.
Jul 8, 2012 12:56:26 PM org.apache.openejb.cdi.OpenEJBLifecycle
startApplication
INFO: OpenWebBeans Container has started, it took [4] ms.
Jul 8, 2012 12:56:26 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Deployed
Application(path=C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ROOT)
Jul 8, 2012 12:56:26 PM org.apache.myfaces.webapp.AbstractFacesInitializer
initFaces
WARNING: No mappings of FacesServlet found. Abort initializing MyFaces.
Jul 8, 2012 12:56:26 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: -------------------------
TomcatWebAppBuilder.init /test
Jul 8, 2012 12:56:26 PM org.apache.openejb.config.DeploymentLoader
addFacesConfigs
INFO: faces config file is null
Jul 8, 2012 12:56:28 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\test
java.lang.NoClassDefFoundError: Lorg/drools/KnowledgeBase;
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Unknown Source)
	at java.lang.Class.getDeclaredFields(Unknown Source)
	at
org.apache.xbean.finder.AnnotationFinder.findAnnotatedFields(AnnotationFinder.java:780)
	at
org.apache.openejb.config.FinderFactory$ModuleLimitedFinder.findAnnotatedFields(FinderFactory.java:152)
	at
org.apache.openejb.config.rules.CheckInjectionPointUsage.validate(CheckInjectionPointUsage.java:35)
	at
org.apache.openejb.config.rules.ValidationBase.validate(ValidationBase.java:45)
	at org.apache.openejb.config.AppValidator.validate(AppValidator.java:97)
	at
org.apache.openejb.config.ValidateModules.deploy(ValidateModules.java:37)
	at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:322)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:781)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.drools.KnowledgeBase
	at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:131)
	at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:83)
	... 25 more
Caused by: java.io.IOException: Stream closed
	at java.io.BufferedInputStream.getInIfOpen(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at java.io.FilterInputStream.read(Unknown Source)
	at org.apache.openejb.loader.IO.copy(IO.java:270)
	at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:128)
	... 26 more
Jul 8, 2012 12:56:29 PM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb localhost/test.Comp:
EjbDeployment(deployment-id=localhost/test.Comp)
Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=Default Managed Container, type=Container,
provider-id=Default Managed Container)
Jul 8, 2012 12:56:29 PM org.apache.openejb.config.AutoConfig createContainer
INFO: Auto-creating a container for bean localhost/test.Comp:
Container(type=MANAGED, id=Default Managed Container)
Jul 8, 2012 12:56:29 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Container(id=Default Managed Container)
Jul 8, 2012 12:56:29 PM org.apache.openejb.core.managed.SimplePassivater
init
INFO: Using directory c:\temp for stateful session passivation
Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ReportValidationResults
logResults
SEVERE: ERROR ... null:	Cannot validate jar: Lorg/drools/KnowledgeBase;
Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ReportValidationResults
logResults
SEVERE: Invalid AppModule(name=test,
path=C:\Users\zeeman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\test)
Jul 8, 2012 12:56:29 PM org.apache.openejb.config.ReportValidationResults
deploy
INFO: Set the 'openejb.validation.output.level' system property to VERBOSE
for increased validation details.
Jul 8, 2012 12:56:29 PM org.apache.catalina.core.ContainerBase removeChild
SEVERE: ContainerBase.removeChild: destroy: 
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
attempted ([before_destroy]) for component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]] in
state [STARTING_PREP]
	at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
	at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1053)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:843)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:828)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:683)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Jul 8, 2012 12:56:29 PM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal
SEVERE: Unable to deploy collapsed ear in war /test: Exception: Module
failed validation. AppModule(name=test)
org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=test)
	at
org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
	at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:267)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:784)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Jul 8, 2012 12:56:29 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)
	at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	... 7 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=test)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:687)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Caused by: org.apache.openejb.config.ValidationFailedException: Module
failed validation. AppModule(name=test)
	at
org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
	at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:267)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:784)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
	... 13 more
Jul 8, 2012 12:56:29 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost]]
	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)
	at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed
during start
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)
	at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Jul 8, 2012 12:56:29 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
org.apache.catalina.LifecycleException: Failed to start component
[StandardServer[8005]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardService[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed
during start
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)
	at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 11 more
Jul 8, 2012 12:56:29 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3227 ms


--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656143.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by David Blevins <da...@gmail.com>.
On Jul 7, 2012, at 11:16 PM, zeeman wrote:

> I removed Drools jar and its dependencies (Drools API, compiler, and core). I
> get below stack trace:
> 
> If I keep above, Tomee starts fine. You can reproduce the issue by using a
> maven project that has a Seam security dependency and deploy it without
> drools dependencies. If you don't want to bother with a Seam project, just
> create a CDI bean with @Requires for a class that does not exist on
> classpath. Tomee will fail.
> 
[...]
> Caused by: org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> 	... 7 more
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.openejb.config.ValidationFailedException: Module failed
> validation. AppModule(name=sportivity)
> 	at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:687)
> 	at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
> 	at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 	at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	... 7 more
> Caused by: org.apache.openejb.config.ValidationFailedException: Module
> failed validation. AppModule(name=sportivity)

Strange.  Says there were validation failures (not sure what those would be).  Could be a bug in our validation logic (we shouldn't be so strict if classes are not found).  If you could post the list of validation failures/errors/warnings, that'd be great.


-David


Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
I removed Drools jar and its dependencies (Drools API, compiler, and core). I
get below stack trace:

If I keep above, Tomee starts fine. You can reproduce the issue by using a
maven project that has a Seam security dependency and deploy it without
drools dependencies. If you don't want to bother with a Seam project, just
create a CDI bean with @Requires for a class that does not exist on
classpath. Tomee will fail.

SEVERE: ContainerBase.removeChild: destroy: 
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
attempted ([before_destroy]) for component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] in
state [STARTING_PREP]
	at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
	at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1053)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:843)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:828)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:683)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Jul 8, 2012 2:09:39 AM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal
SEVERE: Unable to deploy collapsed ear in war : Exception: Module failed
validation. AppModule(name=sportivity)
org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=sportivity)
	at
org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
	at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:267)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:784)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Jul 8, 2012 2:09:39 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)
	at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	... 7 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=sportivity)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:687)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:632)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Caused by: org.apache.openejb.config.ValidationFailedException: Module
failed validation. AppModule(name=sportivity)
	at
org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
	at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:267)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:784)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:677)
	... 13 more
Jul 8, 2012 2:09:39 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost]]
	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1142)
	at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed
during start
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)
	at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Jul 8, 2012 2:09:39 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
org.apache.catalina.LifecycleException: Failed to start component
[StandardServer[8005]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardService[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed
during start
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1150)
	at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 11 more

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656139.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by David Blevins <da...@gmail.com>.
On Jul 6, 2012, at 9:05 AM, zeeman wrote:

> Seam security module has a @Requires on drools. If drools jar is not on class
> path Seam logs a warning. But this should not fail, on jBoss 7 the server
> still loads and a message is logged. But on Tomee the server stops and shows
> a class not found exception.

Strange.  As Jonathan notes, not having the annotation present should be fine.

Can you paste the stacktrace?


-David


Re: CDI @Requires issue with Tomee

Posted by zeeman <ha...@fastmail.us>.
Sun 1.6, Tomee 1.1.0 SNAPSHOT, Seam 3.1, hibernate 4.1

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656127.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: CDI @Requires issue with Tomee

Posted by exabrial <ex...@gmail.com>.
I thought in Java, that not having an annotation on the classpath should not
result in a CNFE. 

Just curious, what JVM are you using? 

--
View this message in context: http://openejb.979440.n4.nabble.com/CDI-Requires-issue-with-Tomee-tp4656112p4656126.html
Sent from the OpenEJB User mailing list archive at Nabble.com.