Hi
Le 15 juin 2016 21:49, "Jeff Wallace" <[email protected]> a écrit :
>
> I am using Apache Tomcat Version 7.0.55.
>
How do you setup tomee? Manually?
> I am trying to get TOMEE to completely ignore a specific JAR of mine when
> it loads up.
>
> To do this, I created {TOMEE}/conf/exclusions.list
> and this is the entire contents of the that file ::
>
> default-list
> calculation-svc-0.0.1-SNAPSHOT
>
Looks good - you can skip the version too.
> For some reason though, after restarting TOMEE it still continues to pick
> up classes from within that JAR.
>
Maybe activate debug logs. Also ensure your war doesnt use a custom tomcat
scanner in context.xml. finally can you say us which kind of class it picks
up? Servlet/jaxrs/....
> Am I missing something?
>
> I can see from the catalina log, that it looks like TOMEE is trying to
pull
> in exclusions, but it's not finding any. Plus, it appears to be doing it
> twice. Not sure if that's normal or not. Below is the log output ::
Can be ok it does it is logged twice for old versions.
> Jun 15, 2016 2:32:22 PM org.apache.openejb.config.NewLoaderLogic
> getExclusions
> INFO: Loaded classpath exclusions from:
> C:\Applications\tomee\conf\exclusions.list
> Jun 15, 2016 2:32:22 PM org.apache.openejb.config.NewLoaderLogic
> getExclusions
> INFO: Loaded classpath exclusions from:
> C:\Applications\tomee\conf\exclusions.list
>
>
> For additional resources, I also have a discussion about this issue on
> Stack Overflow at ::
> http://stackoverflow.com/questions/37798824/tomee-exclude-a-jar