groovy
  1. groovy
  2. GROOVY-3321

"can't instantiate default ORB implementation" when connecting with a Glassfish Server

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 1.5.6
    • Fix Version/s: None
    • Component/s: bytecode
    • Labels:
      None
    • Environment:
      Linux 2.6.22-16-generic i686 GNU/Linux
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      I have tried to use AMX with groovy to configure a Glassfish Server Instance. I always get the following Exception:

      30-Jan-2009 15:07:36 com.sun.enterprise.util.ORBManager initORB
      SEVERE: UTIL6009:Unexcpected Exception in createORB.
      org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.sun.corba.ee.impl.orb.ORBImpl  vmcid: 0x0  minor code: 0  completed
      : No
      .
      .
      .
      Caused by: java.lang.VerifyError: (class: com/sun/corba/ee/impl/orb/ORBImpl, method: create_context_list signature: ()Lorg/omg/CORBA/ContextLi                                    st;) Incompatible argument to function
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:247)
              at org.omg.CORBA.ORB.create_impl(ORB.java:324)
      
      

      My Classpath exists of the needed Glassfish classes:

      glassfish-v2.1/lib/javaee.jar
      glassfish-v2.1/lib/install/applications/jmsra/imqjmsra.jar
      glassfish-v2.1/lib/appserv-admin.jar
      glassfish-v2.1/lib/appserv-ws.jar
      glassfish-v2.1/lib/appserv-deployment-client.jar
      glassfish-v2.1/lib/appserv-ext.jar
      glassfish-v2.1/lib/appserv-rt.jar
      

      When running the code from Eclipse it works, when trying to run this from a command line it fails. I checked the Classpath and Eclipse workspace settings and find no different. So I compiled the class and execute it with java instead of groovy. This works fine.

      GlassfishTest.groovy
      import com.sun.appserv.management.client.AppserverConnectionSource;
      import com.sun.appserv.management.helper.Connect;
      
      public class GlassfishTest {
      
          public static void main( String[] args ) throws Exception{
              Connect.connectNoTLS( "localhost", 
                                                     10086, 
                                                     "user", 
                                                     "geheim" ).getDomainRoot().getDomainConfig().createCustomResourceConfig( 
                           "jdniName",
                           "res",
                          "factory",
                           null );
      
          }
      
      }
      

      Thanks for any help.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcel Szalbach
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: