tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Problem with tomcat5 / svn-javahl classes (classloader problem?)
Date Mon, 30 Aug 2004 12:50:58 GMT

Hi,
Ooh, it can be a pain to debug JNI calls like that which just hang.  Run
it inside a profiler to see where it's hanging, and/or do a thread dump
(send the VM progress a SIGQUIT) to see what's going on.  If it's
hanging in the JNI code, ;(

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Nikita Zhuk [mailto:nikita.zhuk@karppinen.fi]
>Sent: Saturday, August 28, 2004 9:07 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Problem with tomcat5 / svn-javahl classes (classloader
problem?)
>
>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
>nikita.zhuk@karppinen.fi
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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


Mime
View raw message