2 Replies Latest reply on May 22, 2009 4:22 AM by swd847

    IllegalAccessError on 2.1.2.CR2 startup

    stephanos

      Hi,


      when upgrading from 2.1.1.GA to 2.1.2.CR1/2 I get the following exception on startup (using tomcat and no EJB):


      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)
           at org.jboss.seam.util.ProxyFactory.make(ProxyFactory.java:565)
           at org.jboss.seam.util.ProxyFactory.createClass3(ProxyFactory.java:346)
           at org.jboss.seam.util.ProxyFactory.createClass2(ProxyFactory.java:325)
           at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:284)
           at org.jboss.seam.Component.createProxyFactory(Component.java:2426)
           at org.jboss.seam.Component.getProxyFactory(Component.java:1513)
           at org.jboss.seam.Component.wrap(Component.java:1504)
           at org.jboss.seam.Component.instantiateJavaBean(Component.java:1442)
           at org.jboss.seam.Component.instantiate(Component.java:1359)
           at org.jboss.seam.Component.newInstance(Component.java:2122)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:113)
           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
           at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
           at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
           at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
           at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
           at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:516)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



      additional system info:


      System info: os.name: 'Linux', os.arch: 'amd64', os.version:
      '2.6.27.21-170.2.56.fc10.x86_64', java.version: '1.6.0_13' 



      Anybody knows how to deal with it? This thread also mentions this, yet there is not solution...

        • 1. Re: IllegalAccessError on 2.1.2.CR2 startup
          stephanos

          If it helps, this is my dependency stack:


          [INFO] myproject:author-portal-web:war:0.0.4
          [INFO] +- javax.servlet:servlet-api:jar:2.5:provided (scope not updated to compile)
          [INFO] +- de.odysseus.juel:juel:jar:2.1.0:test
          [INFO] +- commons-digester:commons-digester:jar:1.8:compile
          [INFO] |  \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
          [INFO] +- commons-lang:commons-lang:jar:2.4:compile
          [INFO] +- commons-logging:commons-logging:jar:1.1:compile
          [INFO] |  +- logkit:logkit:jar:1.0.1:compile
          [INFO] |  \- avalon-framework:avalon-framework:jar:4.1.3:compile
          [INFO] +- myproject:portal-users:jar:0.0.4:compile
          [INFO] |  +- myproject:portal-common:jar:0.0.4:compile
          [INFO] |  |  \- myproject:portal-generic:jar:0.0.4:compile
          [INFO] |  |     +- org.metawidget:metawidget:jar:0.7:compile
          [INFO] |  |     +- org.metawidget:metawidget-backend:jar:0.7:compile
          [INFO] |  |     +- org.metawidget:metawidget-frontend:jar:0.7:compile
          [INFO] |  |     +- com.sun:jsf-impl:jar:1.2_10:runtime
          [INFO] |  |     +- javax.faces:jsf-api:jar:1.2_10:compile
          [INFO] |  |     +- org.jboss.seam:jboss-seam:jar:2.1.1.GA:compile
          [INFO] |  |     |  \- org.jboss.el:jboss-el:jar:1.0_02.CR2:compile
          [INFO] |  |     +- org.tuckey:urlrewritefilter:jar:3.1.0:compile
          [INFO] |  |     +- org.hibernate:hibernate-entitymanager:jar:3.4.0.GA:compile
          [INFO] |  |     |  +- org.hibernate:ejb3-persistence:jar:1.0.2.GA:compile
          [INFO] |  |     |  +- org.hibernate:hibernate-commons-annotations:jar:3.1.0.GA:compile
          [INFO] |  |     |  +- org.hibernate:hibernate-core:jar:3.3.0.SP1:compile
          [INFO] |  |     |  |  \- antlr:antlr:jar:2.7.6:compile
          [INFO] |  |     |  +- org.slf4j:slf4j-api:jar:1.4.2:compile
          [INFO] |  |     |  +- dom4j:dom4j:jar:1.6.1:compile
          [INFO] |  |     |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile
          [INFO] |  |     |  +- javax.transaction:jta:jar:1.1:compile
          [INFO] |  |     |  \- javassist:javassist:jar:3.4.GA:compile
          [INFO] |  |     +- org.hibernate:hibernate-validator:jar:3.1.0.GA:compile
          [INFO] |  |     +- org.hibernate:hibernate-annotations:jar:3.4.0.GA:compile
          [INFO] |  |     +- net.sf.ehcache:ehcache:jar:1.5.0:compile
          [INFO] |  |     |  +- backport-util-concurrent:backport-util-concurrent:jar:2.1:compile
          [INFO] |  |     |  \- net.sf.jsr107cache:jsr107cache:jar:1.0:compile
          [INFO] |  |     +- org.hibernate:hibernate-ehcache:jar:3.3.1.GA:compile
          [INFO] |  |     +- org.hibernate:hibernate-tools:jar:3.2.3.GA:compile
          [INFO] |  |     |  +- org.beanshell:bsh:jar:2.0b4:compile
          [INFO] |  |     |  +- freemarker:freemarker:jar:2.3.8:compile
          [INFO] |  |     |  \- org.hibernate:jtidy:jar:r8-20060801:compile
          [INFO] |  |     +- org.jboss.envers:jboss-envers:jar:1.2.0.GA-hibernate-3.3:compile
          [INFO] |  |     +- org.apache.ant:ant:jar:1.7.0:compile
          [INFO] |  |     |  \- org.apache.ant:ant-launcher:jar:1.7.0:compile
          [INFO] |  |     +- org.slf4j:slf4j-log4j12:jar:1.5.2:runtime
          [INFO] |  |     |  \- log4j:log4j:jar:1.2.12:runtime
          [INFO] |  |     +- org.jasypt:jasypt:jar:1.3.1:compile
          [INFO] |  |     |  \- com.ibm.icu:icu4j:jar:3.4.4:compile
          [INFO] |  |     +- org.compass-project:compass:jar:2.2.0:compile
          [INFO] |  |     +- org.apache.lucene:lucene-core:jar:2.4.1:compile
          [INFO] |  |     +- org.apache.lucene:lucene-analyzers:jar:2.4.1:runtime
          [INFO] |  |     +- org.apache.lucene:lucene-highlighter:jar:2.4.1:runtime
          [INFO] |  |     +- net.jawr:jawr:jar:2.7:runtime
          [INFO] |  |     \- org.opensymphony.quartz:quartz:jar:1.6.1:compile
          [INFO] |  \- javax.mail:mail:jar:1.4:compile
          [INFO] |     \- javax.activation:activation:jar:1.1:compile
          [INFO] +- myproject:author-integration:jar:0.0.4:compile
          [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
          [INFO] |  +- javax.ws.rs:jsr311-api:jar:1.0:compile
          [INFO] |  +- com.sun.jersey:jersey-bundle:jar:1.0:compile
          [INFO] |  \- com.suns.common:common-utilities:jar:0.0.4:compile
          [INFO] |     \- myproject:common-generic:jar:0.0.4:compile
          [INFO] |        +- commons-io:commons-io:jar:1.4:compile
          [INFO] |        \- javax.persistence:persistence-api:jar:1.0:compile
          [INFO] +- org.jboss.seam:jboss-seam-ui:jar:2.1.1.GA:runtime
          [INFO] |  \- org.jboss.seam:jboss-seam-jul:jar:2.1.1.GA:runtime
          [INFO] +- org.jboss.seam:jboss-seam-mail:jar:2.1.1.GA:runtime
          [INFO] +- org.jboss:jboss-faces:jar:4.2.3.GA:runtime
          [INFO] +- jboss:jboss-serialization:jar:4.2.2.GA:runtime
          [INFO] +- org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:runtime
          [INFO] +- trove:trove:jar:1.0.2:runtime
          [INFO] +- org.hdiv:hdiv-core:jar:2.0.3:compile
          [INFO] |  +- org.springframework:spring:jar:2.5:compile
          [INFO] |  +- commons-codec:commons-codec:jar:1.3:compile
          [INFO] |  +- commons-validator:commons-validator:jar:1.1.4:compile
          [INFO] |  \- junit:junit:jar:3.8.1:compile
          [INFO] +- asm:asm:jar:3.1:runtime
          [INFO] +- com.sun.messaging.mq:jms:jar:4.2:runtime
          [INFO] +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
          [INFO] +- org.richfaces.framework:richfaces-impl:jar:3.3.1.GA:compile
          [INFO] +- org.richfaces.ui:richfaces-ui:jar:3.3.1.GA:compile
          [INFO] +- org.richfaces.framework:richfaces-api:jar:3.3.1.GA:compile
          [INFO] |  \- commons-collections:commons-collections:jar:3.2:compile
          [INFO] +- net.sourceforge.nekohtml:nekohtml:jar:1.9.9:runtime
          [INFO] |  \- xerces:xercesImpl:jar:2.8.1:runtime
          [INFO] +- myproject:portal-test-container:jar:0.0.4:test
          [INFO] |  +- myproject:portal-test:jar:0.0.4:test
          [INFO] |  |  +- myproject:common-test:jar:0.0.4:test
          [INFO] |  |  |  +- org.testng:testng:jar:jdk15:5.8:test
          [INFO] |  |  |  +- jdepend:jdepend:jar:2.9.1:test
          [INFO] |  |  |  +- org.mockito:mockito-all:jar:1.7:test
          [INFO] |  |  |  \- fest:fest-assert:jar:1.1a1:test
          [INFO] |  |  |     \- fest:fest-util:jar:1.0:test
          [INFO] |  |  \- com.h2database:h2:jar:1.1.102:test
          [INFO] |  +- org.jboss.jsfunit:jboss-jsfunit-core:jar:1.0.0.GA:test
          [INFO] |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.4:test
          [INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.4:test
          [INFO] |  |  +- net.sourceforge.cssparser:cssparser:jar:0.9.5:test
          [INFO] |  |  |  \- org.w3c.css:sac:jar:1.3:test
          [INFO] |  |  +- xalan:xalan:jar:2.7.0:test
          [INFO] |  |  \- cactus:cactus:jar:13-1.7.1:test
          [INFO] |  |     +- cactus:cactus-ant:jar:13-1.7.1:test
          [INFO] |  |     +- aspectj:aspectjrt:jar:1.2.1:test
          [INFO] |  |     \- cargo:cargo:jar:0.5:test
          [INFO] |  +- org.glassfish.embedded:glassfish-embedded-all:jar:3.0-Prelude-Embedded-b14:test
          [INFO] |  \- org.apache.openejb:openejb-core:jar:3.0:test
          [INFO] |     +- org.apache.openejb:javaee-api:jar:5.0-1:test
          [INFO] |     +- org.apache.openejb:openejb-loader:jar:3.0:test
          [INFO] |     +- org.apache.openejb:openejb-javaagent:jar:3.0:test
          [INFO] |     +- org.apache.openejb:openejb-jee:jar:3.0:test
          [INFO] |     |  \- com.sun.xml.bind:jaxb-impl:jar:2.0.5:test
          [INFO] |     +- commons-cli:commons-cli:jar:1.1:test
          [INFO] |     +- org.apache.activemq:activemq-ra:jar:4.1.1:test
          [INFO] |     +- org.apache.activemq:activemq-core:jar:4.1.1:test
          [INFO] |     |  \- org.apache.activemq:activeio-core:jar:3.0.0-incubator:test
          [INFO] |     +- net.sourceforge.serp:serp:jar:1.13.1:test
          [INFO] |     +- org.apache.geronimo.components:geronimo-connector:jar:2.1:test
          [INFO] |     +- org.apache.geronimo.components:geronimo-transaction:jar:2.1:test
          [INFO] |     +- org.objectweb.howl:howl:jar:1.0.1-1:test
          [INFO] |     +- org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:jar:1.2:test
          [INFO] |     +- org.apache.openejb:xbean-reflect:jar:3.4-r636442:test
          [INFO] |     +- org.apache.openejb:xbean-finder:jar:3.4-r636442:test
          [INFO] |     +- org.apache.xbean:xbean-naming:jar:3.3:test
          [INFO] |     +- asm:asm-commons:jar:2.2.3:test
          [INFO] |     |  \- asm:asm-tree:jar:2.2.3:test
          [INFO] |     +- org.apache.openejb:commons-dbcp-all:jar:1.3:test
          [INFO] |     +- org.codehaus.swizzle:swizzle-stream:jar:1.0.1:test
          [INFO] |     \- wsdl4j:wsdl4j:jar:1.6.1:test
          [INFO] +- myproject:portal-test-ui:jar:0.0.4:test
          [INFO] |  +- org.openqa.selenium.webdriver:webdriver-htmlunit:jar:0.6.964:test
          [INFO] |  |  \- org.openqa.selenium.webdriver:webdriver-common:jar:0.6.964:test
          [INFO] |  +- org.openqa.selenium.webdriver:webdriver-firefox:jar:0.6.964:test
          [INFO] |  |  \- org.json:json:jar:20080701:test
          [INFO] |  \- org.openqa.selenium.webdriver:webdriver-support:jar:0.6.964:test
          [INFO] |     \- org.hamcrest:hamcrest-all:jar:1.1:test
          [INFO] +- org.jvnet.mock-javamail:mock-javamail:jar:1.7:compile
          [INFO] +- hsqldb:hsqldb:jar:1.8.0.7:compile
          [INFO] \- org.jboss.seam:jboss-seam-debug:jar:2.1.1.GA:compile
          [INFO]    \- com.sun.facelets:jsf-facelets:jar:1.1.15.B1:compile


          • 2. Re: IllegalAccessError on 2.1.2.CR2 startup
            swd847

            For some reason you are using javassist 3.4 which is really out of date. If you update to a newever javasist the problem will disappear. (in later versions of javasisst StackMapTable.Writer is public, in your version it has package scope.