javax.naming.NoPermissionException; remaining name '"...

Hi!

I use fscontext-1_2-beta3 to be my file system service provider. It worked fine on windows system, but failed after migrate to AIX. The following error message is what I got:

javax.naming.NoPermissionException; remaining name '"/usr/...../jndi/jdbc"'

[java]at com.sun.jndi.fscontext.FSContext.checkCanWrite(FSContext.java:939)

[java]at com.sun.jndi.fscontext.RefFSContext.setBindings(RefFSContext.java:594)

[java]at com.sun.jndi.fscontext.RefFSContext.bindObject(RefFSContext.java:338)

....

..

.

I set Context.PROVIDER_URL to file:///usr/...../jndi and try to create datasource jndi name.

The Java execution home is under /Websphere/Application/java, but it's a standalone java application. I modify java.policy file under /Websphere/Application/java/jre/lib/security and grant java.io.file read and write permission to folder /usr/...../jndi and all files under it.

I have no idea what's mistake I make. Can anyone help me? Thanks a lot

[1019 byte] By [JesseKoa] at [2007-11-27 9:23:41]
# 1

ok, I have solved the issue. I change the jndi reference name from jdbc/dbsrc to jdbc_dbsrc. Replace "/" to "_", so the separator becomes different from context provider url "file:///usr/../jndi". The problem is solved, but I still don't know why there is no problems on Windows but it's not working on AIX.

JesseKoa at 2007-7-12 22:19:04 > top of Java-index,Core,Core APIs...