[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Web project does not start

Jarkko Miettinen wrote:
I have a following problem:
We have a project where we are using JSPs. I am using Tomcat as a web container for this project and I have problems getting this project running. What I've done is following:
Check out the project from SVN using new->SVN->checkout project from SVN. Then I create the project as Web->Dynamic web project.
In our source structure that I check out from SVN we have src/main and src/tests which I "use as source folders" to bring them to top level and to get the packages right and webapps/equipment under which the WEB-INF and META-INF lie. Then built classes (with ant) go in webapps/equipment/WEB-INF/classes.
Context.xml lies in webapps/equipment/META-INF and web.xml in webapps/equipment/WEB-INF.
Problem is that after I add this project to my tomcat server using Eclipse tools (Servers view and add/remove projects) I do not get any program started.
I've once successfully gotten this to work but I do not know what I've done differently at that time.


I understand that this is kind of decoherent explanation but I do not know that on what points should I give more details.


When you created the Dynamic Web Project, did you specify the Content Directory as "webapps/equipment" and the Java Source Directory as "src/main"?


Note, after doing so, you would still need to add the "src/tests" as a second Java Source folder. Both of the source folders should output to the default output folder which would be "build\classes". These built classes will get copied to the WEB-INF/classes folder during Export to a war file or when the project is published to a server. They do not need to be directed to the "webapps/equipment/WEB-INF/classes" in your project using an Ant build.

Cheers,
Larry