Thanks very much for the detailed instructions Cathy. We will give this a shot and hopefully you've put an end to our frustrations!
Thanks again, Brian --- In [email protected], "Cathy Reilly" <[EMAIL PROTECTED]> wrote: > > > > when referencing mxml files that is, prompts us to download the mxml > file > > whichever application that includes the mxml file, must have a > definition of the servlet and a servlet mapping for *.mxml > > > what you're trying to do, should be possible but will take some work to > get the correct paths/configurations, etc > > Here's a start - > > (a) determine if you need the MessageBrokerServlet or MxmlServlet > functionality or both > In the standard FDS documentation, there is documentation on setting up > a MessageBrokerServlet only configuration, which can be a starting > point. > > If you're trying to compile mxml, then you need the MxmlServlet > functionality. > i. make sure that the application containing the mxml files have all the > required definitions in web.xml > ii. make sure that flex-bootstrap.jar is in the web application > classpath, as defined by your application server > iii. make sure that the jars in /WEB-INF/flex/jars are in a central > location and update web.xml flex.bootstrap.classpath to point to that > location > iv. specify the location of /WEB-INF/flex/flex-webtier-config.xml in > web.xml within the MxmlServlet definition > <servlet> > <servlet-name>FlexMxmlServlet</servlet-name> > ... > <init-param> > <param-name>webtier.configuration.file</param-name> > > <param-value>/WEB-INF/flex/flex-webtier-config.xml</param-value> > </init-param> > </servlet> > v. update the <flex-config> element in flex-webtier-config.xml to point > to flex-config.xml > vi. open up flex-config.xml and be sure that all paths are specified > correctly (use absolute or relative to flex-config.xml) > vii. if you're compiling to connect with MessageBrokerServlet > functionality, you'll need the flex-services.xml and include files to > compiel against. This location can be specified in > flex-webtier-config.xml <services> element (I think) > > If you need the MessageBrokerServlet functionality, > i. make sure that jars in flex/WEB-INF/lib (except flex-bootstrap.jar) > are available in the web application classpath > ii. be sure that MessageBrokerServlet is defined in your application's > web.xml, whichever application contains the server-side classes > iii the servlet definition should specific the location of > /WEB-INF/flex/services-config.xml > > > - Cathy > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of klumikaze > Sent: Wednesday, July 19, 2006 1:34 PM > To: [email protected] > Subject: [flexcoders] Re: Running Flex Data Services apps outside of the > <server root>/flex/ dir > > Hey Dave, > > Sorry for the confusion. :) > > Basically what we want, is to have a /flex/ directory where the FDS > libraries exist, and then have web applications at the server root > level that are Flex based. > > An example: > > We want to have a directory under our server root called 'myApp' with > a file called 'main.mxml'. We then want to be able to access > http://www.mydomain.com/myApp/main.mxml and have it use the FDS > libraries and compile the app properly. > > Essentially the behavior we're seeing is that any application that's > not a subdir of the /flex/ directory, when referencing mxml files that > is, prompts us to download the mxml file (I assume because it doesn't > understand what to do with the MXML mime type). > > Does that clarify it at all? > > Thanks Dave, > > Brian > > --- In [email protected], "Dave Wolf" <gatorj24@> wrote: > > > > Brian, > > > > I am a little confused by your question. You seem to indicate you > > want to have a seperate web application for the FDS services from > > where the Flex/Flash application lives. Then you kind of confuse me > > when you say you want a "shared" library. > > > > The idea is that /flex is where FDS lives, and you can then create > > /snoopy and put your web applications under there. Thats not quite > > what I would call a "shared library". The /flex web app contains the > > FDS services and associated libraries. The /snoopy web app contains > > your swfs and assets and connects to the services at /flex as needed. > > > > What errors are you seeing? > > > > Is what you are really saying that you just dont want the FDS web app > > named /flex? > > > > > > -- > > Dave Wolf > > Cynergy Systems, Inc. > > Adobe Flex Alliance Partner > > http://www.cynergysystems.com > > http://www.cynergysystems.com/blogs > > > > Email: dave.wolf@ > > Office: 866-CYNERGY > > > > > > --- In [email protected], "klumikaze" <dunphy@> wrote: > > > > > > Link didn't appear to work... if you click on 'Options for > developing > > > a Flex Data Services application' once you're on that page, you'll > see > > > the second diagram I mean. > > > > > > Thanks, > > > > > > Brian > > > > > > --- In [email protected], "klumikaze" <dunphy@> wrote: > > > > > > > > We've been pulling our hair out trying to figure out how to run > > > > applications outside of the /flex/ dir in our J2EE server. > > > > > > > > Currently we're using JBoss, but I would assume that the > configuration > > > > is similar across all application servers. > > > > > > > > Essentially, what we want to do is create a structure like the > second > > > > diagram in the following page (from the Flex 2 documentation): > > > > > > > > > > > > > > http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww > help.htm?context=LiveDocs_Parts&file=00001320.html > > > > > > > > Can anybody point me to the proper Flex/JBoss or other > configuration > > > > files required to create an application at the server root level > > > > without including the FDS libraries underneath? (i.e. using a > common > > > > FDS library from /flex/ on the same server). > > > > > > > > Any help would be appreciated -- apologize in advance if the > question > > > > is a bit confusing. > > > > > > > > Thanks, > > > > > > > > Brian > > > > > > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

