javax.naming.NamingException: Cannot create resource instance

hivmr.com | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Urg Problem with using DataSources in Tomcat

    Oracle Community | 1 decade ago | 843835
    javax.naming.NamingException: Cannot create resource instance
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    configuring DBCP in Tomcat 4.0.1

    Coderanch | 1 decade ago | Rajeev Ravindran
    javax.naming.NamingException: Cannot create resource instance
  4. 0

    [Tomcat-users] Universal connection pooling Type Casting problem - Grokbase

    grokbase.com | 2 years ago
    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)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NamingException

      Cannot create resource instance

      at org.apache.naming.NamingContext.lookup()
    2. Web Container Naming Utilities
      NamingContext.lookup
      1. org.apache.naming.NamingContext.lookup(NamingContext.java:837)
      2. org.apache.naming.NamingContext.lookup(NamingContext.java:181)
      3. org.apache.naming.NamingContext.lookup(NamingContext.java:822)
      4. org.apache.naming.NamingContext.lookup(NamingContext.java:194)
      4 frames
    3. foo
      DBTest.init
      1. foo.DBTest.init(DBTest.java:25)
      1 frame
    4. org.apache.jsp
      test$jsp._jspService
      1. org.apache.jsp.test$jsp._jspService(test$jsp.java:60)
      1 frame
    5. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      1 frame
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    7. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      3 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    9. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      4. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      6. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      6 frames