I can't get some of the Sample Test Drive examples included with Livecycle Data Services ES 2.5.1 to work properly with Tomcat (both version 5.5.25 and 6.0.14). I've tried both on Windows XP SP2 and Mac OSX (10.4), but I get the same errors on both platforms. I can however get the Sample Test Drive from LCDS to work fine with the JRun server on Windows (included with the Windows version of LCDS). I've setup the JRun server in a similar fashion as Tomcat (see my steps below) and everything works fine. I haven't been as successful with Tomcat. Can anyone point out where I'm going wrong with my Tomcat setup?<br /><br />Here are the error messages I get when trying out the LCDS Test Drive examples on Tomcat:<br /><br />Sample 1 - Accessing data using an HTTP service (after pressing the "Get Data" button):<br /><br />[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:8080/samples/testdrive/sample1/catalog.jsp"]. URL: catalog.jsp"]<br /> at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()<br /> at mx.rpc::Responder/fault()<br /> at mx.rpc::AsyncRequest/fault()<br /> at DirectHTTPMessageResponder/errorHandler()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at flash.net::URLLoader/redirectEvent()<br /><br />Samples 3, 4 and 5 all produce the following error:<br /><br />[RPC Fault faultString="flex.samples.DAOException : java.sql.SQLException: Connection is broken" faultCode="Server.Processing" faultDetail="null"]<br /> at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()<br /> at mx.rpc::Responder/fault()<br /> at mx.rpc::AsyncRequest/fault()<br /> at NetConnectionMessageResponder/statusHandler()<br /> at mx.messaging::MessageResponder/status()<br /> <br />Sample 8 - Data Management Service:<br /><br /> [RPC Fault faultString="Unable to invoke a fill operation on destination 'inventory' due to the following error: class flex.samples.DAOException:java.sql.SQLException: Connection is broken." faultCode="Server.Processing" faultDetail="null"]<br /> at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()<br /> at DataListRequestResponder/fault()<br /> at mx.rpc::AsyncRequest/fault()<br /> at NetConnectionMessageResponder/statusHandler()<br /> at mx.messaging::MessageResponder/status()<br /> <br />Samples 2, 6 and 7 work fine.<br /><br />Here's the steps I took to setup Tomcat. I've tried this on both MacOSX and WinXP:<br /><br />1. Download and extract Tomcat from tomcat.apache.org (I've tried both version 5.5.25 and 6.0.14)<br />2. Install Livecycle Data Services ES 2.5.1 and copy flex.war, flex-admin.war and samples.war to [tomcat-root]/webapps/<br />3. Prepare tomcat for Livecycle Data Services by following the instructions here:
http://help.adobe.com/en_US/livecycle/es/lcds_installation.html<br />3a. Add Java Open Transaction Manager (JOTM) from
http://jotm.objectweb.org/. Copy the JAR files from [jotm-root]/lib to [tomcat-root]/common/lib/.<br />3b. Create a context file for your web application and register JOTM using the Transaction element, e.g. for the samples WAR create a [tomcat-root]/conf/Catalina/localhost/samples.xml file and add the following lines:<br /><Context docBase="${catalina.home}/webapps/samples" privileged="true"<br /> antiResourceLocking="false" antiJARLocking="false"><br /> <Transaction factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/><br /></Context><br />3c. Increase the maximum memory to at least 512MB. For Tomcat, this is achieved by specifying the maximum heap size for the JVM in the JAVA_OPTS variable in [tomcat-root]/bin/catalina.sh:<br />-Xmx512m<br />4. Run the tomcat server ([tomcat-root]/bin/startup.sh for Mac OS or [tomcat-root]\bin\startup.bat for WinXP) which extracts the 3 .war files into their respective directories in [tomcat-root]/webapps/<br />5. Goto the Samples Test Drive in your web brow