Matt my hands did not type the proper info. I did not issue a mvn new (as I mistyped in prior email), I issued a 'mvn test', and that was where the error occured.
Anyway, after some discovery on my side, it appears that the database does not get created with the Equinox 1.7 WW, Spring JDBC. Duh, only Hibernate can create database, tables, and that is why all Hibernate installs just work. After I created the database, and the tables along with a sequence generator, then all is happy. Only reason I am sending this email is as follows. I am very confused as to where the libs are for this project. When doing a test, the tests appear to work just fine, but I do not see any jars. I am running ant test, but there is no spring.jar anywhere within my workspace. I bet maven has some local repository where these jars live. Is this correct? And I bet when I do a deploy, then it will copy the jars over. If anyone has a moment to possibly help me understand Mavens role in the build process with ant, I would appreciate. No rush, only if anyone has time. Thanks, Scott -----Original Message----- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 5:26 PM To: [email protected] Subject: Re: [appfuse-user] Equinox 1.7 WW SpringJDBC 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.PostgreSQLSequenceMa xValueIncrementer"> > to > > <bean id="userIncrementer" > class="org.springframework.jdbc.support.incrementer.MySQLMaxValueIncreme nter"> > > > > 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(Default LifecycleExecutor.java:555) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:454) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java: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: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.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: 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
