You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sandy Bingham-Porter <cs...@eiu.edu> on 2004/01/12 16:55:03 UTC
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
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Data Sources problem
Posted by Sandy Bingham-Porter <cs...@eiu.edu>.
Yes, thank you, we missed the pool.jar. It works !
Matthias Wessendorf wrote:
> Hi,
>
> did you have also the
> pool.jar from:
> http://jakarta.apache.org/commons/pool/
> in WEB-INF/lib i had had trouble without it...
>
> greetings
>
>
> -----Original Message-----
> From: Sandy Bingham-Porter [mailto:cssbp@eiu.edu]
> Sent: Monday, January 12, 2004 4:55 PM
> 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Data Sources problem
Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Hi,
did you have also the
pool.jar from:
http://jakarta.apache.org/commons/pool/
in WEB-INF/lib i had had trouble without it...
greetings
-----Original Message-----
From: Sandy Bingham-Porter [mailto:cssbp@eiu.edu]
Sent: Monday, January 12, 2004 4:55 PM
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
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org