LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-23-2009, 09:49 AM   #1
speedsrfr
LQ Newbie
 
Registered: Jul 2005
Distribution: fedora 17
Posts: 22

Rep: Reputation: 0
tomcat6 install access to web manager and web admin problem


Hi,
Im an average linux user, wanting to install a java based wiki, and learn about a jsp servlet. So I installed tomcat 6
I am running an ubuntu server. Set up java6 and java6 jdk . Tomcat 6 intalled successfully.
However I cant get it to access the web admin or web manager pages. I keep entering the correct username and password but it simply prompts me again over and over.
At the bottom I will include my users xml file.
I have lighttpd installed. I was just wondering if this problem is somehow becuase tomcat prefers apache2. I thought I could install tomcat and use mod_proxy in lighttpd later to redirect to tomcat when I need it.

Any help would be greatly appreciated with fixing this.

Thanks.

tomcat-users.xml file.
Code:
<?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"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename "admin"/>
  <user username="tomcat" password="s3cret" roles="manager,admin"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>

-->
</tomcat-users>
 
Old 06-24-2009, 03:27 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 47
Can you access Tomcat directly, through port 8080?
 
Old 06-24-2009, 03:40 AM   #3
speedsrfr
LQ Newbie
 
Registered: Jul 2005
Distribution: fedora 17
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nowonmai View Post
Can you access Tomcat directly, through port 8080?
Yes I can, but when I click the link to the manager or host manager app, I get prompted for a user name and password, which I enter exactly as specified in the tomcat users file, and I just get prompted for it again and again. I am using tomcat6 by the way if it makes a difference somehow.
 
Old 06-24-2009, 03:45 AM   #4
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 47
You should be able to change the log level to DEBUG, and view the logs, which will be in the default webapp directory somewhere to see what's happening with the login.

Apologies for being so vague, it's been years since I did anything with Tomcat.
 
Old 06-24-2009, 03:47 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Maybe silly question but after changing the tomcat-users.xml file have you restarted Tomcat?
 
Old 06-24-2009, 04:06 AM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,221

Rep: Reputation: 131Reputation: 131
Quote:
<tomcat-users>
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename "admin"/>
<user username="tomcat" password="s3cret" roles="manager,admin"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>

-->
</tomcat-users>
Did you removed the commented lines? (<!-- between -->)it means all these lines commented

Last edited by kirukan; 06-24-2009 at 04:09 AM.
 
Old 06-24-2009, 06:15 AM   #7
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 47
^
Well spotted... didn't see those myself
 
Old 06-24-2009, 08:13 AM   #8
speedsrfr
LQ Newbie
 
Registered: Jul 2005
Distribution: fedora 17
Posts: 22

Original Poster
Rep: Reputation: 0
Since I dont know XML very well I actually had no idea about those comment symbols. Solved Thanks very much to everyone.
 
  


Reply

Tags
tomcat6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install web server and host a web site swamybsv Linux - Server 3 05-25-2009 12:28 PM
Failed to launch VMware Web Access: unable to find a graphical web browser. rob0t Linux - Server 0 03-18-2009 02:32 PM
LXer: First Steps with Scalix Admin Console and Scalix Web Access LXer Syndicated Linux News 0 06-11-2008 06:41 PM
CUPS installed in Gentoo but unable to access web admin tool darin3200 Linux - Software 4 12-26-2003 10:57 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration