3 Replies Latest reply on Apr 12, 2011 5:51 AM by meetoblivion

    JBoss AS 6 Deployment issue

    meetoblivion

      So I have essentially the same code in a lot of different apps, all seem to deploy fine to AS 6 except for this one.  I am receiving

       

      Caused by: java.lang.NoClassDefFoundError: org/jboss/ejb3/statistics/InvocationStatistics$TimeStatistic
      at org.jboss.ejb3.statistics.InvocationStatistics.updateStats(InvocationStatistics.java:109)
      at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:340)
      at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:156)
      at org.jboss.ejb3.nointerface.impl.invocationhandler.NoInterfaceViewInvocationHandler.invokeEndpoint(NoInterfaceViewInvocationHandler.java:143)
      at org.jboss.ejb3.nointerface.impl.invocationhandler.NoInterfaceViewInvocationHandler.access$000(NoInterfaceViewInvocationHandler.java:54)
      at org.jboss.ejb3.nointerface.impl.invocationhandler.NoInterfaceViewInvocationHandler$1.invoke(NoInterfaceViewInvocationHandler.java:103)
      at org.jboss.ejb3.sis.reflect.InterceptorInvocationHandler$1.proceed(InterceptorInvocationHandler.java:84)
      at org.jboss.ejb3.sis.InterceptorAssembly$1.proceed(InterceptorAssembly.java:82)
      at org.jboss.ejb3.nointerface.impl.async.AsyncClientInterceptor.invoke(AsyncClientInterceptor.java:119)
      at org.jboss.ejb3.sis.InterceptorAssembly$1.proceed(InterceptorAssembly.java:74)
      at org.jboss.ejb3.nointerface.impl.invocationhandler.ObjectMethodsInterceptor.invoke(ObjectMethodsInterceptor.java:78)
      at org.jboss.ejb3.sis.InterceptorAssembly$1.proceed(InterceptorAssembly.java:74)
      at org.jboss.ejb3.sis.InterceptorAssembly.invoke(InterceptorAssembly.java:90)
      at org.jboss.ejb3.sis.reflect.InterceptorInvocationHandler.invoke(InterceptorInvocationHandler.java:110)
      at org.jboss.ejb3.nointerface.impl.invocationhandler.NoInterfaceViewInvocationHandler.invoke(NoInterfaceViewInvocationHandler.java:115)
      at org.jboss.ejb3.proxy.javassist.JavassistInvocationHandlerAdapter.invoke(JavassistInvocationHandlerAdapter.java:71)
      at com.coat.web.content.serv.ContentCacheHandler_$$_javassist_71.producePW(ContentCacheHandler_$$_javassist_71.java)
      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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
      at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:126)
      at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62)
      at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
      at com.coat.web.content.serv.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$apps$jboss$jboss-6-content$jboss-6$0$0$Final$server$all$deploy$bcf-content-serv$war"-SessionBean-ContentCacheHandler_$$_WeldProxy.producePW(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$apps$jboss$jboss-6-content$jboss-6$0$0$Final$server$all$deploy$bcf-content-serv$war"-SessionBean-ContentCacheHandler_$$_WeldProxy.java)
      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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:169)
      ... 62 more

       

      When I try to run the app.

       

      This is what's in my WAR's lib folder

       

      commons-beanutils-1.8.0.jar

      commons-digester-2.0.jar

      commons-logging-1.1.1.jar

      google-collections-1.0.jar

      jettison-1.2.jar

      prettyfaces-jsf2-3.2.0.jar

      seam-persistence-3.0.0.Final.jar

      seam-solder-3.0.0.Final.jar

       

      I can't seem to see what's wrong.. any ideas?

        • 1. JBoss AS 6 Deployment issue
          wdfink

          Do you talk about 'same code' in different deployable apps.

          Are the other apps also WAR's and contain the same archives in the lib folder,

          I suppose you pack something different that cause the class-loading problem.

          • 2. JBoss AS 6 Deployment issue
            wolfgangknauf

            Hi John,

             

            do you have any classloader config in your app?

            I found this class in your callstack: "com.coat.web.content.serv.ContentCacheHandler" - is this a class of your own app?

             

            Best regards

             

            Wolfgang

            • 3. JBoss AS 6 Deployment issue
              meetoblivion

              It ended up being a circular injection point on a CDI producer w/ injection on the same bean, which shouldn't work.  It wasn't until I changed it to purely a CDI bean that I received a message indicating I had a circular reference.  I would think EJB deployment should pick that up as well...

               

              Thanks anyways.