Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Dynamic Web Project in Eclipse

I have a Dynamic Web Project in Eclipse that should be auto-deployed to Tomcat (version 5.5) but it's not happening. There are no build errors and the class files show up in the project in the workspace but they never get copied over to the Tomcat instance. The project name is timex2 and I've tried several different default output folders but to no avail. The default output folder is currently set to: timex2/WebContent/WEB-INF/classes.

Here's the source tab from the build path: source tab

Here's the project in the package explorer: package explorer

Here's the directory structure of the project in windows explorer:

directory structure

Update: Here's the Markers Window:

enter image description here

like image 656
opike Avatar asked Mar 24 '26 18:03

opike


2 Answers

Eclipse will keep the files local to the project. This allows for hot deploy when debugging and sharing a tomcat instance among multiple projects,etc. The local files will have everything needed for deployment, see all the xml files defined in your server inside eclipse. This is what is used to bootstrap Tomcat.

If you want a quick way to check the runtime port just add an html file with soime markup at the root of the webapp, right click on it and say "run on server". This should open the file up using the context root and you will be good to go on with your development.

like image 96
TechTrip Avatar answered Mar 27 '26 09:03

TechTrip


Take a look at the "Deployment Assembly" tab under project preferences and see if things are being deployed into the tomcat directory like they should be

like image 39
Mouscellaneous Avatar answered Mar 27 '26 09:03

Mouscellaneous