JDBC connection suspends application

Hi,
I have tried to create a database connection with JDBC, but when I run the application, it "gets stuck" when it tries to create that connection. It doesn't really suspend the thread, but the application just hangs there and shows no indication of whether the connection worked or failed.
Has anyone run across that problem before? How do I solve that?
my code:
                Statement anfrage = null;
          ResultSet rowset = null;
          try {
              DriverManager.registerDriver(new Driver());
              Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/test?" +
                                             "user=xxxx&password=xxxx");
              // send queries
              anfrage = conn.createStatement();
              rowset = anfrage.executeQuery("SELECT * FROM parseddata");
              while(rowset.next()){
                   System.out.println(rowset.getString("id") + " :works");
              rowset.close();
              anfrage.close();
          } catch (SQLException ex) {
              // handle any errors
              System.out.println("SQLException: " + ex.getMessage());
              System.out.println("SQLState: " + ex.getSQLState());
              System.out.println("VendorError: " + ex.getErrorCode());
          }the driver and the connection settings are correct (I have tried to see if the connection fails by giving invalid parameters to the connection attempt), so I'm out of ideas. It just never reaches anfrage = conn.createStatement();, but it also doesn't throw an exception (Threadstate running).
regards,
Ulrich

Hi b00nlander,
Here was my problem:
Using mysql-connector-java-5.1.5 and MySql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386) I found that DriverManager.getConnection() would work fine when access to the mysql server was denied due to invalid username/password combination.
The problem only came when supplying correct details: the call getConnection() just hung.
I solved this problem by DOWNGRADING the version of mysql-connector to mysql-connector-java-3.1.14. I surpose one could upgrade mysql to a later release to solve this problem also.
It would seem that there is just an incompatibility between these versions of drivers and mysql?
Regards,
Ken.

Similar Messages

  • JBO-26061: Error while opening JDBC connection while application

    Hi,
    i can successfully deploy applications but can't access the page which is deployed and throwing the below error
    WARNING: Unable to locate the credential for key FOD in C:\Oracle\Middleware\user_projects\domains\SFA\config\oracle.
    May 11, 2009 4:08:54 PM oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResultException
    WARNING: Incomplete connection information
    May 11, 2009 4:09:16 PM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: jsf.lifecycle.phase.exception
    <May 11, 2009 4:09:16 PM GMT+05:30> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@1cf4813 - appName: 'application1', name: 'app1
    '/app1', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1c26895[
    GET /app1/faces/br-o.jspx?_adf.ctrl-state=1833643521_3 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.28 (KHTML, like Gecko) Version/3.2.2 Safari/525.28.1
    Accept-Encoding: gzip, deflate
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-US
    Cookie: oracle.uix=0^^GMT+5:30; ADMINCONSOLESESSION=BG3KKH2TJsMQ3gXPbDLk1RJnKGz8bFJTS9kPp95VLFCxxysbxqF6!-2039148184; JSESSIONID=h49LKLQWSTc6hQWzvpPLLLXjkJg42F
    dSdM9n!-2039148184
    Connection: keep-alive
    ]] Root cause of ServletException.
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:253)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:168)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:546)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:327)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:104)
    Truncated. see log file for complete stacktrace
    java.sql.SQLException: ORA-01005: null password given; logon denied
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
    Truncated. see log file for complete stacktrace
    >

    hi timo
    i have changed from JDBC url to JDBC datasource i am facing the below error i am using Jdev11g update2 (Build JDEVADF_MAIN.BOXER_GENERIC_090328.0229.5205)
    please help me in this regard
    ] Root cause of ServletException.
    racle.jbo.JboException: JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
    at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4957)
    at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5054)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1280)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6415)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:249)
    Truncated. see log file for complete stacktrace
    ava.sql.SQLDataException: ORA-01882: timezone region not found
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    Truncated. see log file for complete stacktrace

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • Deployed application can't see the JDBC connection

    Hi
    I made an ADF application using oracle JDeveloper 11g and it ran successfully from the JDeveloper
    I deployed it to Weblogic 10.3 and it successfully deployed
    But when i Opened the deployed application's URL the page's lay out is only what i c (only the template) with the following error:
    =================================================
    Error while opening JDBC connection.
    ORA-01005: null password given; logon denied
    Unexpected exception caught: java.lang.NullPointerException, msg=null
    =================================================
    SO, how could I make my application c the JDBC ?
    by the way when i created the DB connection in the JDeveloper i checked(deploy password)

    Hi Eddy
    I got the same problemas you posted.now i changed the configurations of AMlocal.i changed from JDBC URL to JDBC datasource.
    i saved the changes. i created a new EAR and deployed to external WLS 10.3 from Jdev11.1.1
    when i am testing tha app from external WLS,i am getting the following error
    JNDI failure.unable to lookup DataSource at context
    java:comp/env/jdbc/Connection1DS
    while trying to lookup'jdbc.Connectiobb1DS' didn't find
    subcontext 'jdbc'.Resolved"
    Unexpected exception caught:
    java.lang.NullpointerException,msg=null
    Can you tell me where the problem is?

  • 2 jdbc connections from a java application works ok to 9i but not to 10g

    Hi,
    I hava java swing application which opens one jdbc connection. Tha application has 10 classes all of which are in one package say app.someapp.pkg1. This works ok.
    I am trying to integrate a second java component which provides a drilldown JTree interface to the user. The second component has 6 classes and has its own package app.someotherapp.pkgA. The second java component also opens a JDBC connection.
    If both the jdbc connections point to a common 9i database it works fine.
    If both the jdbc connections point to a common 10g 10.0.2.0.0 database the second component fails to open the conection.
    Some static variables in the two packages may be getting overloaded i.e connection. Should this matter even though the packages are different.
    Are there any issues in opening a 2nd connection to 10.0.2.0.0 using JDBC.
    What might I be doing wrong can anyone suggest a line of attack
    Saugato

    Dear All
    IT WORKS FINE . Pls disregards this thread
    I misinterpreted the ORA-02019 error message. The 10g instance was missing a database link to a 3rd remote database . The 9i instance had this database link hence was not complaining.
    The following error was thrown when a select was performed on a table refred to using the database link.
    java.sql.SQLException: ORA-02019: connection description for remote database not found
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

  • JBO-3003 Application pool, Error JDBC connection

    Hi, I'm trying to run a simple webapp but get this error:
    JBO-30003: The application pool (model.RoomReservationsAppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    Anyone know what to do?
    Regards ,
    Ketil
    I

    Hi Erik,
    The solution of having the two root ApplicationModules share a single JDBC connection violates some assumptions of the BC4J architecture and could result in some strange race conditions in JDBC.
    We should focus your solution on how the panels are released. It ought to be possible to release the BindingContainer for the panel without releasing the underlying DataControl. With this solution you would only require one root ApplicationModule and one JDBC connection.
    How are you releasing the ADF and BC4J references when you close the panel? I would expect you to be invoking release on the DCBindingContainer instance only. If you are already doing this then what is causing the commit/rollback?
    Hope this helps,
    JR

  • Dymanic JDBC connection for mulitple application..

    Hi,
    I am developing an application which using dynamic JDBC connection when user login it's provide the username, password and JDBC datasource and it's work fine in my main application.
    But when I drop my other application Jar file into that main application and the other application call from the main application it uses the default JDBC datasource which was there in the other application but not the data source which provided in the main application.
    I am using Jdeveloper 11.1.2.3.0. version.
    Thanks in advance.

    Hi,
    You might want to try something akin to the Visitor pattern
    i.e.
    record.update(Connection conn) {
    PreparedStatement stmt = conn.prepareStatement("Update...");
    Where a controlling class maintains the connection and you
    invoke the function with the connection parameter, just make sure you are not
    doing this concurrently.
    hope this helps

  • BC4J: Getting a JDBC Connection out of an Application Module.

    Hi all! Good Morning!
    I have an application that uses JasperReports to print some reports. The filling mechanism of JasperReports requires a JDBC Connection object to work. At present, i am using the ConnectionMetadata Object from the AM to get the JDBC URL and user name to create a new Connection with DriverManager.getConnection(), but there is no way to get the DB password. Is there any way to get the underlying JDBC Connection inside a method in the ApplicationModule? something like this.getJDBCConnection()? If so, does this method draws the connection from the AM Connection Pool, or is it a "stranded" connection?
    Thanks a lot! Your help is greatly appreciated!
    Thiago Souza

    Also see section 25.6 "Accessing the Current Database Transaction" in the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center.
    http://www.oracle.com/technology/products/adf/learnadf.html

  • Coldfusion application fails to conect database(JDBC connection)

    Hi,
    I am facing some problem in my application producion box,
    Problem details::
    My Coldfusion application fails to conect database(JDBC connection) .After restarting cold fusion services it again work smoothly.
    Below are the production coldusion details.
    Server Product: ColdFusion MX.
    Version: 6,1,0,83762
    Edition: Enterprise.
    Please suggest its urgent.

    Hi
    Yes I have examined all the code as well as all the log files but unable to find any issue there. I am giving its error massage.
    Error Massage:
    Java.SQL.sqlexception. No more available statements please create your package with a larger dynamic section value
    The application within that has reported to be a FAILURE.
    Some times has no error massage it displayed blank page.
    Below are the system details.
    1. Operating system: windows 2000.
    2. ColdFusion version: 6.1(6,1,0,83762)
    3. Webservices: IIS
    4. database: SqlServer 2000 and DB2.
    5.  Java VM Version : 1.4.2-b28
    Kindly update its urgent, because its a production issue.
    Let me know if you have any questions regarding my explanation.....
    Thanks.
    Gautam Kumar.

  • JDBC Connection pool recovery after DB server restart

    I am finding that Kodo is throwing the following exception after I restart
    my database server (mysql). I am doing the database server restart while my
    application server is idle, so it is not during a transaction.
    Communication link failure: java.net.SocketException [code=0;state=08S01]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    This is presumably due to the JDBC connection pooling. Is there a
    configuration setting that allows Kodo to detect such failures and reconnect
    to the database server without exposing this problem to the application
    code? For example, WebLogic Server's JDBC connection pool has a setting that
    enables testing a connection and recovering from such failures before
    allocating it from the pool.
    Ben

    This is presumably due to the JDBC connection pooling. Is there a
    configuration setting that allows Kodo to detect such failures and reconnect
    to the database server without exposing this problem to the application
    code?Not right now. You can log an enhancement request with our bug database:
    http://bugzilla.solarmetric.com/

  • JDBC Connection pools and clusters (is max connection for entire cluster?)

    Hi,
    Quick question.
    When using JDBC connection pools in WAS 6.40 (SP13) in a clustered environment. Are the max connections the number
    a)Each application server can use
    b)The entire cluster can use
    Would believe a), but I'd like it confirmed from someoneelse

    Hi Dagfinn,
    your assumption is correct. Therefore, in a cluster environment you'd need to make sure the DB can open <i>Number of nodes X max connections</i>.

  • Issues with JDBC Connection Pooling

    Hi all,
    I'm experiencing some unexpected behaviour when trying to use JDBC Connection Pooling with my BC4J applications.
    The configuraiton is -
    Web Application using BC4J in local mode
    Using Default Connection Stagegy
    Stateless Release Mode
    Retrieving Application Modules using Configuration.createRootApplicationModule( am , cf );
    Returning Application Modules using Configuration.releaseRootApplicationModule( am, false );
    Three application modules
    AppModuleA - connects to DatabaseConnection1
    AppModuleB - connects to DatabaseConnection2
    AppModuleC - connects to DatabaseConnection2
    My requirement is to -
    Use App Module Pooling and have individual pool for each Application Module
    Use JDBC Pooling and have individual pool for each Database connection
    Note: All configuration was achieved in design mode (i.e. right clicking AppModule->Configurations...)
    1. Initial approach -
    In the configuration for each Application Module I specified the connection type as 'JDBC Datasource' and specified to approriate datasource.
    Tried setting doConnecitonPooling to 'true' as well as 'false'
    In the data-sources.xml I specified all the appropriate info including min-connections and max-connections.
    I would expect, with the above config that BC4J would use OC4J's built in JDBC connection pooling.
    2. Second approach -
    In the configuration for each Application Module I specified the connection type as JDBC URL.
    In the configuration I specified doConnectionPooling = 'true' as well as the max connection, max available and min available
    What I experienced in both cases was that the max connections seem to be ignored as the number of connection as reported by the database (v$session) was exceeded by more than 10.
    In addition to this once the load was removed the number of JDBC connecitons did not drop (I would have expected it to drop to max available connections)
    My questions are -
    1. When specifying to use a 'JDBC Datasource' style of connection, is it in fact OC4J that is then responsible for pooling JDBC connections? And in this case should BC4J's doConnectionPooling parameter be set to true or false?
    2. Are there any known issues with the use of the JDBC Conneciton Pool as stated by the above to approaches?

    Thanks for the additional info. Please see my comments. below.
    Sorry should have been more specififc -
    1. Is each application pool using a different JDBC user? You mentioned DatabaseConnection1 and DatabaseConnection2
    above; are these connections to different schemas / users? If so, BC4J will create a separate connection pool for each
    JDBC user. Each connection pool will have its own maximum pool size.
    Each 'DatabaseConnection' refers to a different database, actually hosted on a seperate physical server, different
    schema and different user.BC4J will maintain a separate connection pool for each permutation of JDBC URL / schema. If each user is connecting
    to a different DB instance then I would expect no greater than 10 DB sessions. However, if a DB instance is hosting
    more than user then I would expect greater than 10 DB sessions (though still no more than 10 DB sessions per user).
    2. Are all the v$session sessions related to the JDBC clients? There should be at least one additional database
    session which will be related to the session that is querying v$session.
    When querying the v$session table I specifically look for connections from the user in quesiton and from the machine
    name in question and in doing so eliminate the database system's connections, as well as the query tools'
    connection. One area I'm not sure about is the connection BC4J uses to write to its temporary tables. I am using
    Stateless release mode and have not explicetly stated to save to the database but I'm wondering if it still does if so
    and how does it come into the equation with max connections?BC4J's internal connections are also pooled and the limits apply as mentioned above. So, if you have specified
    internal connection info for a schema which is different than the users above I would expect the additional conns.
    One helpful diagnostic tool, albeit programmatic, might be to print the information about the connection pools after
    your test client(s) have finished. This may be accomplished as follows:
    // get a reference to the BC4J connection pool manager
    import oracle.jbo.server.ConnectionPoolManagerFactory;
    import oracle.jbo.server.ConnectionPoolManagerImpl;
    import oracle.jbo.pool.ResourcePool;
    import java.io.PrintWriter;
    import java.util.Enumeration;
    // get the ConnectionPoolManager. assume that it is an instance of the supplied manager
    ConnectionPoolManagerImpl mgr = (ConnectionPoolManagerImpl)ConnectionPoolManagerFactory.getConnectionPoolManager();
    Enumeration keys = mgr.getResourcePoolKeys();
    PrintWriter pw = new PrintWriter(System.out, true);
    while (keys.hasMoreElements())
    Object key = keys.nextElement();
    ResourcePool pool = (ResourcePool)mgr.getResourcePool(key);
    System.out.println("Dumping pool statistics for pool: " + key);
    pool.dumpPoolStatistics(pw);
    }

  • Crystal Reports's JRC. How to close JDBC connection?

    Hi!
    I have simple CR JRC application under Oracle AS 10.1.2.0.2, made from Crystal's sample codes.
    It works fine, but there is little problem: after closing vievwer's page JDBC connections stays alive.
    How can I close them?
    Here is my 2 jsp:
    ---------- Page1.jsp -----------------
    "<%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="com.crystaldecisions.reports.sdk.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%
    // open the report rpt file
    String REPORT_NAME = "directs_q_d1.rpt";
    String Login =request.getParameter("p1");
    String Password =request.getParameter("p2");
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    reportClientDoc.getDatabaseController().logon(Login,Password);
    ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
    paramFieldController.setCurrentValue("", "reportname", new String("DIRECTS_QUARTERLY"));
    session.setAttribute("reportSource", reportClientDoc.getReportSource());
    reportClientDoc.close();
    response.sendRedirect("CrystalReportViewer.jsp");
    %>
    and
    ----------- CrystalReportViewer.jsp ------------------------
    <%//Crystal Report Viewer imports.%>
    <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page import="com.crystaldecisions.reports.sdk.*" %>
    <%
    //Refer to the Viewers SDK in the Java Developer Documentation for more information on using the CrystalReportViewer
    //API.
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setHasRefreshButton(false);
    viewer.setEnableDrillDown(false);
    viewer.setDisplayGroupTree(false);
    viewer.setHasToggleGroupTreeButton(false);
    viewer.setHasViewList(false);
    viewer.setHasLogo(false);
    //Get the report source object that this viewer will be displaying.
    Object reportSource = session.getAttribute("reportSource");
    viewer.setReportSource(reportSource);
    //Render the report.
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    viewer.dispose();
    %>
    -------------------------------------

    Oh, i'm sorry :) It was a "time-out" tag in CRconfig.xml. Tipic closed.

  • Error while opening JDBC connection

    Hi
    The JDBC connection works in the current page, but when I clicked a tab to go to another page using the same database, I received the error:
    Error while opening JDBC connection.
    ORA-01005: null password given; logon denied
    Unexpected exception caught: java.lang.NullPointerException, msg=null
    I used jdbc data source, I assume. In the application module configuration, there are two listed there. One is UserServiceLocal, the other one is UserServiceShare where datasource is specified. I also specify the dataSource in the Domain server admin console. I deleted cwallet.sso file. My development and deployment machine is Vista.
    I would appreciate your input!

    have you explicitly mentioned username password in your connection string?

  • Error while opening JDBC connection in external WLS

    Hi
    I created the ADF application on Jdev11.1.1 version.i deployed the application on External WLS 10.3.i got deployment successfull.but when testing from browser,i got the following error.
    Messages for this page are listed below.
    Error     
    Error while opening JDBC connection.
    Error     
    ORA-01005: null password given; logon denied
    Error     
    Unexpected exception caught: java.lang.NullPointerException, msg=null
    For testing in Browser i am giving
    http://localhost:7001/department_Application-viewcontroller-context-root/faces/Depvue1.jspx
    In external WLS i created the JDBC datasorce connection in WLS domain successfully.i followed the steps given in deployment chapter of Oracle® Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1)
    Anyone tell me i went wrong.

    Hi frank,
    i got what you told me in previous reply.
    In Jdev IDE ,I edited the local AM configurations by changing the JDBC URL to Datasource.
    again i created the new EAR file for the app and i deployed it successfully on the external WLS10.3
    now when i am running the app from external WLS,
    i am getting the following error.
    Messages for this page are listed below.
    JNDI failure. Unable to lookup Data Source at context java:comp/env/jdbc/Connection1DS
    Error
    Error
    Unable to resolve 'jdbc.Connection1DS'. Resolved 'jdbc'
    Error
    Unexpected exception caught: java.lang.NullPointerException, msg=null
    in External Wls my JDBC Datasource name is" JDBC Data Source-1",JNDI Name :"jdbc/jdbcds".
    In Jdev , JDBC Datasource name of AppModule local is : java:comp/env/jdbc/Connection1DS
    <strong>Here How to override the local JdbcDS name in Jdev11g with the JDBC Datasource name existing in the external WLS .
    </strong>
    While running the Application ,it is going for the JDBC Datasource Name given in JdevIDE.
    Can you tell me where i have to change to run application successfully from WLS.
    Edited by: sj0609 on Oct 29, 2008 4:45 PM

Maybe you are looking for