commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dongsheng Song <dongsheng.s...@gmail.com>
Subject [dbcp] ClassNamingManager can not access a member of class InstanceKeyObjectFactory with modifiers ""
Date Thu, 02 Dec 2004 11:35:09 GMT
I use jnpserver pulish SharedPoolDataSource from jndi,  

ctx.rebind("/falcon",  SharedPoolDataSource);

but 

DataSource ds = (DataSource) ctx.lookup("falcon");

throws exception:

javax.naming.NamingException: Could not dereference object [Root
exception is java.lang.IllegalAccessException: Class
javax.naming.spi.NamingManager can not access a member of class
org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory with
modifiers ""]
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:633)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
	at javax.naming.InitialContext.lookup(InitialContext.java:347)
	at org.matrix.ds.RemoteDataSource.main(RemoteDataSource.java:80)
Caused by: java.lang.IllegalAccessException: Class
javax.naming.spi.NamingManager can not access a member of class
org.apache.commons.dbcp.datasources.InstanceKeyObjectFactory with
modifiers ""
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
	at java.lang.Class.newInstance0(Class.java:302)
	at java.lang.Class.newInstance(Class.java:261)
	at javax.naming.spi.NamingManager.getObjectFactoryFromReference(NamingManager.java:146)
	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:622)
	... 3 more
Exception in thread "main" 


Thanks fro some help

Dongsheng Song

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message