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> <value>jdbc:mysql://localhost/test?zeroDateTimeBehavior=convertToNull</value > </parameter> <parameter> <name>password</name> <value>root</value> </parameter> <parameter> <name>maxActive</name> <value>10</value> </parameter> <parameter> <name>maxWait</name> <value>100</value> </parameter> <parameter> <name>driverClassName</name> <value>com.mysql.jdbc.Driver</value> </parameter> <parameter> <name>username</name> <value>root</value> </parameter> <parameter> <name>maxIdle</name> <value>30</value> </parameter> </ResourceParams> </DefaultContext> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/> </Host> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/> </Engine> . . . </Server> Further, the admin log shows the following error: . . . 2006-03-27 17:26:59 StandardContext[/admin]action: Select event on Catalina:type=DefaultContext,host=localhost 2006-03-27 17:26:59 StandardContext[/admin]action: Error retrieving attribute debug javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName Catalina:type=DefaultLoader,host=localhost at mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528) at mx4j.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1235) at org.apache.webapp.admin.defaultcontext.EditDefaultContextAction.perform(Edit DefaultContextAction.java:198) at org.apache.struts.action.Action.execute(Action.java:420) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.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:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.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(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.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(StandardValveContex t.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.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:534)
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]