Feb 05

This was my trace. Never thought i was so dumb. I was breaking my head on this for about two hours.

javax.naming.NameNotFoundException; remaining name 'c:\temp'
at com.sun.jndi.fscontext.FSContext.checkExists

(FSContext.java:860)
at com.sun.jndi.fscontext.FSContext.

checkIsDirectory(FSContext.java:893)
at com.sun.jndi.fscontext.FSContext.(FSContext.java:148)
at com.sun.jndi.fscontext.FSContext.(FSContext.java:123)
at com.sun.jndi.fscontext.RefFSContext.(RefFSContext.java:136)
at com.sun.jndi.fscontext.RefFSContextFactory.

createContext(RefFSContextFactory.java:32)
at com.sun.jndi.fscontext.RefFSContextFactory.

createContextAux(RefFSContextFactory.java:37)
at com.sun.jndi.fscontext.FSContextFactory.

getInitialContext(FSContextFactory.java:65)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at com.ml.cortex.eds.dao.ConnectionManager.

createDataSources(ConnectionManager.java:34)

The solution is simple. Before using a url in the FSContext create the directory. In my case, c:\temp. Create the directory “temp” inside c:\ drive.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • description
  • Furl
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • TwitThis

Tags: , , , ,