LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-25-2011, 04:41 AM   #1
barywp
LQ Newbie
 
Registered: Jan 2011
Location: Incline Village, NV
Distribution: Ubuntu 10.04 LTS Server
Posts: 2

Rep: Reputation: 0
Can't get manager to run in Tomcat6; brand new 10.04 Server installation


I've just installed Ubuntu 10.04 LTS Server with LAMP. Tomcat6 appears to function properly. BUT, I cannot gain access to the 'manager webapp'. I've updated tomcat-users.xml:

---------------

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

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

</tomcat-users>

-------------------------

but no matter what I use as username/password, I am unable to get in.

What might I be "missing?"

Pls respond to me at: barywp@gmail.com

Thanks!
 
Old 01-25-2011, 10:36 PM   #2
vigilandy
Member
 
Registered: Mar 2010
Location: Tokyo
Distribution: Arch, Fedora
Posts: 71

Rep: Reputation: 23
So you're getting as far as the login screen for the manager app, right?
The tomcat-users file looks ok to me. Have you restarted tomcat since adding the user roles?
 
Old 01-26-2011, 12:21 AM   #3
barywp
LQ Newbie
 
Registered: Jan 2011
Location: Incline Village, NV
Distribution: Ubuntu 10.04 LTS Server
Posts: 2

Original Poster
Rep: Reputation: 0
Yes, I've restarted Tomcat...

I've restarted Tomcat6, restarted Adobe2, rebooted the computer... Nothing helps... When I attempt to access the manager I am presented with the Username/Password screen -- I enter both, but they are NOT accepted... It's as if Tomcat isn't looking at the "users file" at all...
 
Old 01-26-2011, 12:47 AM   #4
vigilandy
Member
 
Registered: Mar 2010
Location: Tokyo
Distribution: Arch, Fedora
Posts: 71

Rep: Reputation: 23
Well, you can check server.xml to make sure that tomcat-users file is being referenced. You should see something like to following default settings:

Code:
<Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
And the following is from webapps/manager/WEB-INF/web.xml:

Code:
  <resource-env-ref>
    <description>
      Link to the UserDatabase instance from which we request lists of
      defined role names.  Typically, this will be connected to the global
      user database with a ResourceLink element in server.xml or the context
      configuration file for the Manager web application.
    </description>
    <resource-env-ref-name>users</resource-env-ref-name>
    <resource-env-ref-type>
      org.apache.catalina.UserDatabase
    </resource-env-ref-type>
  </resource-env-ref>
So check the UserDatabase references to see how users and roles are being looked up.

Also, did you install tomcat through the package manager, or did you download from the apache website and install it manually? I've found that some distros structure tomcat differently then the apache defaults. So if all else fails, I might just try installing tomcat from the apache tar ball. After wrestling with Fedora's version of tomcat a while back, that's what I did, and I haven't looked back.
 
  


Reply



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
tomcat6 system wide installation on ubuntu8.4 yewint Linux - Newbie 1 06-25-2010 11:56 AM
"Why can't I run Tomcat6-admin" garcia samson Linux - Newbie 1 05-12-2010 12:22 AM
"Why can't I run Tomcat6-admin" garcia samson Linux - Newbie 1 05-11-2010 09:47 PM
tomcat6 install access to web manager and web admin problem speedsrfr Linux - Server 7 06-24-2009 08:13 AM
I can't run the interbase server manager. fasisi Linux - Software 0 12-07-2003 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration