I had this working in an older tomcat (maybe it was jserv) but I've
been away from tomcat for a while so trying to get things set up with 
tomcat 3.3.1 and apache 1.3.27 - RH 7.2

I'm using default context (meaning apps.xml I guess) with WEB-INF in 
the site's docbase

other jsp's I have and have tried all seem to be working OK -
but when trying to import the tcl java stuff into a jsp, it looks like 
the classes get in but tcl cannot start because it cannot locate its 
init.tcl file.

Specific error is...

# cannot read resource "/tcl/lang/library/init.tcl"
tcl.lang.TclException: cannot read resource "/tcl/lang/library/init.tcl"
        at tcl.lang.Interp.evalResource(Interp.java)
        at tcl.lang.Interp.<init>(Interp.java)
        at tclscript_1._jspService(tclscript_1.java:60)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
        at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
        at org.apache.tomcat.core.Handler.service(Handler.java:235)
        at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
        at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
        at java.lang.Thread.run(Thread.java:484)
2002-10-17 15:50:59 - Ctx() : Exception in R(  + /tclscript.jsp + null) - 
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)
        at tclscript_1._jspService(tclscript_1.java:130)
    <<snip>>

... and the jsp import is like...

        <html>
        <head>
         <title>Test eval of tcl code in .jsp</title>
        <%@ page import="tcl.lang.*;" %>
        </head>
   <<snip>>


I've tried putting /tcl/lang/library/init.tcl all over the system but can't 
seem to locate where it needs to be (I don't think it's a permissions thing)

I have tried with the tcl java classes jar'ed (in WEB-INF/lib)
and expanded (in WEB-INF/classes) -- with /tcl/lang/library/init.tcl  in and
out of the jar.

can anyone offer a suggestion where I need to make /tcl/lang/library/init.tcl
available?


Do I need an entry for this in some xml file somewhere?? etc.
(seems like things have changed a good bit since I last played
with TC)


-- 
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                         [EMAIL PROTECTED]
                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
================================================================

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to