jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dieter Frej <dieter_f...@gmx.net>
Subject jackrabbit in transactional environment like JBoss
Date Mon, 24 Jul 2006 17:08:02 GMT
Hi everybody,

I am trying to run jackrabbit in a transactional environment such as
jboss. The application server was configured more or less as described
in http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss

- removed jcr-1.0.jar from jackrabbit-jca-1.0.1.rar
- download the latest jcr-1.0.1.jar and copied it to the
   jboss/server/${profile}/lib folder
- copied the modified jackrabbit-jca-1.0.1.rar to
   jboss/server/${profile}/deploy
- adjusted jcr-ds.xml to jackrabbit-jca-1.0.1.rar
   (<rar-name>jackrabbit-jca-1.0.1.rar</rar-name>) as well as homeDir and
   configFile
- copied the modified jcr-ds.xml also to the
   jboss/server/${profile}/deploy folder

<connection-factories>
     <tx-connection-factory>
                 <jndi-name>jcr/local</jndi-name>
                 <xa-transaction/>
                 <rar-name>jackrabbit-jca-1.0.1.rar</rar-name>
 
<connection-definition>javax.jcr.Repository</connection-definition>
                 <config-property name="homeDir" 
type="java.lang.String">/tmp/jackrabbit</config-property>
                 <config-property name="configFile" 
type="java.lang.String">/home/didi/repository.xml</config-property>
     </tx-connection-factory>
</connection-factories>



As a sample I tried to add some content to the repository as described
in http://www.artima.com/lejava/articles/contentrepository3.html
(with adjusting DateValue and StringValue to their new package in
jackrabbit-1.0.1).

The example worked properly running as command-line application or
within a JSP, but running it from inside a Stateless Session Bean gave
me the following exception



2006-07-20 15:41:52,824 ERROR [org.apache.jackrabbit.core.XASessionImpl] 
Resource not associated with a transaction.
2006-07-20 15:41:52,825 WARN  [org.jboss.tm.TransactionImpl] 
XAException: tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=brenner/16, BranchQual=, localId=16] errorCode=XAER_PROTO
javax.transaction.xa.XAException
	at org.apache.jackrabbit.core.XASessionImpl.end(XASessionImpl.java:288)
	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2138)
	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2113)
	at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1459)
	at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1113)
	at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:321)
	at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
	at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
	at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
	at $Proxy57.printVersions(Unknown Source)
	at org.apache.jsp.versions_jsp._jspService(org.apache.jsp.versions_jsp:57)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
	at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
	at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)
2006-07-20 15:41:52,836 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2006-07-20 15:41:52,836 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2006-07-20 15:41:52,836 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2006-07-20 15:41:52,836 ERROR [STDERR] java.lang.RuntimeException: 
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=brenner/16, 
BranchQual=, localId=16] status=STATUS_NO_TRANSACTION; - nested 
throwable: (javax.transaction.xa.XAException)
2006-07-20 15:41:52,837 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
2006-07-20 15:41:52,837 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
2006-07-20 15:41:52,837 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
2006-07-20 15:41:52,837 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
2006-07-20 15:41:52,838 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 15:41:52,838 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
2006-07-20 15:41:52,838 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 15:41:52,838 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
2006-07-20 15:41:52,839 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 15:41:52,839 ERROR [STDERR] 	at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
2006-07-20 15:41:52,839 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 15:41:52,839 ERROR [STDERR] 	at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
2006-07-20 15:41:52,839 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 15:41:52,840 ERROR [STDERR] 	at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
2006-07-20 15:41:52,840 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 15:41:52,840 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
2006-07-20 15:41:52,840 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
2006-07-20 15:41:52,840 ERROR [STDERR] 	at $Proxy57.addBlogEntry(Unknown 
Source)
2006-07-20 15:41:52,841 ERROR [STDERR] 	at 
org.apache.jsp.versions_jsp._jspService(org.apache.jsp.versions_jsp:57)
2006-07-20 15:41:52,841 ERROR [STDERR] 	at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
2006-07-20 15:41:52,841 ERROR [STDERR] 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-07-20 15:41:52,841 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
2006-07-20 15:41:52,841 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
2006-07-20 15:41:52,842 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
2006-07-20 15:41:52,842 ERROR [STDERR] 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-07-20 15:41:52,842 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2006-07-20 15:41:52,842 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-07-20 15:41:52,842 ERROR [STDERR] 	at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2006-07-20 15:41:52,842 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-07-20 15:41:52,843 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-07-20 15:41:52,843 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2006-07-20 15:41:52,843 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2006-07-20 15:41:52,843 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
2006-07-20 15:41:52,843 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
2006-07-20 15:41:52,844 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2006-07-20 15:41:52,844 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2006-07-20 15:41:52,844 ERROR [STDERR] 	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2006-07-20 15:41:52,844 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2006-07-20 15:41:52,844 ERROR [STDERR] 	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2006-07-20 15:41:52,845 ERROR [STDERR] 	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
2006-07-20 15:41:52,845 ERROR [STDERR] 	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
2006-07-20 15:41:52,845 ERROR [STDERR] 	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2006-07-20 15:41:52,845 ERROR [STDERR] 	at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2006-07-20 15:41:52,845 ERROR [STDERR] 	at 
java.lang.Thread.run(Thread.java:595)
2006-07-20 15:41:52,846 ERROR [STDERR] Caused by: 
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=brenner/16, 
BranchQual=, localId=16] status=STATUS_NO_TRANSACTION; - nested 
throwable: (javax.transaction.xa.XAException)
2006-07-20 15:41:52,846 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:369)
2006-07-20 15:41:52,846 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
2006-07-20 15:41:52,847 ERROR [STDERR] 	... 42 more
2006-07-20 15:41:52,847 ERROR [STDERR] Caused by: 
javax.transaction.xa.XAException
2006-07-20 15:41:52,847 ERROR [STDERR] 	at 
org.apache.jackrabbit.core.XASessionImpl.end(XASessionImpl.java:288)
2006-07-20 15:41:52,847 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2138)
2006-07-20 15:41:52,847 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2113)
2006-07-20 15:41:52,848 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1459)
2006-07-20 15:41:52,848 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1113)
2006-07-20 15:41:52,848 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:321)
2006-07-20 15:41:52,848 ERROR [STDERR] 	... 43 more



I searched the mailing list archive and found
http://article.gmane.org/gmane.comp.apache.jackrabbit.devel/446

So, I change my sample implementation accordingly except that

repository.login()

does not return org.apache.jackrabbit.core.XASession, but
org.apache.jackrabbit.jca.JCASessionHandle. I got a
javax.transaction.xa.XAResource by calling

JCASessionHandle handle = (JCASessionHandle) r.login(credentials);
XAResource xares = handle.getManagedConnection().getXAResource();

Then I get the following exception



2006-07-20 16:02:37,241 ERROR [org.apache.jackrabbit.core.XASessionImpl] 
Resource already associated with a transaction.
2006-07-20 16:02:37,242 ERROR [STDERR] javax.transaction.xa.XAException
2006-07-20 16:02:37,242 ERROR [STDERR] 	at 
org.apache.jackrabbit.core.XASessionImpl.start(XASessionImpl.java:236)
2006-07-20 16:02:37,242 ERROR [STDERR] 	at 
hoppelhase.ejb.RepoTestFacadeBean.addBlogEntry(RepoTestFacadeBean.java:127)
2006-07-20 16:02:37,243 ERROR [STDERR] 	at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2006-07-20 16:02:37,243 ERROR [STDERR] 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2006-07-20 16:02:37,243 ERROR [STDERR] 	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2006-07-20 16:02:37,243 ERROR [STDERR] 	at 
java.lang.reflect.Method.invoke(Method.java:585)
2006-07-20 16:02:37,243 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
2006-07-20 16:02:37,244 ERROR [STDERR] 	at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
2006-07-20 16:02:37,244 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,244 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
2006-07-20 16:02:37,244 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
2006-07-20 16:02:37,244 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,245 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
2006-07-20 16:02:37,245 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,245 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
2006-07-20 16:02:37,245 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,245 ERROR [STDERR] 	at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
2006-07-20 16:02:37,246 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,246 ERROR [STDERR] 	at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
2006-07-20 16:02:37,246 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,246 ERROR [STDERR] 	at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
2006-07-20 16:02:37,246 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,247 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
2006-07-20 16:02:37,247 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
2006-07-20 16:02:37,247 ERROR [STDERR] 	at $Proxy62.addBlogEntry(Unknown 
Source)
2006-07-20 16:02:37,247 ERROR [STDERR] 	at 
org.apache.jsp.add_jsp._jspService(org.apache.jsp.add_jsp:57)
2006-07-20 16:02:37,247 ERROR [STDERR] 	at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
2006-07-20 16:02:37,248 ERROR [STDERR] 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-07-20 16:02:37,248 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
2006-07-20 16:02:37,248 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
2006-07-20 16:02:37,248 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
2006-07-20 16:02:37,248 ERROR [STDERR] 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-07-20 16:02:37,249 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2006-07-20 16:02:37,249 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-07-20 16:02:37,249 ERROR [STDERR] 	at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2006-07-20 16:02:37,249 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-07-20 16:02:37,249 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-07-20 16:02:37,250 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2006-07-20 16:02:37,250 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2006-07-20 16:02:37,250 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
2006-07-20 16:02:37,250 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
2006-07-20 16:02:37,250 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2006-07-20 16:02:37,251 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2006-07-20 16:02:37,251 ERROR [STDERR] 	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2006-07-20 16:02:37,251 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2006-07-20 16:02:37,251 ERROR [STDERR] 	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2006-07-20 16:02:37,251 ERROR [STDERR] 	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
2006-07-20 16:02:37,252 ERROR [STDERR] 	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
2006-07-20 16:02:37,252 ERROR [STDERR] 	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2006-07-20 16:02:37,252 ERROR [STDERR] 	at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2006-07-20 16:02:37,252 ERROR [STDERR] 	at 
java.lang.Thread.run(Thread.java:595)
2006-07-20 16:02:37,253 ERROR [org.apache.jackrabbit.core.XASessionImpl] 
Resource not associated with a transaction.
2006-07-20 16:02:37,253 WARN  [org.jboss.tm.TransactionImpl] 
XAException: tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=brenner/15, BranchQual=, localId=15] errorCode=XAER_PROTO
javax.transaction.xa.XAException
	at org.apache.jackrabbit.core.XASessionImpl.end(XASessionImpl.java:288)
	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2138)
	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2113)
	at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1459)
	at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1113)
	at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:321)
	at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
	at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
	at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
	at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
	at $Proxy62.addBlogEntry(Unknown Source)
	at org.apache.jsp.add_jsp._jspService(org.apache.jsp.add_jsp:57)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
	at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
	at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)
2006-07-20 16:02:37,262 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2006-07-20 16:02:37,262 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2006-07-20 16:02:37,262 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2006-07-20 16:02:37,262 ERROR [STDERR] java.lang.RuntimeException: 
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=brenner/15, 
BranchQual=, localId=15] status=STATUS_NO_TRANSACTION; - nested 
throwable: (javax.transaction.xa.XAException)
2006-07-20 16:02:37,263 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
2006-07-20 16:02:37,263 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
2006-07-20 16:02:37,299 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
2006-07-20 16:02:37,299 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
2006-07-20 16:02:37,299 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,299 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
2006-07-20 16:02:37,300 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,301 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
2006-07-20 16:02:37,301 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,301 ERROR [STDERR] 	at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
2006-07-20 16:02:37,301 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,302 ERROR [STDERR] 	at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
2006-07-20 16:02:37,302 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,302 ERROR [STDERR] 	at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
2006-07-20 16:02:37,302 ERROR [STDERR] 	at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
2006-07-20 16:02:37,302 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
2006-07-20 16:02:37,303 ERROR [STDERR] 	at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
2006-07-20 16:02:37,303 ERROR [STDERR] 	at $Proxy62.addBlogEntry(Unknown 
Source)
2006-07-20 16:02:37,303 ERROR [STDERR] 	at 
org.apache.jsp.add_jsp._jspService(org.apache.jsp.add_jsp:57)
2006-07-20 16:02:37,303 ERROR [STDERR] 	at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
2006-07-20 16:02:37,303 ERROR [STDERR] 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-07-20 16:02:37,303 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
2006-07-20 16:02:37,304 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
2006-07-20 16:02:37,304 ERROR [STDERR] 	at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
2006-07-20 16:02:37,304 ERROR [STDERR] 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2006-07-20 16:02:37,304 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2006-07-20 16:02:37,304 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-07-20 16:02:37,305 ERROR [STDERR] 	at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2006-07-20 16:02:37,305 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-07-20 16:02:37,305 ERROR [STDERR] 	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-07-20 16:02:37,305 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2006-07-20 16:02:37,305 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2006-07-20 16:02:37,306 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
2006-07-20 16:02:37,306 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
2006-07-20 16:02:37,306 ERROR [STDERR] 	at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2006-07-20 16:02:37,306 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2006-07-20 16:02:37,306 ERROR [STDERR] 	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2006-07-20 16:02:37,307 ERROR [STDERR] 	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2006-07-20 16:02:37,307 ERROR [STDERR] 	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2006-07-20 16:02:37,307 ERROR [STDERR] 	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
2006-07-20 16:02:37,307 ERROR [STDERR] 	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
2006-07-20 16:02:37,307 ERROR [STDERR] 	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2006-07-20 16:02:37,308 ERROR [STDERR] 	at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2006-07-20 16:02:37,308 ERROR [STDERR] 	at 
java.lang.Thread.run(Thread.java:595)
2006-07-20 16:02:37,308 ERROR [STDERR] Caused by: 
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=brenner/15, 
BranchQual=, localId=15] status=STATUS_NO_TRANSACTION; - nested 
throwable: (javax.transaction.xa.XAException)
2006-07-20 16:02:37,309 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:369)
2006-07-20 16:02:37,309 ERROR [STDERR] 	at 
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
2006-07-20 16:02:37,309 ERROR [STDERR] 	... 42 more
2006-07-20 16:02:37,309 ERROR [STDERR] Caused by: 
javax.transaction.xa.XAException
2006-07-20 16:02:37,309 ERROR [STDERR] 	at 
org.apache.jackrabbit.core.XASessionImpl.end(XASessionImpl.java:288)
2006-07-20 16:02:37,310 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2138)
2006-07-20 16:02:37,310 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2113)
2006-07-20 16:02:37,310 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1459)
2006-07-20 16:02:37,310 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1113)
2006-07-20 16:02:37,310 ERROR [STDERR] 	at 
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:321)
2006-07-20 16:02:37,311 ERROR [STDERR] 	... 43 more



I have no idea how this can be done. Any ideas? Did any get jackrabbit
running in JBoss?
I would like to just use jackrabbit or generic code and not use special
JBoss code.

btw: if I get that working I am willing to update the wiki pages to
provide more and better documentation.

- Didi

Mime
View raw message