RE: cfx_MyHelloColdFusion - SOLVED

2004-08-19 Thread Craig Dudley
Why not copy cfx.jar into your development directory e.g. c:\java ?,
your'e comamnd line would then be much shorter

in c:\java, just type javac -classpath cfx.jar MyHelloColdFusion.java
somewhat easier yes? Then just move the compiled class file to wherever
you want it.

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2004 22:12
To: CF-Talk
Subject: Re: cfx_MyHelloColdFusion - SOLVED

holy crap!!! the compiling is fixed.

i tried this at the command line:

javac -classpath CFusionMX\lib\cfx.jar
c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

when it should be 

javac -classpath c:\CFusionMX\lib\cfx.jar
c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

i forgot the drive letter in the classpath .. DOH!!! 

i may be back :) 
thanks for responding so quickly!

- joe

Joe,

It appears as though you the cfx.jar is not in your class path.This
JAR
contains all of the interface classes that the ColdFusion Server uses
to
connect to your Java CFX.

For CFMX this can be located in the lib subdirectory of your server
installation.
For CF 5 you can locate this in the Java subdirectory of your server
installation.

rish

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 4:01 PM
To: CF-Talk
Subject: CFX_MyHelloColdFusion


Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following
errors

MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
import com.allaire.cfx.* ;
^
MyHelloColdFusion.java [13:1] cannot resolve symbol
symbol: class CustomTag 
location: class MyHelloColdFusion
public class MyHelloColdFusion implements CustomTag {
^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Request 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
 ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Response 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
^
4 errors
Errors compiling MyHelloColdFusion.

JAVA FILE

import com.allaire.cfx.* ;

public class MyHelloColdFusion implements CustomTag {
public void processRequest( Request request, Response response )
throws Exception {
String strName = request.getAttribute( NAME ) ;
response.write( Hello,  + strName ) ;
}
}

Ok, now i think the last 3 errors occur because of the first error, so
lets
start there.

How can i add the package or what do i need to do to get this working?

I'm runningCFMX 6,1,0,63958 on Win2K Server and the version info for
Java
is:
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

If anyone can help, thanks! If I can get this one working, I'm hoping
to
create my first real custom tag :) 

Thanks

Joe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfx_MyHelloColdFusion

2004-08-18 Thread Guy Rish
Joe,

Attach the code and the error message please.

rish

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 3:56 PM
To: CF-Talk
Subject: cfx_MyHelloColdFusion

Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following
errors:
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFX_MyHelloColdFusion

2004-08-18 Thread Guy Rish
Joe,

It appears as though you the cfx.jar is not in your class path.This JAR
contains all of the interface classes that the ColdFusion Server uses to
connect to your Java CFX.

For CFMX this can be located in the lib subdirectory of your server
installation.
For CF 5 you can locate this in the Java subdirectory of your server
installation.

rish

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 4:01 PM
To: CF-Talk
Subject: CFX_MyHelloColdFusion

Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following
errors

MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
import com.allaire.cfx.* ;
^
MyHelloColdFusion.java [13:1] cannot resolve symbol
symbol: class CustomTag 
location: class MyHelloColdFusion
public class MyHelloColdFusion implements CustomTag {
^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Request 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
 ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Response 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
^
4 errors
Errors compiling MyHelloColdFusion.

JAVA FILE

import com.allaire.cfx.* ;

public class MyHelloColdFusion implements CustomTag {
public void processRequest( Request request, Response response )
throws Exception {
String strName = request.getAttribute( NAME ) ;
response.write( Hello,  + strName ) ;
}
}

Ok, now i think the last 3 errors occur because of the first error, so lets
start there.

How can i add the package or what do i need to do to get this working?

I'm runningCFMX 6,1,0,63958 on Win2K Server and the version info for Java
is:
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

If anyone can help, thanks! If I can get this one working, I'm hoping to
create my first real custom tag :) 

Thanks

Joe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfx_MyHelloColdFusion

2004-08-18 Thread joe velez
see this message again .. for some reason the entire message was removed. i added a bunch of dashes to help make it easier to read. i've removed them so i hope reading the errors/code isn't too difficult for you. thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFX_MyHelloColdFusion

2004-08-18 Thread Dave Watts
 Trying the most basic cfx tag to see if i can get one working.
 When I try to compile the .java file (copied from ) i get the following
 errors

 MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
 import com.allaire.cfx.* ;

You will need to add cfx.jar to your classpath, I think. On my machine,
running CFMX on JRun, it's in
\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\lib. I don't remember
exactly where it is with the standalone version of CFMX.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfx_MyHelloColdFusion

2004-08-18 Thread joe velez
ok - let me play w/ the env. vars...

i also get similar errors (same w/o text from Sun One Studio) compling from the command line as: javac -classpath CFusionMX\lib\cfx.jar c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

joe

Joe,

It appears as though you the cfx.jar is not in your class path.This JAR
contains all of the interface classes that the ColdFusion Server uses to
connect to your Java CFX.

For CFMX this can be located in the lib subdirectory of your server
installation.
For CF 5 you can locate this in the Java subdirectory of your server
installation.

rish

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 4:01 PM
To: CF-Talk
Subject: CFX_MyHelloColdFusion


Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following
errors

MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
import com.allaire.cfx.* ;
^
MyHelloColdFusion.java [13:1] cannot resolve symbol
symbol: class CustomTag 
location: class MyHelloColdFusion
public class MyHelloColdFusion implements CustomTag {
^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Request 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
 ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Response 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
^
4 errors
Errors compiling MyHelloColdFusion.

JAVA FILE

import com.allaire.cfx.* ;

public class MyHelloColdFusion implements CustomTag {
public void processRequest( Request request, Response response )
throws Exception {
String strName = request.getAttribute( NAME ) ;
response.write( Hello,  + strName ) ;
}
}

Ok, now i think the last 3 errors occur because of the first error, so lets
start there.

How can i add the package or what do i need to do to get this working?

I'm runningCFMX 6,1,0,63958 on Win2K Server and the version info for Java
is:
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

If anyone can help, thanks! If I can get this one working, I'm hoping to
create my first real custom tag :) 

Thanks

Joe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfx_MyHelloColdFusion - SOLVED

2004-08-18 Thread joe velez
holy crap!!! the compiling is fixed.

i tried this at the command line:

javac -classpath CFusionMX\lib\cfx.jar c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

when it should be 

javac -classpath c:\CFusionMX\lib\cfx.jar c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

i forgot the drive letter in the classpath .. DOH!!! 

i may be back :) 
thanks for responding so quickly!

- joe

Joe,

It appears as though you the cfx.jar is not in your class path.This JAR
contains all of the interface classes that the ColdFusion Server uses to
connect to your Java CFX.

For CFMX this can be located in the lib subdirectory of your server
installation.
For CF 5 you can locate this in the Java subdirectory of your server
installation.

rish

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 4:01 PM
To: CF-Talk
Subject: CFX_MyHelloColdFusion


Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following
errors

MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
import com.allaire.cfx.* ;
^
MyHelloColdFusion.java [13:1] cannot resolve symbol
symbol: class CustomTag 
location: class MyHelloColdFusion
public class MyHelloColdFusion implements CustomTag {
^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Request 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
 ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Response 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
^
4 errors
Errors compiling MyHelloColdFusion.

JAVA FILE

import com.allaire.cfx.* ;

public class MyHelloColdFusion implements CustomTag {
public void processRequest( Request request, Response response )
throws Exception {
String strName = request.getAttribute( NAME ) ;
response.write( Hello,  + strName ) ;
}
}

Ok, now i think the last 3 errors occur because of the first error, so lets
start there.

How can i add the package or what do i need to do to get this working?

I'm runningCFMX 6,1,0,63958 on Win2K Server and the version info for Java
is:
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

If anyone can help, thanks! If I can get this one working, I'm hoping to
create my first real custom tag :) 

Thanks

Joe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFX_MyHelloColdFusion

2004-08-18 Thread Pete Freitag
joe velez wrote:

 When I try to compile the .java file (copied from ) i get the 
 following errors

 MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist

you need to add cfx.jar to your classpath when you compile, eg:

javac -classpath c:\CFusionMX\lib\cfx.jar MyHelloColdFusion.java


Pete Freitag
http://www.cfdev.com/
Author of the CFMX Developers Cookbook
http://www.petefreitag.com/bookshelf/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]