Corba,ORB, client invocation

when i want to invoke the servant method checkClient(string input) (definded in the idl) i get this error:
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
at com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
at haco._FooStub.checkClient(_FooStub.java:32)
at haco.client.main(client.java:79)
78: FooOperations servant =FooHelpers.narrow(.....);
79: String fdw = servant.checkClient("Miller");
who knows what�s wrong?
Thanks for letting me know!
jjk

Hi there,
Try editing your /etc/hosts file
from (default):
###.0.0.1 banana123 localhost.localdomain localhost
to
###.0.0.1 localhost localhost.localdomain
###.##.##.### banana123
where banana123 is the system you are working on.
###.0.0.1 is the local address, and ###.##.##.### is the address of banana123
hope this helps
p.s. what happened to the IDL forum??

Similar Messages

  • Hot to do Failover/Load balance on CORBA C++ Client

    I have a corba C++ client using Bea/Tuxedo 8.0 ORB talking to stateless session beans
    on Weblogic Server 6.1/sp2.
    Question:
    If the wls server(s) is a cluster, how do I use this feature in my C++ client to
    provide the failover/load balance?
    Will the rmic generate idl which is cluster-aware if the EJBs are clustered?
    Any help is appreciated.
    Thanks,
    steve

    "steve" <[email protected]> writes:
    I have a corba C++ client using Bea/Tuxedo 8.0 ORB talking to stateless session beans
    on Weblogic Server 6.1/sp2.
    Question:
    If the wls server(s) is a cluster, how do I use this feature in my C++ client to
    provide the failover/load balance?Currently, although the information is available to the client it does
    not use it. This will probably change in a future release of Tuxedo,
    but you should talk to your sales rep for details.
    For now you can get some degree of failover by catching the
    COMM_FAILURE exception and re-looking up CosNaming and your bean.
    Will the rmic generate idl which is cluster-aware if the EJBs are clustered?The information is provided dynamically at runtime, so its independent
    of the IDL.
    andy

  • How to invoke A CORBA-Java Client Application, from Oracle???

    Hi,
    I have a CORBA-Java Client Application, which takes the input parameters from a Oracle table and calls the CORBA Server, passes these parameters to the C++ Server Application and gets the results back thorugh CORBA.
    My problem is, this java application needs to be invoked, when ever there is a new record in the Oracle table.
    I am not sure if i can use Java Stored Procedures in Oracle in this case, because my app is in Sun JVM and i am using BEA WebLogic Enterprise 5.1 for the CORBA.
    Is there any other way by which i can invoke this app, when a new record is updated in the Oracle table?
    Currently, i have just put a TIMER in my java App, to check the oracle table in every few seconds, to see if there is a new reocrd. If it finds a new record it invokes the corresponding class(corba class), or else just keep sending a messsage that no new record is available.
    The problems i am facing in this method are as follows;
    1. Unnecessarily, the application has to keep on running if there is no request coming frequently.
    2. When there is a new record found, the Corba Class is called and the whole process (till it gets the result back from the server) takes about 20 - 30 secs. But within this period, if there is another record coming into Oracle table, my timer class doesnt invoke another corba class....(though i am using multithreading by using the RemidTask method in the timer.schedule.
    (timer.schedule(new RemindTask(),10,5*1000);)
    3. Also, if during the first call, there is some error, then the whole process exits, instead of another process running parallely (when a second new record is found).
    So how does this timer class act like a multithreading process?
    Well, i hope i am not confusing....Please let me know if anyone wants bit more elaboration on this.
    It would be really helpful if someone can suggest some answer to my problem.
    Thanks in advance.

    Thank you very much Keith.
    Though i am really getting a hope of solving this problem, from you answer, i am actually not 100% sure if i understood your reply properly.
    First of all, about
    1. "use the update stored procedure to place the updated record (or unique index) onto an Oracle Application Queue."
    -- Why do i need to put the record in the AQ. (Frankly speaking, at this moment i dont have much idea about AQ, probably i can learn more about it from oracle technet site? Or would u suggest anything else?)
    Then,
    2."Your app then waits on this queue and for each new message, consumes it, gets the data required from the AQ load (e.g the index and or record), and fires off the CORBA class"
    -- How does my application stay in the queue? and gets the data from the queue?
    Of course, as far as i understand, i am going through the same principle...keeping on running a timer class, which keeps on checking the table for a new record, and when it finds, it calls the CORBA class.
    Of course, i feel there should be a difference in running the timer continuosly and staying in queue. However i am totally unaware, how can i make my java app to wait in the queue and waits for a new record?
    Can you please elaborate your answer a bit more, because i dont know about the AQ, that you have mentioned.
    Thank you very much in advance for your time. But please know that it will be of great help to me and hence will be higly appreciated.
    Regards,
    Subhasree.

  • 20214 Unable to start Corba Orb

    While attempting to start OAS 4.0.7 for use with Reports 6.0 on
    NT 4.0 SP4 I get the error message OAS-20214 unable to start
    Corba Orb.
    I have successfully installed this on other boxes. OAS 4.0.7 is
    supposed to only run with SP3 of NT 4.0 but that is not Y2K
    compliant. Any ideas.
    null

    Michael Foster (guest) wrote:
    : While attempting to start OAS 4.0.7 for use with Reports 6.0 on
    : NT 4.0 SP4 I get the error message OAS-20214 unable to start
    : Corba Orb.
    : I have successfully installed this on other boxes. OAS 4.0.7
    is
    : supposed to only run with SP3 of NT 4.0 but that is not Y2K
    : compliant. Any ideas.
    Hi Michael,
    This forum is really only for Beta 6i issues. You should contact
    Oracle Support for any issues with Reports 6.0.
    Regards
    The Oracle Reports Team
    null

  • Corba C++ client: what's needed?

    IHAC that has a problem related to the client ORB:
    they developed a C++ corba client, running on WinNT, and C++ corba servers
    running on Solaris.
    They tried to install the WLE client only, on the NT machine, but they say
    it doesn't reach the server unless they install also the whole WLE server on
    NT.
    Can anyone suggest a solution?
    Thanks in advance,
    Luca

    Gordon,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Websphere standalone client invocation

    Hello,
    We are in the process of migrating an EJB application from weblogic(6.1) to webshpere (5.0). We have created the EJB jar for websphere and it is successfully deployed. Since we can not test it connecting from the front end (iPlanet) due to unavailability, we have stand alone client that calls one of the EJB methods. It gets compiled successfully and in runtime we get the following exception.
    java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/GlobalORBExists
         at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
         at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:260)
         at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:166)
         at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
         at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
         at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:137)
         at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
         at javax.naming.InitialContext.init(InitialContext.java:231)
         at javax.naming.InitialContext.<init>(InitialContext.java:207)
         at TestHello.main(TestHello.java:39)
    Exception in thread "main"
    Client Program:
    import hello.HelloWorldSL;
    import hello.HelloWorldSLHome;
    import java.rmi.RemoteException;
    import java.util.Hashtable;
    import javax.ejb.CreateException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    * Created on Aug 11, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    * @author tprasad
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class TestHello {
         public TestHello() {
              super();
              // TODO Auto-generated constructor stub
         public static void main(String[] args) {
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
            env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
            try {
                   Context initialContext = new InitialContext(env);
                   HelloWorldSLHome home = (HelloWorldSLHome) initialContext.lookup("ejb/Hello");          
                   HelloWorldSL rem = home.create();
                   String str = rem.sayHello();
                   System.out.println("From EJB ::: "+ str);
            } catch (RemoteException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
            } catch (CreateException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();          
            } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Though this may not be a right forum, we desparately need advice.
    Thanks in advance...

    I realize this is a very old topic, but the I have followed the same instructions and the errors still are occurring. The jar mentioned as the solution does not have the class inside it.
    I am doing something very similar. Using a POJO to call an EJB/DataSource, but it is not having any luck finding the classes is nneeds. I am running the code on WSAD 5.1.1 and the server is WAS 5.0.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory.  Root exception is
    java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
         at java.net.URLClassLoader.findClass(URLClassLoader.java:374)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:562)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:438)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:256)
         at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:59)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:661)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:256)
         at javax.naming.InitialContext.init(InitialContext.java:232)
         at javax.naming.InitialContext.<init>(InitialContext.java:208)
         at EJBClient.sentComment(EJBClient.java:59)
         at EJBClient.main(EJBClient.java:95)
    This is my client code and it does not seem to be so difficult.
         Hashtable env = new Hashtable();
         env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.Websphere.naming.WsnInitialContextFactory");
         try{
          InitialContext ctx = new InitialContext(env);
          DataSource ds = (DataSource) ctx.lookup("java:comp/env/OracleDB");
          Connection conn = ds.getConnection("user", "pwd");
          Statement stmt = conn.createStatement();
          String sql = "SELECT tskid, createOper FROM tskreq WHERE createOper='pitest' ORDER BY tskid";
          ResultSet rs = stmt.executeQuery(sql);
          if(rs != null){
               while(rs.next()){
                 String tskID = (String)rs.getString(1);
                 String createOper = (String) rs.getString(2);
                 System.out.println("TaskID: [" +tskID+ "] createOper: ["+createOper+"]");     
               }//end while
          }//end if
         }catch (NamingException ne){
              logger.error("Naming Exception", ne);
         }catch(SQLException sqle){
              logger.error("SQL Exception", sqle);
         }

  • How to associate an XA Resource Manager with a Corba Native Client?

    Hello,
    how is a Corba Native (C++) Client associated with an XA Resource Manager? I can't find it in the documentation.
    I believe I understand how it works in a Tuxedo native client: buildclient needs "-r <rmname>" and tpinit() needs to include the group name (ubbconfig group with TMS_ORA and OPENINFO).
    buildobjclient does not seem have anything like the "-r" option, and the bootstrap object does not seem to have any way to specify a group.
    We have a Corba client that updates the database, enqueues into /Q and invokes a transactional Corba service. All three need to be in the same transaction. I am stuck on how to get an XA DB connection.
    Thanks...
    Roger
    PS: The proper solution is to make the client's functionality a service and have the client invoke the service. But that causes other complications.

    I got part of the answer from a different thread.
    Native clients do not need a TMS_* to start a transaction. On commit/rollback they consult the Global Transaction Table (GTT) to find a TMS_* that is involved in the transaction and delegate the commit/rollback to one of those TMS_*.
    For remote clients (using IIOP) the ISH handles the request from the remote client and deals with transaction management.
    Roger

  • HTTPS and client invocation of web service - how to?

    Got some web services that are document and document wrapped. Have generated the
    client stubs using <clientgen> ANT task from BEA. Time to run a test against
    the web services, but they have to run on HTTPS. When I invoked my web service
    using the HTTPS://.... URL, I got this:
    [java] 5) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    https://localhost:7002/QuoteService?WSDL. Please check the URL and make sure
    th
    at it is a valid XML file [javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIF
    ICATE - A corrupt or unuseable certificate was received.]
    Cool. So how do I assign a default CERT to the https client? This is on a developer
    instance of WL 8.1. I don't want to run the test on HTTP b/c I need to see how
    it works with HTTPS (need to simulate a bona fide downstream user). Any help
    is greatly appreciated.
    Thanks
    -Jake

    Hi Jacob,
    Take a look at the simple, one way SSL example [1] however it sounds
    like you want to have the client provide a cert back to the server,
    implying two-way SSL. You can find a two-way example here [2].
    Regards,
    Bruce
    [1]
    http://webservice.bea.com/simpleSSL.zip
    [2]
    http://webservice.bea.com/SSL2way.zip
    Jacob Anderson wrote:
    >
    Got some web services that are document and document wrapped. Have generated the
    client stubs using <clientgen> ANT task from BEA. Time to run a test against
    the web services, but they have to run on HTTPS. When I invoked my web service
    using the HTTPS://.... URL, I got this:
    [java] 5) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    https://localhost:7002/QuoteService?WSDL. Please check the URL and make sure
    th
    at it is a valid XML file [javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIF
    ICATE - A corrupt or unuseable certificate was received.]
    Cool. So how do I assign a default CERT to the https client? This is on a developer
    instance of WL 8.1. I don't want to run the test on HTTP b/c I need to see how
    it works with HTTPS (need to simulate a bona fide downstream user). Any help
    is greatly appreciated.
    Thanks
    -Jake

  • Dynamic client invocation (6.1) question

    Hi
    I am invoking an external webservice using a WL6.1 based client.
    Since I have the WSDL, I use WebSeviceProxy.getServiceAt(wsdl)
    to get the proxy based on the given wsdl URL. The external
    webservice has the following signature :
    void notification(Measurement[])
    Measurement { long timestamp; double value }
    In my client code, I have my own test.telemetry.Measurement
    class. In the WSDL, the Measurement datastructure's QName is
    http://www.6d.com/Measurement.
    I am thinking that the WL webservices machinery will be able
    to serialize my test.telemetry.Measurement object into the WSDL
    specificed format for the Measurement datastructure. But that
    doesn't seem to be happening - the QName in the serialization
    is java:test.telemetry.Measurement; and hence the external
    endpoint doesn't recogonize it.
    I guess my above assumption is wrong ? (WHY ?)
    Any workarounds ? Note that I have to use the dynamic client
    mode, not the static mode.
    thanx
    -john

    Hi John,
    I'm don't think that you will be able to get WLS 6.1's Web Services Platform (i.e.
    SOAP processor, WSDL processor, etc), to use your Measurement Java Bean in its
    serialization/deserialization, unless the namespace prefix for it (the Measurement
    complex type in the WSDL) is "java:" in the WSDL :-)
    WLS 6.1 assumes that namespace URIs that start with "java:" are Java package names,
    and that the corresponding elements are Java classes (i.e. <xsd:element name="Measurement">)
    in that Java package. You might be able to get WLS 6.1 to use your Measurement
    Java Bean using public methods on the SoapEncodingCodec class, but not if you
    use the WSDL. It will still be a dynamic client. It just won't start with using
    the WSDL to define stuff for you.
    Regards,
    Mike Wooten
    "john" <[email protected]> wrote:
    >
    Hi
    I am invoking an external webservice using a WL6.1 based client.
    Since I have the WSDL, I use WebSeviceProxy.getServiceAt(wsdl)
    to get the proxy based on the given wsdl URL. The external
    webservice has the following signature :
    void notification(Measurement[])
    Measurement { long timestamp; double value }
    In my client code, I have my own test.telemetry.Measurement
    class. In the WSDL, the Measurement datastructure's QName is
    http://www.6d.com/Measurement.
    I am thinking that the WL webservices machinery will be able
    to serialize my test.telemetry.Measurement object into the WSDL
    specificed format for the Measurement datastructure. But that
    doesn't seem to be happening - the QName in the serialization
    is java:test.telemetry.Measurement; and hence the external
    endpoint doesn't recogonize it.
    I guess my above assumption is wrong ? (WHY ?)
    Any workarounds ? Note that I have to use the dynamic client
    mode, not the static mode.
    thanx
    -john

  • How to call a CORBA Object in a 3rd Party ORB from a EJB

    Hello
    I found a few articles on the web how to call EJBs for example from C++.
    However, I want to do the inverse. I want to resolve an Object (implemented in C++, using OmniORB) via COS-Naming and invoke it from a EJB. I can write a simple Java Client which does this without a problem. But as soon as I try to do the same in EJB I get the following:
    [#|2004-11-09T10:48:16.848+0100|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=12;|"IOP00710209: (INTERNAL) Unable to create listener thread on the specific port"
    org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3142)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3160)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryAcceptorImpl.initialize(SocketFactoryAcceptorImpl.java:60)
    at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:190)
    at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:207)
    at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:104)
    I think there is somehow a conflict because the SUN Appserver also uses CORBA. My Code looks like this:
    String[] a = null;
    Properties props = new Properties();
    final String CORBA_HOST = "arcos";
    final String ORB_INITIAL_PORT = "2809";
    props.put("org.omg.CORBA.ORBInitialPort", ORB_INITIAL_PORT);
    props.put("org.omg.CORBA.ORBInitialHost", CORBA_HOST);
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(a, props);
    So I thought this might be because there is already a ORB initialised. So I replaced the last line with
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
    Which should give me an ORB instance. However I get the following exception:
    [#|2004-11-09T11:51:59.206+0100|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.err|_ThreadID=15;|
    org.omg.CORBA.NO_IMPLEMENT: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.genericNoImpl(ORBUtilSystemException.java:7085)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.genericNoImpl(ORBUtilSystemException.java:7107)
    at com.sun.corba.ee.impl.orb.ORBSingleton.resolve_initial_references(ORBSingleton.java:311)
    at com.ascom.util.CorbaNaming.resolve(CorbaNaming.java:26)
    at com.ascom.fxm.FileManager.<init>(FileManager.java:46)
    at com.ascom.srv.file.web.FileImporterImpl.importFile(FileImporterImpl.java:146)
    Any ideas? Thank you very much in advance.
    Oliver Jaun

    Perhaps you could take a look at the following document and see if it meets your needs:
    http://java.sun.com/j2se/1.4.2/docs/guide/rmi-iiop/interop.html

  • Stand alone client for remote EJB corba error

    Regarding problem below, I've checked System env variables
    that weblogic server is using for CORBA classes:
    javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
    org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
    org.omg.CORBA.ORBClass weblogic.corba.orb.ORB
    javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
    But these are server classes and not found in wlclient.jar and wljmsclient.jar. What classes should be used for client? What needs to be set in order to get successful remote RMI/EJB call to weblogic server?
    Original post:
    I have a stand alone spring client for simple stateless session EJB deployed on weblogic 9.2. I'm using spring (jdk 1.5) to call this remote EJB and the only way I can succeed is to have full weblogic.jar in my bootstrap classpath. Otherwise I get corba error:
    CORBA BAD_PARAM 0 No; nested exception is:
    org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
    Interestingly, within same client I have JMS call to weblogic JMS and that fails if weblogic.jar is in boot classpath. Getting rid of weblogic.jar from boot classpath works if I have wlclient.jar and wljmsclient.jar in regular classpath (as per weblogic docs). I would think that for stand alone client all I would need is to weblogic client jars, why should I need to have full weblogic.jar?
    I can't get those work together with same classpath. I wonder if anybody has some pointers and/or advice. I was looking to set system parameters for corba for weblogic client that maybe could help:
    org.omg.CORBA.ORBClass
    org.omg.CORBA.ORBSingletonClass
    javax.rmi.CORBA.UtilClass
    javax.rmi.CORBA.StubClass
    javax.rmi.CORBA.PortableRemoteObjectClass
    But I can't find definitive answer.
    Regards,
    -pp
    Edited by mr.papini at 06/28/2007 9:05 AM

    I'm stuck exactly with the same issue while trying to port my application from weblogic to jboss.
    I tried to specify different ORB implementations (JacORB, OpenORB) for jvm option org.omg.CORBA.ORBClass, but JBoss couldn't get them instantiated. Native Sun implementation which is used in JBoss by default and can be instantiated, apparently is not fully compatible with weblogic security module.
    So did you manage to find out the solution?
    Edited by DigitalDude at 04/09/2008 11:47 PM

  • Force CORBA server and client to localhost

    Hi,
    i have to run an omg corba server and client via orbd on a single machine with win xp. The machine is connected to the network, but this is not relevant for the corba communication.
    I can now force the orbd to start at localhost. After starting server and client everything works well until disconnecting machine from network, because client and server are started at ip of network card.
    How can i force the client and server to use a localhost port for corba communication (client and server)?
    Hope anyone has an idea...
    br
    ralf
    P.S.: If I start the applications after disconnecting network everthing works.

    Resolved the problem myself.
    The correct property is a java system property:
    com.sun.CORBA.ORBServerHost=localhost
    If you set this property in your application before instanciating an ORB, the orb will be forced to run on the set value (in this case localhost). If you do not set this property the ORB will be started at the IP of your network card if it is active (connected to the network)...

  • OC4J10.1.3.1 and OC4J10.1.3 as Corba Client to Visibroker Issue

    Hi,
    I try to use OC4J as a Corba client to connect to Visibroker.
    It works on 0C4J10.1.3.1 but does not work with 0C4J10.1.3 and throws following exception :
    java.lang.RuntimeException: com.inprise.vbroker.PortableInterceptor.ORBInitInfoImplExt
    07/05/03 23:55:26 at oracle.oc4j.corba.iiop.server.IIOPInitializer.post_init(IIOPInitializer.java:89)
    07/05/03 23:55:26 at com.inprise.vbroker.orb.ORB.initialize(ORB.java:1160)
    07/05/03 23:55:26 at com.inprise.vbroker.orb.ORB.set_parameters(ORB.java:1332)
    07/05/03 23:55:26 at org.omg.CORBA.ORB.init(ORB.java:337)
    07/05/03 23:55:26 java.lang.NullPointerException
    07/05/03 23:55:26 at com.orangecaraibe.commonapi.webservices.cmsapi.CMSAPIEndPoint.executeCMSCommand(Unknown Source)
    07/05/03 23:55:26 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/05/03 23:55:26 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/05/03 23:55:26 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/05/03 23:55:26 at java.lang.reflect.Method.invoke(Method.java:585)
    07/05/03 23:55:26 at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
    07/05/03 23:55:26 at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    07/05/03 23:55:26 at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    07/05/03 23:55:26 at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    07/05/03 23:55:26 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    07/05/03 23:55:26 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    07/05/03 23:55:26 at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
    07/05/03 23:55:26 at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    07/05/03 23:55:26 at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    07/05/03 23:55:26 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    07/05/03 23:55:26 at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    07/05/03 23:55:26 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/05/03 23:55:26 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
    07/05/03 23:55:26 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    07/05/03 23:55:26 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    07/05/03 23:55:26 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    07/05/03 23:55:26 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
    07/05/03 23:55:26 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
    07/05/03 23:55:26 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    07/05/03 23:55:26 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/05/03 23:55:26 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
    07/05/03 23:55:26 at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
    07/05/03 23:55:26 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
    07/05/03 23:55:26 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    07/05/03 23:55:26 at java.lang.Thread.run(Thread.java:595)
    What are the differences between OC4J10.1.3.1 and OC4J10.1.3?
    Please advise
    JO

    Unable to establish connection. Error message: Exception occurred testing connection.
    Exception: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor The Connection descriptor used by the client was: //10.182.x.x:1521/orclThis error is coming from the database listener -- it looks to me like you need to alter the network configuration at the database level to support access via a SID instead of a Service Name.

  • Excepion when initializing EJB as a CORBA client

    Hi,
    I am trying to connect to a remote CORBA server(C++) through my ejb running on PE8.2, but when I init the IONA ORB in the ejb, I get the follwing exception:
    Caused by: org.omg.CORBA.INITIALIZE: Exception reading properties, probably this is an applet but no applet parameter supplied to ORB.init vmcid: 0x0 minor code: 0 completed: No
         at IE.Iona.OrbixWeb.CORBA.ORB._set_parameters(ORB.java:1573)
         at IE.Iona.OrbixWeb.CORBA.ORB.<init>(ORB.java:81)
         at IE.Iona.OrbixWeb.CORBA.ORB._create_orb(ORB.java:1611)
         at IE.Iona.OrbixWeb.CORBA.ORB._initialise(ORB.java:1545)
         at IE.Iona.OrbixWeb.CORBA.ORB.init(ORB.java:1505)
    Here is the ORB invocation from my ejb:
    public void initOrb(String p_hostName, String p_serverName) {
    String[] args = {p_hostName, p_serverName};          
    Properties p = new Properties();
              p.setProperty("org.omg.CORBA.ORBClass","IE.Iona.OrbixWeb.CORBA.ORB");
              p.setProperty("org.omg.CORBA.ORBSingletonClass", "IE.Iona.OrbixWeb.CORBA.singletonORB");
              // Initialize the ORB
              ORB orb = (ORB)ORB.init(args,p);
         }All the required libs are included in the appserver lib.
    I have tried this with JBOSS and it works fine.
    Has anyone seen this before?

    This has been resolved by setting the PropertyPermission to read,write
    in the application server server.policy
    Hope this helps someone

  • CORBA Client- Server and Server- Client?

    Is it possible to do Server-> client invocation through CORBA?
    Would I have to create some type of callbakc object to the client?
    Need direction, i was thrown into corba and have no idea about the limitations.

    if anyone is interested in corba callbacks this has something about it
    http://sys-con.com/story/?storyid=36132&DE=1

Maybe you are looking for