I’m still on that huge GWT+smartGWT+Selenium+Maven project. I just learned that there is no tomcat on the continuous integration server.
So I found that the simpler way to use Selenium on the integration server was :
Deploy the application with an embded container (jetty) and then unit test it with Selenium RC.
There is only one problem left. When I try launching jetty with that webapp (with jetty:run-war or jetty:run) it gives me looooaaads of errors and I think it comes from Spring.
Here is the link of the pastebin of my errors : http://pastebin.com/raw.php?i=4Qg4TXBE
When I try to access the jetty server with my browser it says : “Service unavalaible”
My build phase is :
– Unit tests on the server side
– Building war
– Starting Jetty and deploy war
– Starting Selenium server and unit testing the client side
– Closing Selenium server
– Closing Jetty container
– Sending the surefire reports of my tests to Sonar
So here is my question : What should I do to launch Jetty properly ?
Would cargo-maven-plugin solve that problem ?
Is there a simple way to get Jetty working with Spring ?
Thanks again for your answers, you guys help me a lot ^^
(Sorry for my bad english, still not good at that)
Please take a look at this article to declare your JNDI datasource called ‘agepro-ds’: http://umanga.wordpress.com/2008/11/07/maven-jetty-plugin-jndi-jdbcdbcp-configuration/