Resolves an issue where the action of struts in a jar package that is loaded by the war under WebLogic is not found

Source: Internet
Author: User

Today in the functional test environment in the deployment of the application WebLogic, after the launch error, said that spring can not find the corresponding action, so suspect is a class loading problem, looking for Niang a search, sure enough to guess right, find a solution:

1. Add Struts.xml to:

<constant name= "Struts.convention.action.includeJars" value= ". * Your jar package name. *"/>

It then starts up normally, but does not find the struts action after landing. In the development environment is obviously possible, and in Tomcat packaging war can also be used, but deployed to the WebLogic can not be, so think the problem of class loading, and then asked the degree Niang, the answer is as follows:

1. Add Struts.xml to
<constant name= "Struts.convention.action.fileProtocols" value= "Jar,zip"/>

Modified to:
<constant name= "Struts.convention.action.includeJars" value= ". * Your jar package name. *,.*?/_wl_cls_gen.*?jar (!/)?" />

Many of the articles that address this issue do not mention multiple jar issues, and if you have multiple jars to load, you need to separate them with commas

2. When Ant is packaged, the properties of the war task manifest must be written on


Then pack, deploy, start normal, open the page after landing, operation, everything OK, it seems weblogic is a bit not very good to engage, pit quite a lot.



Resolves an issue where the action of struts in a jar package that is loaded by the war under WebLogic is not found

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: info-contact@alibabacloud.com 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.