2011/8/29 kozmoz <[email protected]>: > > Łukasz Lenart wrote: >> >> 2011/8/29 kozmoz <[email protected]>: >>> Older Struts versions (version 2.2.1.1 and before) did not include >>> Javassist. You had to include it manually as a dependency, unless you >>> were >>> using JBoss that contains its own version. Since Struts 2.3, Javassist is >>> included through OGNL and the version differs from JBoss. I can imaging >>> that >>> both versions on the classpath at the same time do conflict. >> >> So, do you have both files on the classpath ? Could you manually >> remove the Javassist from your Struts 2 application ? You can exclude >> it during build process (with Maven or Ant or Eclipse or IDEA) >> >> I've added Javassist back to OGNL as it shouldn't be steered by Struts >> 2 (other projects are using OGNL as well). >> > > I have changed my pom.xml to include Javassist with scope "provided". The > resulting war does not include javassist.jar now. During startup, everything > is fine. > > <dependency> > <groupId>javassist</groupId> > <artifactId>javassist</artifactId> > <version>3.12.0.GA</version> > <scope>provided</scope> > </dependency>
Specify as 'system' and will be perfect. > If I remove my Javassist dependency again, Javassis 3.12.0.GA is included > through struts2-core -> ognl 3.0.1 -> javassist 3.12.0.GA. Deployment fails, > as I expected. > > Indeed JBoss 6 contains Javassist 3.12.0.GA in its lib directory. We started working on dedicated jboss-blank application [1] but it's still missing some love ;-) [1] https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/jboss-blank/ Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
