DefaultContext with JNDI resource in admin web-app
Todd Hill
2006-03-28
When I try to add a JNDI lookup resource (DataSource) to the DefaultContext node in the server.xml file, I always get a "Error retrieving attribute debug" message (see attached screenshot).
I have the server.xml is configured as follows: <Server . . . <Engine defaultHost="localhost" name="Catalina"> <Host appBase="webapps" debug="1" name="localhost"> <DefaultContext> <Resource auth="Container" name="jdbc/MySQL" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/MySQL"> <parameter> <name>url</name>
I'm not sure what the MBean error is all about. Any clues as to how I can get this to work? Incidentally, the JNDI lookup works fine and the webapps are accessing the JDBC Datasource, it's just the admin webapp that doesn't seem to work with DefaultContext, even though some books tell you to configure things this way.
Thanks in advance. Todd
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)