access to CFMX or to Jrun, you only have access to the web server. If you
have access to CFMX and the underlying J2EE server, then you can do whatever
you need.
However, CFMX is the web app, and your templates are just support files for
the web app, so if you want to drop a WAR in, that WAR is going to contain a
full copy of CFMX, or the J2EE server won't know what to do with the .cfm
files. I suppose that MM could implement something like J2EE's WARs at the
CF level, but that's a LOT of work.
Bottom line, if you need the power that J2EE provides, you have to get off
shared hosting, at least at the J2EE server level.
Cheers,
barneyb
> -----Original Message-----
> From: Dave Jones [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 19, 2004 6:30 PM
> To: CF-Talk
> Subject: RE: Invoking Java classes on shared host
>
> How unfortunate. That pretty much kills the CFMX As A Better Way
> To Develop Java Apps idea. It sure would be nice if CFMX would
> provide a way to create self-contained web apps. In a shared JRun
> environment, I can define a web app, drop in a WAR file and be
> done with it. Since CFMX runs on JRun, I don't see why MM can't
> provide something similar. If MM wants CFMX to be considered more
> than just a scripting language for web pages (and I think that's
> the direction they're headed), they need to provide something
> like this. Just my humble opinion.
>
> Dave Jones
> NetEffect
>
>
>
> At 04:21 PM 2/19/04 -0800, you wrote:
> >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]

