JNDI Connection refused error

HI
I am new to Java so please excuse my stupid questions and general lack of ignorance. I am trying to connect to an Oracle database using JNDI to retrieve a Datasource using a 'data-source.xml' file but I get a 'Connection refused' error I am at a total loss at what this can be, I just have a simple Java Class which gets an InitialContext then does a lookup from here but this is were it fails.
Could anybody give me any idea as to where to look. Could it be a problem with the JNDI server itself?. I'm using JDeveloper 10.1.3 and am just trying to run it in the embedded server.
Sorry for the general rambling nature of this post and please ask me to provide any extra information required.
Any help would be much appreciated as I'm going nowhere with this at the moment and very frustrated as have searched everywhere with no results.
Thanks
Andy

Hi
Thanks for the reply. I have checked my data-sources.xml and this all seems fine. I can even connect to the DB using DriverManager rather than the JNDI method. One thing that confuses me is which data-sources.xml it is using as there appear to be many. In JDeveloper you can specify the data sources in 'embeeded oc4j preferences' plus create your own under meta-inf. Which is being used when run in embedded, maybe thats obvious the first one?
thanks once again

Similar Messages

  • Connection Refused Error In Connection Client

    Hello Geeks
    I am runnig a RMI application in which runs on internet , i have setup RMI server on a host server and it is running there.
    Now, when i try to call client using ip address of the Host , i am getting Connection Refused error.
    Example :
    Registry registry=LocateRegistry.getRegistry("70.33.246.110");
    System.out.println("Above connectMe");
    String  serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);
    System.out.println("Below connectMe");
    boolean log=stub.login(username,password,1);
    System.out.println("Below login");Here "connectuser" is name i have given in server to which client lookups.I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.
    Please Help Me Out.....ASAp
    Edited by: Hardik.Mishra on Oct 3, 2009 5:46 PM

    Registry registry=LocateRegistry.getRegistry("70.33.246.110");There's no point to doing that ...
    System.out.println("Above connectMe");
    String serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);... if you're doing that. The getRegistry() doesn't do a network operation, it just constructs a stub to that Registry locally. Only by using it would you find out whether it meant anything: and you're not using it.
    I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.See item A.1 on the RMI Frequently Asked Questions list in the Javadoc.

  • Connection refused error showing in ironport s170 - WSA

    Connection refused error showing in ironport s170 -  WSA
    I am getting “Connection refused” error while I connect ironport s170 through console cable. also i am not able to connect it through HTTP and SSH. Complete output is given below.
    Last login: Thu Sep 11 07:16:59 on cuad0
    Copyright (c) 2001-2011, Cisco Systems, Inc.
    AsyncOS 7.5.2 for Web build 303
    Welcome to the Cisco IronPort S170 Web Security Appliance
    Traceback (most recent call last):
      File "/usr/build/iproot/ap/ipoe/ipoe/bootstrap.py", line 55, in <module>
      File "/data/lib/python2.6_7_i386_nothr/runpy.py", line 128, in _run_module_as_
    main
        "__main__", fname, loader, pkg_name)
      File "/data/lib/python2.6_7_i386_nothr/runpy.py", line 34, in _run_code
        exec code in run_globals
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/cli.py", line 426, in <modul
    e>
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/external_auth/__init__.py",
    line 212, in initialize
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/external_auth/__init__.py",
    line 118, in _setup_old_authentication
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/command_client.py", line 674
    , in quick_read_var
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/command_client.py", line 133
    , in connect
    Commandment.CommunicationError: <host name>: Network communication error
    : Connection refused
    AsyncOS <host name> (cuad0)
    login:

    Hi,
    You can upgrade to 7.7+ but if you require a root cause analysis I suggest you to open a TAC case.
    Regards,
    Luis Silva

  • RDS Server : Connection refused error

    Hi All,
        I am using flash builder 4.
       When i try to connect rds from DataServices - > Connect to LCDS it throws a connection refused error.
       I have uncommented the rds in web.xml and set the useappSecurity to false.
       Can any body please help me get rid of this issue.
       I am still using a trial version. Does this have any impact.
       Any help is highly appreciated !!!!!!!!!!!!!!!!!!!!!!!
    Thanks

    I have the same problem.

  • Hi, I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mail are not receiving. Mail queue showing Connection refused error. Please help me

    I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
    Thanks
    GIRI

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • Connection refused error while connecting to port.

    Hello,
    I have a service (Connect Direct) listening at port 1364 in server X.
    $ netstat -an | grep 1364
    11.22.33.44.1364 *.* 0 0 0 0 LISTEN
    (Assume 11.22.33.44 = Server X's IP.)
    Now, when another server (say Y) tries to use this service in server X, it is getting "Connection Refused" error. I tried telneting.
    From Y:
    telnet 11.22.33.44 23 is working
    telnet 11.22.33.44 1364 is giving the same Connection Refused error.
    telnet 11.22.33.44 1364
    Trying 11.22.33.44...
    telnet: Unable to connect to remote host: Connection refused
    /usr/sbin/ping 11.22.33.44
    11.22.33.44 is alive
    To complicate things, 11.22.33.44 is not the original IP of server X.
    ifconfig -a gives:
    hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
    inet 11.22.33.55 netmask ffffff00 broadcast 11.22.33.255
    hme0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 11.22.33.44 netmask ffffff00 broadcast 11.22.33.255
    (in additional to a couple of other IPs).
    What could be the problem?
    Help!!!!

    IPF firewalling could cause this, if you have it enabled.
    I havent used it, so I'm not entirely sure how to check.
    Of another firewall if its between the 2 machines. Are they on the same subnet?

  • Connection refused error running JSP on Jdev 10.1.3.0.3.3412 with MySL 5.0

    Hello,
    I'm using Jdeveloper 10.1.3.0.3.3412 on a Mac with a MySQL database. In Jdeveloper i can make a connection to the database and create adf business components
    I've made a JSP page with ADF on a single table. No errors when compiling. When I try to run the JSP Page using Embedded OC4J (on Mac OSX Tiger) I get the error:
    5/12/09 00:45:50 java.net.ConnectException: Connection refused
    05/12/09 00:45:50      at java.net.PlainSocketImpl.socketConnect(Native Method)
    05/12/09 00:45:50      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    05/12/09 00:45:50      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    05/12/09 00:45:50      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    05/12/09 00:45:50      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:428)
    05/12/09 00:45:50      at java.net.Socket.connect(Socket.java:507)
    05/12/09 00:45:50      at java.net.Socket.connect(Socket.java:457)
    05/12/09 00:45:50      at java.net.Socket.<init>(Socket.java:365)
    05/12/09 00:45:50      at java.net.Socket.<init>(Socket.java:207)
    05/12/09 00:45:50      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    05/12/09 00:45:50      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    05/12/09 00:45:50      at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1041)
    05/12/09 00:45:50      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:927)
    05/12/09 00:45:50      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:98)
    05/12/09 00:45:50      at java.lang.Thread.run(Thread.java:613)
    What am I doing wrong? The embedded OC4J library is added to the project. I've tried to use the javac compiler. It looks like the OC4J instance cannot make a connection to the db.
    Thanks,
    Martin

    Hello
    I've added the connection to the web.xml, but still get the same error.
    When I go to embedded OC4J preferences and change the JNDI-names of the datasources (global and current-workspace) to the same name (this was default), i get this error message:
    9-dec-2005 9:30:09 com.evermind.server.ApplicationStateRunning initNativeDataSource
    SEVERE: Error creating native data source. The location 'jdbc/MySQLConnectionCoreDS' is already in use.
    05/12/09 09:30:09 Application: current-workspace-app is in state FAILED
    05/12/09 09:30:09 Error instantiating application 'current-workspace-app' at file:/Users/martinsuijs/jdevhome/mywork/myWorldApp/myWorldApp-oc4j-app.xml: Error creating native data source. The location 'jdbc/MySQLConnectionCoreDS' is already in use.
    05/12/09 09:30:14 java.net.ConnectException: Connection refused
    grtz
    Martin

  • Connection refused error when trying to to lookup EJB in iAS

    Hi,
    I tried to write a client that uses an EJB in an 9.0.3 iAS running on windows NT SP6, and the JNDI lookup keeps failing with the following error:
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:345
         void Samplecom.mind.ejb.stubs.AccountComplexStubClient.main(java.lang.String[])
              AccountComplexStubClient.java:24
    I am using the following properties for the lookup:
    env.putContext.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "ias_admin");
    env.put(Context.SECURITY_CREDENTIALS, "ias_admin1");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/mindejb");
    Where:
    * 23791 is the port configured in the rmi.xml
    * mindejb is the name of the module
    * ias_admin1 is the correct password of ias_admin user
    Similar properties worked for a stand alone oc4j. What have I done wrong?
    Any help will be appreciated.
    Thanks,
    Avi

    Hi -
    I can resend what I think I would have said later on. No guarantees though ;-)
    What you need to do is to look at the RMI port range allocated in the opmn.xml file for the OC4J instance you are trying to connect to. OPMN basically looks at the first number, and determines if the port is free. If it is, it will use it. If it's not, it will go to the next sequential number and try that, etc.
    So if you have a defined port range of 3101-3200 and you only have one process, then it's a pretty safe bet (unless another rogue process has grabbed it) that the port you need will be the first one listed - 3101. If you specified two JVM processes to be started for the instance, then it's likely that 3101 and 3102 will be used.
    I think that's what I'd written in the truncated text.
    In our forthcoming 904 release, we're providing a port lookup service which will be able to be used by remote clients to discover the RMI ports used for OC4J instances. This will then avoid the client (and admins) needing to know and publish the specific ports used. Since OPMN itself knows which ports have been allocated, it can be queried by remote clients to find out where to connect. I've not seen the final spec, but I think this lookup will be transparent to the client in terms of code and will only require the addition of a prefix to the provider.url property used in jndi.propeties.
    It's likely to be of a format such as opmn:lookup:ormi://<known-ias-host-location>.
    Sorry about the truncation, it looks like that has now been rectified for the forums.
    -steve-

  • Web Services/BPEL - Connection Refused Error

    I am getting the following error while invoking this web service (in JDev 10.1.2) from Oracle BPEL console...
    faultSubcode: faultString: java.net.ConnectException: Connection refused: ..............
    Did anyone face the same error...pleaseeee help!!!

    where is your web service deployed?

  • Connection Refused Error while running AS ABAP Initial Load

    All,
    I've never connected SAP NW IdM to an actual SAP system before, and I feel like I'm missing some obvious step of configuration, but I can't figure out what.
    We are in the process of trying provision user accounts to our SAP ABAP systems. My first step was to try to read all of the existing accounts from the ABAP system:
    Our Basis team created me a Communication user with the proper authorizations (I ensured that the authorizations included in SAP_BC_SEC_IDM_COMMUNICATION)
    I created a repository using the SAP NewWeaver AS ABAP (Specific Application Server) Repository Template (No CUA, No SNC) using that user's credentials
    I then used the Job Wizard and used the job template AS ABAP - Initial Load, specifying my repository above.
    When I run the job I get the following:
    Initializing SAP connection with parameters:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server failed Connect_PM MSHOST=<IPADDRESS>, R3NAME=<SID>, GROUP=PUBLIC LOCATION CPIC (TCP/IP) on local host ERROR partner not reached (host <IPADDRESS>, service sapms<SID>) TIME Wed Jun 01 13:54:36 201 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8840 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1
    Error Init failed
    I'm running SAP NW IdM 7.1 SP5 on Windows Server 2003 with MSSQL 2005. The ABAP server is on a UNIX box with an Oracle 10.2 dB.
    Is there additional configuration that needs to take place on the ABAP side to accept the connection?
    I've tried to find documentation on this, but have been unsuccessful. If someone could point me to the correct documents, or at least point me in the right direction for troubleshooting, it would be greatly appreciated.

    Ankur,
    Looks like the endpoint URL of the webservice is not updated and still pointing to the localhost. Try changing it to http://<ip_addres_of_your_server>:7101..... and see if it works fine then.
    -Arun

  • RMI: connection refused error while invoking remote method from client mac.

    Hi All,
    when i run client program, which is calling remote object from other system, it shows the below error.
    please help me solving this issue, i also have policy file and installed security manager.
    Exception in Cliendjava.rmi.ConnectException: Connection refused to host: 10.66.
    112.137; nested exception is:
    java.net.ConnectException: Connection refused: connect
    thanks in advance.
    Regards,
    Anand.

    See item A.1 of the [RMI FAQ|http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html].

  • Connection refused Error while writing file to FTP server.

    Hi All,
    We got below error while writing file to FTP server. Any one have any idea on this?
    sABCS_1.0_8e88588d4fb54ebd2ac7ef66c8421d52.tmp/writeEncryptedFile.wsdl [ Put_ptt::Put(opaque) ] - Could not invoke operation 'Put' against the 'FTP Adapter' due to:
    ORABPEL-11429
    Error sending file to FTP Server.
    Unable to send file to server. [Caused by: Connection refused]
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.

    Hmmm ...
    Same issue as your post from three months' earlier?
    Re: Error while putting file in sftp location.

  • Xorg won't start - gives Connection Refused error

    I'm trying to use Xorg, I have it configured with Xorg -configure and all that, but when dtlogin tries to start it reports these errors in it's logfile:
    XIO: fatal IO errors 146 (Connection Refused) on X server ":0.0"^M
    (the ^M is part of the message as well)
    Any ideas?

    Hi Reasons,
    Your problem seems to appear atfer loading the libglx module:
    (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
    Maybe you're having this issue described in nouveau's wiki: http://nouveau.freedesktop.org/wiki/InstallNouveau
    9. Now start Xorg and run for cover. If you used the the nvidia blob before, the X server may possibly not start because NVIDIA overwrites the libglx.so which the X server provides with it's proprietary libglx.so. If that happens, install the X server package from your distribution again to resetore the original libglx.so and make a backup copy of it in case you install the blob again.

  • SOAP Exception, Connection refused error in jdeveloper 11g

    Hello,
    I am using jdeveloper 11g 11.1.2.3.0.
    I have been experiencing the following error everytime I try to run the applicaiton. I use webservices in my applicaiton and recently the webservices url were changed pointing now to dev instead of the lab environment. The code has been migrated to dev environment, I tested the webservices in my browser, they seem to be working fine and are pulling up the required data.
    ERROR:
    javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    Error     
    Message send failed: Connection refused: connect
    Error     
    Connection refused: connect
    I am not sure what is causing this. Any help would be appreciated.
    Thanks in advance,
    Sal

    Hello Frank,
    Thanks for your response. I checked the browser proxy settings in Jdeveloper, nothing is set there right now. Use HTTP Proxy Server is unchecked. What do I need to set this to?
    Thanks,
    Sal

  • Jdeveloper 11g TP4: Connection refused error for Embedded Oc4j

    Hi,
    I am getting following error whenever trying to deploy any application in embedded oc4j or whenever try to connect with embedded server on Resource palette.
    Error while getting remote MBeanServer for url: ormi://127.0.0.1:23891/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException
    I am using Jdeveloper 11g TP 4 on windows XP.
    I have checked other links too related to above error and have checked following:
    Proper host name entry in host file
    No spaces in Jdveleoper installed directory name
    Proxy setting in Jdeveloper: excluded localhost and ip address
    Will be very thankful if anyone can help me to resolve this issue.
    Thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Don't spend to much time on this. JDev 11g is production and there will be no OC4J 11g!
    --olaf                                                                                                                                                                                               

Maybe you are looking for

  • Two i4's same itunes account

    So i have two i4's on my itunes account.  one for me and one for my wife.  Is there anyway that we can keep our contacts separate?                                                                                                                        

  • Rules won't work on read mail

    I have various rules set up in Mail.app which usually work fine for new mail that I download. However if I have already read an email on my iPhone during the day (from my .me IMAP account), when I get home in the evening the email still downloads to

  • How far is the compatibility with PowerPoint and Keynote '09?

    Hello everyone I love making presentations and strangely while I'm an Apple fan the only thing I still didn't convert to is iWork Keynote is the best presentation tool I ever saw. The problem is with playing the presentations in college or anywhere e

  • Help on date insertion

    dose anyone know how to make a form element where the user clicks it and a calendar pops up for them to choose a date. Or is there a place where I can dowlnoad a form element like this? Im using php/mySQL.

  • Cannot select buttons in FileMaker after Mountain Lion Install

    Because the installer claimed I'd tinkered with my partitions (I haven't, unless accessing BootCamp from Parallels counts), I had to do a clean install of Mountain Lion. That in itself was a pain because I could not successfully create an installer o