You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Gresh <dg...@lle.rochester.edu> on 2007/02/19 22:43:02 UTC

Installing Tomcat 6.0.9 on Sun Solaris

Hi all,

I was having some more problems with some older Tomcat installations, so 
I decided to upgrade to the newest release and download it fresh this 
time instead of using an existing build from awhile back.

I've been trying to set up Tomcat 6.0.9, but I'm afraid I'm having some
problems.

I've been following the installation instructions in RUNNING.txt.
Basically, it tells me to download the binary distribution, unpack it,
make sure JDK1.5 or greater is installed, and run the server. I also need to set up a CATALINA_BASE,

After downloading the binary distribution, I uncompressed it to $CATALINA_HOME. Then, I created a new
directory, and set that to be
$CATALINA_BASE. Then, I took the appropriate directories out of $CATALINA_HOME and put them in $CATALINA_BASE, according to RUNNING.txt. Then, I started
up the server and set it to use $CATALINA_BASE with
"$CATALINA_HOME/bin/startup.sh -Dcatalina.base=$HOME/dtomcat". This
gave me the following output:

Using CATALINA_BASE:   /u/dgresh/dtomcat
Using CATALINA_HOME:   /u/dgresh/apache-tomcat-6.0.9
Using CATALINA_TMPDIR: /u/dgresh/dtomcat/temp
Using JRE_HOME:       /usr/local/jdk1.5.0_06

and then gave me a command prompt. So I navigated to http://localhost:8080,
and I got a connection failed error. I searched through the
documentation, and found that an issue with ports might be causing the
problem. I edited the $CATALINA_BASE/conf/server.xml file, and changed
the server port from 8005 to 8007, and the connector port from 8080 to
8082. Then, I navigated to http://localhost:8082, and got the
same connection failed error. 

Furthermore, I'm running into problems when I go to shutdown Tomcat.
When I run $CATALINA_HOME/bin/shutdown.sh, I get the following output:

java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

I'm not sure what that means, even after a web search. 

There's one more thing that is confusing me. RUNNING.txt says that all I
need to do to install Tomcat is unpack it to a directory, have JDK1.5+
installed, and startup the server. However, the setup instructions at
the Tomcat website have something about running it as a UNIX daemon
(http://tomcat.apache.org/tomcat-6.0-doc/setup.html). I'm not exactly sure if this is needed, but I tried to follow the instructions, so I downloaded the
commnons-daemon file and placed the necessary files in
$CATALINA_HOME/bin. However, I cannot run "tar xvfz jsvc.tar.gz", as the
-z argument is not being recognized. The directions said GNU TAR was
needed, so I searched the web for that, but I came to a confusing site
that said something about FTPing the GNU TAR files, and I didn't know
where to go from there.

So is there simply something I missed about configuring Tomcat for
proper use on my localhost? Or is this a problem with my Tomcat installation?

If you could offer any advice, I'd be very appreciative.

Thanks,
Dan



---------------------------------------------------------------------
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: Installing Tomcat 6.0.9 on Sun Solaris

Posted by Daniel Gresh <dg...@lle.rochester.edu>.
Caldarale, Charles R wrote:
>> From: Daniel Gresh [mailto:dgresh@lle.rochester.edu] 
>> Subject: Re: Installing Tomcat 6.0.9 on Sun Solaris
>>
>> When I try to setup a $CATALINA_BASE by moving the
>> aforementioned directories to $HOME/dtomcat, I get
>> the error I posted in my original message. 
>>     
>
> The real question is:  why are you trying to do this?  Unless you intend
> to run multiple instances of Tomcat simultaneously, the exercise is
> pointless.
>
>  - 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
>
>
>
>   
Thanks for the replies guys.

I believe you're right Chuck. When I think about it, there is no need 
for a CATALINA_BASE. The reason I wanted to set one is because the 
previous two installations of Tomcat (4.0.5 and 5.5.9) both had one, so 
I figured it might be there for ease of use, security purposes, or 
something of the sort. However, I am the only one who will be using 
Tomcat 6.0.9, so there really is no point to it.

Anyway, I believe all my questions are now cleared up (unless of course 
I need to set up a CATALINA_BASE and have questions about the 
information from the server logs). I have Tomcat 6.0.9 running properly, 
and it can compile my JDK1.5 code and everything!

Thanks for the help,
Dan

---------------------------------------------------------------------
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: Installing Tomcat 6.0.9 on Sun Solaris

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Daniel Gresh [mailto:dgresh@lle.rochester.edu] 
> Subject: Re: Installing Tomcat 6.0.9 on Sun Solaris
> 
> When I try to setup a $CATALINA_BASE by moving the
> aforementioned directories to $HOME/dtomcat, I get
> the error I posted in my original message. 

The real question is:  why are you trying to do this?  Unless you intend
to run multiple instances of Tomcat simultaneously, the exercise is
pointless.

 - 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: Installing Tomcat 6.0.9 on Sun Solaris

Posted by Hassan Schroeder <ha...@gmail.com>.
On 2/19/07, Daniel Gresh <dg...@lle.rochester.edu> wrote:

> However, startup.sh does not start the
> server apparently; I cannot connect to it from a browser

You need to look in your server logs for the underlying problem that's
preventing Tomcat from starting.

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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: Installing Tomcat 6.0.9 on Sun Solaris

Posted by Daniel Gresh <dg...@lle.rochester.edu>.
Hi thanks for the reply.

I cleared my CATALINA_BASE variable so it would take on the default
$CATALINA_HOME variable. I then moved my conf lib logs temp webapps work
directories back into $CATALINA_HOME. Then, I used startup.sh, and it
WORKED! Hooray! I can shutdown and startup the server when I do not have
a $CATALINA_BASE. When I try to setup a $CATALINA_BASE by moving the
aforementioned directories to $HOME/dtomcat, I get the error I posted in
my original message. 

Is there anything I missed when setting up $CATALINA_BASE?

I moved the conf, lib, logs, temp, work, and webapp directories to
$CATALINA_BASE. Should I have copied them, therefore leaving a copy in
$CATALINA_HOME? After that, I use startup.sh and supply the
-Dcatalina.base=$HOME/dtomcat argument to startup.sh, and it says it's
using the appropriate directory. However, startup.sh does not start the
server apparently; I cannot connect to it from a browser, and I get the
error I posted when I try to use shutdown.sh.

There's obviously something I missed. Do I need to edit some files or
something?

Thanks a lot,
Dan

On Mon, 2007-02-19 at 17:11, Hassan Schroeder wrote:
> On 2/19/07, Daniel Gresh <dg...@lle.rochester.edu> wrote:
> 
> > I've been following the installation instructions in RUNNING.txt.
> > Basically, it tells me to download the binary distribution, unpack it,
> > make sure JDK1.5 or greater is installed, and run the server. I also need to set up a CATALINA_BASE,
> 
> No, you don't. Until you've gotten the basic installation down, stay out
> of the "advanced configuration" section. :-)
> 
> If you follow *exactly* the steps before that, it should just work. If it
> doesn't, e.g., you're still getting a "connection failed" error, check to
> see whether the process is running or not. If not, check the logs, and
> if so, check for firewall/iptables/whatever problems.
> 
> Good luck,
> -- 
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> 
> ---------------------------------------------------------------------
> 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
> 


---------------------------------------------------------------------
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: Installing Tomcat 6.0.9 on Sun Solaris

Posted by Hassan Schroeder <ha...@gmail.com>.
On 2/19/07, Daniel Gresh <dg...@lle.rochester.edu> wrote:

> I've been following the installation instructions in RUNNING.txt.
> Basically, it tells me to download the binary distribution, unpack it,
> make sure JDK1.5 or greater is installed, and run the server. I also need to set up a CATALINA_BASE,

No, you don't. Until you've gotten the basic installation down, stay out
of the "advanced configuration" section. :-)

If you follow *exactly* the steps before that, it should just work. If it
doesn't, e.g., you're still getting a "connection failed" error, check to
see whether the process is running or not. If not, check the logs, and
if so, check for firewall/iptables/whatever problems.

Good luck,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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