Eclipse is doing something bad here.
I set up my project (call it A) as the only project in the workspace. The
project has a dependency, call it B, and the jar for B is installed in my local
repository.
Like this everything works fine. The dynamic web project, the tomcat deploy, the
maven dependency management.
Now the bad stuff: I then imported project B into the workspace. Project A saw
that it had a dependency on this and automatically rebuilt itself, and
unfortunately broke. It couldn't see the classes in B anymore, and it wouldn't
show the J2EE Module Dependencies anymore, because:
"The currently displayed page contains invalid values."
Where do I go from here, guys?
Thanks
Adam
Adam Hardy on 23/01/08 15:08, wrote:
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?
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email