Keywords:Deployment and configuration of spring WebLogic Server deploy anlr cglib
Spring requires the support of anlr 2.7.5, but the version of anlr integrated in weblogic. jar in WebLogic server8 and 9 is not high enough, so errors will occur during deployment.
Work und: Download The antlr-2.7.5.jar package at www.antl.org and modify the environment variable for starting WebLogic startup to add this package before the weblogic. jar package (Be sure to add it to the Front ). Modify the file BEA/weblogic81/common/bin/commenv. CMD (. Sh) in WebLogic 8. Modify the file BEA/weblogic90/common/bin/commenv. CMD (. Sh) in WebLogic 9,
The modification is as follows:
Set weblogic_classpath = % patch_classpath %; % java_home %/lib/tools. jar; % wl_home %/Server/lib/antlr-2.7.5.jar; % wl_home %/Server/lib/weblogic_sp.jar; % wl_home %/Server/lib/weblogic. jar
You can deploy spring applications on WebLogic Server.Program.
The spring. jar package does not need to be loaded into the classpath of WLS. It can be bound to a specific application.
If Java. Lang. nosuchmethoderror: org. objectweb. ASM. classvisitor. Visit (iljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Ljava/lang/String;) This problem occurs, you must add the cglib-nodep-2.1_2.jar to the classpath before weblogic. jar.
Alternatively, WebLogic Server 9 can be used in weblogic. xml.
<Container-Descriptor> <prefer-web-INF-classes>True</Prefer-web-INF-classes> </container-Descriptor>
The class used in Web-INF is preferred, instead of the classvisitor class in weblogic. jar package. (For WebLogic Server 9)