[
https://issues.apache.org/jira/browse/TOMEE-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13608784#comment-13608784
]
Mark Struberg commented on TOMEE-836:
-------------------------------------
Just had this again today:
org.apache.openejb.OpenEjbContainer$InvalidApplicationException:
org.apache.openejb.config.ValidationFailedException: Module failed validation.
AppModule(name=)
at
org.apache.openejb.OpenEjbContainer$Provider.createEJBContainer(OpenEjbContainer.java:353)
at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:56)
at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:43)
at
org.apache.deltaspike.cdise.openejb.OpenEjbContainerControl.boot(OpenEjbContainerControl.java:61)
at at....someproject
...util.container.ContainerTest.setUp(ContainerTest.java:53)
at
at....someproject....util.container.ContainerTest.beforeClass(ContainerTest.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
at org.testng.TestNG.run(TestNG.java:1031)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=)
at
org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:82)
at
org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:297)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:917)
at
org.apache.openejb.OpenEjbContainer$Provider.createEJBContainer(OpenEjbContainer.java:347)
... 35 more
null
null
null
> ReportValidationResults should log.info about the root cause
> ------------------------------------------------------------
>
> Key: TOMEE-836
> URL: https://issues.apache.org/jira/browse/TOMEE-836
> Project: TomEE
> Issue Type: Bug
> Components: Compliance Checks
> Affects Versions: 1.5.1
> Reporter: Mark Struberg
> Fix For: 1.6.0
>
>
> I'm having an EJB which references a @PersistenceContext with a not yet
> defined DataSource.
> This leads to a Deployment error, but the real cause is well hidden
> internally and doesn't get logged properly.
> Same happens if the persistence unit itself is not configured.
> This currently doesn't even lead to a deployment Exception but OpenEJB just
> resumes to start.
> If I debug into ReportValidationResults#deploy line 66
> uberContext.addFailure(failure);
> then I see the issue. But it doesn't get logged it seems.
> This should at least be logged with INFO level imo.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira