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?

This is the reason I love jefferyhaynes.net. Surprising posts.
Bless you. Double bless you. You just saved me from your fate.
Triple bless you!
Thanks! You just fixed our problem with this post.
You are welcome.. glad my post could help.
I worked on this problem for about 3 hours. I had inadvertently copied in some xml I was trying and used a lower-case c in context instead of Context. Of course I was getting the same error you were. I could not figure it out for the life of me – THANK YOU for this post.
Thank you so much. I did the same thing and didn’t realize it.
You probably saved me an additional frustrating day (or week, or…)
Thank you so much!
BTW, Eclipse won’t complain about that, which added to my confusion
Anyway, now it’s all good
Bless you. You saved me a few hours.