On 24/04/2011 00:35, Ross Gardler wrote:
On 23/04/2011 23:07, Ross Gardler wrote:
I've finally found the time to checkout the Rave code and I've got it
all working from the command line and Eclipse. However, I'm not sure how
best to set up Eclipse to work with a Maven based project that runs in
tomcat.

I have two main problems:

Firstly, is it possible to configure things so that I don't have to kill
tomcat, rebuild and restart constantly.

Secondly, when I kill Tomcat (CTRL-C in CLI or the Terminate in Eclipse)
there server continues to run. Restarting the app reports that the port
is already in use and I need to kill the process manually.

Can someone point me to a decent intro to developing a Maven app in
Eclipse.

I found a tutorial at [1] but I'm still having problems - in summary:

- checkout rave from SVN as a Java project
- mvn eclipse:clean
- mvn eclipse:eclipse
- refresh project in eclipse
- added Tomcat as a server to Eclipse (it starts up fine)

According to the tutorial I should now be able to add rave-portal to the
server, but I get "There are no resources that can be added or removed
from the server".

I've tried creating a rave-portal project in the workspace too, but same
result.

What am I doing wrong?

I'm getting closer (and keeping answering my own mails so others need not waste time telling me things I've tried, as well as documenting it for others new to maven).

It occured to me that perhaps Eclipse didn't know it was a webapp, even though mvn eclipse:eclipse is supposed to sort all that out for me.

I removed the rave project and then re-imported as an existing Maaven project. this gave me three proejcts, Rave, rave-portal and rave-shinding (looking good). I can now add rave-portal and rave-shindig to my server config (looks even better).

However, it's still not working for me. The console output looks good, with entries such as "Root mapping to handler 'homeController'" and "FrameworkServlet 'dispatcher': initialization completed in 641 ms". however, when I request http://localhost:8080 I get a 404.

I'll keep digging when I find a little more time, but if anyone sees my silly mistake please let me know.

Ross



[1]
http://joemorrison.org/blog/2008/06/01/developing-web-applications-with-maven-and-eclipse-you-can-have-it-all/


Reply via email to