You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Naess, Ronny" <Ro...@avinor.no> on 2006/09/25 10:14:19 UTC

Build errors

Hi.
 
I am building my modules with Maven 2. The build is executed from top
level (parent). 
 
The build process seems to be unstable. Sometime it goes well other
times not. When it breaks there is always an exception telling me that
Springs propertyPlaceHolderConfigurer not has replaced my property
values in my spring-config like it is supposed to. I think this tells me
that the dependencies might be skipped or bypassed some times. I can't
find a pattern. Anyone experienced the same?
 
 
This is the exception (mvn test -e):
 
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running no.avinor.ansattportal.dao.jdbcTemplate.ArticleJdbcDaoTest
17:08:09,718 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring sprin
 
 17:08:10,812 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:10,828 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:10,953 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:10,953 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,031 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,078 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,156 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,171 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,281 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,281 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,375 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 @SLTests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed:
1.719 sec <<< FAILURE!
Running no.avinor.ansattportal.dao.jdbcTemplate.ProjectroomJdbcDaoTest
17:08:11,406 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring sprin
 
 17:08:11,531 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,531 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,625 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 17:08:11,640 INFO
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:103)) - Configuring spri
g
 17:08:11,750 FATAL
(no.avinor.ansattportal.test.SpringTestCase.springInit(SpringTestCase.ja
va:111)) - org.springframew
rk.beans.factory.BeanDefinitionStoreException: Error registering bean
with name 'dataSource' defined in class path reso
rce [commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName'
 @SLTests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed:
0.375 sec <<< FAILURE!
 
Results :
Tests run: 9, Failures: 0, Errors: 9, Skipped: 0
 
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:4
5)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.ja
a:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.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.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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.j
ava:403)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
        ... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Sep 15 17:08:11 CEST 2006
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------