You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Trond Valen <tr...@gmail.com> on 2007/09/22 16:00:02 UTC

Tomcat and Eclipse working together - a mystery

Hi!

Could anyone care to tell me how Tomcat obtains the projects from Eclipse?
When I create a web project, and choose run as -> run on server and choose a
tomcat server everything works fine, both from eclipse's internal browser
and my firefox. The strange thing is that I find no references to eclipse or
my project's directory in tomcat's home directory. So I was wondering how
the link is set up for Tomcat to publish my web project...

-Trond

RE: Tomcat and Eclipse working together - a mystery

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Trond Valen [mailto:trondvalen@gmail.com] 
> Subject: Re: Tomcat and Eclipse working together - a mystery
> 
> And this catalina.base is defined somewhere in
> Tomcat's installation directory?

For an explanation of the environment variables used by Tomcat, read the
RUNNING.txt file in Tomcat's installation directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Eclipse working together - a mystery

Posted by Trond Valen <tr...@gmail.com>.
Thanks a lot :)

-Trond

On 9/22/07, Markus Schönhaber <ma...@schoenhaber.de> wrote:
>
> Trond Valen schrieb:
>
> > The mystery is unraveling... And this catalina.base is defined somewhere
> in
> > Tomcat's installation directory?
>
> No[1]. It's a system property Eclipse sets when calling Tomcat and the
> value of which Tomcat uses as a base path, for example when looking for
> the config files.
> Take a look at webapps/docs/RUNNING.txt.
>
> Regards
>   mks
>
> [1] OK, the startup scripts (bin/catalina.(sh|bat)) do also set this
> property and maybe are contained in Tomcat's installation directory. But
> I don't think that was what you wanted to know.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat and Eclipse working together - a mystery

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Trond Valen schrieb:

> The mystery is unraveling... And this catalina.base is defined somewhere in
> Tomcat's installation directory?

No[1]. It's a system property Eclipse sets when calling Tomcat and the
value of which Tomcat uses as a base path, for example when looking for
the config files.
Take a look at webapps/docs/RUNNING.txt.

Regards
  mks

[1] OK, the startup scripts (bin/catalina.(sh|bat)) do also set this
property and maybe are contained in Tomcat's installation directory. But
I don't think that was what you wanted to know.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Eclipse working together - a mystery

Posted by Trond Valen <tr...@gmail.com>.
The mystery is unraveling... And this catalina.base is defined somewhere in
Tomcat's installation directory?

Trond

On 9/22/07, Markus Schönhaber <ma...@schoenhaber.de> wrote:
>
> Trond Valen wrote:
>
> > Could anyone care to tell me how Tomcat obtains the projects from
> Eclipse?
> > When I create a web project, and choose run as -> run on server and
> choose a
> > tomcat server everything works fine, both from eclipse's internal
> browser
> > and my firefox. The strange thing is that I find no references to
> eclipse or
> > my project's directory in tomcat's home directory. So I was wondering
> how
> > the link is set up for Tomcat to publish my web project...
>
> Look into
>
> <your_workspace_dir>/.metadata/.plugins/org.eclipse.wst.server.core/tmp<something>
> This is what Eclipse will set catalina.base to when launching Tomcat.
>
> Regards
>   mks
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat and Eclipse working together - a mystery

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Trond Valen wrote:

> Could anyone care to tell me how Tomcat obtains the projects from Eclipse?
> When I create a web project, and choose run as -> run on server and choose a
> tomcat server everything works fine, both from eclipse's internal browser
> and my firefox. The strange thing is that I find no references to eclipse or
> my project's directory in tomcat's home directory. So I was wondering how
> the link is set up for Tomcat to publish my web project...

Look into
<your_workspace_dir>/.metadata/.plugins/org.eclipse.wst.server.core/tmp<something>
This is what Eclipse will set catalina.base to when launching Tomcat.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org