Hi Simon,

The user list would be the better place to ask this, but maybe we can turn this 
into a code contribution opportunity :)  Clearly something is deficient and 
needs improvement as you should never get the output you got.

If you open this file in your IDE and put a breakpoint on the line specified, 
it should allow you to see each rule execute.

 - 
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/config/AppValidator.java#L102

My guess is there is still something failing in the classloader setup and 
perhpas there is some more severe Throwable getting thrown like 
NoClassDefFoundError or similar.  The code should be able to handle properly 
report whatever the real issue is -- clearly it is not and something there 
needs a bit of tweaking.

Looking at the code, there is likely a stacktrace earlier in your log output 
that has the actual cause printed.  The printing probably needs to be moved to 
the ReportValidationResults so it's clear they are connected.


-- 
David Blevins
http://twitter.com/dblevins
http://www.tomitribe.com

> On Mar 19, 2019, at 6:13 AM, Simon Jongsma <[email protected]> 
> wrote:
> 
> I am porting an application from JBoss EAP 6.4 to TomEE.
> First tried to deploy an existing ear file.
> After resolving a lot of ClassNotFound errors (had to copy a lot of jars to
> the lib folder) and defining a jdbc datasource I finally got stuck on this
> error:
> 19-Mar-2019 12:33:21.296 SEVERE [localhost-startStop-1]
> org.apache.openejb.config.ReportValidationResults.logResults ERROR ... null:
> Cannot validate jar: null
> 19-Mar-2019 12:33:21.297 SEVERE [localhost-startStop-1]
> org.apache.openejb.config.ReportValidationResults.logResults Invalid
> AppModule(name=platform-ear-9.9.9-SNAPSHOT,
> path=D:\apache-tomee-plume-7.0.2\webapps\platform-ear-9.9.9-SNAPSHOT)
> 19-Mar-2019 12:33:21.297 SEVERE [localhost-startStop-1]
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal Unable to deploy
> collapsed ear in war
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/platform-ear-9.9.9-SNAPSHOT]
> org.apache.openejb.config.ValidationFailedException: Module failed
> validation. AppModule(name=platform-ear-9.9.9-SNAPSHOT)
>       at
> org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:88).
> 
> I do have openejb.validation.output.level = verbose but the log provides no
> clue on what the problem is.
> Scanning the net indicating it might be an incorrect annotation? 
> Any help is greatly appreciated.
> 
> 
> 
> 
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html

Reply via email to