Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error connecting to IONA ORB within an EJB

843830May 15 2007
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.

Do I need to replace the SunAS ORB libraries with the IONA ORB that I need to use?
Has anyone seen this before?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2007
Added on May 15 2007
0 comments
192 views