Hi Guys,

One of our customers trialling TomEE has reported that their app isn't loading because it is scanning all the library JARs in his WEB-INF/lib for Java EE annotations, and then complaining about missing classes (such as Hibernate.Session).

"It even scans those that have no META-INF/persistence.xml, META-INF/ejb-jar.xml, or anything else. This is a problem because I have a framework JAR that contains such annotations but that should *not* be scanned by default. Rather, I will refer to these framework classes explicitly in my app JAR's persistence.xml, ejb-jar.xml etc. Containers such as GlassFish/JBoss have a container-specific mechanism to control/prevent classpath scanning. But I can't see anything for TomEE?"

Is there a way to prevent these jars being scanned?

Best Regards,
Neale Rudd
Metawerx Pty Ltd
www.metawerx.net

Reply via email to