[tcljava-user] RE: tcljava-user digest, Vol 1 #19 - 5 msgs
Brought to you by:
mdejong
From: Archana B. <AB...@SE...> - 2001-02-07 14:15:39
|
hi, the unsupported::jdetachcall helped and java::bind started working. but there is one place where i am attaching a listener to the combobox and again there it is getting hanged. the combobox is inside dialogbox. -thanks archana -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] Sent: Wednesday, February 07, 2001 1:36 AM To: tcl...@li... Subject: tcljava-user digest, Vol 1 #19 - 5 msgs Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit http://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. java::bind problem (Archana Bonde) 2. Re: java::bind problem (Mo DeJong) 3. FW: java::bind does not work (Archana Bonde) 4. RE: Tcl scripts inside EJB (Vikram Rajan) 5. RE: Tcl scripts inside EJB (Mo DeJong) --__--__-- Message: 1 From: Archana Bonde <AB...@SE...> To: tcl...@li... Date: Tue, 6 Feb 2001 11:55:43 +0530 Subject: [tcljava-user] java::bind problem Reply-To: tcl...@li... hi, I am trying to develop an application using Jacl. I wrote a small experimental script in that java::bind seems to be working fine but in my application the whole thing gets hanged. I am unable to describe the error. Is this a bug with the Jacl or there wud be some mistake in my code. Pls help as soon as possible. I tried the tcljava CVS bugs directory but cud not really trace the problem. -Thanks Archana --__--__-- Message: 2 Date: Mon, 5 Feb 2001 22:30:34 -0800 (PST) From: Mo DeJong <md...@cy...> To: tcl...@li... Subject: Re: [tcljava-user] java::bind problem Reply-To: tcl...@li... On Tue, 6 Feb 2001, Archana Bonde wrote: > hi, > I am trying to develop an application using Jacl. I wrote a small > experimental script in that java::bind seems to be working fine but > in my application the whole thing gets hanged. I am unable to describe the > error. Is this a bug with the Jacl or there wud be some mistake in my code. > Pls help as soon as possible. > I tried the tcljava CVS bugs directory but cud not really trace the problem. > -Thanks Archana Please read these two posts from the old mailing list and see if this is the same problem. http://www.mail-archive.com/tc...@sc.../msg00957.html http://www.mail-archive.com/tc...@sc.../msg00958.html Mo DeJong Red Hat Inc --__--__-- Message: 3 From: Archana Bonde <AB...@SE...> To: tcl...@li... Date: Tue, 6 Feb 2001 12:10:14 +0530 Subject: [tcljava-user] FW: java::bind does not work Reply-To: tcl...@li... > -----Original Message----- > From: Archana Bonde > Sent: Tuesday, February 06, 2001 12:06 PM > To: 'tcl...@li...' > Subject: FW: java::bind does not work > > > > -----Original Message----- > From: Archana Bonde > Sent: Thursday, December 14, 2000 11:55 AM > To: 'tcl...@li...' > Subject: java::bind does not work > > i tried using java::bind for binding a routine to a button, the action is > not performed. The routine does not execute and the dialogbox on which the > button is there loses the focus. and the close icon on the dialog boxdoes > not work also.So i have to control C (abort) the application. Not even a > simple routine which has a puts(putouts string on console) in it, work. > Why?? > It does not recognise the java objects > gives error cannopt find f and; no such variable, whereas f is defined and > initialsed by me > > The application seems to stalllllllllllll .Is this a bug with Jacl. --__--__-- Message: 4 From: Vikram Rajan <Vi...@PL...> To: "'tcl...@li...'" <tcl...@li...> Subject: RE: [tcljava-user] Tcl scripts inside EJB Date: Tue, 6 Feb 2001 12:23:01 +0530 Reply-To: tcl...@li... 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 --__--__-- Message: 5 Date: Mon, 5 Feb 2001 22:51:32 -0800 (PST) From: Mo DeJong <md...@cy...> To: tcl...@li... Subject: RE: [tcljava-user] Tcl scripts inside EJB Reply-To: tcl...@li... On Tue, 6 Feb 2001, Vikram Rajan wrote: > 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 This workaround might just do the trick for you. You would need to put it in your init code somewhere. % set env(TCL_CLASSPATH) $env(WEBLOGIC_CLASSPATH) Mo DeJong Red Hat Inc --__--__-- _______________________________________________ tcljava-user mailing list tcl...@li... http://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest |