On 1/24/07, Scott Purcell <[EMAIL PROTECTED]> wrote:
Hello,
I am trying to get the Equinox 1.7 WW with Spring JDBC set up.
I downloaded the zip and extracted it. I read the README and changed the
jdbc.properties from posgres to mysql. Then after that I changed the
applicationContext-jdbc.xml from
<bean id="userIncrementer"
class="org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer">
to
<bean id="userIncrementer"
class="org.springframework.jdbc.support.incrementer.MySQLMaxValueIncrementer">
Then I added the mysql to the pom file.
After all that I did a "mvn new" but it gives me a error I am having
trouble deciphering. Now also, what is odd is when I run the mvn new, I
figured it would download the jars needed for this project. But it never
did. Odd things is there are no jars for spring, etc, that I see? Isn't that
what maven is suposed to be doing?
There is no "mvn new" with Equinox - only "ant new".
;-)
Matt
Sorry to bother, I am considering this option as opposed to hibernate for a
down and dirty project.
Thanks,
Scott
Error:
D:\equinox_1_7_WW_springJDBC\eqwwspringjdbc>mvn -e test
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Equinox
[INFO] task-segment: [test]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
Artifact junit:junit:jar:3.8.1:test retains local scope 'test'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the
local scope.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
D:\equinox_1_7_WW_springJDBC\eqwwspringjdbc\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.appfuse.service.impl.UserManagerImplTest
DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) |
removing user...
DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) |
Expected exception: Object of class [org.appfuse.model.User] with identifier
[1]: not found
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.appfuse.service.UserManagerTest
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for:
classpath*:/WEB-INF/applicationContext*.xml
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1 sec <<<
FAILURE!
Running org.appfuse.dao.UserDaoTest
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for: /WEB-INF/applicationContext*.xml
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for: /WEB-INF/applicationContext*.xml
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for: /WEB-INF/applicationContext*.xml
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.469 sec
<<< FAILURE!
Running org.appfuse.web.UserActionTest
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for:
/WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for:
/WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for:
/WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml
INFO -
AbstractSingleSpringContextTests.loadContextLocations(136)
| Loading context for:
/WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.641 sec
<<< FAILURE!
Results :
Tests run: 9, Failures: 0, Errors: 8, 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(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: Wed Jan 24 16:23:20 CST 2007
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------
D:\equinox_1_7_WW_springJDBC\eqwwspringjdbc>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]