Łukasz Lenart wrote:
> 
> 2011/8/29 kozmoz <nabble....@juurlink.org>:
>> 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>


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.


--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts2-under-Jboss-6-tp4275132p4745931.html
Sent from the Struts - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to