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:
- An updated version of my 30 minutes Test drive for Java developers
- A brand new Flex Data Management Services tutorial
- Flex/Spring integration samples running “out-of-the-box”
- Flex/Hibernate integration samples running “out-of-the-box”
- Flex/JMS integration samples (JMS powered by ActiveMQ) running “out-of-the-box”
- A new version of my Real Time Market Data application with advanced messaging features: Java API (no JMS in this version), subtopics, etc.
- Collaboration Dashboard
Installation Instructions
- Proceed to the Test Drive Server download page
- 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.
- 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) :
- Tomcat 5.5.20
- Flex Data Services (FDS 2.0.1)
- JOTM (JTA implementation)
The Flex Data Management Services leverage the Java Transaction API (JTA). Because
Tomcat doesn’t provide a JTA implementation, the Test Drive Server includes JOTM (an open source implementation of the Java Transaction API). You don’t need JOTM if your application server implements the full Java EE stack. - ActiveMQ (JMS implementation)
The Flex Data Services integrate with JMS (see integration examples in the Test Drive Server). Because Tomcat doesn’t provide a JMS implementation, we use ActiveMQ (an open-source JMS provider) as part of this Test Drive Server. You don’t need ActiveMQ if your application server implements the full Java EE stack, or if your application doesn’t use JMS.
- Spring 2
Flex integrates with the Spring framework through the Flex SpringFactory (see integration examples in the Test Drive Server). Spring 2 is part of the Flex Test Drive Server to demonstrate this Flex/Spring integration.
- Hibernate 3.2
Flex integrates with the Hibernate through the Flex HibernateAssembler(see integration examples in the Test Drive Server). Hibernate is part of the Flex Test Drive Server to demonstrate this Flex/Hibernate integration.
- HSQLDB 1.8
To allow you to run the tutorial “out-of-the-box” without setting up a database, the Test Drive server
includes an HSQLDB database. HSQLDB is a lightweight Java RDBMS that is particularly well
suited to run samples. hsqldb.jar (in [tomcat_root]\webapps\ROOT\WEB-INF\lib) includes both
the RDBMS engine and the JDBC driver. The HSQLDB database server is automatically started as part of the Tomcat startup process.
Comments
103 Responses to “Flex Test Drive Server for Java Developers (Tomcat-based)”
Leave a Reply









[...] 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: [...]
[...] 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! [...]
[...] 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. [...]
[...] Flex Test Drive Server for Java Developers (Tomcat-based) [...]
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
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
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.
Hi, Christophe,
Nice work! Do you have ant files for these examples; specifically the “Real Time Market Data Application”?
E.
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.
Hi Christophe,
I get an exception when I’m trying to start tomcat (in thread main java.lang.NoClassDefFoundError: flexdemodb)
Any idea?
cheers!
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?
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
The
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
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
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.
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.
Never mind,
after reboot 3 it all worked. Great stuff.
[...] (Note that for anyone curious about Flex Data Services I’d recommend starting with Christophe Coenraets’ excellent Test Drive) [...]
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?
[...] 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. [...]
[...] 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! [...]
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.
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
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.
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
how do i get a flex haboo server
Simply awesome!!!
I am a Java developer looking for Flex info. and this is exactly what I needed.
[...] 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. [...]
[...] 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. [...]
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
What in the name of Jerry Brightonhammer was that all about?
I dont’ know but it doesn’t make sense to me.
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
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
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!
Peace people
We love you
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…
Thanks for the resource Christophe.
Any plan to enhance the tutorial to include what is new with LiveCycle Data Services 2.5?
Thanks.
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?
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.
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 …
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?
ok, it turned out to be Hibernate issue, commented data-management-config.xml’s and all works!
Nice work mate!!!
Thanks a lot!!
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!
hi christophe
i dont know how to initialize JAVA_HOME and JRE_HOME environment variable
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)
Hello! Good Site! Thanks you! baegelkpppwm
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.
[...] these notes are taken from this tutorial (Christophe Coenraets):http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/ [...]
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.
[...] 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. [...]
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
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
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
Hello!
i found FREE xbox and iphone on the freestuffes.com, it is real??!
Heya!!
see filmsbuy.com site with thousands movies for downloads!! it is legal or no?
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.
heey!!:) I want to find the sexy boys!
Im just a nice girl looking for a nice guy!:)
see my profile sugar baby
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 ‘
…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]….
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
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!!,
[...] Another cool thing from Christophe Coenraet’s blog is the Flex Test Drive Server For Java Developers (Tomcat based). [...]
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
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
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
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.
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.
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?
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!
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.
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.
Great -> first step.
Do you have a sample with the Spring Acegi Security ?
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?
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
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.
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
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?
Muchas gracias =D
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)
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
Hawaiian cruise
Cool!!
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
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
Ok, I will just remove the left and right brackets
News stock=”MOS” height=”30%”
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
[...] together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more [...]
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
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 :)
If I already have Tomcat 6.0 installed in on machine , can I still do this tutorial?
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
Buying A Sauna? Read This Before You Buy Your First Sauna
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.
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
[...] entweder den BlazeDS oder den FDS-TOMCAT [...]
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
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>
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?
Is BlazeDS the revised version of this FDS? We are currently confused on which one to use.
best regards
Rivotril….
What is rivotril. Rivotril. Rivotril mexico. Buy rivotril with same day delivery. Buy rivotril….
thanks