FFL2:FFL2 Main/Dev Environment/Configure Tomcat for FFL2 in Eclipse

From FFL Wiki
Revision as of 17:57, 9 October 2010 by Phallus (talk | contribs) (Created page with '* Go to 'File | New | Other... | Server | Server' and click next * Choose the appropriate Tomcat version under 'Apache', enter a suitable name and click 'Next' * Set the Tomcat i…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Go to 'File | New | Other... | Server | Server' and click next
  • Choose the appropriate Tomcat version under 'Apache', enter a suitable name and click 'Next'
  • Set the Tomcat installation directory (e.g. C:\apache-tomcat-6.0.29) and click 'Next'
  • Add the fantacyweb project to the server and click 'Finish'
  • Open the server's context.xml file using Project Explorer
  • Click the 'Source' tab at the bottom of the editor pane and add the following data source config just before the closing </Context> tag
<Resource name="jdbc/FantacyDS"
		auth="Container"
		type="javax.sql.DataSource"
		maxActive="10"
		maxIdle="3"
		maxWait="10000"
		username="fantacist"
		password="password"
		driverClassName="com.mysql.jdbc.Driver"
		validationQuery="SELECT 1"
		url="jdbc:mysql://localhost/fantacy?autoReconnect=true"/>