This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Problem defining an Oracle datasource in struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem defining an Oracle datasource in struts-config.xml" Watch "Problem defining an Oracle datasource in struts-config.xml" New topic
Author

Problem defining an Oracle datasource in struts-config.xml

Jason Vogel
Greenhorn

Joined: Dec 24, 2002
Posts: 3
I'm trying to define the following datasource in struts-config. I'm obviously doing something wrong because I get a "servlet action is currently available" after adding to the config (which worked before the addition).
<data-source>
<set-property property="key" value="OracleDataSource"/>
<set-property property="autoCommit" value="false"/>
<set-property property="description" value="OracleDatasource"/>
<set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="maxCount" value="4"/>
<set-property property="minCount" value="2"/>
<set-property property="password" value="test"/>
<set-property property="user" value="jvogel"/>
<set-property property="url" value="jdbc racle:thin:@199.191.94.4:1521 RCL"/>
</data-source>
Any thoughts, Jason
web xiao
Greenhorn

Joined: Dec 08, 2003
Posts: 1
you hava to download "commons-dbcp-1.1.jar,commons-pool-1.1.jar,struts-legacy.jar" and copy those files to your "web-inf"!
good lucky!

Originally posted by Jason Vogel:
I'm trying to define the following datasource in struts-config. I'm obviously doing something wrong because I get a "servlet action is currently available" after adding to the config (which worked before the addition).
<data-source>
<set-property property="key" value="OracleDataSource"/>
<set-property property="autoCommit" value="false"/>
<set-property property="description" value="OracleDatasource"/>
<set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="maxCount" value="4"/>
<set-property property="minCount" value="2"/>
<set-property property="password" value="test"/>
<set-property property="user" value="jvogel"/>
<set-property property="url" value="jdbc racle:thin:@199.191.94.4:1521 RCL"/>
</data-source>
Any thoughts, Jason
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem defining an Oracle datasource in struts-config.xml
 
Similar Threads
Connecting MySQL thru Struts
Defining an Oracle datasource in struts-config
accesing database???
Prob using DataSource
Clarification of Concept: DataSource of Struts