Newbie question: StrutsCX and data sources
Sayeed Anjum <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Message-ID | <[email protected]> |
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(ActionServlet.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(StandardWrapper.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