I developed a web application using spring version 3.2.6 and as long as I am deploying it on my tomcat server everything works fine.
Now, if I try to deploy this same application on a weblogic application server I get the following:
java.lang.IncompatibleClassChangeError: org/objectweb/asm/AnnotationVisitor
I think it is related to the spring version installed on the remote weblogic server. I know I can force the server to use my classes by the following directive in the configuration xml:
<prefer-application-packages>
<package-name>
what do I put here?
</package-name>
Anyway I really don't know what to set there...can you help me out?
Generally IncompatibleClassChangeError
means that you have code changes without a recompile.
Use:
<wls:prefer-application-packages>
<wls:package-name>org.springframework.*</wls:package-name>
</wls:prefer-application-packages>
Or prefer-web-inf-classes
This will force weblogic to use the jar packaged in your app. If it still doesn't work, you have a separate issue.
Also check this link about JRF versions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.