cfx.jar not in class path in ColdFusion for J2EE
16 comments Posted by: LauraI 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.
16 Comments so far
Write yoursI 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
:)
Did the trick -
Thanks for this!
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