geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <>
Subject Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory
Date Tue, 09 Sep 2008 09:15:19 GMT

I am still trying to get the resource adapter from (Using
WebSphere MQ with WebSphere Application Server Community Edition) to run.

The RA uses com.sun.jndi.fscontext.RefFSContextFactory to get the MQ Factory
from JNDI.

But it seems fscontext.jar can neither be loaded from the .rar nor from the
Geronimo server/lib.

javax.naming.NoInitialContextException: Cannot instantiate class:
com.sun.jndi.fscontext.RefFSContextFactory [Root exception is

I try the solution from
and used a ContextClassLoader.

ctx = new InitialDirContext(environment);

This worked, but then I get 
java.lang.ClassCastException: javax.naming.Reference incompatible with

It seems that there is still some problems with the loaded classes (JNDI
cannot access all MQ classes ?)

Is there a way to load RefFSContextFactory by the standard classloader?


View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message