Toplink fails to connect using Datasource

I'm deploying an EJB project using Toplink persistence to Oracle AS 10.1.3.1 and have defined a datasource/connection pool as:
<managed-data-source name="OAS_Oracle_Datasource"
connection-pool-name="My_Connection_Pool"
jndi-name="jdbc/OAS_Oracle_Datasource"/>
<connection-pool
     name="My_Connection_Pool"
     min-connections="3"
     max-connections="10">
<connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
user="joeuser"
password="joepasswd"
url="jdbc:oracle:thin:@dbserver:dev01">
</connection-factory>
</connection-pool>
Once deployed I can test the datasource/connection pool successfully from the admin GUI. I can also access the database from an external client using the same connection parameters. However, I see this stack trace in log.xml:
Exception [TOPLINK-4002] (TopLink (Oracle OC4J CMP) - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
     at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:276)
     at oracle.toplink.internal.ejb.cmp.oc4j.Oc4jNonJtaConnector.connect(Oc4jNonJtaConnector.java:49)
     at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
<SNIP>
     at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
<SNIP>
     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
     at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
     at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:114)
<SNIP>
     at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:197)
     at oracle.oc4j.sql.ManagedDataSource.getNonTransactionalConnection(ManagedDataSource.java:167)
     at oracle.oc4j.sql.ManagedDataSource.getNonTransactionalConnection(ManagedDataSource.java:153)
     at oracle.toplink.internal.ejb.cmp.oc4j.Oc4jNonJtaConnector.connect(Oc4jNonJtaConnector.java:44)
     ... 27 more
Anyone run into this problem? If so please share your fix.
Thanks,
Gerald

OK, a little more light shines on this mystery...
It turns out that the deployer-generated orion-ejb-jar.xml was using a data-source attribute pointing at the jdbc/OracleDS datasource in the default application, which OAS creates during install. Of course this wasn't set to anything in particular, and if Toplink is using this behind the scenes it wouldn't connect.
Now the question is how do I get my datasource stuffed into the auto-generated orion-ejb-jar.xml data-source? Would be nice if there was a way to specify some Toplink datasource property in the orion-ejb-jar.xml before it gets processed by the deployer into its eventual resting place under application-deplyments.
Gerald

Similar Messages

  • NTLM authentication fails to connect using webdav on osX

    We are having problems in our organization getting our macs connected via webdav using NTLM authentication.
    Our structure is as follows:
    Netapp/IBM nSeries gateway/filer model n6040 which is our FTP/CIFS/Webdav host.
    Windows Server 2008 R2 Domain Controller with Active Directory
    Windows 7, Mac osX clients (various versions).
    From the windows side, we are able to connect to our filer via FTP, CIFS, and http/Webdav after we authenticate using our AD credentials.  From the Mac side, we can authenticate and connect to our filer using FTP, CIFS (using Connect to Server "smb://ourfiler.com") and through a browser using the address of http://ourfiler.com.  This type of connection using webdav works with Firefox but not using Safari or Chrome but isn't adequate enough for our users since the browser based connection is read only.  However, when we try to Connect to Server via webdav using our server address of http://ourfiler.com:80, we never get past the "Enter your name and password for the server "ourfiler.com." 
    We tried a third party webdav client on our macs: Cyberduck, which also fails to connect using webdav.   We also tried a separate linux client and were able to connect without any problems.
    Since authetication for webdav works on windows and linux, we're thinking there is problem with osX itself.  Has anyone else had this problem or can anyone suggest any workarounds/solutions?

    Sorry for the late replies gentleman... for some reason I didn't get email alerts when you guys posted....
    Anyways, yes the DC is on a different subnet and no we don't have WINS.  The way I understand it is the client will contact the master browser in it's local subnet... all the master browsers in all other subnets contacts the Domain master browser ...
    and they share the server list this way... I mean it's a little more complicated than that....well to me at least...
    Can you try resolving the short name with the domain controller being on another subnet and you having a different master browser in your client subnet?
    What is the process the client goes thru when looking up Domain netbios name?  LIke for DNS, it's straight forward... the client looks at DNS server, then for the SRV records for the Site the client is in and get's domain controller.......   How
    does this work for netbios domain name?  There is NO WINS in the environment.
    Chau

  • Retrieve db connection using datasource object

    The problem is: i can't retrieve the connection to database
    using datasource object in jsp.
    my jsp was build by Oracle9i Report Builder,then deployed
    to OC4J jsp container,
    i define the datasource at container level,
    but an error "log on not specified" arise.
    is it possible to use datasource object in such a way or not?
    thanks you for your help.

    What is the full Java and os versions you are using to compile and to run. Note that with JDEV the platform used for your code may be different than the platform used by JDEV itself.
    Please modify all of your exception handlers to print the stack trace. Add this as the first line in each handler.
    ex.printStackTrace();The stacktrace contains important information about where the problem really occured.
    See the Java docs for NamingException - http://docs.oracle.com/javase/6/docs/api/javax/naming/NamingException.html
    >
    This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces. The nature of the failure is described by the name of the subclass. This exception captures the information pinpointing where the operation failed, such as where resolution last proceeded to.
    •Resolved Name. Portion of name that has been resolved.
    •Resolved Object. Object to which resolution of name proceeded.
    •Remaining Name. Portion of name that has not been resolved.
    •Explanation. Detail explaining why name resolution failed.
    •Root Exception. The exception that caused this naming exception to be thrown.

  • Anyconnect Failed to Connect using WEBVPN on IOS Router 2800 Series

    Hi All,
    Kindly need your help. I was trying to built Remote Access VPN connection on my lab environment. The component is Router 2811 with (c2800nm-advsecurityk9-mz.124-22.T5.bin), Anyconnect Client ( anyconnect-win-3.1.05160-k9.pkg ), Laptop ( Firewall and Antivirus disabled, already register webvpndomain.com into hosts file on Win32/Driver/Etc ).
    I was able to connect using anyconnect if I'm initiate connection via web (https://webvpndomain.com) and start tunnel connection SVC. I'm also able to reach my LAN and I get my private IP Address assigned by my vpn pool on the router. The problem is when I'm initiate connection to vpn directly from the computer, I mean I'm not using web (https://webvpndomain.com) and I'm just press "connect" on my anyconnect software that already installed on my Laptop the connection always fail. I get error message : Connection attempt has failed
    Here I'm also attach my router configuration, so you can see what I've done or what mistake that I've made on the configuration.
    Is anybody in here have experience this problem on deploying Remote Access VPN using webvpn and anyconnect as vpn client ?
    I'm really appreciate anybody that get into this discussion
    Best Regards,
    Nanda

    Try using webvpndomain.com/myVPNGW as host

  • Help me understand JDBC connections using DataSource objects

    I'm writing a simple Java server application that accepts connections from multiple clients via RMI, connects to a SQL Server 2000 database via Microsoft's SQL 2000 JDBC driver, gets some data, and returns it to the client. The server application will handle every SQL database connection. However, it must be able to establish multiple simultaneous connections, since multiple clients may connect at the same time and request data.
    Sounds like a simple multi-threaded server that utilizes a connection pool for database connectivity, right? Well, if I want to do that, I have to register a PooledDataSource object with JNDI. My server threads that are handling requests will simply grab connections out of the pool to retrieve data (presumably).
    This seems like a fairly simple server application; however, all the information and tutorials I've read on using DataSource objects for database connections rather than DriverManager.getConnection() mention XML config files, J2EE application servers, Tomcat, WebSphere, etc. I really don't want to have to deal with all that just to get connection pooling and not have to use the DriverManager.getConnection() method.
    Is there a simple way to use DataSource objects without installing a lot of extra junk on my server?

    Thanks, diazlara. Your response was exactly what I needed to know. All the information I've read prior to this suggested that I had to have a J2EE server running, and that I had to register the DataSource object with JNDI. If you ladies and gents could take a quick look at this and let me know if I'm doing it correctly, I'd appreciate it.
    As proflux suggested, I wrote a connection manager:
    import java.sql.*;
    import javax.sql.*;
    import com.microsoft.jdbcx.sqlserver.*;
    public class SQLConnectionManager {
       private static ConnectionPoolDataSource connectionPool;
       // Initialize the connection manager
       public SQLConnectionManager() {
          init();
       // Retrieve a connection from the connection pool and return it
       public static Connection getConnection() {
          Connection connection = null;
          try {
             connection = connectionPool.getPooledConnection("myUsername", "myPassword").getConnection();
          catch (SQLException ex) {
             System.err.println("A problem occurred while getting a connection from the pool.");
             ex.printStackTrace();
          return connection;
       // Initialize the datasource and connection pool
       private static void init() {
          SQLServerDataSource mds = new SQLServerDataSource();
          mds.setDescription("MS SQLServerDataSource");
          mds.setServerName("127.0.0.1");
          mds.setPortNumber(1433);
          mds.setDatabaseName("SomeTable");
          mds.setSelectMethod("cursor");
          connectionPool = (ConnectionPoolDataSource) mds;
    }As you can see, I'm hard-coding the username and password for testing purposes. I'll incorporate a login/authentication system for any production code that I use this in.
    Once the SQLConnectionManager is created, connections can be retrieved as follows:
          Connection connection = null;
          try {
             connection = SQLConnectionManager.getConnection();
             System.out.println("** Got a SQL database connection from the pool");
             DatabaseMetaData metaData = connection.getMetaData();
             ResultSet rs = metaData.getCatalogs();
             while (rs.next()) {
                System.out.println("\tcatalog: " + rs.getString(1));
             rs.close();
             connection.close();
          catch (SQLException ex) {
             System.out.println("An exception occurred while connecting to the SQL Database:");
             ex.printStackTrace();
          }So, how does that look? I tested it out, and it seems to work just fine. Using this code, I am getting a connection from a pool, correct? I want to make sure of that. Also, are there any inherent weaknesses or flaws with this method that I need to be aware of?
    Thanks so much for all the helpful responses.

  • Cannot push clients - Failed to connect using machine account

    After restoring SCCM from old x86 server to new x64 server I cannot install clients.
    Current version is SCCM 2007 SP2 without R2. SCCM is in mixed mode, SCCM was installed to SAME path, was successfully restored from backup using "ConfigMgr Site Repair Wizard".
    But new clients cannot be installed now.
    The following is in ccm.log:
    "---> Warning: no remote client installation account found $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=3936 (0xF60)>
    ---> Attempting to connect to administrative share '\\computername\admin$' using machine account.~ $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=3936 (0xF60)>
    ---> Failed to connect to \\computername\admin$ using machine account (1203) $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=2900 (0xB54)>"
    Account used for push install presents in "Domain Admins" group and can reach this share from SCCM server using explorer or file manager.
    Firewall service is stopped and disabled on target computers.
    Searching through logs I was confused by this: "Warning: no remote client installation account found". It's impossible because account is present and set coreectly both in "client push installation" and "computer client agent". Account was cleared and set again but warning is the same.
    At last I found the problem. In the beginning of SMS_CLIENT_CONFIG_MANAGER initialization there is a string in the ccm.log:
    "~WARNING: failed to encrypt account domain\account $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=2656 (0xA60)>"
    I think that's the source of trouble. But I can't find the reason.
    By the way, the same message is in policypv.log:
    "~failed to encrypt network access accountdomain\account $$<SMS_POLICY_PROVIDER><Date Time Russian Standard Time><thread=3720 (0xE88)>"
    It's exactly so in log, without space between "account" word and "domain\account"!
    Any domain account I try to add for push installation appears in these logs with the same encrypt error!
    Can anyone help please?
    Thanks a lot!

    After restoring SCCM from old x86 server to new x64 server I cannot install clients.
    Current version is SCCM 2007 SP2 without R2. SCCM is in mixed mode, SCCM was installed to SAME path, was successfully restored from backup using "ConfigMgr Site Repair Wizard".
    But new clients cannot be installed now.
    The following is in ccm.log:
    "---> Warning: no remote client installation account found $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=3936 (0xF60)>
    ---> Attempting to connect to administrative share '\\computername\admin$' using machine account.~ $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=3936 (0xF60)>
    ---> Failed to connect to \\computername\admin$ using machine account (1203) $$<SMS_CLIENT_CONFIG_MANAGER><Date Time Russian Standard Time><thread=2900 (0xB54)>"
    We're having the EXACT same problem after our migration today from x86 --> x64.  Please tell me you've found a solution.  We're ready to revert to a snapshot tomorrow if we can't figure this out.

  • Trying To make DB connection using DataSource

    Hi ,
    I am working on Jdev 11g . Getting exception while trying to execute below code:
    import java.sql.*;
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.sql.*;
    final class GetConnection {
    /** Uses JNDI and Datasource (preferred style). */
    static Connection getJNDIConnection(){
    // String DATASOURCE_CONTEXT = "java:comp/env/jdbc/blah";
    String DATASOURCE_CONTEXT = "JNDIDataSource-0";
    // String DATASOURCE_CONTEXT = "TESTJNDI_CONN";
    System.out.println("Control till here :1");
    Connection result = null;
    try {
    Context initialContext = new InitialContext();
    if ( initialContext == null){
    System.out.println("JNDI problem. Cannot get InitialContext.");
    System.out.println("Control till here :2");
    Hashtable<String, String> table = new Hashtable<String, String>();
    System.out.println("Here");
    table.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    System.out.println("Control till here :3");
    table.put(Context.PROVIDER_URL, "hostName");
    System.out.println("Control till here :4");
    table.put(Context.SECURITY_PRINCIPAL, "weblogic");
    System.out.println("Control till here :5");
    table.put(Context.SECURITY_CREDENTIALS, "weblogic123");
    System.out.println("Control till here :6");
    initialContext = new InitialContext(table);
    System.out.println("Control till here :7");
    initialContext = new InitialContext(table);
    System.out.println("Control till here :8");
    DataSource datasource = (DataSource)initialContext.lookup(DATASOURCE_CONTEXT);
    DataSource source = (DataSource)new InitialContext().lookup("DataSource");
    // result = source.getConnection();
    System.out.println("Control till here :9");
    if (datasource != null) {
    System.out.println("Control till here :3");
    result = datasource.getConnection();
    System.out.println("Control till here :4");
    else {
    System.out.println("Failed to lookup datasource.");
    catch ( NamingException ex ) {
    System.out.println("Cannot get connection: 1" + ex);
    catch(SQLException ex){
    System.out.println("Cannot get connection: 2" + ex);
    return result;
    public static void main(String[] args) throws Exception {
    //WBSCallingProc WbsProc = new WBSCallingProc();
    String returnValue;
    GetConnection getConnection = new GetConnection();
    // returnValue =home.callingProcedure();
    Connection returnValue1 =getConnection.getJNDIConnection();
    System.out.println("returnValue1 " + returnValue1);
    Log
    Control till here :1
    Control till here :2
    Here
    Control till here :3
    Control till here :4
    Control till here :5
    Control till here :6
    Cannot get connection: 1javax.naming.NamingException: String index out of range: -1
    returnValue1 null
    Can anyone please help me here.Many Thanks.
    Regards
    Kumar

    What is the full Java and os versions you are using to compile and to run. Note that with JDEV the platform used for your code may be different than the platform used by JDEV itself.
    Please modify all of your exception handlers to print the stack trace. Add this as the first line in each handler.
    ex.printStackTrace();The stacktrace contains important information about where the problem really occured.
    See the Java docs for NamingException - http://docs.oracle.com/javase/6/docs/api/javax/naming/NamingException.html
    >
    This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces. The nature of the failure is described by the name of the subclass. This exception captures the information pinpointing where the operation failed, such as where resolution last proceeded to.
    •Resolved Name. Portion of name that has been resolved.
    •Resolved Object. Object to which resolution of name proceeded.
    •Remaining Name. Portion of name that has not been resolved.
    •Explanation. Detail explaining why name resolution failed.
    •Root Exception. The exception that caused this naming exception to be thrown.

  • Win 7 Pro 64 occasionally fails to connect using IKEV2 to Win2008R2 Routing and Remote Access server

    I'm a networking guy and having this troubling VPM issue that I can't find.
    I have a number of VPN connections from my Win7Pro 64 PC to various customers.  Their end points are all Windows Routing and Remote Access on Windows 2008R2 STD servers.
    Every once and a while I will hang at Verifying User ID and Password and eventually get  ERROR 809. Change the security type on my VPN connection from IKEV2 to PPTP - never an issue, connects in right away.
    I can also try from another PC (at the same or alternate location) to get into that same server using the same credentials and access - no issue using either IKEV2 or PPTP.
    This has happened at various times to various customers. Here is what I know it is not:
    - Not the local or remote routers or Firewalls since I can always get in from other PC's going through the same network. Even so, tried rebooting all several times
    - Not an ISP issue at either end since I can always get into other IKEV2 servers from the same PC and from other PC's to the server I can't from my PC.
    This leads to the only logical conclusion.  It is something to do with my Win7Pro 64 PC but for the life of my I can not find it.
    I have obviously tried rebooting the Win7Pro PC. I have also tried recreating the VPN connection several times. Nothing.
    Help!

    Hi,
    I know that you've mentioned that it is not a issue about firewall or router settings, but this error usually comes when some firewall between client and server is blocking the ports used by VPN tunnel.
    so to allow IKEv2 traffic, please make sure to configure the network firewall to open UDP ports 500 and 4500, and to allow IP protocol 50.
    If that is not possible, deploy SSTP based VPN tunnel on both VPN server and VPN client – that allows VPN connection across firewalls, web proxies and NAT
    You can refer to this blog
    http://blogs.technet.com/b/rrasblog/archive/2006/06/14/which-ports-to-unblock-for-vpn-traffic-to-pass-through.aspx
    Regards
    Yolanda
    TechNet Community Support

  • Connection through Datasource

    hi..
    i need help to create connection using DataSource in my Desktop Application(Swing)..
    i am using mysql5.0 and jdk1.6.
    Thanks And Regards
    fun_with_me

    Try:
    String port = "xxxx", // You fill in
           sid  = "mysql";
    Class.forName( "com.mysql.jdbc.Driver" );
    URL url = "jdbc:mysql://localhost:"+port+"/"+sid;
    Connection con = DriverManager.getConnection( url, uid, pwd );  // uid and pwd passed in

  • Using Datasource with Toplink

    Hi,
    I am using toplink 10.1.3 .We are using the datasource to connect to weblogic connection pool.
    My session.xml is like this:
    - <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name />
    <datasource>jdbc/ds</datasource>
    </login>
    In the java DAO part,I need a physical database connection to get the ArrayDescriptor.The part of java code is below
    java.sql.Connection dbconnection=null;
    DatabaseLogin login = serverSession.getLogin();
    dbconnection=(java.sql.Connection)login.connectToDatasource(null);
    Questions:
    1.Is the above correct way to get the Physical JDBC connection from a weblogic connection pool(configured using datasource).
    2.How will the Connection released to the pool?Should i use dbconnection.close() or clientSession.release().
    Thanks

    Thanks doug for your reply.
    I am using datasource to connect to the weblogic 9.2 connection pool.
    My specific use case is this.
    I am executing a Stored procedure which will takes a Oracle user defined data type as an Input paramater.
    some steps we use in the java code for the above use case.
    --Getting the  toplink session
    ServerSession serverSession = TopLinkGenericDAO.getSession();
    clientSession = serverSession.acquireClientSession();
    --For getting the oracle user defined array
    java.sql.Connection dbconnection=null;
    DatabaseLogin login = serverSession.getLogin();
    dbconnection=(java.sql.Connection)login.connectToDatasource(null);
    oracle.sql.ArrayDescriptor descriptor = new oracle.sql.ArrayDescriptor(
    "STRING_ARRAY", dbconnection);
    oracle.sql.ARRAY arr_ORCL = new oracle.sql.ARRAY(descriptor,
    dbconnection, aIncl_Vin);
    --for executing stored procedure
    StoredProcedureCall call = new StoredProcedureCall();
    DataReadQuery dbquery = new DataReadQuery();
    call.setProcedureName(CVeITDAOConstants.INSERT_PING);
    call.addNamedArgumentValue("para1", arr_ORCL );
    dbquery.setCall(call);
    --release connection in the finally block
    finally
    clientSession.release();
    dbconnection.close();
    The above code fails when we execute it for 150 concurrent connection(using JMeter) with connection fail exception.
    Please let me know how do i release the physical jdbc connection(dbconnection) in the finally block.
    do we need to give dbconnection.close() or just by giving clientSession.release() will also release the jdbc connection.
    Thanks.

  • How can i using datasource in toplink's map file

    In the TopLink map :
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>test</toplink:user-name> <toplink:password>C23487CFA591952D44310804F3D591CB</toplink:password>
    <toplink:sequencing>
    <toplink:default-sequence xsi:type="toplink:native-sequence">
    <toplink:preallocation-size>1</toplink:preallocation-size>
    </toplink:default-sequence>
    </toplink:sequencing>
    <toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@192.168.0.1:1521:testdb</toplink:connection-url>
    <toplink:bind-all-parameters>true</toplink:bind-all-parameters>
    </toplink:login>
    How can i modify it using datasource?

    The login information stored in the map file is good for direct connection and design time login information.
    For your runtime login information I would use the sessions configuration (sessions.xml). It provides complete deployment configuration:
       <session>
          <name>my-session</name>
          <!-- This references the ORM map XML file -->
          <project-xml>META-INF/employee-basic.xml</project-xml>
          <session-type>
             <server-session/>
          </session-type>
          <login>
             <datasource>jdbc/TopLinkDS</datasource>
             <uses-external-connection-pool>true</uses-external-connection-pool>
             <uses-external-transaction-controller>true</uses-external-transaction-controller>
          </login>
          <external-transaction-controller-class>oracle.toplink.essentials.transaction.oc4j.Oc4jTransactionController</external-transaction-controller-class>
          <enable-logging>true</enable-logging>
          <logging-options>
             <log-exceptions>true</log-exceptions>
             <print-thread>false</print-thread>
             <print-date>false</print-date>
          </logging-options>
       </session>Doug

  • Weblogic connection to datasource fails

    Read Weblogic connection to datasource fails
    Posted: Apr 24, 2007 7:31 AM
    * Click to edit this message Edit
    * Click to reply to this topic Reply to Topic
    Hi,
    can anyone please help me with at problem i am facing for the last couple of days ?
    I am trying to combine Spring 2.0.2, Hibernate 3.1.1 and Weblogic 9.2.
    Also i have a enterprise application that contains a datasource module and a webmodule.
    And the webmodule is trying to use the datasource defined in the ear.
    I am having a problem connecting to the datasource, that has been created with a correct name.
    I am sure that the datasource exists, because i can see the datasource from the weblogic admin console.
    Also i am sure that i am using a correct jndi lookup.
    So i thing it might be propery setting in the weblogic configuration files that might be wrong.
    Here is the error log:
    24-04-07/15:02:47 * INFO* [org.hibernate.cfg.Environment] - Hibernate 3.1.1
    24-04-07/15:02:47 * INFO* [org.hibernate.cfg.Environment] - loaded properties from resource hibernate.properties: {hiber
    nate.default_schema=konvcc, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=org.hibernate.
    cache.NoCacheProvider, hibernate.current_session_context_class=thread, hibernate.dialect=org.hibernate.dialect.Oracle9Di
    alect, hibernate.query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory, hibernate.format_sql=true,
    hibernate.show_sql=false , hibernate.bytecode.use_reflection_optimizer=false}
    24-04-07/15:02:48 * INFO* [org.springframework.orm.hibernate3.LocalSessionFactoryBean] - Building new Hibernate SessionF
    actory
    24-04-07/15:02:48 * INFO* [org.hibernate.connection.ConnectionProviderFactory] - Initializing connection provider: org.s
    pringframework.orm.hibernate3.LocalDataSourceConnectionProvider
    24-04-07/15:02:48 * WARN* [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null
    24-04-07/15:02:48 *ERROR* [org.hibernate.util.JDBCExceptionReporter] - Pool connect failed : java.sql.SQLException: Data
    Source app-datasource does not exist.
    24-04-07/15:02:48 * WARN* [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null
    24-04-07/15:02:48 *ERROR* [org.hibernate.util.JDBCExceptionReporter] - Cannot obtain connection: driverURL = jdbc:weblog
    ic:pool:app-datasource, props = {applicationName=ear-conversionunlocker-1#@1.0, connectionPoolScope=application, Emulate
    TwoPhaseCommit=false, moduleName=app-datasource, connectionPoolID=app-datasource, jdbcTxDataSource=true, LoggingLastReso
    urce=false, dataSourceName=app-datasource}
    24-04-07/15:02:48 * WARN* [org.hibernate.cfg.SettingsFactory] - Could not obtain connection metadata
    java.sql.SQLException: Pool connect failed : java.sql.SQLException: Data Source app-datasource does not exist.
    at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:249)
    at weblogic.jdbc.pool.Driver.connect(Driver.java:161)
    at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:647)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:137)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
    at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionP
    rovider.java:81)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1869)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1162)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:804
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:7
    44)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.j
    ava:131)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
    reCapableBeanFactory.java:1118)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC
    apableBeanFactory.java:1085)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:429)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
    try.java:141)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
    BeanFactory.java:270)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
    ebApplicationContext.java:156)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:82)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1609)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:
    136)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(Deployment
    ReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiv
    erCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCal
    lbackDeliverer.java:67)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.sql.SQLException: Data Source app-datasource does not exist.
    at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:82)
    at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:96)
    at weblogic.jdbc.pool.Driver.connect(Driver.java:150)
    ... 59 more
    24-04-07/15:02:48 * INFO* [org.hibernate.dialect.Dialect] - Using dialect: org.hibernate.dialect.Oracle9Dialect
    24-04-07/15:02:48 * INFO* [org.hibernate.transaction.TransactionFactoryFactory] - Using default transaction strategy (di
    rect JDBC transactions)Here is my configuration files:
    The weblogic-application.xml file:
    <module>
    <name>app-datasource</name>
    <type>JDBC</type>
    <path>META-INF/conversion-datasource-jdbc.xml</path>
    </module>The conversion-datasource-jdbc.xml file:
    <name>app-datasource</name>
    <jdbc-driver-params>
    <url>jdbc:bea:oracle://10.133.128.141:1521</url>
    <driver-name>weblogic.jdbc.oracle.OracleDriver</driver-name>
    <properties>
    <property>
    <name>user</name>
    <value>test</value>
    </property>
    <property>
    <name>portNumber</name>
    <value>1521</value>
    </property>
    <property>
    <name>sid</name>
    <value>testdb</value>
    </property>
    <property>
    <name>serverName</name>
    <value>10.133.128.141</value>
    </property>
    </properties>
    <password-encrypted>web</password-encrypted>
    </jdbc-driver-params>
    <jdbc-connection-pool-params>
    <initial-capacity>1</initial-capacity>
    <max-capacity>50</max-capacity>
    <test-connections-on-reserve>true</test-connections-on-reserve>
    <test-table-name>SQL SELECT 1 FROM dual</test-table-name>
    </jdbc-connection-pool-params>
    <jdbc-data-source-params>
    <jndi-name>ConversionDS</jndi-name>
    <scope>Application</scope>
    </jdbc-data-source-params>This is the content of my weblogic.xml:
    <resource-description>
    <res-ref-name>app-datasource</res-ref-name>
    <jndi-name>ConversionDS</jndi-name>
    </resource-description>This is the content of my web.xml:
    <resource-ref>
    <res-ref-name>app-datasource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>And finally i have my spring application context file:
    <bean id="dataSourceCWA" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="app-datasource"/>
    </bean>
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource">
    <ref bean="dataSourceCWA" />
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">${hibernate.dialect}</prop>
    <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
    <prop key="hibernate.default_schema">${hibernate.default_schema}</prop>
    <prop key="hibernate.bytecode.use_reflection_optimizer">${hibernate.bytecode.use_reflection_optimizer}</prop>
    </props>
    </property>
    <property name="mappingResources">
    <value>hibernate.hbm.xml</value>
    </property>
    </bean>
    <bean id="transactionManager" class="org.springframework.transaction.jta.WebLogicJtaTransactionManager" />
    <bean id="txAttributeSource" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
    <property name="properties">
    <props>
    <prop key="add*">PROPAGATION_REQUIRED</prop>
    <prop key="delete*">PROPAGATION_REQUIRED</prop>
    <prop key="insert*">PROPAGATION_REQUIRED</prop>
    <prop key="release*">PROPAGATION_REQUIRED</prop>
    <prop key="save*">PROPAGATION_REQUIRED</prop>
    <prop key="send*">PROPAGATION_REQUIRED</prop>
    <prop key="update*">PROPAGATION_REQUIRED</prop>
    <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
    </props>
    </property>
    </bean>
    <bean id="txInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
    <property name="transactionManager">
    <ref local="transactionManager" />
    </property>
    <property name="transactionAttributeSource">
    <ref local="txAttributeSource" />
    </property>
    </bean>
    <bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
    <property name="interceptorNames">
    <list>
    <idref local="txInterceptor"/>
    </list>
    </property>
    <property name="beanNames">
    <list>
    <value>*Service</value>
    </list>
    </property>
    </bean>
    Best Regards
    Cemil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

    Coz Koz <> wrote:
    ic:pool:app-datasource, props =
    {applicationName=[email protected],
    connectionPoolScope=application, Emulate TwoPhaseCommit=false,
    moduleName=app-datasource, connectionPoolID=app-datasource,
    jdbcTxDataSource=true, LoggingLastReso urce=false,
    dataSourceName=app-datasource} 24-04-07/15:02:48 * WARN*
    [org.hibernate.cfg.SettingsFactory] - Could not obtain connection metadata
    java.sql.SQLException: Pool connect failed : java.sql.SQLException: Data
    Source app-datasource does not exist.Hi,
    Did you configure the datasource with the JNDI name app-datasource?
    Pls check if it's available on the server itself . In the adminconsole go to
    Servers -> The managed server -> there click JNDI tree.
    It's also possible that Weblogic couldn't not connect to the JDBC connection
    at startup, and therefore it won't be available in the JNDI. Check the
    managed server .out file to find this out. (or post this)
    B
    Schelstraete Bart
    [email protected]
    http://www.schelstraete.org
    http://www.linkedin.com/in/bschelst

  • Empathy fails to connect to google talk using gnome online accounts

    Hi there,
    After last upgrade to gnome 3.6 empathy fails to connect to google talk using GOA credentials.
    Of course I can configure a talk account directly in empathy but... I would prefer to use a single sign on (with gnome online accounts).
    Does any one has this same problem?... Any clues?
    Best,
    M

    Yes...
    [miguel@miguel miguel]$ pacman -Q | grep gabble
    telepathy-gabble 0.17.1-1
    [miguel@miguel miguel]$
    In fact I can use Google Talk if I create an account using Menu->Accounts in empathy.
    Best.

  • When replying to an add on Craig's List, for example, it goes back to my old email address I had with IE, and fails to connect with the ad's author and I'd like to know how to make it use my gmail address with Firefox instead.

    When replying to an ad, via email, posted on Craig's List , for example, it attempts to use my old email address I had with IE, then fails to connect with the ad's author. How do I get it to only use my gmail address with Firefox?
    == This happened ==
    Every time Firefox opened

    See https://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • I have CS 6 which requests I sign in to access my serial numbers, which I have already, and it fails to connect so that I cannot use the programs. How do I get past this, is there a direct line to customer support?

    I have CS 6 which requests I sign in to access my serial numbers, which I have already, and it fails to connect so that I cannot use the programs. How do I get past this, is there a direct line to customer support in the UK?
    Thanks

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

Maybe you are looking for