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