As a follow up to my
earlier post about getting Coldfusion 8 to run natively in a 64-bit enviro, this post will describe the steps to deploy Adobe Livecycle data services in a 64-bit environment natively.
First, the set up: 64-bit Fedora 7 + 64-bit Sun Java SE Runtime build 1.6.0_02-b05 + Tomcat 5.5.23 Release 9jpp.2.fc7
Initially, I just ran the installer for LiveCycle selecting to deploy as a war. It created the war files flex.war, flex-admin.war, and samples.war. I dropped those into the webapps directory and all the applications deployed automatically. I pointed my browser at http://server.com:8080/flex/samples, which popped right up. Then, when I clicked on the SQLAdmin sample app, kablooeee!
The error that gets thrown is:
09/06 14:17:03 ERROR java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfiguration
Exception: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
I realized that this had something to do w/ the Xalan/Xerces java component, but I had installed both components from RPMs. So I was conviced it was a classpath issue. I knew the stuff i needed was on my machine, but the application wasn't finding it. The following jars are what's needed for this to work:
xalan-j2-serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
xsltc.jar
So I ran the locate command for each of these jars and found many som in /usr/share/java/ and some under a xalan-j2-servlet/WEB-INF/lib directory.
I dropped copies of all the jars into my tomcat5/share/lib/ directory and restarted tomcat and viola!
Well, almost - now I was getting a different error:
09/07 11:48:53 ERROR java.lang.InternalError: An error occurred because there is no graphics environment available. Please set the headless-server setting in the Flex configuration file to true.
But hey, that at least gave some direction on what needed to be changed, so I went ahead and changed the flex-config.xml files for all the applications to true and restarted tomcat. No love. Same error. Upon further log inspection, I found that there was another related error thrown just as the FlexAssembler service was spinning up:
09/07 11:45:54 Information [main] - Starting FlexAssembler...
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified
Exception in thread "Thread-23" java.lang.InternalError: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.
Okay, so because I was VNCed into the machine when starting up tomcat, the system appears to be disregarding the headless-server setting! So, I logged out of vnc, sshed into the machine stopped and started tomcat while tailing the catalina.out log file. Well, No errors on startup and when I went to the SQLAdmin sample app I saw this:
Adobe Livecycle successfully running.