1 Reply Latest reply on Jun 6, 2006 3:26 AM by J-C jc

    + JBoss Embedded EJB3 and Surefire Plugin Maven 2 PROBLEM +

    Serge Emmanuel Pagop Newbie

      Hi all EJB3 and Maven 2 gurus,

      Is there someone that already run a sample application with JBoss Embedded EJB3 Alpha-8 and Maven 2. when yes please could u please send me the sample as zip file under this email(serge.pagop@googlemail.com) . Because i try to run a sample application with Maven 2 and JBoss Embedded EJB3 Alpha 8 but without success.

      Any Suggestions!

      Thanks

      As I see maven runs the test class


      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.adorsys.ipod.jpa.test.EJB3EmbeddedTestCase
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!

      Running org.adorsys.ipod.jpa.test.InsertCustomerTest
      $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.844 sec <<< FAILURE!


      and here is the report from surefire

      -------------------------------------------------------------------------------
      Test set: org.adorsys.ipod.jpa.test.InsertCustomerTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.86 sec <<< FAILURE!
      testPersistCustomer(org.adorsys.ipod.jpa.test.InsertCustomerTest ) Time elapsed: 1.828 sec <<< ERROR!
      java.lang.RuntimeException: Couldn't lookup: java:/EntityManager/custdb
      at org.adorsys.ipod.jpa.test.JBossEJB3EmbeddedUtil.lookup(JBossEJB3EmbeddedUtil.java:90)
      at org.adorsys.ipod.jpa.test.InsertCustomerTest.testPersistCustomer(InsertCustomerTest.java:58)

      I think that the problem is that maven does not set all the resources files ( persistence.xml, embedded-jboss-beans.xml, ...) in my classpath and I do not why.


      Here is debug message after all changes u tell me:

      (ivan) [633] mvn -o -X -DTest=InsertCustomerTest test

      + Error stacktraces are turned on.
      Maven version: 2.0.4
      [DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und Einstellungen\spagop\.m2\plugin- registry.xml'
      [DEBUG] Building Maven global-level plugin registry from: 'c:\tools\maven-2.0.4\conf\plugin-registry.xml'
      [INFO]
      NOTE: Maven is executing in offline mode. Any artifacts not already in your local
      repository will be inaccessible.

      [INFO] Scanning for projects...
      [INFO] Reactor build order:
      [INFO] Maven Quick Start Archetype
      [INFO] Maven Quick Start Archetype
      [INFO] Maven Webapp Archetype
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Maven Quick Start Archetype
      [INFO] task-segment: [test]
      [INFO] ----------------------------------------------------------------------------
      [DEBUG] Skipping disabled repository Maven Snapshots
      [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository planet-mirror
      [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the rep
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
      [DEBUG] Skipping disabled repository Maven Snapshots
      [DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository planet-mirror
      [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-surefire-plugin:maven-plugin:2.2 from the repos
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
      [INFO] No goals needed for project - skipping
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Maven Quick Start Archetype
      [INFO] task-segment: [test]
      [INFO] ----------------------------------------------------------------------------
      [DEBUG] Skipping disabled repository Maven Snapshots
      [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository planet-mirror
      [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repo
      - Show quoted text -
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
      [DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-project:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
      [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
      [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact-manager:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-repository-metadata:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-profile:jar: 2.0 from the repository.
      [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-plugin-api:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' -->
      [DEBUG] (f) filters = []
      [DEBUG] (f) outputDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      [DEBUG] (f) project = org.apache.maven.project.MavenProject@9f7af471
      [DEBUG] (f) resources = [org.apache.maven.model.Resource@154864a ]
      [DEBUG] -- end configuration --
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [DEBUG] org.adorsys.iPod:ipodstore-jpa:jar:1.0-SNAPSHOT (selected for null)
      [DEBUG] junit:junit:jar: 3.8.1:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:thirdparty-all:jar:1.0-alpha-8:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:jboss-ejb3-all:jar:1.0-alpha-8:compile (selected for compile)

      [DEBUG] mysql:mysql-connector-java:jar:3.1.12:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:hibernate-all:jar:1.0-alpha-8:compile (selected for compile)

      [DEBUG] net.sf.ehcache:ehcache:jar:1.2:compile (selected for compile)
      [DEBUG] commons-logging:commons-logging:jar:1.0.4:compile (selected for compile)
      [DEBUG] commons-collections:commons-collections:jar:2.1:compile (selected for compile)
      [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.2 for project: null:plexus-compiler-api:jar: 1.5.2 from the repository.
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.5 for project: null:plexus-compiler:pom:1.5.2 from the repository.

      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: org.codehaus.plexus:plexus-components:pom:1.1.5 from the repositor
      [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
      [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
      [DEBUG] junit:junit:jar: 3.8.1:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.2 for project: null:plexus-compiler-manager:jar: 1.5.2 from the repositor
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.5 for project: null:plexus-compiler:pom:1.5.2 from the repository.

      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: org.codehaus.plexus:plexus-components:pom:1.1.5 from the repositor
      [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compilers::1.5.2 for project: null:plexus-compiler-javac:jar:1.5.2 from the repository
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.2 for project: org.codehaus.plexus:plexus-compilers:pom:1.5.2 from the r
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.5 for project: null:plexus-compiler:pom:1.5.2 from the repository.

      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: org.codehaus.plexus:plexus-components:pom:1.1.5 from the repositor
      [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.5.2:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.0.5 from the repository.
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (removed - nearer found: 1.0.4)
      [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:compile' -->
      [DEBUG] (f) basedir = c:\dev\workspace-2\ipodstore\ipodstore-jpa
      [DEBUG] (f) buildDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target
      [DEBUG] (f) classpathElements = [c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes, C:\Dokumente und Einstellungen\spagop\.m2\reposito
      ng\1.0.4\commons-logging-1.0.4.jar, C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-collections\commons-collections\2.1\commons-col
      [DEBUG] (f) compileSourceRoots = [c:\dev\workspace-2\ipodstore\ipodstore-jpa\src\main\java]
      [DEBUG] (f) compilerId = javac
      [DEBUG] (f) debug = true
      [DEBUG] (f) fork = false
      [DEBUG] (f) optimize = false
      [DEBUG] (f) outputDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      [DEBUG] (f) outputFileName = ipodstore-jpa-1.0-SNAPSHOT
      [DEBUG] (f) projectArtifact = org.adorsys.iPod:ipodstore-jpa:jar:1.0-SNAPSHOT
      [DEBUG] (f) showDeprecation = false
      [DEBUG] (f) showWarnings = false
      [DEBUG] (f) source = 1.5
      [DEBUG] (f) staleMillis = 0
      [DEBUG] (f) target = 1.5
      [DEBUG] (f) verbose = false
      [DEBUG] -- end configuration --
      [INFO] [compiler:compile]
      [DEBUG] Using compiler 'javac'.
      [DEBUG] Source directories: [c:\dev\workspace-2\ipodstore\ipodstore-jpa\src\main\java]
      [DEBUG] Classpath: [c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      C:\Dokumente und Einstellungen\spagop\.m2\repository\junit\junit\3.8.1\junit- 3.8.1.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\thirdparty-all\1.0-alpha-8\thirdparty-all-1.0-alpha-8.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\hibernate-all\1.0-alpha-8\hibernate- all-1.0-alpha-8.jar

      C:\Dokumente und Einstellungen\spagop\.m2\repository\net\sf\ehcache\ehcache\1.2\ehcache-1.2.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-logging\commons-logging\1.0.4\commons- logging-1.0.4.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-collections\commons-collections\2.1\commons-collections-2.1.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\mysql\mysql-connector-java\3.1.12\mysql- connector-java-3.1.12.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\jboss-ejb3-all\1.0-alpha-8\jboss-ejb3-all-1.0-alpha-8.jar]

      [DEBUG] Output directory: c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      [INFO] Nothing to compile - all classes are up to date
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:testResources' -->
      [DEBUG] (f) filters = []
      [DEBUG] (f) outputDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\test-classes
      [DEBUG] (f) project = org.apache.maven.project.MavenProject@9f7af471
      [DEBUG] (f) resources = [org.apache.maven.model.Resource@90c06f]
      [DEBUG] -- end configuration --
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [DEBUG] org.adorsys.iPod:ipodstore-jpa:jar:1.0-SNAPSHOT (selected for null)
      [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:thirdparty-all:jar:1.0-alpha-8:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:jboss-ejb3-all:jar:1.0-alpha-8:compile (selected for compile)

      [DEBUG] mysql:mysql-connector-java:jar:3.1.12:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:hibernate-all:jar: 1.0-alpha-8:compile (selected for compile)

      [DEBUG] net.sf.ehcache:ehcache:jar:1.2:compile (selected for compile)
      [DEBUG] commons-logging:commons-logging:jar:1.0.4:compile (selected for compile)
      [DEBUG] commons-collections:commons-collections:jar: 2.1:compile (selected for compile)
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:testCompile' -->
      [DEBUG] (f) basedir = c:\dev\workspace-2\ipodstore\ipodstore-jpa
      [DEBUG] (f) buildDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target
      [DEBUG] (f) classpathElements = [c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes, c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\
      instellungen\spagop\.m2\repository\commons-logging\commons-logging\1.0.4\commons- logging-1.0.4.jar, C:\Dokumente und Einstellungen\spagop\.m2\re
      [DEBUG] (f) compileSourceRoots = [c:\dev\workspace-2\ipodstore\ipodstore-jpa\src\test\java]
      [DEBUG] (f) compilerId = javac
      [DEBUG] (f) debug = true
      [DEBUG] (f) fork = false
      [DEBUG] (f) optimize = false
      [DEBUG] (f) outputDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\test-classes
      [DEBUG] (f) outputFileName = ipodstore-jpa-1.0-SNAPSHOT
      [DEBUG] (f) showDeprecation = false
      [DEBUG] (f) showWarnings = false
      [DEBUG] (f) source = 1.5
      [DEBUG] (f) staleMillis = 0
      [DEBUG] (f) target = 1.5
      [DEBUG] (f) verbose = false
      [DEBUG] -- end configuration --
      [INFO] [compiler:testCompile]
      [DEBUG] Using compiler 'javac'.
      [DEBUG] Source directories: [c:\dev\workspace-2\ipodstore\ipodstore-jpa\src\test\java]
      [DEBUG] Classpath: [c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\test-classes
      C:\Dokumente und Einstellungen\spagop\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\thirdparty-all\1.0-alpha-8\thirdparty- all-1.0-alpha-8.jar

      C:\Dokumente und Einstellungen\spagop\.m2\repository\net\sf\ehcache\ehcache\1.2\ehcache-1.2.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\hibernate-all\1.0-alpha-8\hibernate- all-1.0-alpha-8.jar

      C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-collections\commons-collections\2.1\commons- collections-2.1.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\mysql\mysql-connector-java\3.1.12\mysql-connector-java-3.1.12.jar
      C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\jboss-ejb3-all\1.0-alpha-8\jboss- ejb3-all-1.0-alpha-8.jar]

      [DEBUG] Output directory: c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\test-classes
      [INFO] Nothing to compile - all classes are up to date
      [DEBUG] org.adorsys.iPod:ipodstore-jpa:jar:1.0-SNAPSHOT (selected for null)
      [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:thirdparty-all:jar:1.0-alpha-8:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:jboss-ejb3-all:jar: 1.0-alpha-8:compile (selected for compile)

      [DEBUG] mysql:mysql-connector-java:jar:3.1.12:compile (selected for compile)
      [DEBUG] jboss-ejb3-embeddable_alpha-8:hibernate-all:jar:1.0-alpha-8:compile (selected for compile)

      [DEBUG] net.sf.ehcache:ehcache:jar:1.2:compile (selected for compile)
      [DEBUG] commons-logging:commons-logging:jar:1.0.4:compile (selected for compile)
      [DEBUG] commons-collections:commons-collections:jar: 2.1:compile (selected for compile)
      [DEBUG] org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2:runtime (selected for runtime)

      [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar: 1.1 from the repository.
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
      [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
      [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0 for project: null:surefire-booter:jar: 2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.surefire:surefire:pom:2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
      [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.0:runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0 for project: null:surefire-api:jar:2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.surefire:surefire:pom:2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
      [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.0:runtime (selected for runtime)
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test ' -->
      [DEBUG] (f) basedir = c:\dev\workspace-2\ipodstore\ipodstore-jpa
      [DEBUG] (f) childDelegation = false

      [DEBUG] (f) classesDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      [DEBUG] (f) classpathElements = [c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes, c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\
      instellungen\spagop\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar, C:\Dokumente und Einstellungen\spagop\.m2\re
      [DEBUG] (f) disableXmlReport = false
      [DEBUG] (f) forkMode = once
      [DEBUG] (f) jvm = java

      [DEBUG] (f) localRepository = [local] -> file://C:\Dokumente und Einstellungen\spagop\.m2\repository
      [DEBUG] (f) parallel = false
      [DEBUG] (f) pluginArtifactMap = { org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven.surefire:
      [DEBUG] (f) printSummary = true
      [DEBUG] (f) projectArtifactMap = {jboss-ejb3-embeddable_alpha-8:hibernate-all=jboss-ejb3-embeddable_alpha-8:hibernate-all:jar: 1.0-alpha-8:comp

      ommons-collections:commons-collections=commons-collections:commons-collections:jar:2.1:compile}
      [DEBUG] (f) remoteRepositories = [[central] -> http://www.ibiblio.org/maven2/ , [Maven Snapshots] -> http://snapshots.maven.codehaus.org/maven2
      [DEBUG] (f) reportFormat = brief
      [DEBUG] (f) reportsDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\surefire-reports
      [DEBUG] (f) testClassesDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\test-classes

      [DEBUG] (f) testSourceDirectory = c:\dev\workspace-2\ipodstore\ipodstore-jpa\src\test\java
      [DEBUG] (f) threadCount = 5
      [DEBUG] (f) trimStackTrace = true
      [DEBUG] (f) useFile = true
      [DEBUG] -- end configuration --
      [INFO] [surefire:test]
      [DEBUG] dummy:dummy:jar:1.0 (selected for null)
      [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
      [DEBUG] Adding to surefire booter test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\org\apache\maven\surefire\surefire-api\2.
      [DEBUG] Adding to surefire booter test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plex
      [DEBUG] Adding to surefire booter test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\org\apache\maven\surefire\surefire-booter
      [DEBUG] dummy:dummy:jar:1.0 (selected for null)
      [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire-providers::2.0 for project: null:surefire-junit:jar:2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.0 for project: null:surefire-providers:pom:null from the repository.
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.surefire:surefire:pom:2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
      [DEBUG] org.apache.maven.surefire:surefire-junit:jar:2.0 (selected for null)
      [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.0:compile (selected for compile)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected for compile)
      [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
      [DEBUG] Adding to surefire test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\org\apache\maven\surefire\surefire-junit\2.0\sur
      [DEBUG] Adding to surefire test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\junit\junit\3.8.1\junit- 3.8.1.jar
      [DEBUG] Adding to surefire test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\suref
      [DEBUG] Adding to surefire test classpath: C:\Dokumente und Einstellungen\spagop\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-util
      [DEBUG] Test Classpath :
      [DEBUG] c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\classes
      [DEBUG] c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\test-classes
      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\junit\junit\3.8.1\junit- 3.8.1.jar
      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\thirdparty-all\1.0-alpha-8\thirdparty-all-1.0-alpha

      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\net\sf\ehcache\ehcache\1.2\ehcache- 1.2.jar
      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\hibernate-all\1.0-alpha-8\hibernate-all-1.0-alpha-8

      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-logging\commons-logging\1.0.4\commons- logging-1.0.4.jar
      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\commons-collections\commons-collections\2.1\commons-collections-2.1.jar
      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\jboss-ejb3-embeddable_alpha-8\jboss-ejb3-all\1.0-alpha-8\jboss- ejb3-all-1.0-alpha

      [DEBUG] C:\Dokumente und Einstellungen\spagop\.m2\repository\mysql\mysql-connector-java\3.1.12\mysql-connector-java-3.1.12.jar
      [DEBUG] Setting system property [localRepository]=[C:\Dokumente und Einstellungen\spagop\.m2\repository]
      [DEBUG] Setting system property [basedir]=[c:\dev\workspace-2\ipodstore\ipodstore-jpa]
      [INFO] Surefire report directory: c:\dev\workspace-2\ipodstore\ipodstore-jpa\target\surefire-reports
      Forking command line: java -classpath "C:\Dokumente und Einstellungen\spagop\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.adorsys.ipod.jpa.test.EJB3EmbeddedTestCase
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!

      Running org.adorsys.ipod.jpa.test.InsertCustomerTest
      $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.844 sec <<< FAILURE!


      and hier is my pom:

      <project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
       <parent>
       <artifactId>ipodstore</artifactId>
       <groupId>org.adorsys.iPod</groupId>
       <version>1.0-SNAPSHOT</version>
       </parent>
       <modelVersion>4.0.0</modelVersion>
       <artifactId>ipodstore-jpa</artifactId>
       <name>Maven Quick Start Archetype</name>
       <version>1.0-SNAPSHOT</version>
       <url>http://maven.apache.org</url>
       <dependencies>
       <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>3.8.1</version>
       </dependency>
       <dependency>
       <groupId>jboss-ejb3-embeddable_alpha-8</groupId>
       <artifactId>jboss-ejb3-all</artifactId>
       <version>1.0-alpha-8</version>
       </dependency>
       <dependency>
       <groupId>jboss-ejb3-embeddable_alpha-8</groupId>
       <artifactId>thirdparty-all</artifactId>
       <version>1.0-alpha-8</version>
       </dependency>
       <dependency>
       <groupId>jboss-ejb3-embeddable_alpha-8</groupId>
       <artifactId>hibernate-all</artifactId>
       <version>1.0-alpha-8</version>
       </dependency>
       <dependency>
       <groupId>net.sf.ehcache</groupId>
       <artifactId>ehcache</artifactId>
       <version>1.2</version>
       </dependency>
       <dependency>
       <groupId>mysql</groupId>
       <artifactId>mysql-connector-java</artifactId>
       <version>3.1.12</version>
       </dependency>
       </dependencies>
       <build>
       <plugins>
       <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
       <source>1.5</source>
       <target>1.5</target>
       </configuration>
       </plugin>
       <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       </plugin>
       </plugins>
       <resources>
       <resource>
       <directory>src/main/resources</directory>
       <includes>
       <include>META-INF/persistence.xml</include>
       </includes>
       </resource>
       </resources>
       <testSourceDirectory>src/test/java</testSourceDirectory>
       <testResources>
       <testResource>
       <directory>src/test/resources</directory>
       <includes>
       <include>default.persistence.properties</include>
       <include>jndi.properties</include>
       <include>embedded-jboss-beans.xml</include>
       <include>ejb3-interceptors-aop.xml</include>
       <include>log4j.xml</include>
       <include>security-beans.xml</include>
       <include>login-config.xml</include>
       </includes>
       </testResource>
       </testResources>
       </build>
      </project>


      hier my util class

      public class JBossEJB3EmbeddedUtil {
       private static final Logger log = Logger.getLogger(JBossEJB3EmbeddedUtil.class);
       private static EJB3StandaloneDeployer deployer = null;
       private static InitialContext initialContext = null;
       public static void startupEmbeddedJboss() throws Exception {
       log.debug("---- bootstrapping EJB3 container....");
       // Boot the JBoss Microcontainer with EJB3 settings, loads
       // ejb3-interceptors-aop.xml
       EJB3StandaloneBootstrap.boot(null);
       log.debug("...... deploying embedded-jboss-beans....");
       EJB3StandaloneBootstrap.scanClasspath();
       log.debug("...... embedded-jboss-beans deployed....");
       // Add all EJBs found in the archive that has this file
       deployer = new EJB3StandaloneDeployer();
       log.debug("...... deploying MM ejb3.....");
       log.debug("...... ejb3 deployed....");
       deployer.setKernel(EJB3StandaloneBootstrap.getKernel()); // THIS
       deployer.create();
       log.debug("...... deployer created....");
      
       deployer.start();
       log.debug("...... deployer started....");
      
       // Create InitialContext from jndi.properties
       initialContext = new InitialContext();
       log.debug("---- end of bootstrapping EJB3 container....InitialContext is:");
       }
       public static void shutdownEmbeddedJboss()
       {
       try {
       log.debug("---- Invoking EJB3.shutdown..");
       deployer.stop();
       deployer.destroy();
       EJB3StandaloneBootstrap.shutdown();
       } catch (Exception ex) {
       throw new RuntimeException(ex);
       }
       }
       public static Object lookup(String beanName) {
       try {
       Hashtable props = new Hashtable();
       props.put("java.naming.factory.initial", "org.jnp.interfaces.LocalOnlyContextFactory");
       props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
       initialContext = new InitialContext(props);
       return initialContext.lookup(beanName);
       }
       catch (NamingException ex) {
       throw new RuntimeException("Couldn't lookup: " + beanName, ex);
       }
       }
      }

      and hier my testcase

      public class EJB3EmbeddedTestCase extends TestCase {
       public static final Logger log = Logger.getLogger(EJB3EmbeddedTestCase.class);
       public EJB3EmbeddedTestCase(String s) {
       super(s);
       }
       public void setUp() throws Exception {
      
       try {
       JBossEJB3EmbeddedUtil.startupEmbeddedJboss();
       }
       catch (Exception ex) {
       ex.printStackTrace();
       throw new RuntimeException(ex);
       }
       }
       public void tearDown() {
       try {
       JBossEJB3EmbeddedUtil.shutdownEmbeddedJboss();
       }
       catch (Exception ex) {
       throw new RuntimeException(ex);
       }
       }
      }