Curious
Curious

Reputation: 921

tomcat dbcp and NamingException

I'm getting following errror tomcat 7.0.53 with maven. I used factory="org.apache.commons.dbcp.BasicDataSourceFactory" in Resource tag in server.xml, but don't know why it is picking up the tomcat dbcp.

Why so?

I did some searching in internet and tried different options like adding tomcat-dbcp in maven, adding to the class path etc.. but nothing seems to work.

Where it went wrong ?

WARNING: Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.BasicDataSourceFactory] Apr 07, 2014 11:39:57 AM org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources javax.naming.NamingException: Could not load resource factory class

Upvotes: 0

Views: 10362

Answers (1)

Markus
Markus

Reputation: 773

I think it is a duplication of this post here: https://stackoverflow.com/a/15880777/2191131

If this does not work, can you try this? Link


Your comment was really helpful because it unveiled the OS :)

Keep me posted on your progress.

Upvotes: 1

Related Questions