Stax Developer Community

Developer Community

philip andrew

Problem with javax.el on my seam and maven deployment to stax.net

Hi,

I get the following error when deploy to stax.net:
Jul 19, 2010 8:15:15 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalAccessError: tried to access class javassist.bytecode.StackMapTable$Writer from class org.jboss.seam.util.ProxyFactory
at org.jboss.seam.util.ProxyFactory.makeConstructor(ProxyFactory.java:803)
at org.jboss.seam.util.ProxyFactory.makeConstructors(ProxyFactory.java:685)
...

In my maven I have the following:
      <dependency>
          <groupId>org.jboss.seam</groupId>
          <artifactId>jboss-seam</artifactId>
          <version>2.2.0.GA</version>
          <!-- In order to compile, I must comment out the exclusions.
          To run I must KEEP the exclusion here.
          -->
          <exclusions>
              <exclusion>
                  <groupId>javax.el</groupId>
                  <artifactId>el-api</artifactId>
              </exclusion>
          </exclusions>
      </dependency>
      <dependency>
          <groupId>javax.el</groupId>
          <artifactId>el-api</artifactId>
          <version>1.2</version> 
          <scope>provided</scope>
      </dependency>

javax.el is excluded because this jar is in the tomcat lib directory on my machine, that is normal for tomcat 6. So it had to be excluded, but maybe stax.net does not have this jar?

Why do I get the error?

Thanks, Philip

Tags: el, exclusion, jar, javax, maven, seam

Views: 27

Reply to This

Replies to This Discussion

Hi, I solved my problem.

I read the following

"As of Tomcat6, EL is part of the Tomcat server, so don't include the EL implementation jar in your WAR."
http://www.coderanch.com/t/475071/JSF/java/Mojarra-samples-bean-val...

So as I understand, I should not have EL in my POM, also somewhere I read I should upgrade javaassist. So I got latest version of Javaassist, it wanted javax.mail.

In the end this is in my maven POM to work on STAX.

<dependency>
<groupId>org.jboss.seam
<artifactId>jboss-seam
<version>2.2.0.GA
<exclusions>
<exclusion>
<groupId>javax.el
<artifactId>el-api
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javassist
<artifactId>javassist
<version>3.11.0.GA
</dependency>
<dependency>
<groupId>javax.mail
<artifactId>mail
<version>1.4.2
</dependency>

RSS

Quick Links

Send Feedback

If you have any questions or feedback about Stax, please drop us a note.

© 2012   Created by Spike Washburn.

Badges  |  Report an Issue  |  Terms of Service