[英]IncompatibleClassChangeError: org/objectweb/asm/AnnotationVisitor when deploying application on weblogic server
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.我使用 spring 版本 3.2.6 开发了一个 Web 应用程序,只要我将它部署在我的 tomcat 服务器上,一切都可以正常工作。
Now, if I try to deploy this same application on a weblogic application server I get the following:现在,如果我尝试在 weblogic 应用程序服务器上部署这个相同的应用程序,我会得到以下信息:
java.lang.IncompatibleClassChangeError: org/objectweb/asm/AnnotationVisitor
I think it is related to the spring version installed on the remote weblogic server.我认为这与远程weblogic服务器上安装的spring版本有关。 I know I can force the server to use my classes by the following directive in the configuration xml:
我知道我可以通过配置 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.通常
IncompatibleClassChangeError
意味着您无需重新编译即可更改代码。
Use:用:
<wls:prefer-application-packages>
<wls:package-name>org.springframework.*</wls:package-name>
</wls:prefer-application-packages>
Or prefer-web-inf-classes
或者
prefer-web-inf-classes
This will force weblogic to use the jar packaged in your app.这将强制 weblogic 使用打包在您的应用程序中的 jar。 If it still doesn't work, you have a separate issue.
如果它仍然不起作用,则您有一个单独的问题。
Also check this link about JRF versions另请查看有关 JRF 版本的链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.