You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Philip A. McGee" <pm...@xfi.com> on 2005/02/23 18:28:14 UTC

Re: Error XAER_NOTA when attempting to running JCA Connector Example]

My JCA problem is now solved.  The head of the
SLIDE_2_1_RELEASE_BRANCH has an updated jar
commons-transaction-1.0.1.jar which resolves the
problem seen with the release version jar
commons-transaction-1.0.jar.

Thanks to you Andrew for your assistance and to
Oliver Zeigermann for having (already) resolved
the issue.

Phil McGee


-------- Original Message --------
Subject: Re: Error XAER_NOTA when attempting to running JCA Connector Example
Date: Wed, 23 Feb 2005 10:26:11 -0500
From: Philip A. McGee <pm...@xfi.com>
To: Slide Users Mailing List <sl...@jakarta.apache.org>
References: <42...@xfi.com> <14...@sam-solutions.net>

Hello Andrew,

... and thank you for your response.  My "webdav-connector-ds.xml" does indeed
contain "<track-connection-by-tx/>", but the message thread to which you
directed me may hold my solution.

After reading Oliver Zeigermann's later responses in that thread I
realized that I should probably not be using the released branch of
Slide 2.1.  Hopefully, the code branch SLIDE_2_1_EXTERNAL_TX will
solve my problem.  I am in the process of building that code and will
let you know how things work out.

Regards,
Phil McGee

Andrew Tibets wrote:
> Hello Philip,
> 
> I met the same problem.
> 
> Does "webdav-connector-ds.xml" contain "<track-connection-by-tx/>" line?
> 
> You can also see: 
> http://www.mail-archive.com/slide-user@jakarta.apache.org/msg09164.html
> 
> 
PAM> I am trying to run the JCA connector example and get an exception when
PAM> the TestServlet attempts to commit the transaction.

PAM> The Jboss console output looks like this:

PAM> 15:50:56,421 INFO  [STDOUT] Tx:
PAM> org.jboss.tm.usertx.client.ServerVMClientUserTransaction@19e733e
PAM> 15:50:56,421 INFO  [STDOUT] Factory:
PAM> org.apache.webdav.connector.WebDAVConnectionFactory@1a01f91
PAM> 15:50:56,453 INFO  [STDOUT] Getting connection with spec
PAM> org.apache.webdav.connector.WebDAVConnectionSpec@8210fc
PAM> 15:50:56,468 INFO  [STDOUT] Opening:
PAM> http://localhost:8888/slide/files
PAM> 15:50:57,328 INFO  [STDOUT] Opened
PAM> 15:50:57,359 INFO  [STDOUT] Statring
PAM> http://localhost:8888/slide/files
PAM> 15:50:57,484 INFO  [STDOUT] Connection1:
PAM> org.apache.webdav.connector.WebDAVConnection@91520
PAM> 15:50:57,531 INFO  [STDOUT] WR1:
PAM> http://localhost:8888/slide/files
PAM> 15:50:57,531 INFO  [STDOUT] WR2:
PAM> http://localhost:8888/slide/files
PAM> 15:50:58,218 INFO  [STDOUT] WR1 sees Content
PAM> 15:50:58,218 INFO  [STDOUT] WR2 sees this before commit asdfasdf
PAM> 15:50:58,218 WARN  [TransactionImpl] XAException:
PAM> tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=cherry//14,
PAM> BranchQual=] e
PAM> rrorCode=XAER_NOTA
PAM> javax.transaction.xa.XAException
PAM>          at
PAM> org.apache.commons.transaction.util.xa.AbstractXAResource.end(AbstractXAResource.java:133)
PAM>          at
PAM> org.jboss.tm.TransactionImpl.endResource(TransactionImpl.java:1253)
PAM>          at
PAM> org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1331)
PAM>          at
PAM> org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:355)
PAM>          at org.jboss.tm.TxManager.commit(TxManager.java:142)
PAM>          at
PAM> org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:126)
PAM>          at connector.TestServlet.service(TestServlet.java:96)
PAM>          at
PAM> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
PAM>          at
PAM> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

PAM> and the console on the tomcat server hosting Slide looks like this:

PAM> http-8888-Processor25, 22-Feb-2005 15:50:56,
PAM> unauthenticated, PROPFIND, 207 "Multi-Status", 297 ms, /files
PAM> http-8888-Processor25, 22-Feb-2005 15:50:57,
PAM> unauthenticated, LOCK, 200 "OK", 78 ms, /files
PAM> http-8888-Processor24, 22-Feb-2005 15:50:57,
PAM> unauthenticated, PROPFIND, 207 "Multi-Status", 15 ms, /files
PAM> 22 Feb 2005 15:50:57 -
PAM> org.apache.slide.webdav.method.AbstractWebdavMethod - INFO -
PAM> Using external transaction
PAM> <opaquelocktoken:d8c81f73151e9ce0b91a8a7647011695>
PAM> http-8888-Processor25, 22-Feb-2005 15:50:57,
PAM> unauthenticated, PUT, 204 "No Content", 516 ms, /files/file1
PAM> 22 Feb 2005 15:50:58 -
PAM> org.apache.slide.webdav.method.AbstractWebdavMethod - INFO -
PAM> Using external transaction
PAM> <opaquelocktoken:d8c81f73151e9ce0b91a8a7647011695>
PAM> http-8888-Processor25, 22-Feb-2005 15:50:58,
PAM> unauthenticated, GET, 200 "OK", 16 ms, /files/file1
PAM> http-8888-Processor24, 22-Feb-2005 15:50:58,
PAM> unauthenticated, GET, 200 "OK", 47 ms, /files/file1

PAM> It appears to me that the example is working up to the point where
PAM> the TestServlet attempts to commit the transaction.  At that point the
PAM> transaction manager seems to decide there is no transaction and throws the
PAM> exception.

PAM> I am running slide version 2.1 on Tomcat 5.0.28 and running the
PAM> connector example on JBoss 3.2.6.  Both are run under Sun JDK 1.4.2_07
PAM> on a Windows 2000 OS.

PAM> To get the example running I added jdom-1.0.jar to the
PAM> directory %JBOSS_HOME%\server\default\lib, otherwise I simply followed the
PAM> instructions.

PAM> Can anyone suggest an approach to debug this problem?  What kind of
PAM> experiences have others had attempting to run the JCA example?

PAM> I would appreciate any pointers.

PAM> Thanks,

PAM> Phil McGee



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org