Is it not true that as a Developer, you must have the patients of a saint?   Case in point;

I just spent a few hours trying to track down why I was getting the error that is the title of this post.   Apparently the context.xml within your app deployed to Tomcat 6.0 is case sensitive.  I really should have known this as we are talking about a Java based application.

I had this..

<?xml version=”1.0″ encoding=”UTF-8″?>
<context reloadable=”true”>
<Loader loaderClass=”org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader”/>
<Resource name=”jdbc/dwspring2″ auth=”Container” type=”javax.sql.DataSource”
maxActive=”100″ maxIdle=”30″ maxWait=”10000″
username=”userid”
password=”password” driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost:3306/springtutorial”/>
</context>

When I should of had this..

<?xml version=”1.0″ encoding=”UTF-8″?>
<Context reloadable=”true”>
<Loader loaderClass=”org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader”/>
<Resource name=”jdbc/dwspring2″ auth=”Container” type=”javax.sql.DataSource”
maxActive=”100″ maxIdle=”30″ maxWait=”10000″
username=”userid”
password=”password” driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost:3306/springtutorial”/>
</Context>

Do you know of a way to force better checking on this before it’s deployed?

Advertisement