RE: [flexcoders] Re: Samples Error: FormatSourceService

2005-02-03 Thread Peter Farland
Flex application files, such as .as ActionScript files and Flex .mxml files,
do not have to live under the /WEB-INF directory, however, the
flex-config.xml file must reside at /WEB-INF/flex/flex-config.xml. 

This means that if you have many "applications" in your web app, they must
all share the one Flex configuration file.

As to how you place .as/.mxml files on your server, I guess that is up to
what the underlying JRun server, and I guess, underlying web server (be it
JRun's internal web server or IIS etc) supports. I believe you should be
able to use normal virtual directories, but I don't think you can use any CF
virtual mappings (or whatever that special CF-specific mapping system is
called :)

The end goal is for you to get requests to files with .mxml extensions to be
picked up by the Flex MxmlServlet. This means that your web server must know
how to pass on .mxml requests to the ColdFusion J2EE Web Application
container, which will then invoke the flex mxml servlet to process your
request and return a SWF file to the client. If you can already see .mxml
files being correctly compiled and returned as SWFs then you're all set to
start experimenting with virtual dirs.



-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 12:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Samples Error: FormatSourceService




ah...this is were i get confused since i'm coming from the CF side 
of things. I have a standard CFMX installation...what must i do or 
where do I install flex apps? I saw the wwwroot/web-inf dir and 
thought this is where I must put the files. Am i wrong for 
installing it this way or is there a different approach I should 
follow? I assume now everything must go under my current CF 
installation wwwroot/web-inf dir and I do not have the ability to 
place them anywhere on my server.

Is there an easy way to install seperate J2EE server instances now 
that I have already done it the standard way or am I hosed?



--- In flexcoders@yahoogroups.com, Peter Farland <[EMAIL PROTECTED]> 
wrote:
> A colleague of mine just pointed out that you may be confusing a
J2EE web
> application with the concept of a coldfusion application.
> 
> If you only have one ColdFusion standalone installation, then you
only have
> one J2EE web application. This means you only have one place to
specify a
> Flex configuration.
> 
> Flex runs as a J2EE web application, it doesn't have a
configuration file on
> a directory by directory basis.
> 
> 
> 
> 
> -Original Message-
> From: chrs_hearn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 03, 2005 11:54 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Samples Error: FormatSourceService
> 
> 
> 
> 
> Just to clarify...does flex or the 'web application' run from
> the /web-inf/flex/flex-config.xml in the directory where my app is 
> (in my case the e: drive) or the c: drive /web-inf/ under my 
> coldfusion installation?
> 
> My sample files including where the formatsource.jsp file is under
> my samples dir on the e: drive where i keep all my sites. Flex 
seems 
> to be running from the c:\cfusionmx\wwwroot\web-inf dirs.






Yahoo! Groups Links










RE: [flexcoders] Re: Samples Error: FormatSourceService

2005-02-03 Thread Peter Farland
A colleague of mine just pointed out that you may be confusing a J2EE web
application with the concept of a coldfusion application.

If you only have one ColdFusion standalone installation, then you only have
one J2EE web application. This means you only have one place to specify a
Flex configuration.

Flex runs as a J2EE web application, it doesn't have a configuration file on
a directory by directory basis.




-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 11:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Samples Error: FormatSourceService




Just to clarify...does flex or the 'web application' run from 
the /web-inf/flex/flex-config.xml in the directory where my app is 
(in my case the e: drive) or the c: drive /web-inf/ under my 
coldfusion installation?

My sample files including where the formatsource.jsp file is under 
my samples dir on the e: drive where i keep all my sites. Flex seems 
to be running from the c:\cfusionmx\wwwroot\web-inf dirs.





RE: [flexcoders] Re: Samples Error: FormatSourceService

2005-02-03 Thread Peter Farland
Typically each Flex web application has its own configuration file... though
I do see a case where many mirrored web applications could have the same
configuration.

For some reason I thought there was a context param to specify the location
of the Flex configuration file (which would make it possible to point all
apps at one xml document) but turns out that it is fixed at
/WEB-INF/flex/flex-config.xml for J2EE Flex applications. If you think
making this configurable is desirable, please log an enhancement request,
but for now it appears that you'll have to duplicate the configuration file
in each web app.

The {context.root} is a special token that is translated to the web
application's context root by the configuration parser. It's probably best
to leave it there to improve portability.



-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Samples Error: FormatSourceService




hey thanks, seems to be it, the samples config file was in the 
samples install dir...

saying that...(my samples are on an e:\sites\ drive where all my 
website folders are while the cf/flex files are in the 
c:\cfusionmx\wwwroot\web-inf\flex dir)...when i deploy flex apps is 
the main config file always added to or can you contain flex apps in 
their own sub dirs with their own config files, etc. (which is how i 
have it now).

also, i see the {context.root} all over the config file...am i 
supposed to edit this to a mention a path?