Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Can't get some LCDS ES Test Drive samples to work in Tomcat

Not applicable
I can't get many 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?

I am using Java 1.5.0.

Here are the error messages I get when trying out the LCDS
Test Drive examples on Tomcat:

Sample 1 - Accessing data using an HTTP service (after
pressing the "Get Data" button):

[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:
URL: catalog.jsp"]

at mx.rpc::AbstractInvoker/

at mx.rpc::Responder/fault()

at mx.rpc::AsyncRequest/fault()

at DirectHTTPMessageResponder/errorHandler()




Samples 3, 4 and 5 all produce the following error:

[RPC Fault faultString="flex.samples.DAOException :
java.sql.SQLException: Connection is broken"
faultCode="Server.Processing" faultDetail="null"]

at mx.rpc::AbstractInvoker/

at mx.rpc::Responder/fault()

at mx.rpc::AsyncRequest/fault()

at NetConnectionMessageResponder/statusHandler()

at mx.messaging::MessageResponder/status()

Sample 8 - Data Management Service:

[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"]


at DataListRequestResponder/fault()

at mx.rpc::AsyncRequest/fault()

at NetConnectionMessageResponder/statusHandler()

at mx.messaging::MessageResponder/status()

Samples 2, 6 and 7 work fine.

Here are the steps I took to setup Tomcat. I've tried this on
both MacOSX and WinXP:

1. Download and extract Tomcat from (I've
tried both version 5.5.25 and 6.0.14)

2. Install Livecycle Data Services ES 2.5.1 and copy
flex.war, flex-admin.war and samples.war to [tomcat-root]/webapps/

3. Prepare tomcat for Livecycle Data Services by following
the instructions here:

3a. Add Java Open Transaction Manager (JOTM) from
Copy the JAR files from [jotm-root]/lib to

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:

<Context docBase="${catalina.home}/webapps/samples"

antiResourceLocking="false" antiJARLocking="false">



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/


4. Run the tomcat server ([tomcat-root]/bin/ for
Mac OS or [tomcat-root]\bin\startup.bat for WinXP) which extracts
the 3 .war files into their respective directories in

5. Goto the Samples Test Drive in your web browser at

0 Replies