You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ryan Steele <rs...@archer-group.com> on 2008/05/28 20:30:08 UTC
Status and Tomcat Manager links result in 404's
Hey list,
I've got a Tomcat 5.5.25 installation up and running for the most part.
However, on the index.jsp on the main page (http://example.com:8080),
the "Status" and "Tomcat Manager" links both result in 404's.
My Tomcat/Catalina home is /usr/share/tomcat5. My main webapps folder
is in /usr/share/tomcat5/webapps, and the admin/manager/host-manager
apps are in /usr/share/tomcat5/server/webapps. But, I always get the
404 "The requested resource (/manager/html) is not available." Just for
kicks, I also tried manually entering /server/manager/html as the URI,
but it failed similarly.
I have added a role in my /usr/share/tomcat5/conf/tomcat-users.xml so
that users can authenticate as an admin to that area, but I don't even
get the prompt for credentials. I've got what looks like a proper
context in /usr/share/tomcat5/server/webapps/manager/manager.xml:
<Context docBase="${catalina.home}/server/webapps/manager"
privileged="true" antiResourceLocking="false"
antiJARLocking="false">
<!-- Link to the user database we will get roles from -->
<ResourceLink name="users" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
</Context>
I also tried editing the context to list a path (I set it to
path="/manager") ...but alas, I'm still stuck with 404's. I don't see
anything in the logs when this happens. Has anybody seen this before,
and perhaps does anyone have any insight as to where I'm zigging where I
should be zagging?
Thanks!
Ryan
---------------------------------------------------------------------
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: Status and Tomcat Manager links result in 404's
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ryan Steele [mailto:rsteele@archer-group.com]
> Subject: Re: Status and Tomcat Manager links result in 404's
>
> I hope that continuing to use the Fedora packaged version
> doesn't preclude any further advice.
It pretty much does, since those repackaged things are horribly unreliable.
> You mean, the whole install is fubar'ed or just
> needs some adjusting?
It's fubar - throw it away and install a real 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 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: Status and Tomcat Manager links result in 404's
Posted by Ryan Steele <rs...@archer-group.com>.
Caldarale, Charles R wrote:
>> From: Ryan Steele [mailto:rsteele@archer-group.com]
>> Subject: Status and Tomcat Manager links result in 404's
>>
>> I've got a Tomcat 5.5.25 installation up and running for the
>> most part.
>>
>
> Platform?
> JRE/JDK version?
>
>
FC6 and 1.4.2, respectively. They are outdated, but I needed to
duplicate a client's environment for our developers to write code that
would work on their boxes.
> Do you have a real Tomcat installed, or a 3rd-party repackaged piece of junk? If the latter, download and install a proper one from http://tomcat.apache.org/download-55.cgi.
>
Packaged. And, folks are already developing on it - I don't want to
pull the rug out from underneath them. But I do appreciate the wise
words - I will certainly heed them in the future. I hope that
continuing to use the Fedora packaged version doesn't preclude any
further advice.
>
>> I've got what looks like a proper context in
>> /usr/share/tomcat5/server/webapps/manager/manager.xml:
>>
>
> That one is just a copy of the real one, left there during packaging of the source. The <Context> element for the manager app should be in /usr/share/tomcat5/conf/Catalina/localhost/manager.xml; if it's not there, you have a bad installation.
>
A 'bad' installation? You mean, the whole install is fubar'ed or just
needs some adjusting? The phrasing makes the situation sound pretty
dire. The /usr/share/tomcat5/conf/Catalina/localhost/ directory is
empty. I'm not too terribly versed with regards to Tomcat, but I am
eager to learn, so I took your advice below and read the fine manual. I
did find reference describing how to add an instance of the Manager web
app Context to hosts at
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Introduction
>
>> I also tried editing the context to list a path (I set
>> it to path="/manager")
>>
>
> Don't ever do that; it's illegal to have a path in a <Context> element unless the <Context> element is inside server.xml - which it should never be, in this day and age. Read the doc:
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>
Really? The docs seem to disagree:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Introduction
indicates I can use that in manager.xml as well.
But, thanks for pointing me to the docs - I did solve my problem by
adding the manager.xml to the localhost directory in the Catalina directory.
Respectfully,
Ryan
---------------------------------------------------------------------
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: Status and Tomcat Manager links result in 404's
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ryan Steele [mailto:rsteele@archer-group.com]
> Subject: Status and Tomcat Manager links result in 404's
>
> I've got a Tomcat 5.5.25 installation up and running for the
> most part.
Platform?
JRE/JDK version?
Do you have a real Tomcat installed, or a 3rd-party repackaged piece of junk? If the latter, download and install a proper one from http://tomcat.apache.org/download-55.cgi.
> I've got what looks like a proper context in
> /usr/share/tomcat5/server/webapps/manager/manager.xml:
That one is just a copy of the real one, left there during packaging of the source. The <Context> element for the manager app should be in /usr/share/tomcat5/conf/Catalina/localhost/manager.xml; if it's not there, you have a bad installation.
> I also tried editing the context to list a path (I set
> it to path="/manager")
Don't ever do that; it's illegal to have a path in a <Context> element unless the <Context> element is inside server.xml - which it should never be, in this day and age. Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.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 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