AW: Newbie question: StrutsCX and data sources

"Bernhard Woehrlin" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi Sayeed,

I'm not sure about what you are trying to do. Just a hint: The StrutsCX
sample application uses flat XML files for data storage and no Relational
Database. All the data access logic is encapsulated in classes of the
integration package.  - Check out the Struts documentation how to set up a
RDBMS correctly.

Regards,

Berny


> -----Ursprungliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]]Im Auftrag von Sayeed
> Anjum
> Gesendet: Montag, 24. Marz 2003 13:27
> An: [email protected]
> Betreff: [Strutscx-user] Newbie question: StrutsCX and data sources
>
>
> Hi All,
>
> I am new to struts and strutCX. The strutsCX example is working. The
> struts-example works fine. I have also got the artimus sample working
> with a mySQL/FreeTDS database. Now to the problem.
>
> If I add a <datasources> section to the struts config file in
> struts-example, the application loads fine without any error messages
> in the log file. So also in the artimus application. However, when I
> put the <datasources> entry in the STRUTSCX struts-config.xml I end
> up with a error in the log file:
>
> ---------------------------------
> 2003-03-24 17:32:21 StandardContext[/strutscx]: Servlet /strutscx
> threw load() exception
> javax.servlet.UnavailableException: Initializing application data
> source org.apache.struts.action.DATA_SOURCE
> 	at
> org.apache.struts.action.ActionServlet.initModuleDataSources(Actio
> nServlet.java:1043)
> 	at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapp
> er.java:934)
>
> ------------------------------------
>
> My datasources section is as follows:
>
> ---------------------------------------------
>
>  <data-sources>
>     <data-source type="net.sourceforge.jtds.jdbc.TdsDataSource">
>       <set-property property="maxCount" value="4"/>
>       <set-property property="minCount" value="2"/>
>       <set-property property="description"
>                        value="Artimus:JTDS Data Source
> Configuration"/>
>       <set-property property="driverClass"
>                        value="net.sourceforge.jtds.jdbc.Driver"/>
>       <set-property property="url"
>
> value="jdbc:jtds:sqlserver://localhost:1433/artimus"/>
>       <set-property property="autoCommit"
>                        value="false"/>
>       <set-property property="USER"
>                        value="tds"/>
>       <set-property property="PASSWORD"
>                        value="tds"/>
>     </data-source>
>
>   </data-sources>
>
> ---------------------------------------------
>
> I am running Tomcat 4.1 and Struts 1.1rc1 and strutcx 0.9.2.
>
> Please help!!
>
> Regards,
> Sayeed
>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Strutscx-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/strutscx-user
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.