I'm trying to upgrade the Pax Exam test container for TomEE from 1.5.1 to 1.5.2, and there's a problem related to servlet scanning.

Pax Exam builds a WAR from more or less everything found on the classpath and deploys it to org.apache.tomee.embedded.Container.

This used to work fine with 1.5.1, but with 1.5.2 there's an exception for a duplicate @WebServlet which is picked up twice, once from the application classpath, and once from the webapp classloader.

I've tried using org.apache.catalina.startup.ContextConfig.jarsToSkip to exclude application classpath components (which also contain directories like foo/target/classes/), but without success.

Is there some other solution? Does it make sense at all to scan anything outside the WAR for servlets?

Best regards,
Harald

Reply via email to