geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iporter <>
Subject Classloader issue with Geronimo 1.1.1 and Jencks 1.3
Date Fri, 26 Oct 2007 08:16:47 GMT

I am trying to get Jencks 1.3 working with Geronimo 1.1.1

I have an applicationContext.xml with the following entries:

 <bean id="transactionManagerImpl"
        <property name="defaultTransactionTimeoutSeconds" value="600"/>
        <property name="transactionLog">

    <bean id="transactionContextManager"
        <property name="transactionManager" ref="transactionManagerImpl"/>

    <bean id="userTransaction"
        <property name="transactionContextManager"

  <bean id="transactionManager"
	<property name="userTransaction">
		<ref local="userTransaction"/>
	<property name="transactionManager">
		<ref local="transactionManagerImpl"/>
In my application I am using Spring-managed transactions. I deploy my WAR
file with the jencks jar file included. When the GeronimoTransactionManager
is instantiated I get an illegal access exception in the jencks class:
org.apache.geronimo.transaction.context.GeronimoTransactionManager in the
begin() method.
The following snippet is where it throws the exception:

	if (transactionContextManager.getContext() == null) {
        TransactionContext ctx = transactionContextManager.getContext();
        if (ctx instanceof UnspecifiedTransactionContext == false) {
            throw new NotSupportedException("Previous Transaction has not
been committed");

The instanceof throws the IllegalAccessException because the
UnspecifiedTransactionContext class is loaded by a different class loader.
As I have googled this issue to death and found no answers I can only assume
I am configuring things incorrectly.
View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message