2 Replies Latest reply on Oct 23, 2009 12:21 PM by Oso Pardo

    TestNG Test ot working

    Andreas Otto Newbie

      Hello,


      i use JBoss Developer Studio 2.1.0 GA and I have downloaded JBoss AS 5.1.0 GA and jboss-seam-2.2.0.GA. Trying to make the Example from the JBoss.com Homepage in My Link I have the problem that the TestNG Test for myAction does not work. I used a Postgresql - DB and did not change anything else. Can anybody help ?


      SeamTest-ds.xml:




      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE datasources
          PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
          "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
      <datasources>
         
         <local-tx-datasource>
            <jndi-name>SeamTestDatasource</jndi-name>
            <use-java-context>true</use-java-context>
            <connection-url>jdbc:postgresql://localhost:5432</connection-url>
            <driver-class>org.postgresql.Driver</driver-class>
            <user-name>postgres</user-name>
            <password>XXXXXXXX</password>
         </local-tx-datasource>
          
      </datasources>





      Exception was:




      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      
      UserTransactionBinding
       -> UserTransaction{Configured:**ERROR**}
      
      UserTransactionBinding2
       -> UserTransaction{Configured:**ERROR**}
      
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      SARDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      ServiceDeploymentDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      ServiceClassLoaderDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      BeanDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      ServiceDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      BeanMetaDataDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      UserTransaction -> java.lang.RuntimeException: Unable to locate the transaction manager
      
      KernelDeploymentDeployer -> java.lang.ClassNotFoundException: [Ljava.lang.Class;
      
      
           at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
           at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
           at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:149)
           at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
           at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
           at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
           at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1024)
           at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:915)
           at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
           at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
           at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
           at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
           at org.testng.SuiteRunner.privateRun(SuiteRunner.java:278)
           at org.testng.SuiteRunner.run(SuiteRunner.java:198)
           at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
           at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
           at org.testng.TestNG.run(TestNG.java:708)
           at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
           at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)