I don't mean to discourage you however you are developing an application
using struts.  The current struts datasource is deprecated and it is
recomended that you use either a jndi datasource or a product like poolman
on sourceforge or a DAO product which maintains the datasource itself.

I suspect your problem is due to not including struts-legacy.jar since the
datasource is only marginally supported and was not included in the base
jar.

Edgar

-----Original Message-----
From: Sandy Bingham-Porter [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 10:55 AM
To: Struts Users Mailing List
Subject: Data Sources problem


Hi,

I am new to struts and am trying to use the data-source element within 
my struts-config.xml.

When I execute the web app I get the following error:

503 Initializing application data source 
org.apache.struts.action.DATA_SOURCE

I have placed the commons-dbcp-1.1.jar file in my lib path.  My platform 
is Jrun4 and a SQL2000 database.

Does anyone have any ideas or suggestions as to why I am getting this error?

My struts-config.xml is as follows:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" 
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
<struts-config>
    <data-sources>
       <data-source
            type="org.apache.commons.dbcp.BasicDataSource">
            <set-property property="driverClassName"
                 value="sun.jdbc.odbc.JdbcOdbcDriver"/>
            <set-property property="url"
                 value="jdbc:odbc:xxxxx"/>
            <set-property property="username"
                 value="xxxxx"/>
            <set-property property="password"
                 value="xxxxxxxxx"/>
       </data-source>
   </data-sources>
<form-beans>
   <form-bean name="loginForm" type="LoginForm"/>
</form-beans>

......etc.



Thanks for any help.

Frank Kingery
Applications Programmer III
Information Technology Services
Eastern Illinois University



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to