Eclipse Tomcat Project Structure  
Author Message
vivienne wykes





PostPosted: 2004-8-25 22:17:00 Top

java-programmer, Eclipse Tomcat Project Structure Hi All,

I am using Eclipse 3.0 with a Tomcat plug in.
I am trying to create multiple web projects using Tomcats webapps
directory. Eclipse will let me set up one project with under the webapps
folder but when I try to add a new project I get the following error
C:/jakarta-tomcat-4.1.30/webapps and C:/jakarta-tomcat-4.1.30/webapps
overlap.

This I am sure will have a simple explanation... I am thinking that it
should be ok to work on multiple web projects with different names at the
same time under Tomcats webapps folder ?

Thanks in advance

Jim


 
Andoni





PostPosted: 2004-8-26 1:21:00 Top

java-programmer >> Eclipse Tomcat Project Structure I don't know about configuring Eclipse but I do know that you can very
easily configure Tomcat to get around this problem. All you have to do is
create two folders called:

webapps/project1
and
webapps/project2

to house the two projects. Then add <Context> elements into your server.xml
file to tell tomcat where your projects are. You specify the location of a
project's web.xml file to Tomcat by telling it the name of the folder that
contains the WEB-INF directory. This is done in the docBase="" attribute of
the <Context> element.

Hope that helps.

Andoni.


"vivienne wykes" <email***@***.com> wrote in message
news:Fb1Xc.14756$email***@***.com...
> Hi All,
>
> I am using Eclipse 3.0 with a Tomcat plug in.
> I am trying to create multiple web projects using Tomcats webapps
> directory. Eclipse will let me set up one project with under the webapps
> folder but when I try to add a new project I get the following error
> C:/jakarta-tomcat-4.1.30/webapps and C:/jakarta-tomcat-4.1.30/webapps
> overlap.
>
> This I am sure will have a simple explanation... I am thinking that it
> should be ok to work on multiple web projects with different names at the
> same time under Tomcats webapps folder ?
>
> Thanks in advance
>
> Jim
>
>