急!配置Tomcat4.1.29的DatabaseRealm的问题!

04-01-05 togetherj
配置以后启动Tomcat在控制台出现如下异常

ServerLifeCycleListener:createMBeans:MBeanException

java.lang.Exception: ManagedBean is not found with DataSourceRealm

是什么原因呀????

togetherj
2004-01-05 20:30
我在Tomcat的用户邮件列表中也发现有人问同样的问题但是没有恢复他的问题描述如下(和我的相似):

Hi

I'm trying to configure a DataSourceRealm on Tomcat 4.1.29. Despite my best efforts I keep getting my best efforts I keep getting

INFO: Initializing Coyote HTTP/1.1 on port 8080

ServerLifecycleListener: createMBeans: MBeanException

java.lang.Exception: ManagedBean is not found with DataSourceRealm

at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:642

)

at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve

and later in the startup sequence

15-Dec-2003 11:10:10 org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/50 config=C:\Program Files\Apache Group\jakarta-to

mcat-4.1.29\conf\jk2.properties

ServerLifecycleListener: destroyMBeans: Throwable

javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with O

bjectName Catalina:type=Valve,sequence=7549020,path=/FlatMate,host=localhost,ser

vice=Tomcat-Standalone

at mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:52

8)

at mx4j.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:1165

)

at org.apache.catalina.mbeans.MBeanUtils.destroyMBean(MBeanUtils.java:22

89)

Any suggestions will be greatly appreciated.

Alan

togetherj
2004-01-05 20:33
我在【TOMCAT_HOME】\server\lib下找到了catalina.jar文件,我看到其中的org.apache.catalina.mbeans.mbeans-descriptor.xml中没有对DataSourceRealm的描述,我该怎么办呢?

我不懂JMX的原理在加上英文不好,希望各位前辈能给予答复^_^

资料可以在Tomcat的文档MBean Descriptor HOW-TO和Tomcat的邮件列表上有

togetherj
2004-01-05 20:34
更正一下不是DatabaseRealm而是DataSourceRealm

banq
2004-01-06 12:11
配DataSource我知道,你配置DataSourceRealm是想用自己的DataSource?

猜你喜欢
2Go 1 2 下一页