Forum Stats

  • 3,733,722 Users
  • 2,246,811 Discussions


JNDI datasource exception in weblogic application

User_CSC3O Member Posts: 2 Green Ribbon


I am migrating my weblogic from 12 to 14. When I try to launch the server that connects to an Oracle 11G database, I get :

  Caused By: javax.naming.NameNotFoundException: remaining name: /comp.env.jdbc.DataSourceCand

components.xml :




Persistence.xml :

  <persistence-unit name="aCand">





        <property name="hibernate.dialect" value="${hibernate.dialect}"/>

        <property name="hibernate.show_sql" value="${show.sql}"/>






And in weblogic I created a jndi datasource and linked it to AdminServer with 

jndi name = jdbc/DataSourceCand

name = DataSourceCand

I tester the connexion to the datasource from weblogic console and It works but I get this exception when I launch the datasource :

  Caused By: javax.naming.NameNotFoundException: remaining name: /comp.env.jdbc.DataSourceCand

I tried many values in <non-jta-data-source> tag like : jdbc/DataSourceCand and comp/env/jdbc/DataSourceCand and nothing works.

Thank you in advance.



  • User_A1UJG
    User_A1UJG Member Posts: 5 Employee


    Verify first the JNDI name your datasource is registered under by browsing the JNDI tree of the server you have targeted the datasource and try to use the JNDI name you see under the tree for your datasource in your <non-jta-data-source> tag.

    If you are getting a different error post it here.

Sign In or Register to comment.