I'm using eclipse 3.3.1.1 and m2-eclipse 0.0.12

What's the best way to set up a dynamic web project in eclipse (with existing code)? I've tried it several times today and I have problems with the project dependencies.

Firstly the Project Preferences / J2EE Module Dependencies dialog breaks, with the error pop-up: "The currently displayed page contains invalid values".

Secondly when deployed onto the embedded tomcat6 server, tomcat can't find the classes I am using from a dependency which is also a project in Eclipse.

The steps which seemed most logical to set up my project are:

* create a new dynamic web project from the Eclipse File menu
* copy the source code 'src/main' and src/test' directories into new folder
* refresh the project
* configure the build path to include src/main/java, src/main/resources etc
* turn on maven dependency management
* copy the old pom into the new project folder
* refresh the project and let it finish building
* go to Project Preferences / Java Build Path / Projects dialog and set the project dependencies * go to Project Preferences / J2EE Module Dependencies and set the projects there too
* rebuild
* add to tomcat

For some reason, it gets messed up.

Do I actually need the Project Dependencies in the Java Build Path / Projects dialog?

Is there any particular setting I should use in the tomcat config?

Is there any way to repair the Eclipse config that stops the J2EE Module Dependencies dialog showing?


Thanks for any help,

Adam


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to