InitialContextFactory to connect from java to OID

Hi,
I have a problem to connect from my application java to OID, I was using the following InitialContextFactory in my code in this way:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://192.168.3.112:3061/dn=fedco,dn=com");
but it gives back the following error to me:
Problem looking up : javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file).
I have been looking for about the xml files but I have found that they are necessary when one works with EJBs which is not my case, I need to know if I am using the appropriate InitialContextFactory or if another one is the appropriate for this case.
Please, help me.
Thanks.

Hi there,
You are definately using the incorrect InitialContextFactory. The com.evermind.server.ApplicationClientInitialContextFactory is intended for Standalone Java clients that require access to remote EJBs AND have been configured with a client-application.xml file.
Try the following:
//Setup intial context for OID server
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, ldapURL);
env.put(Context.SECURITY_AUTHENTICATION, "none");
env.put(Context.SECURITY_PRINCIPAL, dn);
// Anonymous bind to create the intial context
try
dirCtx = new InitialDirContext(env);
log.debug("New LDAP context created " + dirCtx);
catch (NamingException ne)
log.error("Failed to create InitialContext for LDAP server:", ne);
throw new RuntimeException("LDAP server is not available");
Where ldapURL is "ldap://<host>:<port>" and dn is the OID content you are interested in e.g. "dc=site,dc=company,dc=com".
Hope this helps.
Cheers,
Sepand

Similar Messages

  • I need an suitable InitialContextFactory to connect from java to OID

    Hi,
    I have a problem to connect from my application java to OID, I was using the following InitialContextFactory in my code in this way:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,           "com.evermind.server.ApplicationClientInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://192.168.3.112:3061/dn=fedco,dn=com");
    but it gives back the following error to me:
    Problem looking up : javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file).
    I have been looking for about the xml files but I have found that they are necessary when one works with EJBs which is not my case, I need to know if I am using the appropriate InitialContextFactory or if another one is the appropriate for this case.
    Please, help me.
    Thanks.

    Hi,
    Have a look at my response to this thread :InitialContextFactory to connect from java to OID
    Let me know how you go.
    Cheers,
    Sepand

  • How to connect from java without using oracle client installation

    hi ,
    Please tell me how to connect from java without using oracle client
    Thanks & Regars

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • How to establish a connection from java to SAP Netwevare server

    Hi All,
    As per my requirement i need to create a connection from Java to SAP Netwevaer Server inorder to access the docs from KM. PLZ provide some sample code
    (I know how to connect from java to SAP R/3 syatem using JCo connector).
    Can anybody help me.
    ADV Thanks

    Look
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/6615ea90-0201-0010-be81-e7a300fdf212
    /people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis

  • Run dial-up connection from Java Program?

    Is there a way to run dial-up connection from a Java Program? It needs to platform independent.
    Thanks.
    Virum

    I very much doubt it, at least not platform independent. I had a, oops, heck of a time doing that from Visual Basic, where it is much easier to work with operating-system stuff like that than it is in Java. I finally ended up buying a RAS component to call from my VB program.

  • Making https: connection from java code loaded into Oracle 8i database

    A bit of a blast from the past, really, as 8i provides a JVM at 1.2.2.
    I need to provide an PL/SQL function which accesses a RESTful web service requiring https connection. Got the call working under 1.2 locally without much trouble using:
    static {
            System.setProperty("java.protocol.handler.pkgs",
                    "com.sun.net.ssl.internal.www.protocol");
            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        }The trick is to get the Oracle database to run the code internally. What libraries do I need where? I get an extremely unhelpful NoClassDefFoundError, without mention of the offending class.
    By doing loadjava with jcert.jar,. jnet.jar and jsse.jar (the libraries I'm using with the test program) I can get loadjava to accept and allegedly resolve the class.

    endasil wrote:
    malcolmmc wrote:
    Well, sadly look at the colour scheme.Yeah, sarcastic was I. The NoClassDef error seriously doesn't give a class name? I find it astonishing that any implementation would be that stupid.Seriously. The strange thing is that before I got to the NoClassDefFound I had a Initialization error (until I added a security rule for setting the Provider) and for that I got a full stack trace (in an obscure trace file, granted).

  • Accessing connection from java and generated code

    In JDeveloper 10.1.2.x I set up a connection and selected a stored procedure and generated java to call the stored proc. All good.
    Now, in a web service application I want to call the method in that class that was generated.
    So, the generated class has setConnectionContext(), getConnectionContext(), etc methods. I don't know how to use them. What is a ConnectionContext?
    How do I provide the database connection information and call the method in the generated code that I need?
    My Oracle AS server has a datasource configured that is the one I would like to use, but I don't know how to 'access' it via java in the context of this generated class.
    I am deploying to Oracle AS 10.1.2,
    thanks

    Hi, well CSV is not currently an Excel file, it is a Comma Separated Values
    file which can be read through Excel.
    Now, if you wish to remove the header, I would purpose that you develop an
    application that reads the CSV file, as it is mere text, and that it also reads
    another file (lets call it confirguration.txt) in which you determine the pattern
    you want to remove, then you just read your report and if a string line
    matches the pattern you defined in the configuration.txt file, then you simply
    erase it.
    And if you keep interested in reading real Excel files (xls), I would
    recommend you use POI-HSSF API from Apache.org
    http://jakarta.apache.org/poi/hssf/index.html
    Hope this helps, cya around.

  • Unable to connect from java application

    Hi,
    I recently converted my application over from 5.1, and everything (servlet +
    EJB) is working great under one VM. Now I'm trying to connect to the server
    with our commadline admin program and its a no-go. Here's the stacktrace on
    the serverside, followed by the trace on the client side:
    ***server dump:
    <Mon Nov 13 12:36:0003 PST 2000> <Notice> <WebLogicServer> <Listening on
    port 10081>
    java.io.EOFException
    at weblogic.utils.io.DataIO.readUnsignedByte(DataIO.java:372)
    at weblogic.utils.io.DataIO.readLength(DataIO.java:702)
    at
    weblogic.utils.io.ChunkedDataInputStream.readLength(ChunkedDataInputStream.j
    ava:103)
    at
    weblogic.rjvm.MsgAbbrevJVMConnection.readJvmId(MsgAbbrevJVMConnection.java:2
    43)
    at
    weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.j
    ava:280)
    at
    weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.j
    ava:126)
    at
    weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:594)
    at
    weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:373)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:373)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:133)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:116)
    ***client dump:
    javax.naming.CommunicationException. Root exception is
    java.net.ConnectException: No server found at T3://localhost:10081
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:161)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:195)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:123)
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at com.kiko.net.jndi.URLClientFactory.getClient(URLClientFactory.jav
    Gene Chuang
    Join Kiko.com!

    Nevermind, fixed the problem! Forgot to add 6.0's weblogic_sp.jar and
    weblogic.jar to the client's classpath... doh!
    Gene Chuang
    Join Kiko.com!
    "Gene Chuang" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I recently converted my application over from 5.1, and everything (servlet+
    EJB) is working great under one VM. Now I'm trying to connect to theserver
    with our commadline admin program and its a no-go. Here's the stacktraceon
    the serverside, followed by the trace on the client side:
    ***server dump:
    <Mon Nov 13 12:36:0003 PST 2000> <Notice> <WebLogicServer> <Listening on
    port 10081>
    java.io.EOFException
    at weblogic.utils.io.DataIO.readUnsignedByte(DataIO.java:372)
    at weblogic.utils.io.DataIO.readLength(DataIO.java:702)
    at
    weblogic.utils.io.ChunkedDataInputStream.readLength(ChunkedDataInputStream.j
    ava:103)
    at
    weblogic.rjvm.MsgAbbrevJVMConnection.readJvmId(MsgAbbrevJVMConnection.java:2
    43)
    at
    weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.j
    ava:280)
    at
    weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.j
    ava:126)
    at
    weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:594)
    at
    weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:373)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:373)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:133)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:116)
    ***client dump:
    javax.naming.CommunicationException. Root exception is
    java.net.ConnectException: No server found at T3://localhost:10081
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:161)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:195)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:123)
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    atcom.kiko.net.jndi.URLClientFactory.getClient(URLClientFactory.jav
    >
    Gene Chuang
    Join Kiko.com!

  • Establish MDM connection from Java class

    Hi all,
    I am trying to connect to MDM from a local Java class inside a DC. I know I need to add the JAR files in the DC properties. I need to know if it is possible to establish the connection, if the landscape set-up uses a MDM destination for connecting to MDM; and I need to refer the same in the Java class. 
    I am doing this so that I need not deploy the DC each time to check the logic. MDM version is 7.1 SP 09.
    Any help is appreciated. Thanks.
    Regards
    Subathra M

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • Getting error while Creating a JDBC connection from Java Class

    Hi,
    I am getting the exception pasted below:
    Exception in thread "main" java.lang.AbstractMethodError
    at JvMakeVTable(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) (Unknown Source)
    at oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.ttc7.TTC7Protocol.initNls(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.driver.OracleConnection.OracleConnection(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    The code raising this error is :
    try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
              catch (Exception Exp)
                   System.out.println("Error while getting the class : "+Exp);
    try
                   String url = "jdbc:oracle:thin:@hostname:port:SID";
                   String user = "apps";
                   String password = "password";
                   con = DriverManager.getConnection(url,user,password);
    catch (Exception ex)
                   System.err.println("SQLException: " + ex.getMessage());
    Any help in this is appreciated.
    Regards
    Jujaar

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • How to get total number of Database connections from Java code

    Hi,
    I am using Myql4.1.12.
    I am conncting to mysql through Java.
    I want to know how many active database connections were running at a specific time. Is it possible?
    Can you please help me.
    Thanks in advance.

    Seems like this would be a question for MySql, not for Java. And if it's possible you'd run some MySql utility to do that, not code it in a Java app.

  • SAP connectivity from Java to SAP 4.0

    Hi All,
    I am tried to send an IDOC(whose basic type, extension are known) to SAP system(ECC 6.0) using the SAP JCo API 3.0 and all works well.
    Now I used the same piece of code to connect to SAP 4.0 system but the following basic line of code has ran into a IDOCRUNTIMEEXCEPTIION
    doc = iDocFactory.createIDocDocument(iDocRepository, iDocType, iDocCymType);
    com.sap.conn.idoc.IDocRuntimeException: Unable to get metadata for MATMAS03 with extension YES2P_IEXT_MATMAS03: Function module "IDOCTYPE_READ_COMPLETE" not found.
    at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1330)
    at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData(SAPRepository.java:1122)
    at com.sap.conn.idoc.jco.rt.SAPRepository.getRootSegmentMetaData(SAPRepository.java:886)
    at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:119)
    at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:57)
    at com.sap.conn.idoc.jco.rt.JCoIDocDocument.<init>(JCoIDocDocument.java:58)
    at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:143)
    at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:32)
    at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:228)
    at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:24)
    at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:76)
    at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:38)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
    at hC.b(SourceFile:207)
    at com.mendix.core.Core.execute(SourceFile:226)
    at ll.a(SourceFile:69)
    at mv.a(SourceFile:72)
    at mu.a(SourceFile:151)
    at mu.executeAction(SourceFile:98)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
    at hC.b(SourceFile:207)
    at com.mendix.core.Core.execute(SourceFile:304)
    at com.mendix.core.Core.execute(SourceFile:280)
    at mxsapconnectorcore.actions.IDocOutputQueue.run(IDocOutputQueue.java:116)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: Function module "IDOCTYPE_READ_COMPLETE" not found. (raised by system D10|hslsid10)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:677)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1830)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:936)
    at com.sap.conn.jco.rt.ConnectionManager.internalExecute(ConnectionManager.java:411)
    at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.execute(SAPRepository.java:1722)
    at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.access$100(SAPRepository.java:1671)
    at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1256)
    ... 26 more
    Caused by: RfcException: [D10|hslsid10]
        message: Function module "IDOCTYPE_READ_COMPLETE" not found.
        Return code: RFC_SYS_EXCEPTION(3)
        error group: 104
        key: RFC_ERROR_SYSTEM_FAILURE
    Exception raised by D10|hslsid10
    at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2038)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1778)
    ... 33 more
    Caused by: com.sap.conn.rfc.exceptions.RfcGetException: Function module "IDOCTYPE_READ_COMPLETE" not found.
    at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1148)
    at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:120)
    at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:33)
    at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1980)
    ... 34 more
    Now my question is how do I create an IDOC(a blank one) using this API for 4.0 system which doesnt seem to have this function module OR does anyone know other method create IDOC using SAP JCo3.
    Please comment. Thanks in advance

    We are also still looking for an answer for this issue. The server in our case is running SAP 4.0 package 17 and the function (IDOCTYPE_COMPLETE_READ) only gets added in package 42. However the JCo connector page states it supports R/3 3.1 and newer, so is this a bug or is there an alternative function we could use?

  • Problems in SQL Connection from Java program to Oracle 8.1.7

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

  • Accessing Windows dial-up connections from java

    Hello,
    Anyone has any idea how to go about accessing Windows existing dialup connections and instruct windows to dial-up to internet using the selected connection profile?

    1. why are you using java for a Windows only program?
    2. why are you attempting to do something windows specific for
    a non-os specific language
    WOW!
    I've been using java for applications I only run on Windows, Didn't know this is frowned own. You gotta be kidding me right? Do you really think all java programs are written in mind for it be be platform independant? I've been programming in java for around 3 years and we only run it on Windows systems. Non-os specific is nice, but everyone that programs using java isn't looking for that feature. If everyone else out there is only using java because it's platform independance please correct me, I'll be very surprised. One more question, just becaus he is possibly only going to use for a windows program, he should go learn another language? Sorry this post really surprised me.

  • Oracle edition based redefinition.. connecting from java

    Hi all,
    We hav implemented oracle edditions in our project.
    Can anyone please tell us how we mention the eddition name in the jdbc connection string.
    the host name is : storacle.com
    port : 1521
    user_name: st
    password ts.

    Hi;
    Pelase review:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e10471/adfns_editions.htm
    Also see:
    Self-PacedTraining for Oracle Database 11g Release 2 [ID 1060197.1]
    Those should answer your question
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

Maybe you are looking for

  • VPN - can't access internet over VPN

    Hi, I have an issue with VPN. For my work I need to be able to log into my office network remotely and then access remote desktop connection from within my work network. This won't work unless I am accessing the internet from inside the VPN. I have g

  • Is it possible for Thunerbird to open in Firefoc browser?

    I am using Firefox for various web urls and wonder if Thunderbird can be opened there as well?

  • Itunes 10.5 update installation problem

    I was trying to update my itunes 10.5,after downloading it from apple store successfully,an error occured during the installation stage. It shows 'There is a problem with this Windows Installer Package. A program required for this install to complete

  • Reading Dynamic Configuration information in side adapter module.

    Hi All, We are writing an adapter module for one of our receiver adapter. On the Sender side we have a file adapter whose adapter specific properties are checked. So the message has the file name in the Dynamic configuration. Now we need to read this

  • Two computers, one DVD burner

    Problem: I have two MACs, a new intel iMAC with iDVD 6 and no DVD burner, and an older "lamp" iMAC with iDVD 5 and a DVD burner. I would like to burn a DVD with a iDVD 6 project I have archived onto an external hard drive (using the burner on the old