aspose file tools*
The moose likes Struts and the fly likes Db connection with Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Db connection with Struts" Watch "Db connection with Struts" New topic
Author

Db connection with Struts

Sahina Celin
Greenhorn

Joined: Aug 25, 2004
Posts: 23
Hi all,

Im getting the folowing error,
My struts-config i have the following tag

<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="autoCommit"
value="true"/>
<set-property property="description"
value="Oracle Database Connection"/>
<set-property property="driverClassName"
value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="maxCount"
value="10"/>
<set-property property="minCount"
value="2"/>
<set-property property="password"
value="tiger"/>
<set-property property="url"
value="jdbc racle:thin:@216.165.199.60:1521:MSTT"/>
<set-property property="user"
value="scott"/>
</data-source>




Mar 1, 2005 3:03:35 PM org.apache.struts.action.ActionServlet initModuleDataSour
ces
SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURC
E
java.sql.SQLException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleD
river'
at org.apache.commons.dbcp.BasicDataSource.createDataSource




Any help??I have classes12.zip in my classpath
Sahina Celin
Greenhorn

Joined: Aug 25, 2004
Posts: 23
I got it when i renamed classes12.zip to classes12.jar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Db connection with Struts