Larry / Anyone, ...

Well, I had tried this before on my HelloColdFusion
code and I also just copied your hi example and tried that.

Both did not reload for me.
I guess the only difference I can see is that your
on AS/400 and I'm on NT.


Has anyone on NT been able to get the reload option
of Java CFX's to work?  (and if so, any trick?)



Here are my NT Spec's:
ColdFusion Server Variables
SERVER.ColdFusion.ProductName: ColdFusion Server
SERVER.ColdFusion.ProductVersion: 4, 5, 1, 0
SERVER.ColdFusion.ProductLevel: Enterprise
SERVER.OS.Name: Windows NT
SERVER.OS.AdditionalInformation: Service Pack 5
SERVER.OS.Version: 4.0
SERVER.OS.BuildNumber: 1381


Tkx,

Jim



-----Original Message-----
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 20, 2000 4:21 PM
To: [EMAIL PROTECTED]
Subject: RE: cfx tags w/ java are NOT, I repeat NOT a pain! 8-)


Here's my setup - strikingly similar to yours! ;-)

Load JVM when starting: checked
JVM path: C:\JRun\jre\bin\classic\jvm.dll
Class path: C:\java\jt400.zip (for my IBM AS/400 specific needs, irrelevant
for this)
Init heap: 1024
Max heap: 16384
System options: (empty)
Imp. options: (empty)
CFX jar path: d:\cfusion\java\classes

In d:\cfusion\java\classes I have these files:
cfx.jar - comes w/ CF
hi.class - my compiled tag
hi.java - my tag's source

The tag source:
import com.allaire.cfx.* ;
public class hi implements CustomTag {
   public void processRequest( Request request, Response response )
        throws Exception {
        response.write( "Hi.") ;
   }
}

In the cfadmin > cfx tags page I registered my class as "hi", not
"hi.class".

The cfm page that I'm testing reads like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Untitled</title></head>
<body><cfoutput>
        #gettickcount()#
        <cfx_hi reload="always">
        #gettickcount()#
</cfoutput></body>
</html>

That's everything I know. Hope it helps you catch the joy. ;-)

If you have more questions, I'll answer as best I can.

Larry

>>> [EMAIL PROTECTED] 06/20/00 09:20AM >>>
Larry,

Great!!!
(for you, anyway)  :-)

I tried that before, and now again, after your success,
and it still does not work.  I changed my java code,
re-complied, made sure the reload="always" was there,
the .class file re-compiled to the correct dir,
and it still did not work.  I have the class file
in the Java/classes dir.   I originally had RELOAD="Always",
so I tried your case (of RELOAD) and that still did not work.
Although when the CF server stops and start, it works!

One question, in the CF Admin in the Edit Java CFX Tag 
do you have the '.class' on the Class Name text field.  I have 
Class Name:  HelloColdFusion
Should it be HelloColdFusion.class ?

When I add the .class, my cfm file errors out with this cmd.

Here is my cmd:
<CFX_HelloColdFusion NAME="Jim" reload="always">

Any comments / suggestion would be great!


PS.  Here are my Java Settings: (if that helps!)
Java Virtual Machine Path: c:\jrun\jre\bin\classic
Class Path: C:\CFUSION\Java\classes
CFX Jar Path: C:\CFUSION\Java\classes


Thanks!

Jim


-----Original Message-----
From: Larry Meadors [mailto:[EMAIL PROTECTED]] 

WOO HOO!

Put your compiled class file in the cfusion\java\classes directory.

Register it w/ CFAdmin.

Use this syntax:

 <cfx_hi reload="always">

And it'll work! It really works! COOL!

Larry (gleefully going to get a soda ;-)

>>> [EMAIL PROTECTED] 06/19/00 01:54PM >>>
> Larry,
>
> I (and many other per both this and Allaire's Forums )
> have had the same problem and have not found a
> resolution to this yet.  If you find one, definitely
> pass it along!
>
> I also have tried the 'reload' in the cfx tag, but that
> did not work either.

If any of you ever get java cfx's working, please post how to the list.
There were a couple of c cfx's of mine I was thinking of converting over but
I'm not even going think of wasting the time fooling with it until it's
working properly.

--min


----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to