Hi Rachana,
Thanks for looking at these issues.
Rachana Ananthakrishnan wrote:
Failed to acquire notification consumer home instance from
registry.
Caused by javax.naming.NameNotFoundException: Name services is not
bound in this Context
As this machine is unlikely to have a meaningful
$GLOBUS_LOCATION (which I understand is a solution, i.e.
-DGLOBUS_LOCATION=$GLOBUS_LOCATION, on machines where globus
is installed) is there an alternative for non-globus machines?
You will need some configuration files. For example, from
$GLOBUS_LOCATION/etc/globus_wsrf_core, client-server-config.wsdd and
*-jndi-config.xml.
We don't have a listing of all the configuration files required, but the
jndi-config file should solve the error you have here.
I have the following available in a lib/ directory local to the client
script:
1) client-config.wsdd
2) client-jndi-config.xml
3) client-server-config.wsdd
4) jndi-config.xml
5) server-config.wsdd
via CLASSPATH of :
.:lib/jaxrpc.jar:lib/saaj.jar:lib/axis.jar:lib/addressing-1.0.jar:lib/globus_delegation_service.jar:lib/gram-utils.jar:lib/gram-stubs.jar:lib/wsrf_core.jar:lib/cog-jglobus.jar:lib/jgss.jar:lib/wsrf_core_stubs.jar:lib/globus_wsrf_rft.jar:lib/globus_delegation_stubs.jar:lib/log4j-1.2.8.jar:lib/commons-logging-1.0.4.jar:lib/cog-axis.jar:lib/globus_wsrf_mds_aggregator_stubs.jar:lib/globus_wsrf_rft_stubs.jar:lib/commons-discovery.jar:lib/globus_wsrf_rft_stubs.jar:lib/activation.jar:lib/mail.jar:lib/wsdl4j.jar:lib/wsrf_mds_usefulrp_schema_stubs.jar:lib/jce-jdk13-125.jar:lib/puretls.jar:lib/cryptix32.jar:lib/cryptix-asn1.jar:lib/cog-axis.jar:lib/wss4j.jar:lib/globus_delegation_stubs.jar:lib/xmlsec.jar:lib/commons-cli-2.0.jar:lib/globus_wsrf_rendezvous_stubs.jar:lib/commons-digester.jar:lib/naming-java.jar:lib/naming-common.jar:lib/commons-collections-3.0.jar:lib/wsrf_tools.jar:lib/commons-beanutils.jar:lib/
yet it still fails as above.
Problem 2)
On a machine with Globus installed (and therefore with
$GLOBUS_LOCATION) the result for startListening() in
// returns a
org.globus.wsrf.impl.notification.ClientNotificationConsumerManager
notifConsumerManager =
NotificationConsumerManager.getInstance();
notifConsumerManager.startListening();
is :
java.lang.ClassCastException: org.apache.naming.ResourceRef
cannot be cast to
org.globus.wsrf.impl.notification.NotificationConsumerHome
at
org.globus.wsrf.NotificationConsumerManager.initializeConsumer
Home(NotificationConsumerManager.java:95)
at
org.globus.wsrf.impl.notification.ClientNotificationConsumerMa
nager.startListening(ClientNotificationConsumerManager.java:66)
at CallGRAM2.main(CallGRAM2.java:225)
I don't understand how I'm getting a
org.apache.naming.ResourceRef returned for casting!
Not sure what the issue is here. What version of Globus are you using ?
It's version 4.0.4 of globus from source, using the same classpath as above.
Rachana
Any explanations/solutions would be much appreciated.
gef