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)

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

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] at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:102)
via mysql.com by Unknown author, 1 year ago
Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java:189)
via osdir.com by Unknown author, 1 year ago
via sourceforge.net by Unknown author, 1 year ago
Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory. java:189)
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 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 undefined.TestServlet.doGet(TestServlet.java:37)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.