1

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?

Phate
  • 6,066
  • 15
  • 73
  • 138
  • Are the versions of Java different perhaps? – Gimby Jun 22 '15 at 08:35
  • You think it is a java related problem? It should be the same version but in order to figure out I have to ask...unfortunately I have no control over the remote weblogic server :/ – Phate Jun 22 '15 at 08:38
  • 1
    Possibly not actually, this thread has more information on this particular error: http://stackoverflow.com/questions/1980452/what-causes-java-lang-incompatibleclasschangeerror – Gimby Jun 22 '15 at 12:53

1 Answers1

1

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

Community
  • 1
  • 1
Display Name is missing
  • 6,197
  • 3
  • 34
  • 46