Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via osdir.com by Unknown author, 1 year ago
Could not create resource factory instance [Root exception is java.lang.ClassCastException: oracle.jdbc.pool.OracleDataSource cannot be cast to javax.naming.spi.ObjectFactory]
via Stack Overflow by JustStarted
, 1 year ago
Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
via jackrabbit-users by Victor Gomez, 2 years ago
via Google Groups by Petr Soudek, 9 months ago
via Oracle Community by 843836, 1 year ago
Cannot create resource instance
javax.naming.NamingException: Could not create resource factory instance
 [Root exception is java.lang.ClassCastException:
 oracle.jdbc.pool.OracleDataSource cannot be cast to
 javax.naming.spi.ObjectFactory]	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:102)	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)	at org.apache.naming.NamingContext.lookup(NamingContext.java:793)	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)	at TestServlet.doGet(TestServlet.java:37)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)	at java.lang.Thread.run(Thread.java:619)