Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FAFCED7C for ; Wed, 5 Dec 2012 06:41:05 +0000 (UTC) Received: (qmail 50351 invoked by uid 500); 5 Dec 2012 06:41:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 50222 invoked by uid 500); 5 Dec 2012 06:41:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 50152 invoked by uid 99); 5 Dec 2012 06:41:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 06:41:02 +0000 Date: Wed, 5 Dec 2012 06:41:02 +0000 (UTC) From: =?utf-8?Q?Claus_K=C3=B6ll_=28JIRA=29?= To: dev@jackrabbit.apache.org Message-ID: <885264505.62370.1354689662814.JavaMail.jiratomcat@arcas> In-Reply-To: <1480164395.52175.1354518358057.JavaMail.jiratomcat@arcas> Subject: [jira] [Comment Edited] (JCR-3475) Workaround force LocalTX to a GlobalTX with a UserTX throws Exception in Events MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3475?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D135103= 02#comment-13510302 ]=20 Claus K=C3=B6ll edited comment on JCR-3475 at 12/5/12 6:40 AM: ---------------------------------------------------------- Hi jackrabbit works perfectly with xa under websphere. The only thing as yo= u mentioned jackrabbit does not implement local tx. i will have a look at JCR-861 =20 was (Author: c_koell): Hi jackrabbit works perfectly with xa under websphere. The only thing a= s you mentioned jackrabbit does not implement local tx. i will have a look at JCR-1446 =20 > Workaround force LocalTX to a GlobalTX with a UserTX throws Exception in = Events > -------------------------------------------------------------------------= ------ > > Key: JCR-3475 > URL: https://issues.apache.org/jira/browse/JCR-3475 > Project: Jackrabbit Content Repository > Issue Type: Sub-task > Components: jackrabbit-jca > Affects Versions: 2.4.2 > Environment: zLinux > Webshere 8.5 > Jackrabbit deployed as (XA) resource adapter > jndi datasources (non XA as jackrabbit requests) > database db2 (version 9) > repository.xml attached > servlet code attached > Reporter: Richard van Nieuwenhoven > Attachments: EquestJackrabbitFilter.java, repository.xml > > > Because Our Applicationserver optimizes the web accesses throug the webda= v-api to local transaction, we are trying to use a servlet filter that wrap= s a Usertransaction around every http requests. This results in the use of = Glocal transactions. So far so good, it works in all normal jackrabbit acce= sses. But not with observation events! In case of event listening on reposi= tory changes the folowing exception occures: > {code} > [11/19/12 12:41:24:421 CET] 000000a3 servlet E com.ibm.ws.webcontainer.se= rvlet.ServletWrapper service SRVE0068E: An exception was thrown by one of > the service methods of the servlet [JCRWebdavServer] in application [eQu= est-jackrabbit-webdav]. Exception created : [java.lang.IllegalStateExceptio= n: I > nactive logical session handle called > at org.apache.jackrabbit.jca.JCAManagedConnection.getSession(JCAM= anagedConnection.java:237) > at org.apache.jackrabbit.jca.JCASessionHandle.getSession(JCASessi= onHandle.java:90) > at org.apache.jackrabbit.jca.JCASessionHandle.getUserID(JCASessio= nHandle.java:104) > at org.apache.jackrabbit.server.jcr.JCRWebdavServer$SessionCache.= getUserID(JCRWebdavServer.java:409) > at org.apache.jackrabbit.server.jcr.JCRWebdavServer$SessionCache.= get(JCRWebdavServer.java:239) > at org.apache.jackrabbit.server.jcr.JCRWebdavServer$SessionCache.= access$200(JCRWebdavServer.java:165) > at org.apache.jackrabbit.server.jcr.JCRWebdavServer.attachSession= (JCRWebdavServer.java:103) > at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.serv= ice(AbstractWebdavServlet.java:247) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) > at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servlet= Wrapper.java:1214) > at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(S= ervletWrapper.java:774) > at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(S= ervletWrapper.java:456) > at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleReque= st(ServletWrapperImpl.java:178) > {code} > I hope that somebody can help us solving/working around this one! We woul= d be willing to do the testing an debugging if necessary. But we do not hav= e the time to dig into the code and solve it ourself. > If somebody helps us getting Jackrabbit running XA under Webspere, i will= go to the Management and try to get a donation to Apache-Jackrabbit. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira