[b]Hi,
I have gone through the instructions above. I changed the the files sun-acc.xml and domain.xml. But still I am not able to look up the ConnectionFactory. The following is the error which I am getting :[/b]
INFO: Getting initial context...
Jun 18, 2010 10:45:22 AM client.ServerConnection log
INFO: ORB_HOST = 10.111.211.1, ORB_PORT = 3700
Jun 18, 2010 10:45:26 AM client.ServerConnection log
INFO: Got initial context :javax.naming.InitialContext_at_d4c222
Jun 18, 2010 10:45:29 AM com.sun.enterprise.naming.SerialContext lookup
SEVERE: NAM0004: Exception during name lookup : {0}
com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:98)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:414)
at javax.naming.InitialContext.lookup(Unknown Source)
at client.ServerConnection.init(ServerConnection.java:336)
Jun 18, 2010 10:45:29 AM client.ServerConnection log
INFO: Client.init: NamingException caught on init
javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI]
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:438)
at javax.naming.InitialContext.lookup(Unknown Source)
at client.ServerConnection.init(ServerConnection.java:336)
Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:98)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:414)
... 7 more
Jun 18, 2010 10:45:29 AM client.ServerConnection log
SEVERE: ServerConnection exception: javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI]
client.TroubleServerException: javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI]
at client.ServerConnection.init(ServerConnection.java:349)
Caused by: javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI]
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:438)
at javax.naming.InitialContext.lookup(Unknown Source)
at client.ServerConnection.init(ServerConnection.java:336)
... 5 more
Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:98)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:414)
... 7 more
Jun 18, 2010 10:45:29 AM client.ServerConnection log
INFO: ServerConnection reconnect
[b]I have added the following jars in the classpath :
appserv-admin.jar, appserv-deployment-client.jar, appserv-ext.jar, appserv-rt.jar, imqjmsra.jar, javaee.jar
My code is as given below:
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
properties.setProperty("org.omg.CORBA.ORBInitialHost", "10.111.211.1");
properties.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
Context ctx = new InitialContext(properties);[/b]
Could you please help me to find out what went wrong?
[Message sent by forum member 'manukm07']
http://forums.java.net/jive/thread.jspa?messageID=474774