Re: JVM config for tomcat5.5

2008-09-23 Thread jaki

Hi all, 
One more thing I wanted clarification on..Is it necessary that catalina.home
system property is always set for a tomcat install? Cause trying to retrieve
it from within a java class gives me null. But I can also find it being
referenced in many of the config files, so any help on where the value for
that is coming from would be a big help too. Thanks


awarnier wrote:
 
 Markus Schönhaber wrote:
 Martin Gainty:
 
 [...]
 I think the main issue (which has also been touched in several other 
 threads recently) is some level of confusion with the Tomcat Windows 
 Installer, and what one finds oneself with in the Tomcat_install_dir/bin 
 directory in that case.
 
 Instead of having the normal series of startup.sh/bat, 
 catalina.sh/bat, etc.. files in Tomcat/bin, you only find a 
 tomcat(x).exe and a tomcat(x)W.exe there, basically.
 No trace of an explicit command $JAVA -jar bootstrap.jar ... kind of 
 command, no script with a path to the Java being used etc..
 
 It works very well in terms of running Tomcat as a Windows Service, but 
 it seems that as soon as people try to add some external things, they 
 get very confused as to where things are.
 
 One has to dig quite a bit to figure out that this tomcat(x).exe is in 
 fact an instance of procrun (or rather prunsrv ?), belonging to the 
 Apache Commons Daemon module, which does some (relatively unexplained) 
 wizardry to wrap up a Java from somewhere (also rather unexplained) with 
 the Tomcat executable and make it act as a Windows Service.
 (See http://commons.apache.org/daemon/procrun.html)
 
 If one of the experts on the subject were to provide some clearer 
 explanation of this whole thing, it would be nice.
 
 P.S.
 Not to make too fine a point about it, but the above looks to me eerily 
 similar to the case where users install a non official pre-packaged 
 version of Tomcat under Linux. ;-)
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/JVM-config-for-tomcat5.5-tp19583097p19623781.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: JVM config for tomcat5.5

2008-09-23 Thread Caldarale, Charles R
 From: jaki [mailto:[EMAIL PROTECTED]
 Subject: Re: JVM config for tomcat5.5

 Is it necessary that catalina.home system property
 is always set for a tomcat install?

It's not necessary to have it set during Tomcat installation.  It is necessary 
during Tomcat execution, but this is normally taken care of by the startup 
scripts or the service wrapper, and need not be done manually.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JVM config for tomcat5.5

2008-09-21 Thread Johnny Kewl


- Original Message - 
From: Jon Camilleri [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: 'Tomcat Users List' users@tomcat.apache.org
Sent: Sunday, September 21, 2008 7:51 AM
Subject: RE: JVM config for tomcat5.5


Tomcat requires Java (at least SDK; but JDK won't harm) to be installed. 
On

my machine I usually set:

JAVA_HOME to the installation path for jdk/sdk e.g. /usr/java/jdk1.6.0_07
CATALINA_HOME to the installation path for /usr/apache-tomcat-6.0.16.

Hope this helps.

-Original Message-
From: jaki [mailto:[EMAIL PROTECTED]
Sent: 20 September 2008 08:55
To: users@tomcat.apache.org
Subject: JVM config for tomcat5.5


Hi,
I wanted to know where java_home is set for Tomcat when it's installed as 
a

service since I can't find any .bat/.sh files in my tomcat folder. Thanks
--
View this message in context:
http://www.nabble.com/JVM-config-for-tomcat5.5-tp19583097p19583097.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


Tomcat guys... please pack the the TC.EXE installer with all the script 
files as well...

Windows users do eventually want them...

Its a good question

JAVA_HOME is only used when you run TC from a bat...

On linux it is probably also used by the service but every linux will do 
its own thing, so you need to ask the dist guys...
But on Windows you run TomcatW.exe... you get a nice GUI, you click on 
the JAVA tab, and thats where you set stuff...

Notice that it doesnt use JAVA it uses the java C portal called JVM.DLL.
Thats how you do it...

And then in Netbeans the JRE used is neither of the above, its uses the 
JRE that you have set on the platform for you projects


It actually makes it very easy... and its nice being able to start it from 
script on one JRE, from the service on another JRE, and from NB on any JRE 
you want.


And you have to... because you may use templates in your servlets... and all 
is well, but flip the JRE to a lower version, and you get nailed.


... these TC guys are pretty clever dudes ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---







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



RE: JVM config for tomcat5.5

2008-09-21 Thread Martin Gainty

Hi Jon-

you'll definitely need the JDK in $JAVA_HOME 
and $JDK_HOME/bin to compile the JSPs..

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: users@tomcat.apache.org
 Subject: RE: JVM config for tomcat5.5
 Date: Sun, 21 Sep 2008 07:51:31 +0200
 
 Tomcat requires Java (at least SDK; but JDK won't harm) to be installed.  On
 my machine I usually set:
 
 JAVA_HOME to the installation path for jdk/sdk e.g. /usr/java/jdk1.6.0_07
 CATALINA_HOME to the installation path for /usr/apache-tomcat-6.0.16.
 
 Hope this helps.
 
 -Original Message-
 From: jaki [mailto:[EMAIL PROTECTED] 
 Sent: 20 September 2008 08:55
 To: users@tomcat.apache.org
 Subject: JVM config for tomcat5.5
 
 
 Hi, 
 I wanted to know where java_home is set for Tomcat when it's installed as a
 service since I can't find any .bat/.sh files in my tomcat folder. Thanks
 -- 
 View this message in context:
 http://www.nabble.com/JVM-config-for-tomcat5.5-tp19583097p19583097.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 3457 (20080919) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
  
  
 
 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 3458 (20080921) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
  
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: JVM config for tomcat5.5

2008-09-21 Thread Markus Schönhaber

Martin Gainty:

you'll definitely need the JDK in $JAVA_HOME 
and $JDK_HOME/bin to compile the JSPs..


No, a JRE is enough.

Regards
  mks

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



Re: JVM config for tomcat5.5

2008-09-21 Thread André Warnier

Markus Schönhaber wrote:

Martin Gainty:


[...]
I think the main issue (which has also been touched in several other 
threads recently) is some level of confusion with the Tomcat Windows 
Installer, and what one finds oneself with in the Tomcat_install_dir/bin 
directory in that case.


Instead of having the normal series of startup.sh/bat, 
catalina.sh/bat, etc.. files in Tomcat/bin, you only find a 
tomcat(x).exe and a tomcat(x)W.exe there, basically.
No trace of an explicit command $JAVA -jar bootstrap.jar ... kind of 
command, no script with a path to the Java being used etc..


It works very well in terms of running Tomcat as a Windows Service, but 
it seems that as soon as people try to add some external things, they 
get very confused as to where things are.


One has to dig quite a bit to figure out that this tomcat(x).exe is in 
fact an instance of procrun (or rather prunsrv ?), belonging to the 
Apache Commons Daemon module, which does some (relatively unexplained) 
wizardry to wrap up a Java from somewhere (also rather unexplained) with 
the Tomcat executable and make it act as a Windows Service.

(See http://commons.apache.org/daemon/procrun.html)

If one of the experts on the subject were to provide some clearer 
explanation of this whole thing, it would be nice.


P.S.
Not to make too fine a point about it, but the above looks to me eerily 
similar to the case where users install a non official pre-packaged 
version of Tomcat under Linux. ;-)



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



Re: JVM config for tomcat5.5

2008-09-20 Thread Mark Thomas
jaki wrote:
 Hi, 
 I wanted to know where java_home is set for Tomcat when it's installed as a
 service since I can't find any .bat/.sh files in my tomcat folder. Thanks

http://tomcat.apache.org/tomcat-6.0-doc/setup.html



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



Re: JVM config for tomcat5.5

2008-09-20 Thread jaki

Thanks for pointing that out. I was trying to retrieve java.home used by
tomcat using a java program. I could go with sys.getProperty(java.home),
but the value returned doesn't always have to match with java.home local to
tomcat. So it seems peeking into the registry is the only way forward for
me. But not the best way since I want the program to be OS independent. So,
if there are other suggestions kindly help me with them. 


Mark Thomas-18 wrote:
 
 jaki wrote:
 Hi, 
 I wanted to know where java_home is set for Tomcat when it's installed as
 a
 service since I can't find any .bat/.sh files in my tomcat folder. Thanks
 
 http://tomcat.apache.org/tomcat-6.0-doc/setup.html
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/JVM-config-for-tomcat5.5-tp19583097p19584898.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: JVM config for tomcat5.5

2008-09-20 Thread Jon Camilleri
Tomcat requires Java (at least SDK; but JDK won't harm) to be installed.  On
my machine I usually set:

JAVA_HOME to the installation path for jdk/sdk e.g. /usr/java/jdk1.6.0_07
CATALINA_HOME to the installation path for /usr/apache-tomcat-6.0.16.

Hope this helps.

-Original Message-
From: jaki [mailto:[EMAIL PROTECTED] 
Sent: 20 September 2008 08:55
To: users@tomcat.apache.org
Subject: JVM config for tomcat5.5


Hi, 
I wanted to know where java_home is set for Tomcat when it's installed as a
service since I can't find any .bat/.sh files in my tomcat folder. Thanks
-- 
View this message in context:
http://www.nabble.com/JVM-config-for-tomcat5.5-tp19583097p19583097.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3457 (20080919) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3458 (20080921) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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