Reputation: 459
I have a client's large-ish e-commerce web app that I've been developing for several years in Eclipse 3.1. To say the least, I'm ready to move on to Helios.
The web app runs on Tomcat 5.5 in Java 5.0.
The advice I've encountered so far presumes I'm starting a Dynamic Web Project from scratch, or from a WAR file. The best I've been able to do so far is:
At this point I try to add my web project as a resource to the Tomcat server Eclipse says there are no resources to add/remove.
Any advice on what my next step is, or an altogether better method for importing old web apps into Helios would be much appreciated!
UPDATE:
I chose the "clean" option suggested below, here's how I did it:
src
" (later step) and "classes
" (not necessary) *; copy your selected files/folders to the WEB-INF
folder in the WebContent node of your Dynamic Web ProjectWEB-INF\src
to the "src
" folder under the Java Resources node of your Dynamic Web ProjectThanks for the help and the downright sane advice from all the answer-ers!
Upvotes: 1
Views: 175
Reputation: 12538
You have two options:
Although option #1 works fine in general, I recommend to proceed with option #2 as you get rid of all those artifacts not required any more. No question that it all depends of the complexity of your project and maybe your team size. Over the past years I've migrated a number of (more or less) complex applications from one eclipse IDE version to another. Creating a new, clean workspace and importing your sources from scratch does make sense - if there is a chance for cleanup make use of it :-)
Upvotes: 1
Reputation: 499
You should just import the project into the Helios workspace, go to the project properties, select the "Project Facets" add all the facets needed, choose Tomcat as runtime environment (I recommend you to add Tomcat as a server in Window -> Preferences -> Server -> Runtime Environments first). After this you should be able to choose Run On Server to see your application deployed to Tomcat...
Upvotes: 1
Reputation: 9141
You should use Eclipse "add nature" dialogs instead of "4. Edit the new .project file to include the correct "Natures" for the project"
Upvotes: 1