  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Resource in context.xml not found | Resource in context.xml not found 2006-12-10 - By pir8ped
Back
Hi,
I am trying to set up a JDBC Resource for my app.
I have a context file ( starfriend.xml ) in my \Tomcat 5.5\conf\Catalina\localhost folder:
<Context path="/appName" docBase="C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/starfriend" debug="3" reloadable="true"> <Logger className="org.apache.catalina.logger.FileLogger " verbosity="3" prefix="localhost_starfriend_log." suffix=".txt" timestamp="true"/>
<!-- Define a database connection pool for MYSQL --> <Resource name="starfriendMYSQL" auth="Container" type="javax.sql.DataSource " factory="org.apache.commons.dbcp.BasicDataSourceFactory " driverClassName="com.mysql.jdbc.Driver " url="jdbc:mysql://localhost:3306/starfriend?autoReconnect=true" username="pir8ped" password="trimaran8" maxActive="10" maxIdle="5" validationQuery="SELECT 1" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000" minEvictableIdleTimeMillis="60000" maxWait="5000" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" /> </Context>
The app doesn't initialise because it can't find the db resource. If I add the db resource using the admin tool in Tomcat and reload, the app works fine ( using the same parameters ).
Can someone tell me where I am going wrong? It would be nice to be able to deploy the app and have it work immediately, rather then have to load the db resource through the admin tool and reload.
Thanks,
John -- View this message in context: http://www.nabble.com/Resource-in-context.xml-not -found-tf2789195.html#a7781742 Sent from the Tomcat - User mailing list archive at Nabble.com.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |