You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Markovich <mi...@attbi.com> on 2002/08/26 00:02:48 UTC

Requested resource is not available

Hi,

I'm in the process of upgrading from Tomcat 3.2 to Tomcat 4.0.4 on NT. 
 I've completed the install and I can run the examples.  I can also run 
a JSP if I install it in ROOT/WEB-INF/classes.  My problem is that I 
can't  get anything else to run.   A major hint is that directories 
added under webapps don't show up.  When I try to access them I get 
 Error 404, the requested resource is not available.

Any suggestions will be greatly appreciated.

Mike




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: startup/shutdown Tomcat on Linux

Posted by micael <ca...@harbornet.com>.
sh startup.sh

sh is the shell.

At 10:04 PM 8/25/2002 -0700, you wrote:
>How do you start and shutdown Tomcat on Linux?
>
>I'm (obvioulsy) a windows person.  I am attempting to get my app running on
>Linux.  From the /bin directory I attempted to call "shutdown.bat".  This
>didn't work so I restarted the server (shutdown -r now).  When the server
>came back, Tomcat was no longer responding.  Attempting to call the URLs
>pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request
>that never comes back.
>
>I guess my ideal would be that Tomcat would auto-start upon reboot of the
>server.  Is this easy to setup? In the near-term though I just need to know
>how to start/restart/shutdown tomcat.
>
>Thanks in advance!
>
>Neal
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat log in linux

Posted by micael <ca...@harbornet.com>.
Have you even opened the command line in Linux?

At 11:46 PM 8/25/2002 -0700, you wrote:
>In Windows, when you run Tomcat, a DOS command line window pops up and you
>see real-time messages from Tomcat.  If something isn't going right ... you
>see those messages.  Is there something analogous in Linux/Tomcat?  I'm
>trying to get the dumb thing running but I'm not seeing any debug info and
>the logs look relatively empty.
>
>Thanks.
>NEal
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat log in linux

Posted by Randall R Schulz <rr...@cris.com>.
Neal,

On Unix (-like) systems, I'll usually start a separate terminal window (I 
assume you've got an X Window System display connected to the Unix system 
you're using) and start Tomcat there so I can monitor the standard output. 
This achieves the same results as the window created by Windows when you 
launch Tomcat there.

You should familiarize yourself with the "tail" command, particularly it's 
"-f" option. (Use the "man" command: "man tail"). This allows you to 
monitor additions to a file as they appear. This way you can keep log files 
and monitor them visually at the same time.

For an alternative with similar possibilities, lear about the "tee" 
utility. It operates in a pipeline by copying its input to its output (as 
"cat" would do with no arguments) but also writes a copy of all the data 
that passes through it to a file. I can append to the file, too.

Keep in mind that the terminal emulators have options that allow you to 
specify how many lines scroll-back to preserve.

Good luck.

Randall Schulz
Mountain View, CA USA


At 23:46 2002-08-25, neal wrote:
>In Windows, when you run Tomcat, a DOS command line window pops up and you
>see real-time messages from Tomcat.  If something isn't going right ... you
>see those messages.  Is there something analogous in Linux/Tomcat?  I'm
>trying to get the dumb thing running but I'm not seeing any debug info and
>the logs look relatively empty.
>
>Thanks.
>NEal


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Tomcat log in linux

Posted by neal <ne...@yahoo.com>.
In Windows, when you run Tomcat, a DOS command line window pops up and you
see real-time messages from Tomcat.  If something isn't going right ... you
see those messages.  Is there something analogous in Linux/Tomcat?  I'm
trying to get the dumb thing running but I'm not seeing any debug info and
the logs look relatively empty.

Thanks.
NEal


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: startup/shutdown Tomcat on Linux

Posted by neal <ne...@yahoo.com>.
Thanks for the info.

I set my TOMCAT_HOME (/usr/java/jakarta-tomcat4.0.4) and JAVA_HOME
(/usr/java/j2sdk1.4.0_01) env variables as needed to run these commands. The
commands appear to now run fine (startup for instance will list 4 env
variables it is apparently referenceing - CATALINA_BASE, CATALINA_HOME,
CATALINA_TMPDIR, JAVA_HOME) and control is returned to the shell ... but
Tomcat still isn't returning any pages to my browser.  It was working fine
before I restarted the server.  :-\

Any thoughts?

Thanks.
Neal


-----Original Message-----
From: Randall R Schulz [mailto:rrschulz@cris.com]
Sent: Sunday, August 25, 2002 10:21 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: startup/shutdown Tomcat on Linux


Neal,

Just use the ".sh" counterparts to the ".bat" files you used on Windows.

If you want Tomcat to start when the system comes up (or, to use some
jargon, enters the proper "run level") you should find someone at your site
who's familiar with Linux configuration. This can be handled manually, by
editing startup and shutdown files in /etc/rc.d or, on many modern Linux
systems, by using a GUI front-end to those configuration files. However,
there are several variants on the underlying scheme and the tools that
expose it, so it's not feasible to instruct you on the details from what
you've told us (i.e., simply that you're using Linux).

Good luck.

Randall Schulz
Mountain View, CA USA


At 22:04 2002-08-25, neal wrote:
>How do you start and shutdown Tomcat on Linux?
>
>I'm (obvioulsy) a windows person.  I am attempting to get my app running on
>Linux.  From the /bin directory I attempted to call "shutdown.bat".  This
>didn't work so I restarted the server (shutdown -r now).  When the server
>came back, Tomcat was no longer responding.  Attempting to call the URLs
>pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request
>that never comes back.
>
>I guess my ideal would be that Tomcat would auto-start upon reboot of the
>server.  Is this easy to setup? In the near-term though I just need to know
>how to start/restart/shutdown tomcat.
>
>Thanks in advance!
>
>Neal


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: startup/shutdown Tomcat on Linux

Posted by Randall R Schulz <rr...@cris.com>.
Neal,

Just use the ".sh" counterparts to the ".bat" files you used on Windows.

If you want Tomcat to start when the system comes up (or, to use some 
jargon, enters the proper "run level") you should find someone at your site 
who's familiar with Linux configuration. This can be handled manually, by 
editing startup and shutdown files in /etc/rc.d or, on many modern Linux 
systems, by using a GUI front-end to those configuration files. However, 
there are several variants on the underlying scheme and the tools that 
expose it, so it's not feasible to instruct you on the details from what 
you've told us (i.e., simply that you're using Linux).

Good luck.

Randall Schulz
Mountain View, CA USA


At 22:04 2002-08-25, neal wrote:
>How do you start and shutdown Tomcat on Linux?
>
>I'm (obvioulsy) a windows person.  I am attempting to get my app running on
>Linux.  From the /bin directory I attempted to call "shutdown.bat".  This
>didn't work so I restarted the server (shutdown -r now).  When the server
>came back, Tomcat was no longer responding.  Attempting to call the URLs
>pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request
>that never comes back.
>
>I guess my ideal would be that Tomcat would auto-start upon reboot of the
>server.  Is this easy to setup? In the near-term though I just need to know
>how to start/restart/shutdown tomcat.
>
>Thanks in advance!
>
>Neal


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re:[OT] Requested resource is not available

Posted by "Michael E. Locasto" <lo...@cs.columbia.edu>.
> >
> Michael,
>
> Thanks for your response, I thought I was doing all the things you
> suggested, but just to make sure I recreated web.xml and restarted
> tomcat and now things work as expected. Oh well,  only a couple of hours
> lost because I was doing something different then what I thought I was
> doing...
>
> Mike

I'm glad things worked out; I know the feeling...I just spent some time
cursing and fiddling b/c my form wasn't calling the proper page, but I
*knew* that it was...until I finally checked.

-Michael


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: startup/shutdown Tomcat on Linux

Posted by Yousef Shemisa <ys...@netunderdogs.com>.
Neal,

Assuming you're running a bash-like (sh, bash, ksh) shell then you would
execute the Linux analogs of shutdown.bat or startup.bat, which are named
shutdown.sh and startup.sh respectively. So you would type the following
from the console (no brackets in actual input):

[cd $CATALINA_HOME /bin ] OR [cd $TOMCAT_HOME/bin] depending on your version
of Tomcat and how the respective environment was setup

[./shutdown.sh]  and that's it

Since you have restarted the server you will need to restart Tomcat by
rnunning the following from the console:

[cd $CATALINA_HOME /bin ] OR [cd $TOMCAT_HOME/bin] depending on your version
of Tomcat and how the respective environment was setup

[./startup.sh] and he should start

---
To be sure, you could configure the system to be started after boot (similar
to an NT/2K Service) and assign him to one or more run-levels. This is a
little more complicated and I believe there are already some how-tos in the
archives on this topic.
HTH.

Ciao.
---
Yousef Shemisa   |   yshemisa@netunderdogs.com
650.365.9704 x12
NetUnderdogs
Dynamically-driven Flash, eCommerce, and portal solutions for business

http://www.netunderdogs.com <http://www.netunderdogs.com/>
----- Original Message -----
From: "neal" <ne...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Sunday, August 25, 2002 10:04 PM
Subject: startup/shutdown Tomcat on Linux


> How do you start and shutdown Tomcat on Linux?
>
> I'm (obvioulsy) a windows person.  I am attempting to get my app running
on
> Linux.  From the /bin directory I attempted to call "shutdown.bat".  This
> didn't work so I restarted the server (shutdown -r now).  When the server
> came back, Tomcat was no longer responding.  Attempting to call the URLs
> pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request
> that never comes back.
>
> I guess my ideal would be that Tomcat would auto-start upon reboot of the
> server.  Is this easy to setup? In the near-term though I just need to
know
> how to start/restart/shutdown tomcat.
>
> Thanks in advance!
>
> Neal
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


startup/shutdown Tomcat on Linux

Posted by neal <ne...@yahoo.com>.
How do you start and shutdown Tomcat on Linux?

I'm (obvioulsy) a windows person.  I am attempting to get my app running on
Linux.  From the /bin directory I attempted to call "shutdown.bat".  This
didn't work so I restarted the server (shutdown -r now).  When the server
came back, Tomcat was no longer responding.  Attempting to call the URLs
pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request
that never comes back.

I guess my ideal would be that Tomcat would auto-start upon reboot of the
server.  Is this easy to setup? In the near-term though I just need to know
how to start/restart/shutdown tomcat.

Thanks in advance!

Neal


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Requested resource is not available

Posted by Mike Markovich <mi...@attbi.com>.
Michael E. Locasto wrote:

>Mike,
>
>Make sure you have WEB-INF/ directories (and web.xml) for those webapps.
>Also, try restarting Tomcat. In addition, you can use the manager app to
>deploy new webapps.
>
>Regards,
>Michael
>
>----- Original Message -----
>From: "Mike Markovich" <mi...@attbi.com>
>To: <to...@jakarta.apache.org>
>Sent: Sunday, August 25, 2002 6:02 PM
>Subject: Requested resource is not available
>
>
>  
>
>>Hi,
>>
>>I'm in the process of upgrading from Tomcat 3.2 to Tomcat 4.0.4 on NT.
>> I've completed the install and I can run the examples.  I can also run
>>a JSP if I install it in ROOT/WEB-INF/classes.  My problem is that I
>>can't  get anything else to run.   A major hint is that directories
>>added under webapps don't show up.  When I try to access them I get
>> Error 404, the requested resource is not available.
>>
>>Any suggestions will be greatly appreciated.
>>
>>Mike
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>    
>>
><ma...@jakarta.apache.org>
>  
>
>>For additional commands, e-mail:
>>    
>>
><ma...@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>  
>
Michael,

Thanks for your response, I thought I was doing all the things you 
suggested, but just to make sure I recreated web.xml and restarted 
tomcat and now things work as expected. Oh well,  only a couple of hours 
lost because I was doing something different then what I thought I was 
doing...

Mike



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Requested resource is not available

Posted by "Michael E. Locasto" <lo...@cs.columbia.edu>.
Mike,

Make sure you have WEB-INF/ directories (and web.xml) for those webapps.
Also, try restarting Tomcat. In addition, you can use the manager app to
deploy new webapps.

Regards,
Michael

----- Original Message -----
From: "Mike Markovich" <mi...@attbi.com>
To: <to...@jakarta.apache.org>
Sent: Sunday, August 25, 2002 6:02 PM
Subject: Requested resource is not available


> Hi,
>
> I'm in the process of upgrading from Tomcat 3.2 to Tomcat 4.0.4 on NT.
>  I've completed the install and I can run the examples.  I can also run
> a JSP if I install it in ROOT/WEB-INF/classes.  My problem is that I
> can't  get anything else to run.   A major hint is that directories
> added under webapps don't show up.  When I try to access them I get
>  Error 404, the requested resource is not available.
>
> Any suggestions will be greatly appreciated.
>
> Mike
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>