Precautions for deploying spring applications to WebLogic Server

Source: Internet
Author: User

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 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.