RE: [tcljava-user] Tcl scripts inside EJB
Brought to you by:
mdejong
From: Vikram R. <Vi...@PL...> - 2001-02-06 06:44:01
|
hi, It was a classpath problem. The Jacl interpreter loads classes using the JAVA_CLASSPATH, while weblogic uses the WEBLOGIC_CLASSPATH. For the interpreter to be able to load classes within scripts, they need to be in the java classpath. This again can be a problem at times with weblogic since classes specified in both classpath variables cannot be loaded correctly by weblogic. But I guess, we need to live with that :-) regards, Vikram Rajan > -----Original Message----- > From: Mo DeJong [SMTP:md...@cy...] > Sent: Monday, January 29, 2001 9:35 AM > To: tcl...@li... > Subject: Re: [tcljava-user] Tcl scripts inside EJB > > 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 > > _______________________________________________ > tcljava-user mailing list > tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tcljava-user |