This script worked prior to upgrading to JetGroovy 1.5. I did however upgrade IntelliJ from 7.0.2 to 7.0.3 at the same – so that could be the problem.
This script is runs fine through Eclipse and their Groovy plugin.
The JMSConnectionFactory code looks like:
Properties jmsContextProperties = new Properties();
jmsContextProperties.setProperty("org.omg.CORBA.ORBInitialHost", ORB_HOST)
jmsContextProperties.setProperty("org.omg.CORBA.ORBInitialPort", ORB_PORT)
jmsContextProperties.setProperty("java.naming.factory.initial", NAMING_FACTORY_INIT)
jmsContextProperties.setProperty("java.naming.factory.url.pkgs", NAMING_FACTORY_URL_PKGS)
jmsContextProperties.setProperty("java.naming.factory.state", NAMING_FACTORY_STATE)
jmsContextProperties.setProperty("com.sun.corba.ee.transport.ORBCommunicationsRetryTimeout", ORB_COMM_RETRY_TIMEOUT)
ictx = new InitialContext(jmsContextProperties);
May 1, 2008 6:39:13 AM 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
at org.omg.CORBA.ORB.create_impl(ORB.java:326)
at org.omg.CORBA.ORB.init(ORB.java:365)
at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:546)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:180)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.seg.firefly.controller.JMSConnectionFactory.connect(JMSConnectionFactory.java:95)