Run on Server [message #147459] |
Thu, 17 November 2005 08:15  |
Eclipse User |
|
|
|
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 09:46   |
Eclipse User |
|
|
|
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 03:18  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02647 seconds