[seam-issues] [JBoss JIRA] Created: (SEAMPERSIST-52) Problem with Jboss AS 6.0.0.FINAL and WELD 1.1.0.CR3 and SEAM PERSISTENCE 3.0.0.CR1

Richard Hopkirk (JIRA) jira-events at lists.jboss.org
Wed Jun 1 06:22:00 EDT 2011


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

                 Key: SEAMPERSIST-52
                 URL: https://issues.jboss.org/browse/SEAMPERSIST-52
             Project: Seam Persistence
          Issue Type: Bug
    Affects Versions: 3.0.0.CR1
         Environment: Jboss AS 6.0.0.FINAL, seam-persistence 3.0.0.CR1, seam-solder 3.0.0.CR1, weld 1.1.0.CR3, java version 1.6.0_07, windows
            Reporter: Richard Hopkirk


I posted about this a while back on the WELD Users forum here [http://seamframework.org/Community/ProblemWithJbossAS600FINALAndWELD110CR3AndSEAMPERSISTENCE300CR1] but have had no replies to date.


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 <b>"all"</b> server and have copied <b>seam-persistence-3.0.0.CR1.jar</b> and <b>seam-solder-3.0.0.CR1.jar</b> 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 <b>WELD 1.1.0.CR3</b> tests in the <b>"tests-arquillian"</b> folder against a remote jboss as 6 instance running the <b>"all"</b> server with the <b>seam-persistence</b> and <b>seam-solder</b> 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]
`


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

# <b>Windows 7</b> 
# <b>"java version 1.6.0_07 / Java(TM) SE Runtime Environment (build 1.6.0_07-b06) / Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)"</b>
# <b>Jboss AS 6.0.0.FINAL</b>
# <b>seam-persistence 3.0.0.CR1</b>
# <b>seam-solder 3.0.0.CR1</b>
# <b>weld 1.1.0.CR3</b>

I also have full <b>TRACE</b> level logging for <b>org.jboss.weld</b> 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 <b>seam-persistence</b> / <b>seam-solder</b> ?  Any help greatly appreciated!

Apologies if the formatting is a bit messed up!!

regards,
Rich


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list