Grokbase Groups Tomcat users May 2004
FAQ
Hi,

I cannot succeed to use the Tomcat 5.0.24 admin console to manage my
UserDatabaseRealm (conf/tomcat-users.xml file). No UserDatabase is seen and
when I click to Users, I get the following error:
HTTP Status 500 - Error retrieving attribute users.
Thank you in advance for any help.
best regards,

-------- log file
2004-05-13 15:24:17 StandardContext[/admin]action: Error retrieving attribute
users
javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with
ObjectName Users:type=UserDatabase,database=UserDatabase
at
mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528)
at mx4j.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1235)
at
org.apache.webapp.admin.users.UserUtils.getUsersForm(UserUtils.java:112)
at
org.apache.webapp.admin.users.ListUsersAction.perform(ListUsersAction.java:113)
at org.apache.struts.action.Action.execute(Action.java:420)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:644)
at java.lang.Thread.run(Thread.java:534)


My config:

--------------- TOMCAT_HOME/conf/server.xml
(I use tomcat which Apache thank mod_jk)
<Server port="8005" shutdown="SHUTDOWN" debug="4">
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>

<Service name="Catalina">
<Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/
>
<Engine name="Catalina" defaultHost="localhost" debug="4">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="4" resourceName="UserDatabase"/>
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<Host name="localhost" debug="0" appBase="webapps" deployXML="true"
unpackWARs="true" autoDeploy="false">
</Host>
</Engine>
</Service>
</Server>

------------- mod_jk.conf
<VirtualHost 127.0.0.1:80>
ServerName localhost.localdomain
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
JkLogLevel debug
JkMount / ajp13
JkMount /* ajp13
</VirtualHost>

--------------- workers.properties
...
worker.list=ajp13
...
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
...

------------- TOMCAT_HOME/conf/Catalina/localhost/admin.xml
(default file)
<Context path="/admin" docBase="${catalina.home}/server/webapps/admin"
debug="0" privileged="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_admin_log." suffix=".txt"
timestamp="true"/>
</Context>
(no other webapp deployed for the test)

--
Mathieu Peltier

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriestomcat
postedMay 13, '04 at 2:14p
activeMay 13, '04 at 2:14p
posts1
users1
websitetomcat.apache.org
irc#tomcat

1 user in discussion

Mathieu Peltier: 1 post

People

Translate

site design / logo © 2018 Grokbase