Home > Guides > Core Developers Guide > Application Servers > WebLogic |
struts-velocity.properties
Configuration Filestruts.properties
file (usually kept in the WEB-INF/classes
directory), add an entry that specifies a Velocity configuation file.
struts.properties
file.velocity.properties
file that is the the SAF velocity-dep.jar
.struts-velocity.properties
file, find he section titled "T E M P L A T E L O A D E R S
", and change this section as so:When using mentioned plugin in Weblogic 11g you can get NullPointerException within Struts 2. To solve the problem you must enable the "Archived Real Path" global property in Weblogic admin console > configuration > Web Applications. It's because JasperReportsResult determines the report directory base on servletContext.getRealPath(finalLocation).
When you deployed an application that base on the Convention Plugin and you get an error messages that says:
There is no Action mapped for namespace / and action name xxxxxx
create struts.properties file in WEB-INF/classes folder (in the expanded application's folder or in the source code) with below statements:
#struts convention property modifications for Weblogic struts.convention.action.includeJars=.*?/yourwebapp.*?jar(!/)? struts.convention.action.fileProtocols=jar,zip
Thanks to Amit who the first published solution on his blog