Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem defining an Oracle datasource in struts-config.xml

 
Jason Vogel
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic