Re: [tcljava-user] problem using jacl/tcljava with tomcat (3.3.1)
Brought to you by:
mdejong
|
From: Mo D. <md...@un...> - 2003-04-14 20:42:48
|
On Mon, 14 Apr 2003 06:16:24 -0500 "Horace A. Vallas, Jr." <ha...@ha...> wrote: > Hi folks -- I had this working but moved my server and, in rebuilding > I seem to have whacked something -- using tomcat 3.3.1 and Java HotSpot > Client VM Blackdown-1.3.1_02a-FCS) > > have tried both the 1.2.6 and 1.3 builds of jacl > > when I try calling tcl from a jsp I get an error like... > > javax.servlet.ServletException: unexpected TclException: > tcl.lang.TclException: cannot read resource "/tcl/lang/library/init.tcl" Some folks have reported strange problems like this in the past, but a clear resolution to the problem is not available. Perhaps this post will help: http://sourceforge.net/mailarchive/message.php?msg_id=369779 Also, you might want to try a patch like the following. It is completely untested, but might provide better results in a JSP like env. Index: src/jacl/tcl/lang/Interp.java =================================================================== RCS file: /cvsroot/tcljava/tcljava/src/jacl/tcl/lang/Interp.java,v retrieving revision 1.43 diff -u -0 -r1.43 Interp.java --- src/jacl/tcl/lang/Interp.java 13 Mar 2003 22:28:10 -0000 1.43 +++ src/jacl/tcl/lang/Interp.java 14 Apr 2003 20:39:52 -0000 @@ -2622 +2622,3 @@ - stream = Interp.class.getResourceAsStream(resName); + //stream = Interp.class.getResourceAsStream(resName); + stream = Thread.currentThread(). + getContextClassLoader().getResourceAsStream(resName); cheers Mo DeJong |