If it's really shared (multiple clients on the same CFMX instance), then you
don't have access to WEB-INF/classes.  The webroot you've got is merely the
webroot of your virtual host, not the webroot of the CFMX application.
There is only a single one of these for the entire CFMX instance, not for
each individual web site.

Cheers,
barneyb

> -----Original Message-----
> From: Dave Jones [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 19, 2004 4:50 PM
> To: CF-Talk
> Subject: Invoking Java classes on shared host
>
> I'm attempting to access custom Java classes from my CFMX app
> (CFMX as the View-Controller, Java as the Model). This works fine
> locally (Developer edition) when placing the Java classes under
> the default web root. However, this is not an option on a shared host.
>
> The docs say CFMX will search webroot/WEB-INF/classes for Java
> classes, but I can't get this to work. When I attempt to invoke
> classes placed there using <cfobject type="Java" action=""
> class="TestJava" name="testJava">, I get the error:
>
> java.security.PrivilegedActionException:
> java.lang.ClassNotFoundException: TestJava
>
> Setting a classpath in the CF admin to point to my classes is
> also not an option in a shared environment.
>
> Can someone share with me the secret of getting CFMX to recognize
> Java classes from webroot/WEB-INF/classes (in a shared environment)?
>
> TIA,
> Dave s
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to