Hi! I use tomcat 5.0.30 with java 1.4 for my app (constrained to them,
unfortunately). My os is Gnu/Linux Ubuntu 6.10.

I use hibernate plus Sun fscontext (class
com.sun.jndi.fscontext.RefFSContextFactory ) to create a jndi context
( stored in the filesystem) for my application, so hibernate can
easily lookup sessions. It works very well launching a test app
outside tomcat, but when launching it inside the tomcat container,
fscontext is unable to create the files/dirs it need to store the jndi
context. I can't find them anywhere, neither if a specify a workDir
attribute for the tomcat container (inside the <context> tag).

I tryed a lot of combination of specifying the path for store the jndi
context (inside the hibernate.cfg.xml, "jndi.url" property), relative,
"file:/", "file://", "file://.", "file:.", and absolute (after
previously setting the workDir attribute), "file:///tmp/context",
"file:/tmp/context", etc., but nothing: files are not created
anywhere...

I'm doing it right? Or in general there's other settings that regulate
the permission for webapps classes to write in the fs? Or another
approach? Maybe there's another dir where fscontext could try to write
in? A lot of dirs at $CATALINA_HOME aren't writable by the tomcat5
user...

Unfortunately, the log is not useful (most probably the i/o exception
is catched immediately by fscontext, and not reported to the user, or
piped to some tty i'm unable to find). Got only errors from Hibernate
unable to bound to the jndi context (or unable to bound to the tomcat
one, that's read only). However, you can find it here:
http://www.webalice.it/ceztko/tomcat5log

Thanks for the help!

Francesco

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to