Aug
17

cfx.jar not in class path in ColdFusion for J2EE

14 comments Posted by: Laura

I wanted to install a CFX tag and I thought it was going to be a simple thing, since it was something I had done before (obviously not under the J2EE configuration). I entered the information in the administrator, but when running the tag, I would get a nice (and big and bold): 500 com/allaire/cfx/CustomTag

Sure, that tells me a lot, doesn’t it? I knew that the tag implements com.allaire.cfx.CustomTag..., but it didn’t tell me much about the problem.

After trying everything I could think of, I found that the problem was that the file cfx.jar was located at

C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/lib

when CF is installed on top of JRun, directory which, due to unknown reasons, is not in the java class path. ColdFusion therefore could not load com.allaire.cfx.CustomTag class and the problem didn’t have anything to do my tag.

The solution was then to add the class path, but thanks to a bug in the JRun Management Console, this could not be done from its Java VM Settings section. It has to be edit directly in the file jmv.config under JRun4/bin (at least that is the path in my configuration). I added

{application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/lib

in the section “java.class.path” and everything worked.

Category: ColdFusion |

14 Comments so far

Write yours
Stephen
1. Stephen wrote on November 08, 2004 at 2:05 PM
Thanks for posting this. It just saved me a headache.
Paul
Alternatively, you can add the classpath to the using the JRun administor by going to the settings page for the default server. In order to run the Verisign CFX_PAYFLOWPRO custom tag (CFXPayFlowProclass), I had to add both the path to the custom tags ({application.home}/servers/default/cfusion/WEB-INF/cfusion/Customtags) and ({application.home}/server/default/cfusion/WEB-INF/cfusion/lib).
Martin Parry
Laura, thanks very much.. May I also say that your site has been THE biggest help with a CFFORMS project I've been working on. Thank you
Grant
4. Grant wrote on September 29, 2006 at 1:00 PM
This is the only place on the Internet with the solution to this puzzling problem. Thanks for posting it.

I ran into this error with ColdFusion 7 on Linux. The jvm.config file needed to be edited to add this to java.class.path: /opt/coldfusionmx7/wwwroot/WEB-INF/lib/cfx.jar
Daniel Smith
5. Daniel Smith wrote on September 29, 2006 at 2:12 PM
I have been looking for this solution for days. Thank you so much.
Ariel Pentzke
Thank you for posting the solution to this problem. It was driving me nuts for about two weeks and i couldn't understand the problem.
Marc Straka
7. Marc Straka wrote on October 18, 2006 at 2:16 PM
Yes! Many thanks for this...it was driving me nuts.
:)
Okan
8. Okan wrote on October 24, 2006 at 2:05 PM
Thanks a bunch! I lost 40% of my hair because of that problem, you saved the remaining 60...
Kevin Penny
Thank you!
Did the trick -
Chad Fraser
I tried this solution with my JRun4 server and the cfx_Excel2Query tag and it worked for me. Just remember to reboot the JRun server and the Macromedia MX windows service if you are running IIS.

Thanks for this!
Prasanth
11. Prasanth wrote on May 16, 2007 at 6:12 AM
Laura thanks a lot,this link saved my time a great extend.. very useful link.
sheldon
12. sheldon wrote on September 05, 2007 at 9:18 PM
wooooooooow you actually got that excel2query to work how.,..... i tried it and failed how did you get it to work
johnson
13. johnson wrote on March 20, 2008 at 2:53 AM
Hi,
I am using cfmx7 and i am trying to use CFX_Excel2Query tag.Thanks to this forum for posting useful info. can anyone let me know why i get UNKNOWN ATTRIBUTE: FIRSTROWISHEADER error?? Please advise..

Thanks in advance
Christine Al-Thifairy
14. Christine Al-Thifairy wrote on May 13, 2008 at 5:37 PM
Thanks alot for your post Laura. Your suggestion fixed my problem.

Leave your comment

Comment etiquette: As a gesture to those subscribed to this post, please keep your comments relevant to the post.

Your email address will never be displayed.
Email is gravatar enabled.Gravatar are the pictures you see next to the comments. If you like to have one, visit gravatar



Allowed tags:

<code>
All other tags will be shown as such, when in doubt, use the preview.




Preview:

Refresh Preview
1. You wrote on