I am much closer. Tomcat is putting some key messages in the console and I overlooked them. It looks like I am closer than I thought. The request looks like its getting received, but my service blows up on response due to I think two class not found issues. But, I can't tell what classes are missing.
[Flex]Deserializing AMF/RTMP request
Version: 3 null
2.0
(Command method=null (0) trxId=2.0)
null
(Externalizable Object #0 'flex.data.messages.DataMessageExt')
(Array #1)
[0] = (Typed Object #2 'flex.data.messages.DataMessage')
identity = (Object #3)
partId = 81959
operation = 11
correlationId = "419F99AA-B649-9490-650D-88F3CAADBCB7"
headers = (Object #4)
messageId = "8AF6C660-9DE3-F155-6A91-88F3CAC5A4F0"
timestamp = 0
destination = "DocumentPart"
timeToLive = 0
body = (Typed Object #5 'com.hpdocs.ds.document.DocumentPart')
documentId = 81960
partId = 81959
content = "Hello World"
clientId = "05E549ED-455F-A9AF-EEDE-88F3CA7E4BF9"
"DocumentPart"
(Object #6)
DSEndpoint = "hp_rtmp"
DSId = "F65B351A-A60C-6F91-2932-44630DAED2B9"
(Byte Array #7, Length 16) ""
7
[Flex]Received command: TCCommand [ Cmd: 0, MethodName: null, TrxID: 2.0]
[Flex]Serializing AMF/RTMP response
Version: 3
(Command method=_error (0) trxId=2.0)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = (Typed Object #2 'java.lang.NoClassDefFoundError')
message = "javax/transaction/SystemException"
localizedMessage = "javax/transaction/SystemException"
cause = (Typed Object #3 'java.lang.ClassNotFoundException')
message = "javax.transaction.SystemException"
localizedMessage = "javax.transaction.SystemException"
cause = null
exception = null
body = null
correlationId = "419F99AA-B649-9490-650D-88F3CAADBCB7"
faultDetail = null
faultString = "There was an unhandled failure on the server. javax/transaction/SystemException"
clientId = "F65B3649-620E-C827-50C4-6A1C78BC3712"
timeToLive = 0.0
destination = "DocumentPart"
timestamp = 1.273607998612E12
extendedData = null
faultCode = "Server.Processing"
messageId = "F65B3675-5409-795E-747F-B2F459749415"
Solved! Go to Solution.
Views
Replies
Total Likes
it looks like your Tomcat is missing the JTA setting.
To use LiveCycle Data Services with Tomcat when not using the integrated Tomcat configuration, install support for the Java Transaction API (JTA). You might also have to install several other libraries depending on the features that you plan to use. Follow these steps after deploying the LiveCycle Data Services WAR files. These steps are not necessary for the integrated Tomcat installation.
CONTEXT antijarlocking="false" antiresourcelocking="false" docbase="${catalina.home}/webapps/lcds-samples" path="/lcds-samples" privileged="true"> <TRANSACTION factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"></TRANSACTION></CONTEXT>Note: If a context file exists for your web application, add the
<TRANSACTION>
element under the <CONTEXT>
element. <VALVE classname="flex.messaging.security.TomcatValve"></VALVE>
You can now perform authentication against the current Tomcat realm. Usually, the default configuration for authentication stores user information in conf/tomcat-users.xml. See the Tomcat documentation for more information on realms. See the LiveCycle Data Services documentation for more information on custom authentication.
<LOGIN-COMMAND
> in /WEB-INF/flex/services-config.xml in each deployment of a LiveCycle Data Services WAR file. For Tomcat, ensure that the TomcatLoginCommand is active in the <SECURITY>section:<SECURITY><LOGIN-COMMAND server="Tomcat"></LOGIN-COMMAND>...</SECURITY>
original doc is located here
Hopefully this will help.
Views
Replies
Total Likes
Looks like the missing class was the java transaction class, I thought it was part of the error message. As soon as I solved that issue, I might be down to my real problem. I can hope.
[Flex]Received command: TCCommand [ Cmd: 0, MethodName: null, TrxID: 2.0]
[Flex]Serializing AMF/RTMP response
Version: 3
(Command method=_error (0) trxId=2.0)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = (Typed Object #2 'javax.naming.NamingException')
rootCause = null
message = "Cannot create resource instance"
resolvedObj = null
localizedMessage = "Cannot create resource instance"
cause = null
explanation = "Cannot create resource instance"
remainingName = null
resolvedName = null
body = null
correlationId = "45956F25-1939-F669-9D35-890EE1F7B2DF"
faultDetail = null
faultString = "Unable to access UserTransaction in DataService."
clientId = "F69D5A07-C00E-0898-6998-EC24BD5DA1A1"
timeToLive = 0.0
destination = "DocumentPart"
timestamp = 1.273609774041E12
extendedData = null
faultCode = "Server.Processing"
messageId = "F69D5A44-C90B-AB9E-B7CC-C15A86A027E1"
Views
Replies
Total Likes
it looks like your Tomcat is missing the JTA setting.
To use LiveCycle Data Services with Tomcat when not using the integrated Tomcat configuration, install support for the Java Transaction API (JTA). You might also have to install several other libraries depending on the features that you plan to use. Follow these steps after deploying the LiveCycle Data Services WAR files. These steps are not necessary for the integrated Tomcat installation.
CONTEXT antijarlocking="false" antiresourcelocking="false" docbase="${catalina.home}/webapps/lcds-samples" path="/lcds-samples" privileged="true"> <TRANSACTION factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"></TRANSACTION></CONTEXT>Note: If a context file exists for your web application, add the
<TRANSACTION>
element under the <CONTEXT>
element. <VALVE classname="flex.messaging.security.TomcatValve"></VALVE>
You can now perform authentication against the current Tomcat realm. Usually, the default configuration for authentication stores user information in conf/tomcat-users.xml. See the Tomcat documentation for more information on realms. See the LiveCycle Data Services documentation for more information on custom authentication.
<LOGIN-COMMAND
> in /WEB-INF/flex/services-config.xml in each deployment of a LiveCycle Data Services WAR file. For Tomcat, ensure that the TomcatLoginCommand is active in the <SECURITY>section:<SECURITY><LOGIN-COMMAND server="Tomcat"></LOGIN-COMMAND>...</SECURITY>
original doc is located here
Hopefully this will help.
Views
Replies
Total Likes
No luck, the same problem. The console message looks exactly the same.
I followed all of the above instructions except for the two optional steps. I currently have no security considerations and I am not yet using the JMSAdaptor.
I am majorly stuck. I guess I can either switch to the integrated Tomcat. Or, I can try my luck with JBoss. Any opinion on which version of JBoss?
Views
Replies
Total Likes
Views
Likes
Replies