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-

Similar Messages

  • Casting error when trying to retrieve an EJB home interface from a servlet

              I am trying to call a method on a session bean from a servlet. I am receiving a Class Cast exception when trying to use the narrow method. I have this code working from an external java client. Is there something specific I have to do?
              

    Hi
              You must check the following rules :
              1) In JAR Files ( of your EJB ) check if there are remote mehods that return
              any class that is already used in servlets
              This classes must be remove from the servlet package ( if you are using WAR
              files ).
              2) Please read the BEA WebLogic Enterprise Java Beans Manual about the class
              loader and related problemas such as ClassCastException and
              ClassNotFoundException.
              Good Luck !
              Steve Schaber <[email protected]> escribió en el mensaje de noticias
              39ee4996$[email protected]..
              >
              > I am trying to call a method on a session bean from a servlet. I am
              receiving a Class Cast exception when trying to use the narrow method. I
              have this code working from an external java client. Is there something
              specific I have to do?
              >
              

  • Is anyone else getting a "connection failed" error when trying to download iOS 5.1?

    I am trying to download iOS 5.1 and I get the same error on all of my devices: check network connection. Does anyone have a fix? I can access the Internet, download music, movies, and apps, and I am running iOS 5 but it will not let me download the update.

    There must be something with loation, a lot of complaints since the release, but I downloaded and installed on an iPad in 12 minutes and an iPhone 4 in 6 minutes this afternoon on the East Coast of the US.

  • An error when tried to invoke a page in iAS

    I deployed a JSP application to iAS (Oracel 8i) based on
    the instruction provided in this forum. Included all JAR files
    in jserv.properties. But when i tried to invoke a page via
    browser, received following error:
    Request URI:/Touch_Jsp/CheckInScreen.jsp
    Exception:
    java.lang.NoSuchMethodError: oracle.xml.parser.v2.SAXParser:
    method setContentHandler(Lorg/xml/sax/ContentHandler;)V not
    found
    Please advice what i missed.

    Samid,
    You can get more information about that issue in sap note 1594190.
    I think you have to open a message in XX-SER-SWFL-EXPORT to request that authorization.
    BR
    JDimas

  • Rsh connection refused error.

    Hi.
    rsh returns a connection refused message when trying to connect to a host running solaris 8. I am able to rsh from other client boxes to this host but this one refuses to work. In the /.rhosts I have only a + .
    Any ideas?
    Thanks.
    SN

    "connection refused" means that the remote tcp/ip host you are trying to connect to
    does not have a process listening on the rlogin server port.
    As you say that other machines can rlogin okay to this machine then I would look to make sure that
    the name you are using to rlogin to resolves to the same server machine between a client that works and this client that doesn't
    eg
    getent hosts rlogin_server
    run on both clients
    tim

  • App File Server connection error when trying to run a BI Publisher report..

    hello Gurus...
    As above - App File Server connection error when trying to run a BI Publisher report.. FOR THE FIRST TIME.
    What does our DBA need to do..?
    error message reads..
    Template code: SUARXASR
    Template app:  AR
    Language:      en
    Territory:     GB
    Output type:   EXCEL
    [5/10/10 10:59:27 AM] [UNEXPECTED] [46321:RT1487572]
    oracle.apps.fnd.cp.util.RemoteFileException: An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_*****.ac.uk. There may be a network configuration problem, or the TNS listener on node FNDFS_*****.ac.uk may not be running. Please contact your system administrator.
    at oracle.apps.fnd.cp.util.RemoteFile.readURL(RemoteFile.java:241)
    at oracle.apps.fnd.cp.util.RemoteFile.transferFile(RemoteFile.java:194)
    at oracle.apps.fnd.cp.util.RemoteFile.transfer(RemoteFile.java:130)
    at  oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:264)at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [5/10/10 10:59:27 AM] [46321:RT1487572] Completed post-processing actions for request 1487572.I'm sure we never had to set anything up in our Test instance!??!!??
    many thanks for looking..
    Steven

    nobody experienced this before..?

  • Sql Server Web Edition Reporting Services errors when trying to connect to Windows Azure SQL

    I am using a preconfigured image from the Azure VM Gallery to create a VM.
    --> Sql Server 2012 SP1 Web running under Windows Server 2008 R2
    After configuring Reporting Services I get the following error when trying to run a report that connects to my Azure SQL db.
    An error has occurred during report processing. (rsProcessingAborted)
    An attempt has been made to use a data extension 'SQLAZURE' that is either not registered for this report server or is not supported in this edition of Reporting Services. (rsDataExtensionNotFound)
    On the VM using SSMS I can connect to the Azure SQL db.  On the VM in Report Builder when I define a connection I get a similar error to the one above when I test that connection.  I am using Microsoft Azure SQL as the data source type. 
    Interestingly in Report Builder, if I proceed past the connection definition, I can see the tables from my Azure SQL db in the dataset definition page.
    One more note.  If I use a different image from the Gallery (Sql Server 2012 Standard SP1 on Windows Server 2012) my report builder connection works and the reports run fine.  I believe that the Azure documentation says that Sql Server Web edition
    is an acceptable choice for the SSRS on VM for reporting.
    Any thoughts or suggestions?
    Thanks -- Tom Reilly

    Hello,
    A VM with SQL Server 2008 R2 or 2012 supports all Reporting Services features, including all supported data sources, customization and extensibility, and scheduled report execution and delivery.
    Did you run the report in Report Manager,or preview the report in Report Builder? Which version of the Report Builder you installed in the Windows Azure VM? SQL Reporting does not support reports created from Report Builder 1.0 or 2.0. You can create reports
    using Report Builder 3.0 and then upload the reports.
    What's more, please also check the database source credential of the report.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work)

    I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work) since I use iCloud and I tunes match

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • I keep getting an unknown error when trying to connect to the store. I ran diagnostics and it says secure link to itunes store failed.

    I keep getting an unknown error when trying to connect to the store. I ran diagnostics and it says secure link to itunes store failed. I've tried all suggestions from apple and nothing will work.
    Please Help

    I received this email from Apple and this corrected the problem for me...  I only had to reset the iTunes cache
    1) Open iTunes
    2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
    3) In the Preferences menu, click the Advanced tab
    4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button.

  • Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.

  • Ive got data on my phone and its keep saying network error when trying to connect

    Im trying to connect to internet when im out and about ive got data on my phone but it keeps saying network error when trying to connect

    Hi there,
    You may want to take a look at some of the troubleshooting steps found in the article below.
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    -Griff W.

  • Getting Error when trying to connect to the Primavera database. PPM V7 SP3

    Hi Guys,
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [com/primavera/bre//com/primavera/bre/integration/intgconf.xml]: Invalid destruction signature; nested exception is org.springframework.beans.factory.support.BeanDefinitionValidationException: Couldn't find a destroy method named 'destroy' on bean with name 'mailService'
    I have looked into the intgserver.jar under P6IntegrationAPI/lib and looked the com.primavera.infr.srvcs.MailServiceImpl.java and can see that there is no destroy method whereas it is defined in the com.primavera.bre.intergration.intgconf.xml as below
    <!-- provides mail services -->
    <bean id="mailService" class="com.primavera.infr.srvcs.MailServiceImpl" init-method="init" scope="singleton" destroy-method="destroy"*+>
    <property name="adminManager"><ref bean="adminManager"/></property>
    <property name="threadPool"><ref bean="threadPool"/></property>
    <property name="settingsManager"><ref bean="settingsManager"/></property>
    </bean>
    I get the above error when trying to connect to the Primavera database. I use PPMV7 SP3 and I have installed the Integration API from EPPMV7 bundle.
    My demo's are working fine.
    Any help would be appreciated.
    Thanks,
    Kajal.

    Hi Marc,
    I am using a userid (is an admin)
    Using global login method and provided userid & password in integration settings.
    In the machine profiles, provided userid, password and domin.
    Not providing domain in weblogin.
    With all the above I am still getting error "Could not authenticate the specified user. %0" for HFM application
    And with the same settings I am not getting any error to connect to essbase cube.
    Any suggestions?
    Thanks
    Krishna

  • TS3899 getting an error, "unable to connect to server" when trying to access his yahoo email account. no different user name/wifi is off.

    getting an error, "unable to connect to server" when trying to access yahoo email account.  I did not change my password, but now everytime I try to access my email from my IPhone 4s, I get the error.

    Try the Yahoo mail app.

  • Errors when trying to connect CRM 7.0 to Enterprise Search

    Hi!
    I encountered 2 errors when trying to connect to a CRM 7.0 system as a backend system from Enterprise Search Cockpit.
    The first error is related to ESH_INT_GET_TREX_DESTINATION with a message of ESH_OM_OBJ_MODEL_REP 517:
    http://img39.imageshack.us/img39/9722/eserrors1.jpg
    The second error is related to "Errors during data cluster import from remote system":
    http://img97.imageshack.us/img97/7976/eserrors2.jpg
    I don't know if these two errors are related, but any help or suggestions will be greatly appreciated!!
    Thank you!
    Regards,
    Paul

    4.0 should be fine. My initial thoughts were on the script targetting a framework lesser than 3.5. Am bummed about the error cause in the line
    ClientContext clientContext =
    new ClientContext(client);
    it just creates an instance of the ClientContext class. It should have nothing to do with permissions cause it is not even trying to connect to the sharepoint site. So it looks like it can't find the assembly. Can you place the asembly
    under the Microsoft.Net\Framework folder of your machine. SSIS looks for custom assemblies in this folder on design time (Refer
    this) Worth a try hey!
    http://btsbee.wordpress.com/

  • Oracle Fatal error when trying to connect through sqlplus

    Hi,
    I am getting the below error when trying to connect to instance through sqlplus
    Database version is :10.2.0.3
    Operating system= Solaris Operating System (SPARC 64-bit)
    OS version=5.10
    [lscbd07p2*BMC]-\ORACLE>sqlplus
    SQL*Plus: Release 10.1.0.4.0 - Production on Fri Nov 9 07:48:24 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: /as sysdba
    ld.so.1: oracle: fatal: relocation error: file /u01/app/oracle/product/db/10.1.0.4/lib/libjox10.so: symbol kststop_: referenced symbol not found
    ERROR:
    ORA-12547: TNS:lost contact
    Enter user-name:
    Could you all please give me suggestions in order to solve this problem.
    Thanks
    Mannu

    Have you recently patched/upgraded? This sounds like there might have been a problem relinking the executables / libraries, and/or a permissions problem. For example you may be referencing a 32 bit library with your 64 bit client.
    I believe I recently read a similar case - check Metalink for this symptom.
    HTH
    Regards Nigel

Maybe you are looking for