This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Mysql connection causes 404 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Mysql connection causes 404 error " Watch "Mysql connection causes 404 error " New topic
Author

Mysql connection causes 404 error

sunny an
Greenhorn

Joined: Feb 27, 2012
Posts: 1
When i setup mysql connection, it gives me 404 error. when i delete this connection, every things work fine.
my db setup like below;

<!-- ============================================ Data Source Configuration -->

<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource" key="gbook">
<set-property
property="driverClassName"
value="com.mysql.jdbc.Driver" />
<set-property
property="url"
value="jdbc:mysql://localhost:3306/gbook" />
<set-property
property="username"
value="root" />
<set-property
property="password"
value="*****" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="true" />

</data-source>
</data-sources>
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8915
    
    8

Welcome to the JavaRanch.
Data sources were retired after Struts 1.2. It didn't make sense to configure database functionality in Struts, which is technically an implementation of the Front Controller pattern. See Struts: How to Access a Database.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
GeeCON Prague 2014
 
subject: Mysql connection causes 404 error