Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Run on Server
Run on Server [message #147459] Thu, 17 November 2005 13:15 Go to next message
Eclipse UserFriend
Originally posted by: mirko.fetter.gmx.de

Hi,

i have a basic understanding question. When i test a project on lets say
my TomCat via Eclipse, is my workspace temporaly copied to the webapps
folder of TomCat or is Tomcat Linking to my Workspace while the server is
running? So if e.g. a Servlet saves a file, can I find it in the TomCat
folder or in my Workspace Folder?

Hope that's not to dump.

Thanks
Mirko
Re: Run on Server [message #147469 is a reply to message #147459] Thu, 17 November 2005 14:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: toby.polley.com

> When i test a project on lets say my TomCat via Eclipse, is my
> workspace temporaly copied to the webapps folder of TomCat or is
> Tomcat Linking to my Workspace while the server is running?

That depends on your settings (and the question is a bit off, as you'll
see): If you doubleclick Tomcat in your "Servers" view, a configuration
dialog will appear. The relevant setting is "run modules directly from
workspace".

If checked (default), webtools creates a directory in
WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tmp 0/ (or
similar) which will be the directory tomcat runs in.

If not checked, your TOMCAT_HOME (where you installed it) is used (and
somes files in there are modified!).


So, anyway, I'll call this directory the 'troot'. Tomcat now reads
troot/conf/server.xml . This file probably contains an entry right at
the bottom referencing to your project. (If not, a file in
troot/conf/Catalina might.) The "docBase" attribute is relavant. It is
the location (relative to troot/webapps) of the 'active files' of your
project. 'Active' meaning those used by tomcat - probably a 'copy' (note
that this is not just a plain copy) of the files you have in your
eclipse project. (This could be inside (in which case you'd call it a
'link' although it is none) or outside of your workspace.)

(Many points depend on which version of webtools you are using. -
Therefore this explanation got a bit general..)

> So if e.g. a Servlet saves a file, can I find it in the TomCat folder
> or in my Workspace Folder? Hope that's not to dump.

If you save a file (using a relative path), i would expect it in
troot/work (or at least somewhere below troot).

I hope with the explanations above you are able to find it. :)

g, Toby
Re: Run on Server [message #148198 is a reply to message #147469] Tue, 22 November 2005 08:18 Go to previous message
Eclipse UserFriend
Originally posted by: mirko.fetter.gmx.de

Thanks,

that helped. I found the saved file before, but now i'am able to understand
why I found it there. :)


Mirko

"Tobias Polley" <toby@polley.com> schrieb im Newsbeitrag
news:dli53p$upi$1@news.eclipse.org...
>> When i test a project on lets say my TomCat via Eclipse, is my workspace
>> temporaly copied to the webapps folder of TomCat or is Tomcat Linking to
>> my Workspace while the server is running?
>
> That depends on your settings (and the question is a bit off, as you'll
> see): If you doubleclick Tomcat in your "Servers" view, a configuration
> dialog will appear. The relevant setting is "run modules directly from
> workspace".
>
> If checked (default), webtools creates a directory in
> WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tmp 0/ (or
> similar) which will be the directory tomcat runs in.
>
> If not checked, your TOMCAT_HOME (where you installed it) is used (and
> somes files in there are modified!).
>
>
> So, anyway, I'll call this directory the 'troot'. Tomcat now reads
> troot/conf/server.xml . This file probably contains an entry right at the
> bottom referencing to your project. (If not, a file in troot/conf/Catalina
> might.) The "docBase" attribute is relavant. It is the location (relative
> to troot/webapps) of the 'active files' of your project. 'Active' meaning
> those used by tomcat - probably a 'copy' (note that this is not just a
> plain copy) of the files you have in your eclipse project. (This could be
> inside (in which case you'd call it a 'link' although it is none) or
> outside of your workspace.)
>
> (Many points depend on which version of webtools you are using. -
> Therefore this explanation got a bit general..)
>
>> So if e.g. a Servlet saves a file, can I find it in the TomCat folder
>> or in my Workspace Folder? Hope that's not to dump.
>
> If you save a file (using a relative path), i would expect it in
> troot/work (or at least somewhere below troot).
>
> I hope with the explanations above you are able to find it. :)
>
> g, Toby
Previous Topic:jboss-4.0.2 vs wtp
Next Topic:adjusting heap size for Tomcat in WTP
Goto Forum:
  


Current Time: Fri Apr 26 11:59:11 GMT 2024

Powered by FUDForum. Page generated in 0.04004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top