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?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.