1 Reply Latest reply on Jan 30, 2012 7:19 PM by pheeno

    Connecting a Stateless EJB to an external JacOrb Service

      Hi folks,

      I developed a stateless Local EJB that acts as a client to a legacy
      remote JacOrb v2.2 Corba service.
      I am able to correctly deploy my EAR file (WAR + EJB JAR) in JBoss 4.0.3 SP1 .
      Note also that my EJB jar embeds the jacorb.jar file that is also used on the
      remote Corba service side.

      The problem is that whatever the various classloader configurations
      I tried in JBoss, I always get the following error at runtime:

      14:39:41,065 INFO [STDOUT] [33][11/08 01:39:41 PM][0][common.debug][Debug.java#289][traceException] FNE: java.lang.VerifyError: (class: org/jacorb/orb/Delegate, method: getReference signature: (Lorg/jacorb/poa/POA;)Lorg/omg/CORBA/portable/ObjectImpl;) Incompatible object argument for function call
      at org.jacorb.orb.ORB._getObject(Unknown Source)
      at org.jacorb.orb.ORB.string_to_object(Unknown Source)

      Sample code:
      ...
      if (null == m_orb) {
      // Create and initialize the ORB
      PropertiesMgrInterface pptyMgr = PropertiesMgrProxy.getPropertiesMgr();
      String sOrbClass = pptyMgr.getStringProperty("org.omg.CORBA.ORBClass");
      String sOrbSingletonClass = pptyMgr.getStringProperty("org.omg.CORBA.ORBSingletonClass");

      Properties props = new Properties();
      props.put("org.omg.CORBA.ORBClass", sOrbClass);
      props.put("org.omg.CORBA.ORBSingletonClass", sOrbSingletonClass);


      String domainName[] = new String[2];
      domainName[0] = "-ORBdomain_name";
      domainName[1] = UIS_DOMAIN_CFG_NAME;
      m_orb = ORB.init(domainName , props);

      org.omg.CORBA.Object obj = m_orb.string_to_object("corbaloc:iiop:" +
      domain +
      "/NameService");

      etc ...

      Note that the same code works perfectly well in a standalone Java
      application that runs outside JBoss.

      Would somebody be kind enough to advise on how to setup JBoss
      for this EJB to ext JacOrb Service interop scenario?
      Many thanks for any help.
      Michel.

      Deployment environment on Windows XP SP2:
      - JDK 1.4.2_09
      - JBoss 4.0.3 SP1 (default server)