You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by slickdev <sl...@comcast.net> on 2002/06/22 06:51:19 UTC
please reply with section (m)
Can someone upload a struts-config.xml which has a known good <data-sources>
section?
I can't figure out how to properly set the <data-sources> section of the
struts-config.xml.
It keeps causing an inability to parse the config file, resulting in this
exception:
javax.servlet.ServletException: Cannot find ActionMappings
orActionFormBeans collection
Without the <data-sources> section, the config and my app works fine.
Here is my broken version:
<data-sources>
<data-source>
<set-property property="autoCommit" value="false"/>
<set-property property="description" value="Oracle Data Source
Configuration"/>
<set-property property="maxCount" value="4"/>
<set-property property="minCount" value="2"/>
<set-property property="driverClass"
value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="url"
value="jdbc:oracle:thin:@localhost:1521:oracle"/>
<set-property property="user" value="system"/>
<set-property property="password" value="manager"/>
</data-source>
</data-sources>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: please reply with section (m)
Posted by James Holmes <jh...@yahoo.com>.
The snippet from your config file below looks ok. Not
sure why you're having problems.
You can use the Struts Console to edit your config
file. It creates well formed files that validate
against the DTD.
http://www.jamesholmes.com/struts/
-james
james@jamesholmes.com
--- slickdev <sl...@comcast.net> wrote:
> Can someone upload a struts-config.xml which has a
> known good <data-sources>
> section?
>
> I can't figure out how to properly set the
> <data-sources> section of the
> struts-config.xml.
> It keeps causing an inability to parse the config
> file, resulting in this
> exception:
> javax.servlet.ServletException: Cannot find
> ActionMappings
> orActionFormBeans collection
>
>
> Without the <data-sources> section, the config and
> my app works fine.
>
> Here is my broken version:
>
> <data-sources>
> <data-source>
> <set-property property="autoCommit"
> value="false"/>
> <set-property property="description"
> value="Oracle Data Source
> Configuration"/>
> <set-property property="maxCount" value="4"/>
> <set-property property="minCount" value="2"/>
> <set-property property="driverClass"
> value="oracle.jdbc.driver.OracleDriver"/>
> <set-property property="url"
> value="jdbc:oracle:thin:@localhost:1521:oracle"/>
> <set-property property="user" value="system"/>
> <set-property property="password"
> value="manager"/>
> </data-source>
> </data-sources>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>