[tcljava-user] problem using jacl/tcljava with tomcat (3.3.1)
Brought to you by:
mdejong
|
From: Horace A. V. Jr. <ha...@ha...> - 2003-04-14 11:17:08
|
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"
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
I have tried putting init.tcl all over the place and cannot seem
to let it be seen.
Does anyone have any ideas how I can make the init.tcl visible
to tomcat? (tomcat-3.3.1 btw)
little snipit example would be like...
<html><head> <title>Test eval of tcl code in .jsp</title>
<%@ page import="tcl.lang.*;" %>
</head><body bgcolor="#ffffff"><h1>Test eval of tcl code in .jsp</h1>
Let's try evaluating some tcl code from within a JSP ...
<p>
<%
Interp interp;
interp = new Interp();
interp.eval("package require java");
String result = "";
try {
String s1 = "set a [split {kicker} {}];";
out.println("<p>==================<p>Test #1: Simple split<p>");
out.println("<b>" + s1 + " ==></b><br>");
interp.eval(s1);
result = interp.getResult().toString();
out.println(result);
etc. etc. etc.
--
Horace ...once known as "Kicker" :-)
================================================================
...drop by and chat if I'm online http://www.hav.com/chat/
================================================================
Horace Vallas hav.Software http://www.hav.com/
P.O. Box 354 ha...@ha...
Richmond, Tx. 77406-0354 voice: 281-341-5035
USA fax: 281-341-5087
Thawte Web Of Trust Notary in SW Houston, Tx.
http://www.hav.com/?content=/thawteWOTnotary.htm
================================================================
What is a Vet? ... He is the barroom loudmouth, dumber than five
wooden planks, whose overgrown frat-boy behavior is outweighed a
hundred times in the cosmic scales by four hours of exquisite
bravery near the 38th parallel. ... - Unknown
================================================================
|