Are you already run a sample application with JBoss Embedded EJB3
Apha-6/-7/-8 and Maven 2. Because I have maked all changes u tell me, but
without success. If yes please could u please send me this application like
a zip file. Because since yesterday i try to run a sample application with
Maven 2 and JBoss Embedded EJB3 Apha 8.
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
[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 = [EMAIL PROTECTED]
[DEBUG] (f) resources = [EMAIL PROTECTED]
[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.2for project:
null:plexus-compiler-api:jar:
1.5.2 from the repository.
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5for 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.2for project:
null:plexus-compiler-manager:jar:
1.5.2 from the repositor
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5for 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.2for project:
null:plexus-compiler-javac:jar:
1.5.2 from the repository
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-compiler::1.5.2for project:
org.codehaus.plexus:plexus-compilers:pom:1.5.2 from the r
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-components::1.1.5for 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 = [EMAIL PROTECTED]
[DEBUG] (f) resources = [EMAIL PROTECTED]
[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!
Results :
Tests run: 2, Failures: 1, Errors: 1, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: There are test failures.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
at org.apache.maven.plugin.surefire.SurefirePlugin.execute(
SurefirePlugin.java:403)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sat Jun 03 16:13:14 CEST 2006
[INFO] Final Memory: 3M/7M
[INFO]
------------------------------------------------------------------------
(ivan) [634]
On 6/3/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:
On Sat, 3 Jun 2006, Serge Emmanuel Pagop wrote:
> Hi Kenney,
>
> here is my resources and my testResources configuration. Is that ok?
Looks fine, but:
>
> <resources>
> <resource>
> <directory>src/java/resources/META-INF</directory>
> <includes>
> <include>persistence.xml</include>
>
> </includes>
> <targetPath>META-INF</targetPath>
you could also just point to src/java/resources/ and set the includes
to META-INF/persistence.xml and leave out the target path,
OR even better: move src/java/resources to src/main/resources and drop
the entire <resource>.
> </resource>
> </resources>
> <testSourceDirectory>src/test/java</testSourceDirectory>
^^ this is the default, you can leave it out
> <testResources>
> <testResource>
> <directory>src/test/resources</directory>
Idem, this is the default. you can leave this out, unless you need to
specify the <includes> because there are also files that need to be
excluded.
Btw, why do you have the testResources in the default location,
but the main resources in src/java/resources?
Btw, is the ClassCastException fixed now?
-- Kenney
> <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>
>
> On 6/3/06, Serge Emmanuel Pagop <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > On 6/3/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:
> >
> > > On Sat, 3 Jun 2006, Serge Emmanuel Pagop wrote:
> >
> > Just out of curiosity, where are your java sources located in this
> > structure? src/java/main/java/ ?
> >
> > -- Kenney
> >
> > no, my java sources is locates in this directory src/main/java
> >
> >
>
>
> --
> ----------------------------------
> Serge Emmanuel Pagop
> Java EE Consultant and Trainer
> E-Mail: [EMAIL PROTECTED]
> Skype-Name: sisepago
> Cell : +49-172-8552687
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
----------------------------------
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687