Fedora Linux Support Community & Resources Center
  #1  
Old 21st September 2010, 04:23 PM
falcon1620 Offline
Registered User
 
Join Date: Sep 2010
Posts: 5
linuxfedorafirefox
Tomcat6 Administration Issue

Hey I was wondering if some one would help me out, I am running Tomcat 6 server on Fedora 13, I set up Tomcat Users, and when I go to http://127.0.0.1:8080/manage/html/ there files are not found despite installing tomcat6-admin-webapps and tomcat-webapps. (I get an error 404 not found) However everything else seems to work fine. for some reason I can not seem to find the management utilities needed to configure my Tomcat server. Any Ideas about why those are missing?

Now when I install and configure Tomcat5 on my server I CAN access the administration utilities and successfully log in. Notice that the Tomcat 6 configuration is a little different but I tried the syntax for the tomcat6-users.xml file in the /etc/confg/ file/ also tried the tomcat 5 config file, but It dosn't seem to be an issue with Tomcat users... Seems to just be a missing webapps utility. However I can find the source for the web apps under /usr/share/tomcat6/(webapps?)/... I need Tomcat 6 though for my application I am messing with on here

Thanks! :-D

(sorry if this is a re-post my original post seems to have disappeared but I could have just forgotten to submit it its been one of those weeks... )
Reply With Quote
  #2  
Old 21st September 2010, 05:53 PM
tomwre Offline
Registered User
 
Join Date: Jun 2005
Location: Lulea, Sweden
Posts: 4
linuxfedorafirefox
Re: Tomcat6 Administration Issue

http://127.0.0.1:8080/manage/html/ ???

try http://127.0.0.1:8080/manager/html/ ?
Reply With Quote
  #3  
Old 21st September 2010, 07:44 PM
falcon1620 Offline
Registered User
 
Join Date: Sep 2010
Posts: 5
linuxfedorafirefox
Re: Tomcat6 Administration Issue

Oh sorry yes, that's what I meant to type. I was going by memory. I used the link directly from the Tomcat6 server off of the default page.
This is what you get..

The entire manager file is missing...
Click image for larger version

Name:	Screenshot.png
Views:	101
Size:	48.3 KB
ID:	20112


Here is my /etc/tomcat6/tomcat-users.xml
Quote:
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<tomcat-users>

<role rolename="tomcat"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="admin" password="admin" roles="tomcat,admin,manager"/>

<!-- The host manager webapp is restricted to users with role "admin" -->
<!--<user name="tomcat" password="password" roles="admin" />-->
<!-- The manager webapp is restricted to users with role "manager" -->
<!--<user name="tomcat" password="password" roles="manager" />-->
</tomcat-users>
~
however if you view the files located at /usr/share/tomcat6/webapps there is the manager files installed at that location.
Quote:
[root@fedora1525 tomcat6]# cd webapps/
[root@fedora1525 webapps]# ls
docs examples host-manager manager ROOT sample
[root@fedora1525 webapps]# ls manager
401.jsp images META-INF sessionDetail.jsp sessionsList.jsp status.xsd WEB-INF xform.xsl
[root@fedora1525 webapps]#

Last edited by falcon1620; 21st September 2010 at 07:48 PM.
Reply With Quote
  #4  
Old 24th September 2010, 03:56 PM
falcon1620 Offline
Registered User
 
Join Date: Sep 2010
Posts: 5
linuxfedorafirefox
Cool Re: Tomcat6 Administration Issue

I found a missing file in /etc/tomcat6/Catalina/localhost/manager.xml

copying from Tomcat 5 I added it in as:

<Context path="/manager" debug="0" privileged="true"
docBase="/var/lib/tomcat6/webapps/manager">
</Context>

and restarted the service
Problem solved.

I don't think that I have ever had a Tomcat Installation missing this though...
Reply With Quote
  #5  
Old 8th October 2010, 12:38 PM
MSK61 Offline
Registered User
 
Join Date: May 2008
Location: Giza, Egypt
Age: 30
Posts: 167
linuxfedorafirefox
Re: Tomcat6 Administration Issue

Quote:
Originally Posted by falcon1620 View Post
I found a missing file in /etc/tomcat6/Catalina/localhost/manager.xml

copying from Tomcat 5 I added it in as:

<Context path="/manager" debug="0" privileged="true"
docBase="/var/lib/tomcat6/webapps/manager">
</Context>

and restarted the service
Problem solved.

I don't think that I have ever had a Tomcat Installation missing this though...
I ran into the same problem. I queried which package contained the file /etc/tomcat6/Catalina/localhost/manager.xml with
Code:
yum provides /etc/tomcat6/Catalina/localhost/manager.xml
No packages were reported to own this file. I then queried the same file for tomcat5 with
Code:
yum provides /etc/tomcat5/Catalina/localhost/manager.xml
And I got
Code:
tomcat5-admin-webapps-5.5.27-7.4.fc12.noarch : Administrative web applications for Apache Tomcat
Repo        : fedora
Matched from:
Filename    : /etc/tomcat5/Catalina/localhost/manager.xml
I then ran
Code:
rpm -ql tomcat6-admin-webapps
as I had that package installed on my system to see if it contained the same file, but I found that it really missed that file(along with other xml files under /etc/tomcat6/Catalina/localhost, although the folder itself existed as part of the tomcat6 package).

I've filed a bug report for this at https://bugzilla.redhat.com/show_bug.cgi?id=641196.

---------- Post added at 01:38 PM GMT ---------- Previous post was at 02:00 AM GMT ----------

It turned out that the problem was related to bad file permissions on /etc/tomcat6/Catalina(and consequently on its subdirectory localhost) as illustrated in an earlier bug https://bugzilla.redhat.com/show_bug.cgi?id=574593.

Last edited by MSK61; 8th October 2010 at 12:39 PM. Reason: linking to a bug
Reply With Quote
Reply

Tags
administration, tomcat6

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat6 Problem Rafael Krejci Servers & Networking 1 10th May 2011 04:20 AM
f13 tomcat6 install blemidon Servers & Networking 3 23rd November 2010 02:47 PM
Accessing tomcat6 outside of running computer someoney3000 Using Fedora 1 1st December 2009 07:44 AM
Tomcat6 Common Lib randell Using Fedora 1 12th August 2008 04:50 AM
Coldfusion Administration Page on Fedora Core (Strange Network Issue) abhishek77 Using Fedora 0 6th March 2007 02:09 AM


Current GMT-time: 02:44 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat