How to preffer certain version when deploying app on weblogic
I have problem to deploy app on my weblogic server. In my dependency I
have org.slf4. version 1.6.1 and spring batch admin which use older
version of org.slf4 1.5.8. When I want deploy app to my server I got this
exception:
java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
this is because method log in class LocationAwareLogger isnt same in both
version of org.slf4. How I can solve this problem ?
I try to add preffer package but with no success
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>org.slf4j.*</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
--- maven-dependency-plugin:2.1:tree (default-cli) @ my-app---
[INFO] +- log4j:log4j:jar:1.2.15:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[INFO] +- org.slf4j:slf4j-ext:jar:1.6.1:compile
[INFO] +-
org.springframework.batch:spring-batch-admin-manager:jar:1.2.2.RELEASE:compile
[INFO] | +- org.aspectj:aspectjrt:jar:1.6.6:compile
[INFO] | +-
org.springframework.batch:spring-batch-integration:jar:1.2.2.RELEASE:compile
[INFO] | +-
org.springframework.integration:spring-integration-core:jar:2.0.3.RELEASE:compile
[INFO] | +-
org.springframework.integration:spring-integration-jmx:jar:2.0.3.RELEASE:runtime
[INFO] | +-
org.springframework.integration:spring-integration-http:jar:2.0.3.RELEASE:compile
[INFO] | +-
org.springframework.integration:spring-integration-file:jar:2.0.3.RELEASE:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:runtime
[INFO] | +- net.sf.ehcache:ehcache-core:jar:2.3.0:compile
**[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.8:compile**
[INFO] | +- commons-collections:commons-collections:jar:3.2:compile
[INFO] | \- org.freemarker:freemarker:jar:2.3.15:compile
No comments:
Post a Comment