Hi all,

I'm having a problem with Tomcat5 (running on FreeBSD 5.2.1 with jdk 1.4.2) and my webapp, which uses svn-javahl bindings to connect to the Subversion reporitory. The idea of my page is simple:
If http session is new, create svn connection and save in into session.
If http session already exists, use the svn connection saved into session.


Everything works fine during the first run - when I restart tomcat and open my JSP page. The session is created, svn connection is created, and when I refresh my page I'm using the same svn connection from the session just as I should. But if I restart my browser and reopen my JSP page ( = create a new session), browser just waits for more data, and my Java code seems to hang on line:

svnClient = new SVNClient();

of my SVNConnection class. The constructor of SVNClient doesn't take any parameters, and it doesn't create any connections, either. SVNClient class is in fact an interface to svn-javahl JNI binginds, so svn-javahl.jar is placed under $CATALINA_HOME/shared/lib as advised in tomcat documentation (to prevent classloader problems with JNI interfaces).

If I restart tomcat, my JSP page loads fine again.

The code itself should be ok, I've created several JUnit tests to test my methods and they all succeed.

Does anyone have any idea how this weird problem could be solved? I suppose it's related to tomcat's classloader, but I don't know how to fix it.

Best regards,
Nikita

--
Nikita Zhuk
Mac OS X & Web developer
Marko Karppinen & Co. LLC
[EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to