Hi All, I'm trying to specify data-source key in struts-config.xml following struts-config_1_0.dtd and discussions in struts mail archive, but couldn't get it work. Please see details below.
What did I do wrong? Please reply to me directly as I'm not on this alias yet. Thanks, Jing Here is the detail. Please note that if I removed the key attribute and use servlet.findDataSource(null), it works. so how to make the key work? my struts-config.xml: <data-sources> <data-source key="MyDSKey" type="suncat.util.SunCATDataSource"> .... // bounch of set-property </data-source> </data-sources> my code suncat.util.SunCATDataSource: DataSource dataSource = servlet.findDataSource("MyDSKey"); Error I got: [14/Jun/2002:17:55:22] info (10936): action: init [14/Jun/2002:17:55:22] info (10936): action: Initializing configuration from resource path /WEB-INF/struts-config.xml [14/Jun/2002:17:55:22] warning (10936): vs(https-cbsdev.central.sun.com)ServletException thrown in servlet.init; context = /jingex, servlet = 'action'; stack tace: javax.servlet.ServletException: Parsing error processing resource path /WEB-INF/struts-config.xml at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) Note: * SunCATDataSource extends com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource * com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource extends com.sybase.jdbc2.jdbc.SybDataSource * com.sybase.jdbc2.jdbc.SybDataSource extends com.sybase.jdbc2.jdbc.SybDriver implements com.sybase.jdbcx.SybDataSource * com.sybase.jdbcx.SybDataSource extends javax.sql.DataSource <-- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>