0 Replies Latest reply on Mar 24, 2011 12:13 PM by Richard Hopkirk

    Problem with Jboss AS 6.0.0.FINAL and WELD 1.1.0.CR3 and SEAM PERSISTENCE 3.0.0.CR1 ?

    Richard Hopkirk Newbie

      Hi all,


      I'm trying to use seam-persistence for TX demarcation.  I've managed to get an Arquillian test up and running that hits a remote jboss-as 6 and all is well.  The problem is that when I then try to deploy my JAR to jboss 6.  I'm using a copy of the all server and have copied seam-persistence-3.0.0.CR1.jar and seam-solder-3.0.0.CR1.jar to /lib. On deployment of my JAR I get the following error:


      2011-03-23 15:57:00,475 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (Thread-2) Error installing to Create: name=vfs:///D:/java/jboss/jboss-6.0.0.Final/server/jam/deploy/10jam-core-2011.1.2-SNAPSHOT.jar_WeldBootstrapBean state=Configured: java.lang.NullPointerException
              at org.jboss.weld.util.ApiAbstraction.annotationTypeForName(ApiAbstraction.java:86) [:6.0.0.Final]
              at org.jboss.weld.ejb.EJBApiAbstraction.<init>(EJBApiAbstraction.java:36) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:99) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:184) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:195) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:155) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:286) [:6.0.0.Final]
              at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.initialize(BootstrapBean.java:106) [:6.0.0.Final]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
      



      In an attempt to isolate any problems my code may be causing I then proceeded to run the WELD 1.1.0.CR3 tests in the tests-arquillian folder against a remote jboss as 6 instance running the all server with the seam-persistence and seam-solder jars above deployed in the /lib directory.  This results in none of the tests running and when I look in the server.log I see the following:


      2011-03-24 14:34:11,840 INFO  [org.jboss.weld.Version] (WorkerThread#0[XXX.XXX.XXX.XXX:56799]) WELD-000900 1.1.0 (CR3)
      2011-03-24 14:34:12,056 DEBUG [org.jboss.weld.Bootstrap] (WorkerThread#0[XXX.XXX.XXX.XXX:56799]) WELD-000103 Enabled alternatives for Manager
      Enabled alternatives: [] []
      Registered contexts: [interface javax.enterprise.context.ApplicationScoped, interface javax.enterprise.context.ConversationScoped, interface javax.enterprise.context.SessionScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.RequestScoped]
      Registered beans: 0
      Specialized beans: 0
      : [] []
      2011-03-24 14:34:12,057 DEBUG [org.jboss.weld.Bootstrap] (WorkerThread#0[XXX.XXX.XXX.XXX:56799]) WELD-000104 Enabled decorator types for Manager
      Enabled alternatives: [] []
      Registered contexts: [interface javax.enterprise.context.ApplicationScoped, interface javax.enterprise.context.ConversationScoped, interface javax.enterprise.context.SessionScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.RequestScoped]
      Registered beans: 0
      Specialized beans: 0
      : []
      2011-03-24 14:34:12,057 DEBUG [org.jboss.weld.Bootstrap] (WorkerThread#0[XXX.XXX.XXX.XXX:56799]) WELD-000105 Enabled interceptor types for Manager
      Enabled alternatives: [] []
      Registered contexts: [interface javax.enterprise.context.ApplicationScoped, interface javax.enterprise.context.ConversationScoped, interface javax.enterprise.context.SessionScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.RequestScoped]
      Registered beans: 0
      Specialized beans: 0
      : []
      2011-03-24 14:34:12,071 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (WorkerThread#0[XXX.XXX.XXX.XXX:56799]) Error installing to Create: name=vfs:///D:/java/jboss/jboss-6.0.0.Final/server/all/deploy/test.war_WeldBootstrapBean state=Configured: java.lang.NullPointerException
              at org.jboss.weld.util.ApiAbstraction.annotationTypeForName(ApiAbstraction.java:86) [:6.0.0.Final]
              at org.jboss.weld.ejb.EJBApiAbstraction.<init>(EJBApiAbstraction.java:36) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:99) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:184) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:195) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:155) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:286) [:6.0.0.Final]
              at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.initialize(BootstrapBean.java:106) [:6.0.0.Final]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
      




      NOTE

      : The WELD tests run successfully using the same setup as above if I remove the seam-persistence and seam-solder JARs from the /lib directory.  My full setup is as follows:



      1. Windows 7

      2. java version 1.6.007 / Java(TM) SE Runtime Environment (build 1.6.007-b06) / Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

      3. Jboss AS 6.0.0.FINAL

      4. seam-persistence 3.0.0.CR1

      5. seam-solder 3.0.0.CR1

      6. weld 1.1.0.CR3



      I also have full TRACE level logging for org.jboss.weld available for both runs e.g. tests pass / tests fail to run, if this would be useful. 


      Is there some configuration missing ?  Should I be using a more recent version of seam-persistence / seam-solder ?  Any help greatly appreciated!


      Apologies if the formatting is a bit messed up!!


      regards,
      Rich