This was posted by Pete Farland
> Peter Farland wrote:
>
>>You may need to
specify what the {context.root} is at compile time
>>depending on how
you're compiling.
>>
>>If you're using
mxmlc or Flex Builder you need to specify
>>--context-root=/cfmx
>>
>>(or whatever the
context root you're using is...).
>>
>>This is something
that we can not work out at runtime. The
>
> {server.name}
>
>>and {server.port} we
can take from how the SWF was loaded - assuming
>>you're using the URL
to load the SWF. If you're loading the SWF from
>
> the
>
>>file system then we
can't work this out at runtime.
OK, hardcoding the 'flex'
part of the path in
flex-enterprise-services.xml instead of relying on {context.root} has
fixed the problem.
Didn't see any settings that would correct it otherwise, but this
seems fine for our development systems.
Thanks,
Thunder
--- In [email protected],
"thunderstumpgesatwork"
<[EMAIL PROTECTED]> wrote:
>
> Wait a minute... it's missing the "{context.root}" portion of
the
> URL... thats why there's two slashes...
>
> Looking for the setting that should pick that up.
>
> Thunder
>
> --- In [email protected],
"thunderstumpgesatwork"
> <thunder.stumpges@> wrote:
> >
> > Hi all,
> >
> > I've got Flex Data Services installed in the default path, and Flex
> > Builder Plugin set to "Compile Locally".
> >
> > The server path is set properly under "Flex Server"
properties tab:
> >
> > Flex Root Folder - C:\fds2\jrun4\servers\default\flex
> > Flex Server URL - http://localhost/flex/
> >
> > Note: I've changed the server.port parameter to run on port 80
instead
> > of 8700. The debugger shows the endpoint url as
> > "http://localhost//messagebroker/amf"
which seems correct. (other than
> > the extra forward slash after localhost)
> >
> > The "compiler" settings in the flex project point to the
correct
> > enterprise services xml file:
> >
> > -services
> >
>
"C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\flex-enterprise-services.xml"
> > -locale en_US
> >
> > And finally, if I copy the source over, and build it from FDS (by
> > pointing the browser at the mxml file) it works correctly.
> >
> > What other client settings could be causing this?
> >
> > thanks,
> > Thunder
> >
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS