1 Reply Latest reply on Sep 13, 2011 9:56 AM by vdeminico

    Not able to call weblogic queue from jboss 5.1.0.GA server

      I am having problem connecting the weblogic queue from jboss 5.1.0.GA server.

      Here is the what I am getting in the server log.
      ------------------------------------

      2009-07-21 15:43:16,258 WARN [jacorb.orb] (http-127.0.0.1-8080-1) unable to build ORBInitializer from class true: Ignoring
      
      2009-07-21 15:43:16,367 ERROR [STDERR] (http-127.0.0.1-8080-1)
      
      
       -- In error.jsp ... about to print out the exception:
      
      2009-07-21 15:43:16,367 ERROR [STDERR] (http-127.0.0.1-8080-1) javax.naming.NamingException: Couldn't connect to any host [Root exception is org.omg.CORBA.INITIALIZE vmcid: 0x0 minor code: 0 completed: No]


      ------------------------------------------------------------

      I am using jdk1.5.0_09

      I have a webapp which includes wlclient.jar and wljmsclient.jar files in the lib directory.

      Could someone please help me in this.

      Thanks,
      Ram

        • 1. Re: Not able to call weblogic queue from jboss 5.1.0.GA server
          vdeminico

          Hi,

          I have the same problem. Looking up an EJB 2.1 (deployed on Weblogic AS) from JBoss AS 5.1.0.GA gives this message:

           

          unable to build ORBInitializer from class true: Ignoring

           

          The lookup code is:

           

           

          EJBHome ejbHome;
          
                  properties = new Properties();
                  properties.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
                  properties.put("java.naming.provider.url", providerUrl);
                  properties.put("weblogic.jndi.requestTimeout", Long.valueOf(jndiRequestTimeout));
                  if(user != null)
                  {
                      properties.put("java.naming.security.principal", user);
                      properties.put("java.naming.security.credentials", password != null ? ((Object) (password)) : "");
                  }
                  Context jndiContext;
                              try {
                                        jndiContext = new InitialContext(properties);
                                        yacasHome = (YacasHome)jndiContext.lookup(jndiName);
                              } catch (NamingException e) {
                                        ...
                              }
                  try {
                                        this.ejb = ejbHome.create();
                              } catch (Exception e) {
          ...
                              }
          

           

          and initialization fails.

          It seems that while initializing ORB it cannot find an ORBInitializer implementation.

           

          Thanks,

          Valerio.