struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Holmes <jholmes...@yahoo.com>
Subject Re: please reply with <data-sourc> section (m)
Date Sat, 22 Jun 2002 12:09:47 GMT
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 <slickdev@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:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message