Solved

urgent : cftreeformapplet  : class not found

Posted on 2001-06-12
17
196 Views
Last Modified: 2013-12-24
hi,
i'm working with cftree tag. it works fine in systems which have coldfusion installed.
while working with systems which dont have coldfusion, i get a error cftreeformapplet class not found exception.
what would be the problem.
My CFserver is under linux and its under root.

poobalanr
0
Comment
Question by:poobalanr072299
  • 10
  • 7
17 Comments
 
LVL 4

Expert Comment

by:CF_Spike
ID: 6180961
Where exactly do you get this error?

If the system is correctly set-up people who have never used the cftreeformapplet should be prompted to download the applet from http://yourserver/CFIDE/classes/CFJava.cab or something similar depending on which release of CF you are using. The path will be the same for all releases, but the cab file may be different. If this path isn't accessible or the cab file doesn't exist you will get the errors you are seeing.

Also make sure that the attribute enablecab in the cfform tag is set to yes to ensure that the download is attempted for users without the applet.

Spike
0
 

Author Comment

by:poobalanr072299
ID: 6181089
i have been using linux server and cfserver 4.5, the classes are present in the /home/httpd/htdocs/cfide/allaire/controls/classes

but when i browse from my system i have locally installed cfserver4.5 in my system and the tree is displayed,
but in a system with out coldfusion the tree is not displayed and cftreeformapplet class is not found ,

and of the tag using applet are not displayed
such as cfslider,cftree etc.,


is there any classpath to be set in cfserver

please reply
poobalan
0
 
LVL 4

Expert Comment

by:CF_Spike
ID: 6181176
Have a look at the source in a page which uses the cftree control. You should see a javascript block which refers to the path to the class file. Check if the path is valid. If not then that is what would be causing the problem.

There is a setting in CF Administrator for Classes in CF5, but I can't remember if it is there on CF 4.5. Also, I can't remember if it needs to be set to something specific, or if it has a defalut value.

Spike
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:poobalanr072299
ID: 6181222
spike,
i saw the source code, there the applet tags shows the code as allaire.controls.cftreeformapplet.
and the codebase is "/CFIDE/classes/".

All the class files are there in /cfide/classes directory in the server.

but this works in the local system  where CF is installed.

poobalanr
0
 
LVL 4

Expert Comment

by:CF_Spike
ID: 6181239
If you are on a Linux server maybe there is a problem with case sensitivity on the directory path. You say that the source code says /CFIDE/, but the class files are in /cfide/, maybe that is just a typo, but it's probably worth checking.

Spike
0
 

Author Comment

by:poobalanr072299
ID: 6181274
no spike,

that's by mistake i typed cfide. that's CFIDE only...
is there a'thing to do with the .cab file or get me some other solutions

poobalanr
0
 
LVL 4

Expert Comment

by:CF_Spike
ID: 6181309
Have you tried to browse to the url where the cab file is stored?

If so, did you find the file?

If you did, then I'm kinda stumped. There should be no reason why the url provided in the Javascript block wouldn't work.

One other thing...

Did the javscript block only show a path, or was there a .cab file on the end of the path?

Spike
0
 

Author Comment

by:poobalanr072299
ID: 6181471
<APPLET NAME="scnew" CODE="allaire.controls.CFTreeFormApplet" CODEBASE="/CFIDE/classes/" HEIGHT=320 WIDTH=200> <param NAME="ApplicationClass" VALUE="allaire.controls.cftreeform">

this is the code which was there..

if i browse the file in another system in local LAN

it downloads an applet in path
http://server/cfide/classes/CFJava.cab

but cab file does not exists in our linux server.

whether this is the problem

how to correct this
0
 
LVL 4

Expert Comment

by:CF_Spike
ID: 6181500
I would suggest that you put the CFJava.cab on the Linux server. I'm a bit mystified why it isn't there, but that would certainly cause the problem.

Also, you should probably copy all the cab files from the other server on the LAN to the Linux server as some other controls will use them. Again, I can't remember how many of them there are on CF 4.5, but there are 2 plus a bunch of sub-directories on CF 5.0. Just to be safe I would copy the whole /classes/ directory structure to the Linux machine.

Spike
0
 

Author Comment

by:poobalanr072299
ID: 6181595
i've uploaded the CFJava.cab files on to the server.
still, shows the same error.

poobalanr
0
 
LVL 4

Accepted Solution

by:
CF_Spike earned 20 total points
ID: 6181611
Can you browse to the applet cab file?

Spike
0
 

Author Comment

by:poobalanr072299
ID: 6181689
when i type the exact as
http://ip/CFIDE/classes/CFJava.cab, it asks to download the zip file.
but when we run using the applet it it's not working

poobalanr
0
 

Author Comment

by:poobalanr072299
ID: 6181698
when i run the applet it's not asking for any download..
0
 

Author Comment

by:poobalanr072299
ID: 6181719
when i run the applet it's not asking for any download..
0
 
LVL 4

Expert Comment

by:CF_Spike
ID: 6181729
Did you specify enablecab="Yes" as an attribute of the CFFORM tag?

Spike
0
 

Author Comment

by:poobalanr072299
ID: 6181757
yes i have specified it already

0
 

Author Comment

by:poobalanr072299
ID: 6181812
ok i will try to reinstall the server in linux ,
there must be some problem in installation i think ,

after that i will reply u.

thanks

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question