2 Replies Latest reply on Feb 22, 2010 8:23 AM by idyoshin

    Testing:  confused about JRE's versions.

    idyoshin

      Good day community.


      I need to do some tests with using of EntityManager, So I've made a couple of test classes which extends SeamTest. 


      Now the most interesting thing:  When I use Seam-gen and run this tests with ant test command (using OpenJDK1.6 or Sun JDK 1.5.0.19) I receive following exception:


        [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=persistence.units:jar=test-build.jar,unitName=lex state=Create
         [testng] java.lang.AssertionError
         [testng]      at org.hibernate.cfg.AnnotationBinder.getElementsToProcess(AnnotationBinder.java:817)
         [testng]      at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:667)
         [testng]      at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:546)
         [testng]      at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:291)
         [testng]      at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148)
         [testng]      at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
         [testng]      at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
         [testng]      at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
         [testng]      at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
         [testng]      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
         [testng]      at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:259)
         [testng]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         [testng]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [testng]      at java.lang.reflect.Method.invoke(Method.java:616)
       



      When I repack this application to the JBoss Tools structure (i.e. create the whole application structure using jboss-tools) and run this tests using OpenJDK 1.6 I get the following exception:


      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;
      



      and when using Sun JDK 1.5.0.19 :


        Deployment "vfszip:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/jboss-local-jdbc.rar/" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/ejb-deployer-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/remoting-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/messaging-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/jms-ds.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/metadata-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/lex35-test-ds.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/ejb3-deployers-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/ejb3-interceptors-aop.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/conf/jboss-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfszip:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/jms-ra.rar/" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfszip:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/jboss-xa-jdbc.rar/" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "UserTransaction" is in error due to the following reason(s): **ERROR**, java.lang.IllegalAccessError: tried to access field org.jnp.interfaces.NamingContext.localServer from class org.jboss.naming.JBossRemotingContextFactory
        Deployment "BeanDeployer" is in error due to the following reason(s): java.lang.IllegalArgumentException: No such property type for bean org.jboss.deployers.vfs.deployer.kernel.BeanDeployer available [topLevelOnly, input, registerWithJBossXB, useDefaultFeatures, jarExtension, inputs, parentFirst, buildManagedObject, outputs, wantComponents, suffix, attachmentKey, allowMultipleFiles, relativeOrder, name, componentsOnly, namespace, output, class, useSchemaValidation, includeDeploymentFile, features, names, useValidation, stage, allInputs]
        Deployment "SARDeployer" is in error due to the following reason(s): java.lang.IllegalArgumentException: No such property type for bean org.jboss.system.deployers.SARDeployer available [topLevelOnly, input, useDefaultFeatures, jarExtension, inputs, parentFirst, buildManagedObject, outputs, wantComponents, suffix, attachmentKey, allowMultipleFiles, relativeOrder, name, componentsOnly, useNamespaceAwareParser, output, class, validateDTDs, includeDeploymentFile, features, names, schemaLocation, allInputs, stage]
        Deployment "java:comp" is in error due to the following reason(s): java.lang.IllegalAccessError: tried to access field org.jnp.interfaces.NamingContext.localServer from class org.jboss.naming.JBossRemotingContextFactory
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/legacy-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/security-deployer-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/jca-deployers-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "BeanMetaDataDeployer" is in error due to the following reason(s): java.lang.IllegalArgumentException: No such property type for bean org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer available [topLevelOnly, input, output, class, inputs, parentFirst, outputs, wantComponents, relativeOrder, useUnitName, stage, allInputs, componentsOnly]
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/hsqldb-persistence-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "KernelDeploymentDeployer" is in error due to the following reason(s): java.lang.IllegalArgumentException: No such property type for bean org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer available [topLevelOnly, input, output, class, parentFirst, inputs, outputs, wantComponents, relativeOrder, mgtObjectCreator, useUnitName, componentsOnly, stage, allInputs]
        Deployment "ServiceDeploymentDeployer" is in error due to the following reason(s): java.lang.IllegalArgumentException: No such property type for bean org.jboss.system.deployers.ServiceDeploymentDeployer available [topLevelOnly, input, output, class, inputs, parentFirst, outputs, wantComponents, relativeOrder, useUnitName, stage, allInputs, componentsOnly]
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/aspect-deployer-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/destinations-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "JMXKernel" is in error due to the following reason(s): **ERROR**, java.lang.NoSuchMethodError: org.jboss.system.server.ServerConfigImpl.<init>(Lorg/jboss/system/server/ServerConfig;)V
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/jboss-aspect-library-beans.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deploy/hsqldb-ds.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/connection-factories-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
        Deployment "vfsfile:/home/zipito/workspace-ubuntu/lex35/lex35-test/bin/deployers/messaging/remoting-service.xml" is in error due to the following reason(s): java.lang.AbstractMethodError: org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer.createTopLevelClassLoader(Lorg/jboss/deployers/structure/spi/DeploymentUnit;)Ljava/lang/ClassLoader;
      




      Any idea how to make tests working ??


      regards,


      Ilya Dyoshin