On Wednesday, Jul 30, 2003, at 07:57 US/Pacific, Oliver Tupman wrote:
> Got a weird one: a CFM file called test.cfm gives the message:
>
> Error casting an object of type jrunx.resource.ResourceURLClassLoader
> to an incompatible type.
...
> whenever one tries to access it (stack trace at the bottom of the
> e-mail) but if I move it or rename it the file works perfectly.
If you move it to another directory, the same file works?
If you just rename it in the *same* directory, it also works?
Interesting... based on this part of the stack trace...
> java.lang.ClassCastException: jrunx.resource.ResourceURLClassLoader
> at coldfusion.runtime.TemplateClassLoader.findApplicationCfm(Unknown
> Source)
...I was going to suggest looking for a rogue Application.cfm that
fails to compile or is somehow corrupted.
I *think* what you're seeing is the result of a corrupted .class file
so I'd recommend going into the WEB-INF/cfclasses folder and removing
all the .class files and let CFMX recompile them cleanly.
If it's a production server and you don't want users to suffer the wait
of recompiling every page, just remove any created from Application.cfm
and test.cfm:
rm *application*.class
rm *test*.class
(I think the command is 'del' on Windows - it's 'rm' on *nix and Mac OS
X).
That may delete a few more than necessary but it won't delete all of
them!
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4