struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Struts 2.5.2 and Google AppEngine
Date Thu, 14 Jul 2016 07:05:15 GMT
Hi,

If you want to run the above configurations you must change few things:
- switch from javassist 3.20.0-GA to javassist 3.18.2-GA
- use dedicated FreeMarker version for GAE
- drop `java.lang.Shutdown` class from "struts.excludedClasses"

when using Maven you can do it as follow:

<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-core</artifactId>
  <version>2.5.2</version>
  <exclusions>
    <exclusion>
      <groupId>org.freemarker</groupId>
      <artifactId>freemarker</artifactId>
    </exclusion>
    <exclusion>
      <artifactId>javassist</artifactId>
      <groupId>org.javassist</groupId>
    </exclusion>
  </exclusions>
</dependency>

<!-- the latest version that works on GAE -->
<dependency>
  <artifactId>javassist</artifactId>
  <groupId>org.javassist</groupId>
  <version>3.18.2-GA</version>
</dependency>

<dependency>
  <groupId>org.freemarker</groupId>
  <artifactId>freemarker-gae</artifactId>
  <version>2.3.23</version>
</dependency>

and redefined excluded classes in struts.xml

<constant name="struts.excludedClasses"
          value="
            java.lang.Object,
            java.lang.Runtime,
            java.lang.System,
            java.lang.Class,
            java.lang.ClassLoader,
            java.lang.Shutdown,
            java.lang.ProcessBuilder,
            ognl.OgnlContext,
            ognl.ClassResolver,
            ognl.TypeConverter,
            ognl.MemberAccess,
            ognl.DefaultMemberAccess,
            com.opensymphony.xwork2.ognl.SecurityMemberAccess,
            com.opensymphony.xwork2.ActionContext" />

Just to be aware that you must control if excluded classes will change
in the fure


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message