On Tue, May 18, 2010 at 4:47 PM, ErEcTuS <ahmed.mehdi.2...@gmail.com> wrote: > > Hello Matt, thanks for responding. > Yeah i did what you advised me. I use netbeans 6.8, I created a maven > project, i picked my pom.xml and my project was there. > > First i wanted to ask you, what's the difference between trying Build and > Run? > > I build the project, my Mysql db is ok, the three tables are there. > But when I select Glassfish V3 to run the project, i see on the console > tomcat6.. > > In the end, i have an error message : > ------------------------------------------------------------------------ > [ERROR]BUILD ERROR > ------------------------------------------------------------------------ > An Ant BuildException has occured: The following error occurred while > executing this line: > C:\All_Apfuse\projet\testerApp\src\test\resources\web-tests.xml:165: Wrong > document title found!. Expected value ".*Main Menu.*" but got "Sign Up | > AppFuse" > > ------------------------------------------------------------------------ > For more information, run Maven with the -e switch > ------------------------------------------------------------------------ > Total time: 1 minute 52 seconds > Finished at: Tue May 18 18:30:20 CDT 2010 > Final Memory: 48M/63M > ------------------------------------------------------------------------ > [WARNING] [talledLocalContainer] Java Result: 1 > > > In my pom.xml, i have: > > <!-- WebTest dependency versions > --> > <webtest.version>3.0</webtest.version> > <cargo.container>tomcat6x</cargo.container> > <cargo.container.home>${env.CATALINA_HOME}</cargo.container.home> > > <cargo.container.url>http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.zip</cargo.container.url> > <cargo.host>localhost</cargo.host> > <cargo.port>8081</cargo.port> > <cargo.wait>false</cargo.wait> > - <!-- Jetty Cargo settings: > <cargo.container>jetty6x</cargo.container> > > <cargo.container.url>http://dist.codehaus.org/jetty/jetty-6.1.21/jetty-6.1.21.zip</cargo.container.url> > > --> > Should i put comment <!-- --> on the tomcat6 part so I can run my own > server? > > Last thing Matt, do you think it should work with glassfish v3? >
Yes, I think it will work on Glassfish, but I don't know how to go about integrating it for development like we do with "jetty:run". I'd recommend developing with Jetty and then testing on Glassfish with Cargo like do with Tomcat. You'll have to figure out the cargo settings yourself, but the following page might help: http://cargo.codehaus.org/Glassfish+3.x Matt --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net