Re: [tcljava-user] Tcl scripts inside EJB
Brought to you by:
mdejong
From: Mo D. <md...@cy...> - 2001-01-29 04:05:28
|
On Mon, 29 Jan 2001, Vikram Rajan wrote: > hi, > > I am running Tcl scripts inside EJBs by passing a script to the Jacl > Interpreter. The problem that I am facing is that am not able to instantiate > any Java classes inside the script. A TclException is thrown if I try that. Humm, that should not happen. I am willing to bet that for some reason the class is not being found by the Java runtime. > Currently I have to pass all required objects to the interpreter using the > setVar() method before running the script. > Is this a restriction of Jacl or am I doing something wrong? I don't think so. Could you provide more info, like the error that is printed? Also, if you could provide a simple example that does not work, that would really help. I am willing to be you are running into some strange issue that only happens when in your environment. This sort of thing is almost always caused by CLASSPATH problems or something to do with classloaders. You can test to see if a given class is visible from inside Jacl or Tcl Blend like so: % java::import java.util.Hashtable % java::import java.unknown can not import class "java.unknown", it does not exist Mo DeJong Red Hat Inc |