You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Arghya Das <ar...@gmail.com> on 2016/04/27 06:37:52 UTC
Multiple instances of Tomcat
Hi all,
I am using JSP as the language and Tomcat 7 as the Server to deploy Web
applications and Using ECLIPSE as the IDE to build the apps on Windows 7
platform..
I have installed Tomcat as a service in Windows and also linked the Tomcat
server with Eclipse.
but the tomcat is behaving in two different ways.
when i try to run the webapp by starting tomcat through Eclipse it behaves
like a standalone instance.
and when i try to start it through windows service it behaves like a
different instance.
Like when i am trying to place a database config, file in Tomcat directory
and call it in a servlet file by using "catalina.base" running Tomcat
through Eclipse the changes don't take effect.
while when i manually build the war file and upload and run Tomcat as a
windows service it works fine.
Please help.
regards,
Arghya
Re: Multiple instances of Tomcat
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arghya,
On 4/27/16 12:37 AM, Arghya Das wrote:
> I am using JSP as the language and Tomcat 7 as the Server to deploy
> Web applications and Using ECLIPSE as the IDE to build the apps on
> Windows 7 platform..
>
> I have installed Tomcat as a service in Windows and also linked the
> Tomcat server with Eclipse. but the tomcat is behaving in two
> different ways. when i try to run the webapp by starting tomcat
> through Eclipse it behaves like a standalone instance. and when i
> try to start it through windows service it behaves like a different
> instance.
>
> Like when i am trying to place a database config, file in Tomcat
> directory and call it in a servlet file by using "catalina.base"
> running Tomcat through Eclipse the changes don't take effect.
>
> while when i manually build the war file and upload and run Tomcat
> as a windows service it works fine.
When Eclipse deploys a web application onto Tomcat, it (I believe)
always uses a split-configuration, with a separate catalina.home and
catalina.base.
So the catalina.base being used by Eclipse may not be the one that you
expect. Try dumping the value of the "catalina.base" system property
from one of your JSPs, and compare the values you get from the
Eclipse-launched webapp and the Windows-Service-launched webapp.
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlcg3I0ACgkQ9CaO5/Lv0PBDXwCfVQI+iQsDp9T+EEUskM9YFl6Q
vUwAninfh09KKK0o0nZTnoMpvs9LG6D2
=X/z1
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org