Flex Test Drive Server for Java Developers (Tomcat-based)

I have been working on a Tomcat-based “Flex Test Drive Server”. The Test Drive Server is a minimal and ready-to-use version of Tomcat (currently version 5.5.20) in which the Flex Data Services (version 2.0.1) WAR file has already been deployed and configured along with a variety of tutorials and sample applications. It allows you to get up and running integrating Flex with Java back-ends in a matter of minutes. Download fds-tomcat.zip, expand the file, and run…

The Test Drive Server includes:

  1. An updated version of my 30 minutes Test drive for Java developers
  2. A brand new Flex Data Management Services tutorial
  3. Flex/Spring integration samples running “out-of-the-box”
  4. Flex/Hibernate integration samples running “out-of-the-box”
  5. Flex/JMS integration samples (JMS powered by ActiveMQ) running “out-of-the-box”
  6. A new version of my Real Time Market Data application with advanced messaging features: Java API (no JMS in this version), subtopics, etc.
  7. Collaboration Dashboard

Installation Instructions
  1. Proceed to the Test Drive Server download page
  2. Expand fds-tomcat.zip

    NOTE: The instructions in the documentation assume that you expand fds-tomcat in your root directory. You can expand fds-tomcat anywhere else. Just make sure you adjust the path in the samples and tutorial instructions accordingly.

  3. Open install.htm in the fds-tomcat directory for information on running the Test Drive Server.

Disclaimer: The Test Drive Server is currently not an officially supported product. I’ll of course do my best to answer your questions, and your feedback is very much appreciated. It is intended to allow Java Developers to quickly evaluate or/and get started with Flex in a Java environment.

ERRATA: On page 4 in the tutorial PDF: “On the Java Settings page, specify fdms-tomcat/classes as the Default output folder, and click Finish”. The name of the folder is incorrect: it should read: Specify “fds-tomcat/classes” as the Default output folder (The screen shot is correct).

More Info

The Flex Test Drive Server includes the following products, frameworks, and libraries (All these products are configured to work together “out-of-the-box” when you install the Test Drive Server) :

Comments

103 Responses to “Flex Test Drive Server for Java Developers (Tomcat-based)”

  1. Christophe Coenraets » Flex Data Management Services Tutorial on January 12th, 2007 11:58 am

    [...] As part of the Flex Test Drive Server, I wrote a new Flex Data Management Services tutorial. The tutorial takes you through the full FDMS application development life cycle: Java assembler, destination, and client application. Additional topics include: [...]

  2. Got RIA? » Blog Archive » FDS Examples With Tomcat By Christophe Coenraets on January 12th, 2007 1:04 pm

    [...] FDS Examples With Tomcat By Christophe Coenraets Mr. Coenraets recently published a great tutorial on FDS with Tomcat that he named, “Flex Test Drive Server;” the article includes: 1. An updated version of my 30 minutes Test drive for Java developers 2. A brand new Flex Data Management Services tutorial 3. Flex/Spring integration samples running “out-of-the-box” 4. Flex/Hibernate integration samples running “out-of-the-box” 5. Flex/JMS integration samples (JMS powered by ActiveMQ) running “out-of-the-box” 6. A new version of my Real Time Market Data application with advanced messaging features: Java API (no JMS in this version), subtopics, etc. 7. Collaboration Dashboard And in another post, he announced a Flex Data Management tutorial that’s also included in the Flex Test Drive Server. Good stuff if you’re looking to get into FDS. Kudos to one of Adobe’s Flex Evangelists! [...]

  3. Erik’s… Hmm… » Blog Archive » Daily Best Read - 1/12/07 (Flex Java Tutorials) on January 13th, 2007 9:51 am

    [...] Easily the best thing I stumbled across on the web yesterday was a post by Christophe Coenraets. Christophe has created what he calls a, “Flex Test Drive Server,” for Java developers. It is one zip file, that contains a Tomcat server, configured and installed with Christophe’s Java Flex tutorials. [...]

  4. MadeInFlex » Blog Archive » Flex Test Drive Server on January 15th, 2007 2:46 am

    [...] Flex Test Drive Server for Java Developers (Tomcat-based) [...]

  5. Valery Silaev on January 17th, 2007 4:24 am

    Christophe,

    Does integration with Hibernate implemented using native Hiberante API or via EJB3 PersistenceManager?

    If first, is it possible to extend HibernateAssembler to:
    1. Use EJB3 annotations instead of per-entity HBML configurations?
    2. Use PersistenceManager instead of Hibernate Session & Co?

    VS

  6. christophe on January 18th, 2007 10:04 am

    Hi Valery,
    We are using the native Hibernate API. But since we provide the source for the HibernateAssembler class, you can modify it to use the EJB3 PersistenceManager and annotations. Let me know if you have any question.
    Christophe

  7. Mark on January 19th, 2007 9:59 am

    This is awesome! Thanks for putting this out Christophe. I’ve been wanting to check out Flex and FDS for a while now and this looks like a great way to start.

  8. Eric on January 19th, 2007 11:47 am

    Hi, Christophe,
    Nice work! Do you have ant files for these examples; specifically the “Real Time Market Data Application”?
    E.

  9. Herman Jansen on January 21st, 2007 5:34 pm

    Hello Christophe,
    You just made my day. I was looking for a way to get Flex to talk to JMS. It only took me about 20 minutes to get fds-tomcat running on OS/X Tiger, and running the JMS demo. What a nice way to dive into fds. Thanks a lot.
    Herman.

  10. Nicolas on January 24th, 2007 1:08 am

    Hi Christophe,
    I get an exception when I’m trying to start tomcat (in thread main java.lang.NoClassDefFoundError: flexdemodb)

    Any idea?
    cheers!

  11. christophe on January 24th, 2007 5:58 am

    Nicolas,
    I haven’t seen this error before. A couple of questions:
    - Do you start Tomcat using “catalina run”?
    - Do you start Tomcat in the fds-tomcat\bin directory?
    - Do you use the JDK 1.5?

  12. Walt Parkman on January 25th, 2007 10:26 am

    What a nice foundation for a new life as a Flex developer. Thank you very much. I deployed your Tomcat on a Linux box (wparkman.com:8600) and access it from a different site at http://www.waltparkman.com.
    Can you clue me on how to get data when the .mxml file is not on the same box as the Tomcat server? I put MasterDetail.mxml from Sample #4 on the waltparkman.com site and I want to call the data service on wparkman.com:8600 using
    What do I have to know to make “srv” refer to the remote data service?
    Thanks
    Walt Parkman

  13. Walt Parkman on January 25th, 2007 10:32 am

    The

  14. Walt Parkman on January 25th, 2007 10:33 am

    Sorry, when I try to put an mx tag in my message it screws it up.
    RemoteObject id=”srv” is the tag I was referring to.
    Thanks

  15. Carl Bourne on January 25th, 2007 4:20 pm

    Hi Christophe,

    Thanks for a superb demonstration of Flex Data Services.

    We’re currently in the process of re-engineering one of our products and I’m looking at Flex as a candidate.

    Could you explain what would need to be done to get this test drive to run on the Glassfish/Sun Java Application Server Platform?

    Obviously this would provide the full J2EE stack without the need to tie together all of the required components separately.

    Carl

  16. Stephen on February 2nd, 2007 8:25 am

    I think Nicholas’s problem is because their is whitespace in the Win directory name. I had the same error and moved my install from “My Documents” down to the C:\ directory, and no problems. I do have a question though… how does one set up a http proxy for your example (is their a tag in the flex-config to set) if they are behind a firewall. Thanks for the help.

  17. Gerdt on February 4th, 2007 1:46 pm

    Thanx Christophe,
    Just what I was looking for for giving a quick demo for my colleagues.
    Unfortunately catalina run doesn’t recognize my environment variables. :(
    I have another tomcat 5.5 running without any problems also with JDK1.5 but no flex
    Thanks for te help.

  18. Gerdt on February 5th, 2007 1:26 am

    Never mind,

    after reboot 3 it all worked. Great stuff.

  19. William Wechtenhiser » Blog Archive » Hello! on February 6th, 2007 9:48 pm

    [...] (Note that for anyone curious about Flex Data Services I’d recommend starting with Christophe Coenraets’ excellent Test Drive) [...]

  20. Greg Bluntzer on February 12th, 2007 12:28 pm

    Thanks for the tutorial. I have several java base webservice running on Tomcat. Assuming that the webservices are on one instance of tomcat and the flash/ flex files would be on another instance, can you point me in the direction of passing a username, password into my webservice inside flex?

  21. Implementando Flex2 en el “Mundo Enterprise” - V (Hablando con el server en binario) at .: WEREMSOFT :. on February 14th, 2007 10:04 am

    [...] Resulta que Carlos Visser, un compañero de trabajo, me pasó un link a un artículo de un tal Christophe Coenraets, el cual había montado un server tomcat con varios ejemplos en flex y su integración con Spring/Java, tutoriales y demás, para poder ver los ejemplos andando. Este ejemplo es impresionante, lo descomprimis en la unidad C:, ejecutas un bat y ya podes ver los ejemplos(con código fuente y todo!), incluso trae un motor de base de datos para el ejemplo. [...]

  22. William Wechtenhiser » Blog Archive » Data Services: Technology of Tomorrow - Today! on February 18th, 2007 2:33 pm

    [...] Of course anyone who has been doing this for a few years will be rightly suspicious about claims of magic layers that make problems for developers just go away. That’s okay - in your place I’d be just as suspicious. Take them for a test drive and see for yourself. I welcome your comments! [...]

  23. VinceK on February 23rd, 2007 1:59 pm

    My workstation isn’t the greatest, but it does have 2 gigs of ram.

    I’ve set
    SET CATALINA_OPTS=-Xmx1536m
    and I still get
    java.lang.OutofMemoryError: Java heap space
    errors.

    Does that seem normal to you?

    jre1.5.0_11 on WinXP SP2.

    It seems like the only way I could even give more ram to java would be to install another 2 gigs and set the /3GB switch.

  24. Peter Jacobsen on February 26th, 2007 3:18 am

    Great Tutorial. Just for interest - how is the HSQLDB started by Tomcat? It is populated with “flexdemodb.script”, but I cannot locate the startup command.

    Thanks,
    Peter

  25. VinceK on February 26th, 2007 10:57 am

    I found my problem.

    I downloaded the .zip from Adobe http://www.adobe.com/devnet/flex/articles/java_testdrive.html and that was giving me trouble for some reason.

    I downloaded the tar.gz from Adobe and everything worked out of the box. I downloaded the .zip linked on this page and everything worked out of the box.

    Maybe you want to check the .zip at Adobe, or perhaps my download got corruupted.

    Otherwise, great stuff. Thanks.

  26. Vic on March 2nd, 2007 1:36 pm

    Where are your old blogs, like embeding a browser in flex?

    Also, can you help me sign up to beta apollo please?

    thank you!
    .V

  27. edgy on March 9th, 2007 11:23 am

    how do i get a flex haboo server

  28. laker2000 on March 13th, 2007 9:57 pm

    Simply awesome!!!
    I am a Java developer looking for Flex info. and this is exactly what I needed.

  29. Christophe Coenraets » Real Time Market Data using Apollo and Flex Data Services on March 23rd, 2007 12:58 pm

    [...] As an example of an FDS-powered Apollo application, I created an Apollo version of my real time market data application available as part of the Flex Test Drive for Java Developers. [...]

  30. MadeInFlex » Blog Archive » Apollo y Flex Data Services on March 27th, 2007 3:05 am

    [...] Christophe Coenraets ha escrito una entrada en su blog donde explica cómo integrar Apollo y FDS, podeis ver la entrada Real Time Market Data using Apollo and Flex Data Services, donde crea una versión Apollo de una de sus aplicaciones ejemplo dentro su Flex Test Drive for Java Developers. [...]

  31. Joe Burnett on March 30th, 2007 6:45 am

    Christophe, The test drive for tomcat is great! Easy to set up the demos. I have created a secure version using the keytool. I have a certificate warning and an https prefix and the little lock icon in the lower right of my IE browser. It LOOKS like it works, except that the data is not encrypted! Nor does it use TLS! I have another site (.NET web service called from a Flex 2.0 client). It encrypts and uses TLS as expected. What am I missing?

    Merci d’avance,

    Joe Burnett

  32. JerryBrightonhammer on March 30th, 2007 3:58 pm

    What in the name of Jerry Brightonhammer was that all about?
    I dont’ know but it doesn’t make sense to me.

  33. Himanshu Bari on April 6th, 2007 8:30 am

    Hello,
    We are looking at creating a Tibco RV adapter for Flex Dataservices. Any pointers from anyone having experience in creating custom adapters would be appreciated.
    Also we have a requirement of supporting around 500 concurrent users. Going through the capability evaluation doc for Flex Data Services, and looking at the performance numbers I wasn’t too convinced about FDS would hold up against the kind of volume we are looking at. I would to hear about your opinions

  34. C Cornwell on April 10th, 2007 8:32 am

    Running out of the box with JDK 1.5.0_08 on WindowsXP. In Sample1 I change url=”catalog.jsp” to destination=”catalog” as suggested, but after clicking “Get Data” all I see is a “Transferring data from localhost …” message in the status bar with nothing appearing in the DataGrid. There are no related messages in the tomcat log files.

    Any suggestions?

    Thanks,
    Carl

  35. Sohan on April 18th, 2007 6:11 am

    Hi Christophe,
    I stumbled upon this blog when I was trying to find a solution to an error i’m encountering while using FDS.
    Basically i’m modifying the Contact Manager FDS sample to use a ready SQL database but just replacing the MSAccess database with SQL DB throws a wierd error.
    I can get my ArrayCollection populated with data from the SQL server but each object is empty.
    My Java wrapper lists all the objects correctly before passing to Flex but somewhere they just break and come in Flex as empty objects.
    This only happens when using an SQL DB and not with an MS Access DB…everything else stays the same.
    The exact error it throws is
    The fill method with parameters ‘[Ljava.lang.Object;’ and destination ‘contacts’ returned null.

    I would appreciate if you can help me. Thanks!

  36. HelloWorld on April 28th, 2007 4:28 am

    Peace people

    We love you

  37. beginner on May 7th, 2007 3:58 pm

    Very nice job.

    The “fdms_tutorial.pdf” in the webapps\ROOT directory is/was INVALUABLE, but, maybe it’s me, I had no idea it was there.

    Just stumbled across it. Why wasn’t it referenced in the README or the install.html?

    Again, it’s probably me…

  38. Marko on May 11th, 2007 7:28 am

    Thanks for the resource Christophe.

    Any plan to enhance the tutorial to include what is new with LiveCycle Data Services 2.5?

    Thanks.

  39. Heather on May 17th, 2007 12:02 pm

    I can’t seem to get this to run on Mac OS 10.4. I get the following error: -bash: catalina: command not found

    Am I missing something simple here?

  40. Yoann on May 18th, 2007 1:53 am

    Just to let you know, with the Zip downloaded using the link from adobe page, I had this error :

    C:\Yoann\Flex\30 minutes Tomcat Flex\fds-tomcat\bin>catalina run
    Using CATALINA_BASE: C:\Yoann\Flex\30 minutes Tomcat Flex\fds-tomcat
    Using CATALINA_HOME: C:\Yoann\Flex\30 minutes Tomcat Flex\fds-tomcat
    Using CATALINA_TMPDIR: C:\Yoann\Flex\30 minutes Tomcat Flex\fds-tomcat\temp
    Using JRE_HOME: C:\Program Files\Java\jre1.5.0_06
    ————————————————————-
    Access the Flex Test Driver Server at: http://localhost:8600/
    ————————————————————-
    Exception in thread “main” java.lang.NoClassDefFoundError: minutes

    However all works fine when I use the Zip from this page.

  41. Yoann on May 18th, 2007 6:24 am

    Hello,

    I found that the error was in fact caused by the space in the directory … not by the archive.

    However I am now stucked with a weird problem : I launch Tomcat without problem, and all examples just work fine. Then I do the tutorial (from the pdf file) and no sample using the local database work anymore. I wonder if any of my Eclipse plugins can cause problems …

  42. Anders Haugeto on May 23rd, 2007 8:07 am

    I’ve so far been unable to figure out how to use the FDS built-in Hibernate mechanisms in conjunction with Spring. There are many examples showing how to use Spring or Hibernate, but none show how to use them both.

    Some suggest writing your own Assembler that uses the Spring Hibernate mechanisms, but I don’t like the idea of omitting “the FDS way” for this reason.

    The way I see it, it would be convenient if Spring could simply hand FDS a Hibernate session factory. This way, Spring would be responsible for managing all Hibernate related objects, and FDS acts as just another Hibernate client.

    Any other thoughts on this?

  43. Odo on June 12th, 2007 2:54 am

    ok, it turned out to be Hibernate issue, commented data-management-config.xml’s and all works!

  44. Mikhail on June 13th, 2007 3:33 pm

    Nice work mate!!!
    Thanks a lot!!

  45. Hans on June 16th, 2007 10:10 am

    Hi,

    I like the samples you made a lot, but have some trouble understanding all workings, especially dependencies I try to figue out (e.g. database stuff). Most stuff is ‘hidden’ somewhere in the war file, which leaves me in doubt which parts exactly are shared between the applications.

    Would it be possible to also provide 1 war file per example, including only the sources necessary for that particular application?

    That way, it would be way easier to start writing my own fds applications, based on the example I want.

    Thanks in advance!

  46. manas on June 17th, 2007 1:54 pm

    hi christophe
    i dont know how to initialize JAVA_HOME and JRE_HOME environment variable

  47. manas on June 17th, 2007 2:20 pm

    i get d solution its in control panel->system
    i have another question i am tryin to develop a lan scanner so how to get what is shared by d people in d Lan (os:windows Xp)

  48. zqgagqwdea on June 18th, 2007 2:01 am

    Hello! Good Site! Thanks you! baegelkpppwm

  49. Alex on June 28th, 2007 9:15 am

    Guys,
    please help!
    I’m new to j2ee world.
    I’ve installed Ubuntu/Glassfish. It works admin panel, default tomcat page.
    but when I autodeploy glassfish exmaple Helloworld.war and try to call it from browser I’m getting “javax.servlet.ServletException: java.lang.NoClassDefFoundError: ” … looks like classpath is not set, but in JVM Classpath Settings it is set to ${com.sun.aas.installRoot}/lib/appserv-launch.jar and Environment Classpath ingore option is ticked.

    May be this is a bit off-topic, but I do not know where to write and ask for help.

    Thanks.

  50. ammmore » Blog Archive » flex and java: first test on July 9th, 2007 1:32 pm

    [...] these notes are taken from this tutorial (Christophe Coenraets):http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/ [...]

  51. Polaco on July 13th, 2007 6:20 am

    Mr. Coenraets,

    In the company I work for are planning to create a flash view to some portlets. I have read your article at Macromedia.
    The problem we have thought we could be facing is to pass a big amount of data to the swf that is used as a view.
    We have a portlet that shows news, it works basically this way:

    1-Retrieve the contents from Vignette Content Managment
    2-JSP page recieves the news objects and creates the HTML.

    So to implement the flash view we have thought about adding an XML version of the news to a flashvar and then the swf renders them.
    However we have found that the max size of a flashvar is 64K. So we think that the only way to achive this is to make the swf go trhough some servelet/webservice that returns to it the news in an XML format. That´s a problem since it involves much more work and maybe duplicated functionality, I mean in the portlet and on the servlet used to retrieve the news…
    Do you knpw some tutorial, example, best practices or something about doing this?

    Sorry for having posting it here but I didn´t find a better place.

    Thanks in advance.

  52. Ezmo Developer Blog » Introducing Flex Data Services in an exisiting application on July 18th, 2007 11:16 pm

    [...] Our old web application was built using Spring and we needed to enable this in FDS too. Luckily we where not the first to do this, so we had a look a the Flex Test Drive Server for Java Developers created by Christophe Coenraets. Basically all you need to do is to create a SpringFactory class which you configure in FDS, all this is covered in detail by Christophe. You can also read our article on Using Flex Data Services with Spring and Hibernate for more details on how you setup FDS and Spring. [...]

  53. Matt on July 25th, 2007 12:52 am

    Hi,

    I’ve used the Product/Admin as a starting point to hack together a little Contact Manager example. Exactly the same except with Contacts in the DataGrid and Contact Details in the Form.

    I have another exception which is causing me trouble. I have a child object Address inside my Contact class.

    I can set the Contact values along with Address values, using dot notation, when the Manager class uses the selected object passing it into the Form.

    That works.

    However I get the following warning.

    Data binding will not be able to detect assignments to “streetName”.

    Apologies for asking for help on your blog but if you have a quick comment for me I would appreciate it.

    Thanks

    Matt

  54. John on July 25th, 2007 1:52 pm

    I am trying to configure LCDS 2.5 / Tomcat 6 / ActiveMQ 4.1 to work with your fms example. I haven’t been able to get things to work and was wondering if you were planning an update of your testdrive with the latest LiveCycle Data Services 2.5?

    Thanks,
    John

  55. Matt on July 26th, 2007 10:53 pm

    Hi,

    Just replying my own comment above where I had a binding error on a child object…

    I don’t know how I overlooked such a simple thing but the Address class I mentioned didn’t have a [Bindable] MetaTag….

    Of course it could bind. And Flex was nice enough to tell me so.

    Regards,

    Matt

  56. ZoneWeb on July 30th, 2007 3:41 pm

    Hello!
    i found FREE xbox and iphone on the freestuffes.com, it is real??!

  57. BigBoomer on July 31st, 2007 6:37 pm

    Heya!!
    see filmsbuy.com site with thousands movies for downloads!! it is legal or no?

  58. Timmy on August 10th, 2007 12:29 pm

    Anyone have problems running the Real Time Market Data example?

    When I try to run the startfeed.jsp I get an error

    Exception in thread “Thread-31″ java.lang.NullPointerException
    at flex.samples.marketdata.Feed$FeedThread.run(Unknown Source)

    INFO: ActiveMQ Message Broker is shutting down.

  59. BabyVult on August 12th, 2007 1:58 pm

    heey!!:) I want to find the sexy boys!
    Im just a nice girl looking for a nice guy!:)

    see my profile sugar baby

  60. hman on August 13th, 2007 5:41 pm

    so far everything runs great.. I am working through the fdms_tutorial.pdf and I am at step 4. test the application..
    I am getting this error:
    1 Exception found.

    Exception flex.messaging.config.ConfigurationException
    Configuration error encountered on line 76, column 6: ‘The value of attribute “id” must not contain the ‘

  61. hman on August 13th, 2007 6:06 pm

    …sorry… I see the same error while running catalina…but hard to tell what file this is in.. looks like it has something to with the ActiveMQ which proceeds the [Fatal Error]….

  62. Stephen Smithstone on August 17th, 2007 8:24 am

    Just download the test server just come across something weird if you start the server from with Eclipse with MyEclipse IDE plugin the server fails to create the HSQLDB connection and fails to load the flex2.server.j2ee.MxmlServlet and the rest that are defined for use by the bootstrap servlet classes on the boot loader classes anyone know how to fix this , or am i going to have to run the server from outside of eclipse where it works fine

  63. Richard113 on August 28th, 2007 1:50 pm

    All want the good day!!!!!

    Much on subject there is on Yandex)))
    I like beautiful girls))))

    Who can recommend get prettier protection from virus? Answer… pls

    See you later!!!)))

    No need to do the problems from nothing!!,

  64. Florecista’s Weblog on September 9th, 2007 10:46 pm

    [...] Another cool thing from Christophe Coenraet’s blog is the Flex Test Drive Server For Java Developers (Tomcat based). [...]

  65. kandasami raja on September 10th, 2007 2:20 am

    hi christophe,

    i want to embedd a mxml file in to jsp . i want to done this with a taglibrary “FlexTagLib” . idont know wat are the necessary jars and files are necessary to configure “flextaglib” in web.xml of my tomcat5.5

    this is my web.xml
    ————————

    WeekiServer
    Weeki Server

    flex.class.path
    /WEB-INF/flex/jars

    flex.messaging.HttpFlexSession

    MessageBrokerServlet
    MessageBrokerServlet
    flex.messaging.MessageBrokerServlet

    services.configuration.file
    /WEB-INF/flex/services-config.xml

    flex.write.path
    /WEB-INF/flex

    1

    FlexMxmlServlet
    MXML Processor
    Servlet wrapper for the Mxml Compiler
    flex.bootstrap.BootstrapServlet

    servlet.class
    flex.webtier.server.j2ee.MxmlServlet

    webtier.configuration.file
    /WEB-INF/flex/flex-webtier-config.xml

    1

    FlexSwfServlet
    SWF Retriever
    flex.bootstrap.BootstrapServlet

    servlet.class
    flex.webtier.server.j2ee.SwfServlet


    2

    FlexForbiddenServlet
    Prevents access to *.as/*.swc files
    flex.bootstrap.BootstrapServlet

    servlet.class
    flex.webtier.server.j2ee.ForbiddenServlet

    FlexInternalServlet
    flex.bootstrap.BootstrapServlet

    servlet.class
    flex.webtier.server.j2ee.filemanager.FileManagerServlet

    10

    MessageBrokerServlet
    /messagebroker/*

    FlexMxmlServlet
    *.mxml

    FlexSwfServlet
    *.swf

    FlexForbiddenServlet
    *.as

    FlexForbiddenServlet
    *.swc

    FlexInternalServlet
    /flex-internal/*

    index.html
    index.htm

    FlexTagLib
    /WEB-INF/lib/flex-bootstrap-jsp.jar

    Flex Messaging WorkManager
    wm/MessagingWorkManager
    com.ibm.websphere.asynchbeans.WorkManager
    Container
    Shareable

    –>

    ——————————————–

    here is a jsp file having taglib embed mxml file

    testing tag library

  66. kandasami raja on September 25th, 2007 2:40 am

    hi guys

    i am getting the following error wen i invoke a java arraylist using ” mx:RemoteObject ” tag to dataProvider of datagrid in flex .

    [RPC Fault faultString=”Send failed” faultCode=”Client.Error.MessageSend” faultDetail=”Channel.Connect.Failed error undefined url:’rtmp://10.21.160.235:2037′”]

    any sample examples for mx:RemoteObject is apreciated

    u can reply to my email id

    thanks
    kandasami raja.c
    kandaraja@gmail.com

  67. Sudhansu Pati on October 4th, 2007 10:57 pm

    I have been trying to connect to a WebLogic JMS Queue using Adobe Flex 2.0.1 and Adobe Livecycle Data Services. I am able to connect to a WebLogic Topic without any problem. However, for some reason, flex is not able to get messages from a WebLogic JMS Queue. I have gone through the documentation (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=messaging_config_103_08.html). The documentation is also light on JMS Queues.
    Do I have to do anything different from connecting to a Topic to connect to a Queue?

    ============ my mxml =================

    ================messaging-config.xml=============

    true

    flex.messaging.durability.FileStoreManager

    Queue
    javax.jms.TextMessage

    weblogic.jms.ConnectionFactory

    FlexJMSQueue

    FlexJMSQueue
    NON_PERSISTENT
    DEFAULT_PRIORITY
    AUTO_ACKNOWLEDGE
    false

    Context.SECURITY_PRINCIPAL
    anonymous

    Context.SECURITY_CREDENTIALS
    anonymous

    Context.PROVIDER_URL
    t3://localhost:7001

    Context.INITIAL_CONTEXT_FACTORY

    weblogic.jndi.WLInitialContextFactory

  68. Aravind on October 12th, 2007 5:57 am

    hi christophe,
    I just want to know how redirection from jsp to mxml works . I have seen your example on using struts with flex. From RegistrationAction , just redirected to a jsp. how request will be forwaded to orinal mxml . Now I want to redirect to a different mxml , is it possible ? Could you please explain how this request redirect works
    Thanks a lot for sharing sample applications.

  69. Edward Apostol on October 21st, 2007 6:59 pm

    Hi Christophe -

    Just wanted to let you know that I was able to get Flex Live Cycle Data Services 2.51 working with Tomcat 6.0.13, along with web, messaging and data management services. Took a while, but your setup provided a guideline for me to get it finally working. This is especially important since JRun 4 has issues installing on Vista (the updater 6 will not install, which is a requirement for Flex). Anyway thanks for the information.

  70. Cain on November 2nd, 2007 8:44 am

    I noticed in this tutorial you import flex.messaging.util.UUIDUtils in your Feed.java files for both the testdrive and market data examples… yet I cant seem to find this class in the flex messaging api, what am i overlooking?

  71. Cain on November 2nd, 2007 11:15 am

    Also I wanted to know if you had a step by step instructions how to seperate the install of the different components you listed, specifically, I would like to update to the newer version of Tomcat (though thats not completely necessary) and install Life Cycle instead of the depreciated version of FDS. Lastly, and most importantly, I would like to use these to host my own web apps.

    Thanks in advance for the help!

  72. Tom on November 8th, 2007 1:58 pm

    To expand on a post by Anders Haugeto on May 23rd, 2007:

    Has anyone found a good example of how to use Spring and Hibernate together and in conjunction with Flex remoting (not LCDS)? Christophe’s separate examples are great, but this is one step further.

  73. Francisco Zarate on November 26th, 2007 10:09 am

    Problem on spanish windows installation:
    I have set the JRE_HOME manually on a dos window to “C:\Archivos de programa\java\jre1.5.0_13″ but when i tried to start: “catalina run”
    the server stop with the message:
    “NO SE ESPERABA DE EN ESTE MOMENTO”

    Solution:
    the workaround was to set the JRE_HOME variable to:
    “C:\Archiv~1\java\jre1.5.0_13″

    Francisco.

  74. JMi on November 27th, 2007 12:27 pm

    Great -> first step.

    Do you have a sample with the Spring Acegi Security ?

  75. arieljake on December 18th, 2007 10:10 am

    Thank you for this. I was not able to get DataServices to work on Tomcat6, reverted to using your server, copied some lib files from your ROOT webapp to mine, copied your META-INF/context.xml file, and the error I got was resolved.

    Question: what are the login and password for the manager app?

  76. venk on February 18th, 2008 6:05 pm

    If anyone has tried getting fds to work with tomcat 6 and have been successful, it will be awesome if you can provide the steps you took to configure tomcat6/fds to work together

  77. Data Server on February 23rd, 2008 11:32 pm

    Make sure your data center furniture fits your budget. The new server racks and data cabinets on the market these days are very inexpensive. There are many places to buy online. I found the quality and value of the network support furniture you can get to be above my expectations. Make sure you ask about the quality before you buy. Check out the data server racks if you get the opportunity.

  78. raj on February 26th, 2008 11:42 pm

    hi
    i want to know how to integrate the java with the flex

    if any please post me data at my email id

    ihoneywell26@yahoo.com

  79. Deha Peker on March 19th, 2008 11:19 pm

    I am new to Flex and trying to figure out how to integrate Flex with Java (Spring, Hibernate). Just to make this example work, does it matter whether it is Flex 2 or 3?

  80. David on March 20th, 2008 10:48 pm

    Muchas gracias =D

  81. Jas on March 22nd, 2008 7:08 pm

    I am using the springfactory and had everything working. But recently i tried to send arrayCollection from client to backend and got following exception. Any guess what is going wrong or how to fix this.

    Thanks

    [2008.03.21 23:06:09.180][WARN ][istener0-0][Price-Discount-Engine ][ ServletHandler.java: 589] - /service/httpinvocation/admin/AdjustmentService:

    java.lang.ClassNotFoundException: flex.messaging.io.ArrayCollection

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:242)

  82. Iftekhar on March 28th, 2008 9:11 am

    Hi Christopher,
    I am trying to use Flex with Spring. I have an API that returns a list of beans. How do I access the bean in my flex. Do you have any example?
    Thanks

  83. Hillary on April 7th, 2008 9:11 pm
  84. Halifax Building Society on April 15th, 2008 3:02 pm

    Cool!!

  85. jerricality on May 2nd, 2008 6:02 pm

    I was looking through the marketdata example and I wanted to do something similar. However, I don’t quite understand how your feed from http://finance.yahoo.com/rss/headline works.

    So, I know you defined it in proxy-config.xml and you made a bunch of channel definitions in services-config, but when I copied over your News.mxml and NewsItemRenderer.mxml, it doesn’t work.

    All I did was insert

    to my application to test if it works, and all I get is “news service temporary unavailable.” Can someone help me?

    Stuff to consider,
    I am using granite data services instead of flex data services. However, that shouldn’t matter right?

    Moreover, I’m not quite sure which libraries I should copy over. Is it because I don’t have the correct httpservice libraries?

    Thanks for any help. My email address is jerricality@gmail.com

  86. jerricality on May 2nd, 2008 6:03 pm

    Sorry for the repost, but for some reason it didn’t show what I code I inserted.

    I was looking through the marketdata example and I wanted to do something similar. However, I don’t quite understand how your feed from http://finance.yahoo.com/rss/headline works.

    So, I know you defined it in proxy-config.xml and you made a bunch of channel definitions in services-config, but when I copied over your News.mxml and NewsItemRenderer.mxml, it doesn’t work.

    All I did was insert
    “”

    to my application to test if it works, and all I get is “news service temporary unavailable.” Can someone help me?

    Stuff to consider,
    I am using granite data services instead of flex data services. However, that shouldn’t matter right?

    Moreover, I’m not quite sure which libraries I should copy over. Is it because I don’t have the correct httpservice libraries?

    Thanks for any help. My email address is jerricality@gmail.com

  87. jerricality on May 2nd, 2008 6:04 pm

    Ok, I will just remove the left and right brackets

    News stock=”MOS” height=”30%”

  88. Florian Oeser on May 5th, 2008 6:06 am

    Hi guys,
    i’m trying to start the fds-tomcat on my Suse Linux server. When i start the catalina.sh the system prompt:
    catalina.sh: line 78: cygpath: command not found
    catalina.sh: line 79: cygpath: command not found
    catalina.sh: line 80: cygpath: command not found
    Cannot find /bin/setclasspath.sh
    This file is needed to run this program

    Does anyone found a solution for this?
    thx and best regards
    Florian Oeser

  89. WHAT IS FLEX? on May 5th, 2008 8:06 am

    [...] together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more [...]

  90. Florian Oeser on May 8th, 2008 12:44 pm

    Okay i’d the wrong java version installed.
    But i have another question. I looked at the hibernate example in the fds-tomcat. And i wondered why there aren’t any imports of org.hibernate… and no Sessions and Transactions. In my opinion they must be in the Productservice.java. Could anyone explain me why we don’t need this anymore?Is this related couz of Flex and the DataManagmentService?

    thx for your help :D

  91. Anton on May 11th, 2008 7:28 am

    Hi, Christophe. Thanks a lot for test drive server! Nothing i’ve found on the web helped me SO MUCH. It’s just great, i am happy now :)

  92. Andrew Rubalcaba on May 13th, 2008 4:58 pm

    If I already have Tomcat 6.0 installed in on machine , can I still do this tutorial?

  93. Florian Oeser on May 15th, 2008 7:22 pm

    I worked with the sample from the fds-tomcat relatet to hibernate(product-sample). I only changed the identity property and the hibernate-entity. So i just changes the class from flex.testdrive.store.Product to flex.radioSiTY.Stream. When i look in the localhost.conf there is following error shown:
    “flex.messaging.config.ConfigurationException: Unable to create service ‘flex.data.DataService’ for ‘data-service’ due to the following error: Error instantiating application scoped instance of type ‘flex.data.assemblers.HibernateAssembler’ for destination ‘hibernate-product’..”
    I read a lot of peoples having the exact problem like me but i can’t find any solution for this problem.
    I hope you can help. I also can post the rest of the source perhaps u need.

    Best regards
    Florian Oeser

  94. Britney on May 21st, 2008 11:56 pm
  95. Dave McLellan on May 28th, 2008 11:05 am

    I’m using the 1/25/2007 version of the Test Drive Server. Flex Plugin for Eclipse is version 3.0.194161 and does not have the same dialogs as the tutorial.pdf for creating a Flex Project in Eclipse. What Flex Plugin version is needed to match up with the tutorial?
    thanks.
    It is indeed an impressive package.

  96. Nirvish Patel on June 5th, 2008 9:28 am

    Hi Christophe,

    Could you explain what would need to be done to get this test drive to run on the Glassfish/Sun Java Application Server Platform?

    Regards,
    Nirvish Patel

  97. florian-oeser.de » Blog Archive » HowTo: BlazeDS/FDS-Tomcat Installation auf Linux on June 5th, 2008 10:46 am

    [...] entweder den BlazeDS oder den FDS-TOMCAT [...]

  98. Keith Kwiatek on June 18th, 2008 11:03 am

    Hello,

    I was able to install an run the original portfolio version (2006) that uses JMS.

    BUT then I decided to modify the application slightly so that the application would show the clientID of every message that the client received. I expected the flex client to show only messages with it’s client ID, since that was the ID subscribed to the JMS Topic. AND when I ran only 1 client, this is indeed what I saw….

    BUT when I ran multiple portfolio flex clients, each client would occasionally display clientID’s from the other flex clients!?!?!

    Shouldn’t each flex client only receive messages for it’s client ID? Or is this a bug?

    I was using weblogic.

    Keith

  99. Bharathi on June 27th, 2008 12:40 pm

    Hi Christophe,
    I am getting following error when trying to run the test drive. Could you please help me?
    C:\Apps\fds-tomcat\bin>catalina run
    Using CATALINA_BASE: C:\Apps\fds-tomcat
    Using CATALINA_HOME: C:\Apps\fds-tomcat
    Using CATALINA_TMPDIR: C:\Apps\fds-tomcat\temp
    Using JRE_HOME: C:\Program Files\Java\jre1.5.0_12
    ————————————————————-
    Access the Flex Test Driver Server at: http://localhost:8600/
    ————————————————————-
    1 “C:\Program Files\Java\jre1.5.0_12\bin\java”
    2 -Dhsqldb_database=C:\Apps\fds-tomcat\db\flexdemodb -Dhsqldb_dbname=flexdemodb
    -Dhsqldb_port=9001 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa
    nager -Djava.util.logging.config.file=”C:\Apps\fds-tomcat\conf\logging.propertie
    s”
    3 -Xmx512m
    4
    5 C:\Apps\fds-tomcat\common\endorsed
    6 C:\Program Files\Java\jre1.5.0_12\lib;c:\Apps\libs;.;C:\Program Files\Java\jdk
    1.5.0_06\lib\tools.jar;C:\Apps\fds-tomcat\bin\bootstrap.jar
    7 C:\Apps\fds-tomcat
    8 C:\Apps\fds-tomcat
    9 C:\Apps\fds-tomcat\temp
    10 org.apache.catalina.startup.Bootstrap
    11
    12 start
    13 C:\Program Files\Java\jre1.5.0_12\bin;C:\Oracle\8i\bin;C:\Program Files\Oracl
    e\jre\1.1.7\bin;C:\Oracle\8.0\bin;C:\Oracle\8.0\jdk\bin;;C:\WINNT\system32;C:\WI
    NNT;C:\WINNT\System32\Wbem;C:\Program Files\Axalto\Access Client\v5\;C:\Program
    Files\Schlumberger\Smart Cards and Terminals\Common Files\;C:\Program Files\Acti
    vCard\SecureLogin Single Sign-On\;C:\Program Files\QuickTime\QTSystem\;C:\Progra
    m Files\1E\SMSNomad\;C:\Program Files\Windows Imaging\;C:\Oracle\10g\InstantClie
    nt
    The system cannot find the path specified.

    C:\Apps\fds-tomcat\bin>

  100. Himanshu on June 29th, 2008 11:54 am

    Hi, This package includes Flex Data Services. Is it a trial version of some sort. From what I see on adobe website, FDS is now called livecycle data services and that costs money?

  101. Joshua on July 13th, 2008 11:39 pm

    Is BlazeDS the revised version of this FDS? We are currently confused on which one to use.

    best regards

  102. What is rivotril. on July 15th, 2008 6:35 pm

    Rivotril….

    What is rivotril. Rivotril. Rivotril mexico. Buy rivotril with same day delivery. Buy rivotril….

  103. sohbet on July 21st, 2008 4:12 am

    thanks

Leave a Reply