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 Stack Overflow by Nathan Q
, 1 year ago
Cannot create resource instance
via Stack Overflow by Paul Stoner
, 8 months ago
Could not create resource factory instance [Root exception is java.lang.ClassCastException: oracle.jdbc.pool.OracleConnectionPoolDataSource cannot be cast to javax.naming.spi.ObjectFactory]
via Stack Overflow by Tural
, 2 years ago
via Stack Overflow by Subashri
, 2 years ago
Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSourceFactory]
via Stack Overflow by Khan
, 7 months ago
Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: myutil.hibernate.HibernateSessionFactoryTomcatFactory]
via Stack Overflow by ali haider
, 7 months ago
Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceFactory]
javax.naming.NamingException: Cannot create resource instance	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:144)	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)	at org.apache.naming.NamingContext.lookup(NamingContext.java:842)	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)	at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:117)	at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)	at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)	at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)	at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:110)	at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:82)	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.startup.Catalina.start(Catalina.java:693)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)