If I place my exclusions.list in TOMEE/conf it does not seem to work. The
embedded jar within my application that I want excluded from the scan is
still scanned, and Tomee attempts to setup the JAX-RS provider. However if
I place it in TOMEE/webapps/mywebapp/WEB-INF it works (the jar file is not
scanned).
>From what I can tell, in
open-ejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java,
line 953 sets the scannable urls:
// create web module
final WebModule webModule = new WebModule(webApp, contextRoot,
warClassLoader, warFile.getAbsolutePath(), moduleName);
webModule.setUrls(webUrls);
webModule.setAddedUrls(addedUrls);
webModule.setRarUrls(Arrays.asList(urls.get(RAR_URLS_KEY)));
webModule.setScannableUrls(filterWebappUrls(webUrlsArray,
descriptors.get(NewLoaderLogic.EXCLUSION_FILE)));
webModule.getAltDDs().putAll(descriptors);
this seems to only use the exclusions.list from WITHIN the web app.
Hope this helps someone in the future.
--
View this message in context:
http://openejb.979440.n4.nabble.com/WAR-works-ok-on-plain-Tomcat-errors-on-start-in-TomEE-tp4666565p4666661.html
Sent from the OpenEJB User mailing list archive at Nabble.com.