tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Salazar <pedro-b-sala...@ptinovacao.pt>
Subject DataSourceRealm exception (TC4.1.18)
Date Wed, 26 Feb 2003 12:48:30 GMT
Greetings,

I'm trying to configure a DataSourceRealm in tomcat 4.1.18, but I'm
getting an exception when I try to use this configuration in my context:

"<Context path="/ngincare" docBase="ngincare.war" debug="0"
                 reloadable="true">
	<Realm  
		className="org.apache.catalina.realm.DataSourceRealm"
                dataSourceName="java:comp/env/jdbc/ngincaredb" 
		userTable="ws_users" userNameCol="username" 
		userCredCol="password"
		userRoleTable="ws_user_roles" roleNameCol="role" />
</Context>"

the exception:
"
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with DataSourceRealm
        at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:614
)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:429)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:651)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:590)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:783)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:751)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:339)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:206)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
2)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
"

-- 
<id name="pedro salazar"> 
<email>pedro-b-salazar@ptinovacao.pt</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>


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


Mime
View raw message