How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-10 Thread testwreq wreq
Hello, I do not know much on setting up tomcat on linux. I am new to both.

However, I ran yum install tomcat5 to install tomcat from centos5 built. I
could see the version with the below command.

# /etc/init.d/tomcat5 version
Server version: Apache Tomcat/5.5.23
Server built:   Jul 27 2009 05:23:29
Server number:  5.5.23.0
OS Name:Linux
OS Version: 2.6.18-128.1.10.el5
Architecture:   i386
JVM Version:1.6.0-b09
JVM Vendor: Sun Microsystems Inc.
I need help to proceed further. Please guide me how to set-up TOMCAT on
centos5?  The base installation, I think is located in /user/share/tomcat5
and I see java in /usr/bin/jvm

Please help.


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-10 Thread testwreq wreq
Unfortunately, I cannot use 6.0 because my boss believes that we should use
the one that comes with the centos built as this is tested.

Thanks a lot for the link. Since I am new, I am not sure what unix daemon
setup is and that is what this document is asking to do? Do I have to run
./configure script first or do I have to set some environment variables?
Currently, I am logged to my test machine as root. But, I want to run tomcat
as non privileged user.




On Wed, Mar 10, 2010 at 2:04 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > I need help to proceed further. Please guide me how to set-up
> > TOMCAT on centos5?
>
> Since you're using a non-standard version of Tomcat, the instructions on
> the Tomcat web site might not correspond exactly with the CentOS
> distribution.  Regardless, start here:
> http://tomcat.apache.org/tomcat-5.5-doc/index.html
>
> Note that the version of Tomcat you've chosen to use is three years old,
> and several fixes for a variety of problems (including security) have gone
> in since then.  You might want to consider discarding that one and loading
> the latest Tomcat from here:
> http://tomcat.apache.org/download-60.cgi
>
> If you do choose to use Tomcat 6.0 (highly recommended), its doc starts
> here:
> http://tomcat.apache.org/tomcat-6.0-doc/index.html
>
> If you have specific questions, please ask.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-10 Thread testwreq wreq
It is not running yet.

There are a few things.

1/I already have apache running on port 80. If I start the tomcat service, I
think it will probably start on port 80 as well. Will it not clash?

2/ I have setup the following environment variables
JAVA_HOME=/usr/lib/jvm/java
CATALINA_HOME = /usr/share/tomcat5
 PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
chown -R tomcat /usr/share/tomcat5
 ln -s /usr/share/tomcat5 /usr/share/tomcat

I will be adding the first 4 variables to the profile file.

3/ if I run the startup command for tomcat, it will start the service as
root. It should be started as non privileged user on everystartup. I have
seen some links on that, which I will read and follow.

4/ Is there anything else that should be done to setup tomcat?

thanks.


On Wed, Mar 10, 2010 at 2:58 PM, André Warnier  wrote:

>  testwreq wreq wrote:
>
>> Hello, I do not know much on setting up tomcat on linux. I am new to both.
>>
>> However, I ran yum install tomcat5 to install tomcat from centos5 built. I
>> could see the version with the below command.
>>
>> # /etc/init.d/tomcat5 version
>> Server version: Apache Tomcat/5.5.23
>> Server built:   Jul 27 2009 05:23:29
>> Server number:  5.5.23.0
>> OS Name:Linux
>> OS Version: 2.6.18-128.1.10.el5
>> Architecture:   i386
>> JVM Version:1.6.0-b09
>> JVM Vendor: Sun Microsystems Inc.
>> I need help to proceed further. Please guide me how to set-up TOMCAT on
>> centos5?  The base installation, I think is located in /user/share/tomcat5
>> and I see java in /usr/bin/jvm
>>
>> Please help.
>>
>> Well, according to what it says above, you are done. That's the nice part
> about these packages.  Tomcat is installed, and probably running. So what
> else do you need ?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-12 Thread testwreq wreq
I cannot bring up the tomcat page http://serverhost:8005

there are no errors logged in the /var/log/tomcat5 ; The server.xml file has
The file is showing Server port="8005" and  mailto:testw...@gmail.com]
>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>
>>> 1/I already have apache running on port 80. If I start the tomcat
>>> service, I think it will probably start on port 80 as well.
>>>
>>
>> The standard Tomcat downloads are configured to use port 8080 by default;
>> what your version has isn't known, so you'll have to look in Tomcat's
>> conf/server.xml file.
>>
>> 2/ I have setup the following environment variables
>>> JAVA_HOME=/usr/lib/jvm/java
>>>
>>
>> Good.
>>
>> CATALINA_HOME = /usr/share/tomcat5
>>>
>>
>> You probably don't need that; the standard Tomcat startup scripts
>> determine what the value should be.  However, since you're not using a
>> standard Tomcat, it's hard to tell.
>>
>> PATH=$PATH:$JAVA_HOME/bin
>>>
>>
>> Good.
>>
>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>>
>>
>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>> variable (for any Java application).
>>
>> 4/ Is there anything else that should be done to setup tomcat?
>>>
>>
>> Go through the server.xml file and see if there's anything you need to
>> change.  Read the Tomcat docs for more information.
>>
>>
> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>
> Testwreq,
>
> The "standard Tomcat" is the one which you get and download from
> http://tomcat.apache.org.
> That is the current version, and the one everyone here knows and loves,
> because for that one, everyone knows where the files are, what the standard
> settings are, and so on.
> But is not a "package" that fits with the "package manager" software of any
> particular Unix/Linux version.
>
> And then there are many "pre-packaged Tomcats", which vary depending on
> which Unix/Linux type or distribution they are made for, and by whom, from
> which (generally older) version of the standard Tomcat.
> For reasons mostly good but sometimes bad, these packages tend to vary from
> the original and between them, as to which locations they install the files
> in, which links to what they also set up, which settings they set by
> default, which ports they use, under which user they are started, how they
> are started, etc..
>
> Unfortunately, the people here do not know all these versions, so our
> capacity to help is limited, except to provide general principles and direct
> you to the standard documentation.
>
> So if you are having problems with a particular packaged version of Tomcat
> (like you are using), the best place to ask for help first is probably the
> help desk or help list of your particular Unix/Linux version.
> Then once this packaged Tomcat is running, if you are having problem
> /using/ it, maybe we can help better.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-12 Thread testwreq wreq
8080 does not work either. And, there are no logs generated.

On Fri, Mar 12, 2010 at 1:27 PM, David kerber  wrote:

> testwreq wreq wrote:
>
>> I cannot bring up the tomcat page http://serverhost:8005
>>
>
> Try it on 8080; it's the connector that you want to connect to.
>
>
> D
>
>
>
>> there are no errors logged in the /var/log/tomcat5 ; The server.xml file
>> has
>> The file is showing Server port="8005" and  mailto:testw...@gmail.com]
>>>>
>>>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>>>
>>>>> 1/I already have apache running on port 80. If I start the tomcat
>>>>> service, I think it will probably start on port 80 as well.
>>>>>
>>>>> The standard Tomcat downloads are configured to use port 8080 by
>>>> default;
>>>> what your version has isn't known, so you'll have to look in Tomcat's
>>>> conf/server.xml file.
>>>>
>>>> 2/ I have setup the following environment variables
>>>>
>>>>> JAVA_HOME=/usr/lib/jvm/java
>>>>>
>>>>> Good.
>>>>
>>>> CATALINA_HOME = /usr/share/tomcat5
>>>> You probably don't need that; the standard Tomcat startup scripts
>>>> determine what the value should be.  However, since you're not using a
>>>> standard Tomcat, it's hard to tell.
>>>>
>>>> PATH=$PATH:$JAVA_HOME/bin
>>>> Good.
>>>>
>>>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>>>> variable (for any Java application).
>>>>
>>>> 4/ Is there anything else that should be done to setup tomcat?
>>>> Go through the server.xml file and see if there's anything you need to
>>>> change.  Read the Tomcat docs for more information.
>>>>
>>>>
>>>> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>>>
>>> Testwreq,
>>>
>>> The "standard Tomcat" is the one which you get and download from
>>> http://tomcat.apache.org.
>>> That is the current version, and the one everyone here knows and loves,
>>> because for that one, everyone knows where the files are, what the
>>> standard
>>> settings are, and so on.
>>> But is not a "package" that fits with the "package manager" software of
>>> any
>>> particular Unix/Linux version.
>>>
>>> And then there are many "pre-packaged Tomcats", which vary depending on
>>> which Unix/Linux type or distribution they are made for, and by whom,
>>> from
>>> which (generally older) version of the standard Tomcat.
>>> For reasons mostly good but sometimes bad, these packages tend to vary
>>> from
>>> the original and between them, as to which locations they install the
>>> files
>>> in, which links to what they also set up, which settings they set by
>>> default, which ports they use, under which user they are started, how
>>> they
>>> are started, etc..
>>>
>>> Unfortunately, the people here do not know all these versions, so our
>>> capacity to help is limited, except to provide general principles and
>>> direct
>>> you to the standard documentation.
>>>
>>> So if you are having problems with a particular packaged version of
>>> Tomcat
>>> (like you are using), the best place to ask for help first is probably
>>> the
>>> help desk or help list of your particular Unix/Linux version.
>>> Then once this packaged Tomcat is running, if you are having problem
>>> /using/ it, maybe we can help better.
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-12 Thread testwreq wreq
Thanks a lot. netstat -ano showed the following for 8080
tcp0  0 :::127.0.0.1:8005   :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::8009 :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::8080 :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::80   :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::8081 :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::22   :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::443  :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::8443 :::*
LISTEN  off (0.00/0/0)
tcp0  0 :::123.9.10:8080   :::130.245.9.106:46028
TIME_WAIT   timewait (1.86/0/0)
tcp0288 :::130.123.9.10:22 :::130.123.9.10:49423
ESTABLISHED on (0.28/0/0)
tcp0  0 :::130.123.9.10:8080   :::130.123.9.10:46029
TIME_WAIT   timewait (1.95/0/0)
tcp0  0 :::130.123.9.10:8080   :::130.123.9.10:57590
TIME_WAIT   timewait (31.94/0/0)

therefore, I tried accessing http://serverhostname:8080 from the server
itself, and it displays a blank page. Maybe the department firewal is
blocking the access from other nets.

How can I get to the tomcat home page, instead of it showing me a blank
page?

thanks again.



On Fri, Mar 12, 2010 at 1:48 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > 8080 does not work either. And, there are no logs generated.
>
> Firewall?  Do a netstat -ano and verify that Tomcat is listening on 8080.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-12 Thread testwreq wreq
I see 8080 running as follows:
tcp0  0 :::8080 :::*
LISTEN  6980/java

On Fri, Mar 12, 2010 at 2:27 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>
> > netstat -ano showed the following for 8080
>
> Sorry, I should have said netstat -anp (-ano is for Windows).  The -p
> option will display the pid numbers, which should be quite interesting.
>
> > tcp0  0 :::127.0.0.1:8005   :::* LISTEN
>
> The above is the shutdown port.
>
> > tcp0  0 :::8009 :::* LISTEN
>
> That's the AJP port, which you're likely not using.
>
> > tcp0  0 :::8080 :::* LISTEN
>
> That should be Tomcat, but without the pid number, we can't be certain.
>
> > tcp0  0 :::80   :::* LISTEN
>
> That says you've got a web server running as well as Tomcat.
>
> > tcp0  0 :::8081 :::* LISTEN
>
> Now who is that on 8081?
>
> > tcp0  0 :::443  :::* LISTEN
>
> The HTTPS port, most likely from the same process that's listening on 80.
>
> > tcp0  0 :::8443 :::* LISTEN
>
> That's a commonly used port for Tomcat HTTPS traffic.
>
> > tcp0  0 :::123.9.10:8080   
> > :::130.245.9.106:46028TIME_WAIT
> > tcp0  0 :::130.123.9.10:8080 
> > :::130.123.9.10:46029TIME_WAIT
> > tcp0  0 :::130.123.9.10:8080 
> > :::130.123.9.10:57590TIME_WAIT
>
> That shows connections have been made at some point to whatever is
> listening on 8080.
>
> Looks to me like you've got more things running on this box than you're
> aware of, quite possibly including another copy of Tomcat - not the one you
> think you're using.  Until you determine what's really going on in this box,
> there's not much anyone can do to help you.
>
> Run the netstat -anp so we can look at pid numbers, and post your entire
> server.xml.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
Hello Andrea,

[r...@webtest tomcat5]# netstat -anp|grep LISTEN|grep 6980
tcp0  0 :::127.0.0.1:8005   :::*
LISTEN  6980/java
tcp0  0 :::8009 :::*
LISTEN  6980/java
tcp0  0 :::8080 :::*
LISTEN  6980/java
[r...@webtest tomcat5]# ps -ef|grep 6980
tomcat6980 1  0 Mar12 ?00:00:02 /usr/lib/jvm/java/bin/java
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath
/usr/lib/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
-Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5
-Djava.io.tmpdir=/usr/share/tomcat5/temp
org.apache.catalina.startup.Bootstrap start
root 30570  4896  0 08:59 pts/200:00:00 grep 6980
SERVER.XML


  
  
  
  
 
   
  
 
 
 
 
 
 

 
  

  

Will appreciate if you could help. On my server http://hostname:8080 shows a
blank page. I was expecting a apache tomcat page. What could it be?

regards,
vm
===END ==
On Fri, Mar 12, 2010 at 3:55 PM, André Warnier  wrote:

> testwreq wreq wrote:
>
>> I see 8080 running as follows:
>> tcp0  0 :::8080 :::*
>> LISTEN  6980/java
>>
>> Ok, that /might/ be Tomcat, and it /might/ be the Tomcat we are talking
> about.  But it is not sure yet, because it seems that there may be more
> running on that system than you (and us) know about.
>
> teswreq,
> I am going to try to help you, but you have to follow the steps and do what
> you are told, ok ?
>
> First, enter this command :
>
> netstat -anp | grep LISTEN | grep 6980
>
> you should see the same line as above, and a couple of additional ones.
> Paste these lines here, in your next message.
>
> Then, enter this :
>
> ps -ef | grep 6980
>
> and also paste the result here.
>
> Then, navigate to the "conf" directory of Tomcat (we do not know where the
> CentOS Tomcat package puts that one, so you have to find it yourself).  In
> that directory, is a file "server.xml".
> Make a copy of that file, and edit that copy.
> Remove all the XML comments from it. (Those are text sections between
> "" sequences), and also paste the rest here.
>
> Then, we might see things a bit more clearly.
>
> Then, while we are looking at that, get yourself an add-on for your
> browser, that we will use later to show what exactly is going on between the
> browser and the server.  If you are using Firefox (recommended), get the
> HttpFox add-on for example.  If you are using IE, get Fiddler2.  You can
> find these things in Google, or in the "add-ons/plugins" menu of the
> browser.
>
>
> So, off you go.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
Shows a blank page. I was expecting some sort of tomcat/apache page.
/var/lib/tomcat5/webapps is empty. where is tomcat index file located?

On Fri, Mar 12, 2010 at 1:27 PM, David kerber  wrote:

> testwreq wreq wrote:
>
>> I cannot bring up the tomcat page http://serverhost:8005
>>
>
> Try it on 8080; it's the connector that you want to connect to.
>
>
> D
>
>
>
>> there are no errors logged in the /var/log/tomcat5 ; The server.xml file
>> has
>> The file is showing Server port="8005" and  mailto:testw...@gmail.com]
>>>>
>>>>> Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
>>>>>
>>>>> 1/I already have apache running on port 80. If I start the tomcat
>>>>> service, I think it will probably start on port 80 as well.
>>>>>
>>>>> The standard Tomcat downloads are configured to use port 8080 by
>>>> default;
>>>> what your version has isn't known, so you'll have to look in Tomcat's
>>>> conf/server.xml file.
>>>>
>>>> 2/ I have setup the following environment variables
>>>>
>>>>> JAVA_HOME=/usr/lib/jvm/java
>>>>>
>>>>> Good.
>>>>
>>>> CATALINA_HOME = /usr/share/tomcat5
>>>> You probably don't need that; the standard Tomcat startup scripts
>>>> determine what the value should be.  However, since you're not using a
>>>> standard Tomcat, it's hard to tell.
>>>>
>>>> PATH=$PATH:$JAVA_HOME/bin
>>>> Good.
>>>>
>>>> CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
>>>> Get rid of CLASSPATH; never, never, never use the CLASSPATH environment
>>>> variable (for any Java application).
>>>>
>>>> 4/ Is there anything else that should be done to setup tomcat?
>>>> Go through the server.xml file and see if there's anything you need to
>>>> change.  Read the Tomcat docs for more information.
>>>>
>>>>
>>>> And we're back to the "standard Tomcat vs packaged Tomcat" discussion..
>>>
>>> Testwreq,
>>>
>>> The "standard Tomcat" is the one which you get and download from
>>> http://tomcat.apache.org.
>>> That is the current version, and the one everyone here knows and loves,
>>> because for that one, everyone knows where the files are, what the
>>> standard
>>> settings are, and so on.
>>> But is not a "package" that fits with the "package manager" software of
>>> any
>>> particular Unix/Linux version.
>>>
>>> And then there are many "pre-packaged Tomcats", which vary depending on
>>> which Unix/Linux type or distribution they are made for, and by whom,
>>> from
>>> which (generally older) version of the standard Tomcat.
>>> For reasons mostly good but sometimes bad, these packages tend to vary
>>> from
>>> the original and between them, as to which locations they install the
>>> files
>>> in, which links to what they also set up, which settings they set by
>>> default, which ports they use, under which user they are started, how
>>> they
>>> are started, etc..
>>>
>>> Unfortunately, the people here do not know all these versions, so our
>>> capacity to help is limited, except to provide general principles and
>>> direct
>>> you to the standard documentation.
>>>
>>> So if you are having problems with a particular packaged version of
>>> Tomcat
>>> (like you are using), the best place to ask for help first is probably
>>> the
>>> help desk or help list of your particular Unix/Linux version.
>>> Then once this packaged Tomcat is running, if you are having problem
>>> /using/ it, maybe we can help better.
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
In server.xml file, the tomcat_home which is probably called catlina_home is
set to the root of where tomcat is installed. i.e. /usr/share/tomcat5 ; This
is why tomcat runs from /usr/share/tomcat5.
There is one BIN directory in this folder and other symlinks as below. Where
in the installation should be tomcat index file located?
drwxr-xr-x 2 tomcat root 4096 Mar 10 09:27 bin
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 common -> /var/lib/tomcat5/common
lrwxrwxrwx 1 tomcat root   12 Mar 10 09:27 conf -> /etc/tomcat5
lrwxrwxrwx 1 tomcat root   16 Mar 10 09:27 logs -> /var/log/tomcat5
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 server -> /var/lib/tomcat5/server
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 shared -> /var/lib/tomcat5/shared
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 temp -> /var/cache/tomcat5/temp
lrwxrwxrwx 1 tomcat root   24 Mar 10 09:27 webapps ->
/var/lib/tomcat5/webapps
lrwxrwxrwx 1 tomcat root   23 Mar 10 09:27 work -> /var/cache/tomcat5/work

Thanks,vm
On Mon, Mar 15, 2010 at 8:46 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > /var/lib/tomcat5/webapps is empty.
>
> Which could be why you get a blank page.  However, your ps output shows
> Tomcat running from /usr/share/tomcat5, not /var/lib/tomcat5; are they
> symlinked together?  If not, why do you think /var/lib/tomcat5 is important?
>
> The applications distributed with Tomcat are normally under the 
> appBase directory; since you're using a mangled 3rd-party distribution of
> Tomcat, they may have been removed, or located somewhere else - in which
> case you'll need help from whoever mangled the distribution.  If you use a
> standard Tomcat distribution from tomcat.apache.org, we could provide more
> and better help.
>
> The Tomcat startup script you're using also adds a lot of junk to the
> initial classpath - that's another potential problem.  Make sure you do not
> have the CLASSPATH variable set when starting Tomcat.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
i am sorry, it is tomcat5.conf
JAVA_HOME="/usr/lib/jvm/java"
# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
CATALINA_HOME="/usr/share/tomcat5"
JASPER_HOME="/usr/share/tomcat5"
CATALINA_TMPDIR="/usr/share/tomcat5/temp"
JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed"



On Mon, Mar 15, 2010 at 9:17 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3
> >
> > In server.xml file, the tomcat_home which is probably called
> > catlina_home is set to the root of where tomcat is installed.
>
> Please elaborate on that statement; server.xml can't set tomcat_home or
> catalina_home to anything - if they exist at all, such environment variables
> must be established before being used in server.xml.
>
> > This is why tomcat runs from /usr/share/tomcat5.
> > There is one BIN directory in this folder and other symlinks as below.
>
> I really, really hate these 3rd-party distributions that scatter files all
> over the place and then attempt to put things back together with symlinks;
> this adds nothing but confusion.
>
> > Where in the installation should be tomcat index file located?
>
> There's no "tomcat [sic] index file"; there can be a welcome file for each
> deployed webapp, and the default webapp must be named ROOT (case sensitive).
>
> In a standard Tomcat distribution, the default application is located in
> the ROOT directory under the  appBase directory; so there should be
> the following under /var/lib/tomcat5/webapps:
>
> ROOT/
>  index.jsp
>  WEB-INF/
>web.xml
>lib/
>  catalina-root.jar
>
> Since you're running a 3rd-party Tomcat, you'll need to get support from
> whoever packaged it - or install a real Tomcat from tomcat.apache.org so
> we can provide better help for you.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


tomcat administration

2010-05-07 Thread testwreq wreq
I have a new installation of tomcat on centos. My $CATALINA_HOME is
/usr/share/tomcat5 and tomcat is running.

http://localhost:8080 brings up the tomcat page & one of the option is
"Administration". I would like to use this web interface and even give some
of the test webapp users ability to restart tomcat.

According to the home page, users are defined in
$CATALINA_HOME/conf/tomcat-users.xml. Currently my file has the following
content
 more tomcat-users.xml


  
  
  
  
  


I tried logging to the administration web interface with tomcat/tomcat but
it did not work. Can anyone guide to configure this file? I am very new to
tomcat.

Thank you.


Re: tomcat administration

2010-05-07 Thread testwreq wreq
I entered the following line  in tomcat-users.xm file. I can login to the admin
http://localhost:8080/admin/ and application manager
http://localhost:8080/manager/html

I would like to give some test application users ability to start & restart
the tomcat server but not the entire admin / manager interface. Is it
possible to configure this?

I am told that when the application (jsp/servelet code) changes, tomcat has
to restart to clear the old cache. Is it true?

My tomcat version is 5.5.23

thanks, vm


On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: tomcat administration
> >
> > I have a new installation of tomcat on centos. My $CATALINA_HOME is
> > /usr/share/tomcat5 and tomcat is running.
>
> Care to tell us the *exact* version of Tomcat you installed?  And how you
> installed it?  (Is it a 3rd-party repackaged version, or a real one from
> tomcat.apache.org?)
>
> > http://localhost:8080 brings up the tomcat page & one of the option is
> > "Administration".
>
> That looks like it comes from a defunct 5.0.x version, which has not been
> supported for quite some time now.  Install a current Tomcat from
> tomcat.apache.org and try again.
>
> > I would like to use this web interface and even give
> > some of the test webapp users ability to restart tomcat.
>
> That's not going to happen, at least not via internal manipulation of
> Tomcat.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: tomcat administration

2010-05-07 Thread testwreq wreq
You are right. I should think before writing...(:

I need ability for users to stop and restart a single webapp without having
access to other webapps which do not belong to them. Is this possible?
2010/5/7 La Spina, Massimo 

> Hello.
>
> As somebody else already wrote, is not possible to stop/restart tomcat from
> the web interface, because the web interface itself is a web-application
> running into tomcat (so... to work it needs tomcat to be up and running...)
>
> You can stop and restart single webapps (if needed). Sometimes is enough to
> redeploy the application (copy the new jar file to webapps folder), without
> any further action required.
>
> I think you need to restart the whole server only when you want to update
> some shared libraries.
>
> Massimo
>
>
>
> -Original Message-
> From: testwreq wreq [mailto:testw...@gmail.com]
> Sent: 7. května 2010 16:49
> To: Tomcat Users List
>  Subject: Re: tomcat administration
>
> I entered the following line  roles="admin,manager" /> in tomcat-users.xm file. I can login to the admin
> http://localhost:8080/admin/ and application manager
> http://localhost:8080/manager/html
>
> I would like to give some test application users ability to start & restart
> the tomcat server but not the entire admin / manager interface. Is it
> possible to configure this?
>
> I am told that when the application (jsp/servelet code) changes, tomcat has
> to restart to clear the old cache. Is it true?
>
> My tomcat version is 5.5.23
>
> thanks, vm
>
>
> On Fri, May 7, 2010 at 9:59 AM, Caldarale, Charles R <
> chuck.caldar...@unisys.com> wrote:
>
> > > From: testwreq wreq [mailto:testw...@gmail.com]
> > > Subject: tomcat administration
> > >
> > > I have a new installation of tomcat on centos. My $CATALINA_HOME is
> > > /usr/share/tomcat5 and tomcat is running.
> >
> > Care to tell us the *exact* version of Tomcat you installed?  And how you
> > installed it?  (Is it a 3rd-party repackaged version, or a real one from
> > tomcat.apache.org?)
> >
> > > http://localhost:8080 brings up the tomcat page & one of the option is
> > > "Administration".
> >
> > That looks like it comes from a defunct 5.0.x version, which has not been
> > supported for quite some time now.  Install a current Tomcat from
> > tomcat.apache.org and try again.
> >
> > > I would like to use this web interface and even give
> > > some of the test webapp users ability to restart tomcat.
> >
> > That's not going to happen, at least not via internal manipulation of
> > Tomcat.
> >
> >  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: tomcat administration

2010-05-07 Thread testwreq wreq
Thank you. I will read about virtua. hosting.

On Fri, May 7, 2010 at 12:12 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: Re: tomcat administration
> >
> > I need ability for users to stop and restart a single webapp
> > without having access to other webapps which do not belong to
> > them. Is this possible?
>
> Yes.  Use virtual hosting, so each user gets their own  and appBase
> directory - and their own copy of the manager app and individualized
> .  No one will be able to impact any other .
>
> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.

2010-07-14 Thread testwreq wreq
I have a piece of code that retrieves data from oracle database XML type. It
works on tomcat installation on ubuntu. But fails on CentOS. Any ideas?


java.lang.NoSuchMethodError: method java.util.Collections.emptyMap
with signature ()Ljava.util.Map; was not found.
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80)

gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581)
gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688)
gdb.ProcessInput.doPost(ProcessInput.java:116)

javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)

javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)

Thanks,vm


Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.

2010-07-14 Thread testwreq wreq
It is jdk 1.6 from SUN
java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)


On Wed, Jul 14, 2010 at 9:56 AM, Kris Schneider wrote:

> You wouldn't happen to be using JDK 1.4 on CentOS, would you? The
> emptyMap method showed up in JDK 1.5...
>
> On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq  wrote:
> > I have a piece of code that retrieves data from oracle database XML type.
> It
> > works on tomcat installation on ubuntu. But fails on CentOS. Any ideas?
> >
> >
> > java.lang.NoSuchMethodError: method java.util.Collections.emptyMap
> > with signature ()Ljava.util.Map; was not found.
> >javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> >javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
> >gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80)
> >
>  
> gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581)
> >
>  gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688)
> >gdb.ProcessInput.doPost(ProcessInput.java:116)
> >javax.servlet.http.HttpServlet.service(
> tomcat5-servlet-2.4-api-5.5.23.jar.so)
> >javax.servlet.http.HttpServlet.service(
> tomcat5-servlet-2.4-api-5.5.23.jar.so)
> >
> > Thanks,vm
>
> --
> Kris Schneider
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.

2010-07-14 Thread testwreq wreq
1. Error is complaining on the following lines of the code.
Vector advVec=new Vector();
if (rs.getObject("ADVISOR") != null)
{
XMLType poxml = (XMLType) rs.getObject("advisor");
String advisorstring = poxml.getStringVal();
  //  System.out.println("the advisor string in
reportbeanstudent is " + advisorstring);
   // if (!((advisorstring.equalsIgnoreCase("")) ||
(advisorstring.equalsIgnoreCase(""
//{

2. JRE_HOME is not set to anything
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: w8eg0f:gbjiotn1.0:www2.cs.sunysb.edu:1
12-Jul-10 12:18:03 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/lib64/gcj-4.1.2


On Wed, Jul 14, 2010 at 10:27 AM, Kris Schneider wrote:

> Well, it looks like this is the line of code being executed:
>
> return
> newInstance(contextPath,classLoader,Collections.emptyMap());
>
> Tomcat normally dumps out at least the value of its JRE_HOME env var
> upon startup, can you verify that it's really using 1.6?
>
> On Wed, Jul 14, 2010 at 10:11 AM, testwreq wreq 
> wrote:
> > It is jdk 1.6 from SUN
> > java -version
> > java version "1.6.0_20"
> > Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> > Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
> >
> >
> > On Wed, Jul 14, 2010 at 9:56 AM, Kris Schneider  >wrote:
> >
> >> You wouldn't happen to be using JDK 1.4 on CentOS, would you? The
> >> emptyMap method showed up in JDK 1.5...
> >>
> >> On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq 
> wrote:
> >> > I have a piece of code that retrieves data from oracle database XML
> type.
> >> It
> >> > works on tomcat installation on ubuntu. But fails on CentOS. Any
> ideas?
> >> >
> >> >
> >> > java.lang.NoSuchMethodError: method java.util.Collections.emptyMap
> >> > with signature ()Ljava.util.Map; was not found.
> >> >javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> >> >javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
> >> >gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80)
> >> >
> >>
>  
> gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581)
> >> >
> >>  gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688)
> >> >gdb.ProcessInput.doPost(ProcessInput.java:116)
> >> >javax.servlet.http.HttpServlet.service(
> >> tomcat5-servlet-2.4-api-5.5.23.jar.so)
> >> >javax.servlet.http.HttpServlet.service(
> >> tomcat5-servlet-2.4-api-5.5.23.jar.so)
> >> >
> >> > Thanks,vm
> >>
> >> --
> >> Kris Schneider
>
> --
> Kris Schneider
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.

2010-07-14 Thread testwreq wreq
How can I set the JRE_HOME? Why is it null?

I am very new to this. Please point me to fix this.

On Wed, Jul 14, 2010 at 10:38 AM, Martin Gainty  wrote:

>
> try
>
> Collection.isEmpty()==true
>
> OR
> Collection.size()==0
>
>
> take your pick
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Wed, 14 Jul 2010 09:56:34 -0400
> > Subject: Re: java.lang.NoSuchMethodError: method
> java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not
> found.
> > From: kschnei...@gmail.com
> > To: users@tomcat.apache.org
>  >
> > You wouldn't happen to be using JDK 1.4 on CentOS, would you? The
> > emptyMap method showed up in JDK 1.5...
> >
> > On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq 
> wrote:
> > > I have a piece of code that retrieves data from oracle database XML
> type. It
> > > works on tomcat installation on ubuntu. But fails on CentOS. Any ideas?
> > >
> > >
> > > java.lang.NoSuchMethodError: method java.util.Collections.emptyMap
> > > with signature ()Ljava.util.Map; was not found.
> > >javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> > >javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
> > >gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80)
> > >
>  
> gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581)
> > >
>  gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688)
> > >gdb.ProcessInput.doPost(ProcessInput.java:116)
> > >javax.servlet.http.HttpServlet.service(
> tomcat5-servlet-2.4-api-5.5.23.jar.so)
> > >javax.servlet.http.HttpServlet.service(
> tomcat5-servlet-2.4-api-5.5.23.jar.so)
> > >
> > > Thanks,vm
> >
> > --
> > Kris Schneider
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
>
> _
> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
> Hotmail.
>
> http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
>


Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.

2010-07-14 Thread testwreq wreq
It seems there is something wrong with the setup. How do I set the JRE_HOME?
Also, /gcj-4.1.2
On Wed, Jul 14, 2010 at 10:46 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: testwreq wreq [mailto:testw...@gmail.com]
> > Subject: Re: java.lang.NoSuchMethodError: method
> > java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not
> > found.
> >
> > 2. JRE_HOME is not set to anything
>
> Which is a problem.
>
> > production environments was not found on the java.library.path:
> > /usr/lib64/gcj-4.1.2
>
> Oops.  You're using gcj, which is wholly inappropriate for serious Java
> work.  Remove it from your system if you can.  Regardless, make sure
> JRE_HOME or JAVA_HOME is set to a real JVM before your start Tomcat.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


jsre_home is null

2010-07-14 Thread testwreq wreq
catalina logs are showing jre_home as null. Any ideas how to set it?


Re: jsre_home is null

2010-07-15 Thread testwreq wreq
Hi, Thank you for responding. Below are the commands I used to check java. i
am confused because which java is reading /usr/bin/java; i think it should
be /usr/local/jdk1.6.0_20. As you see from the alternatives command, I have
set the default java to   /usr/local/jdk1.6.0_20/bin/java;

Please advise.
What is the difference between java_home and jre_home?

[r...@www2 conf]# which java
/usr/bin/java

[r...@www2 conf]# alternatives --config java
There are 3 programs which provide 'java'.
  SelectionCommand
---
   1   /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*  2   /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
 + 3   /usr/local/jdk1.6.0_20/bin/java
[r...@www2 conf]# echo $JAVA_HOME
/usr/local/jdk1.6.0_20

On Wed, Jul 14, 2010 at 2:11 PM, Bob Hall  wrote:

>
>
> --- On Wed, 7/14/10 at 10:08 AM, testwreq wreq  wrote:
>
> > catalina logs are showing jre_home as
> > null. Any ideas how to set it?
> >
>
> Earlier, in a separate thread, you indicated that java 1.6 was installed.
>
> At the command prompt type:
>
> $ which java
>
> which should display something like:
>
> /usr/local/jdk1.6/bin/java
>
> Depending on the 'shell' you are using you should be able to use of the
> following commands:
>
> $ export JAVA_HOME=/usr/local/jdk1.6
>
> $ setenv JAVA_HOME /usr/local/jdk1.6
>
> This will only set JAVA_HOME for the current 'shell', it is not permanent.
>
> - Bob
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: jsre_home is null

2010-07-15 Thread testwreq wreq
Hi Chris,
Thank you for responding.

Alternatives is defaulting to  /usr/local/jdk1.6.0_20/bin/java  (jdk from
sun)

/usr/bin/java has a symlink to -> /usr/local/jdk1.6.0_20/bin/java

We launch Tomcat by  http://localhost:8080
We start it by running tomcat5 from /etc/init.d folder; This file calls
/usr/bin/dtomcat, which sets some env variables.

$CATALINA_HOME is /usr/share/tomcat5 version.sh file is not there in the
/bin folder.

Regards, Andy.
On Thu, Jul 15, 2010 at 2:33 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> To whom it may concern,
>
> (Please set the name in your email client to something, or at least sign
> your messages with your name.)
>
> On 7/15/2010 9:49 AM, testwreq wreq wrote:
> > Hi, Thank you for responding. Below are the commands I used to check
> java. i
> > am confused because which java is reading /usr/bin/java; i think it
> should
> > be /usr/local/jdk1.6.0_20. As you see from the alternatives command, I
> have
> > set the default java to   /usr/local/jdk1.6.0_20/bin/java;
> >
> > Please advise.
> > What is the difference between java_home and jre_home?
>
> java_home and jre_home are both meaningless
>
> JAVA_HOME is the environment variable that points to your installation
> of Java. JRE_HOME is the environment variable that points to your JRE
> installation. Often, these values are the same. I believe many utilities
> look for either or both of these variables.
>
> http://lmgtfy.com/?q=difference+between+JAVA_HOME+and+JRE_HOME
>
> > [r...@www2 conf]# which java
> > /usr/bin/java
>
> No help.
>
> You might want to do less work as "root". It's quite easy to really
> break things when you're root.
>
> How about:
>
> $ java -version
>
> > [r...@www2 conf]# alternatives --config java
> > There are 3 programs which provide 'java'.
> >   SelectionCommand
> > ---
> >1   /usr/lib/jvm/jre-1.4.2-gcj/bin/java
> > *  2   /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
> >  + 3   /usr/local/jdk1.6.0_20/bin/java
>
> Great, so you've got 3 Java versions installed:
>
> 1. GNU's Compiler for Java v1.4.2
> 2. OpenJDK v1.6.0 (64-bit version)
> 3. Sun's Java Development Kit v1.6.0_20
>
> It's tough to tell from the output of "alternatives" which version is
> set by default.
>
> > [r...@www2 conf]# echo $JAVA_HOME
> > /usr/local/jdk1.6.0_20
>
> That could indicate that Sun's JDK is currently enabled, but maybe not.
>
> How do you launch Tomcat?
>
> Try running this command and reporting the output:
>
> $CATALINA_HOME/bin/version.sh
>
> (Where CATALINA_HOME is the location of Tomcat; probably something like
> /usr/local/apache-tomcat-6.0.28)
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkw/VH8ACgkQ9CaO5/Lv0PBzwgCfSSxf/G+FoDu69UkIBc5gqIZo
> gloAoLyFWGvofEqWPLpKaZ94R5b1chof
> =wd+Y
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>