Ok Kevan, found. browsing through the sources i see the the ProxyManager interface has changed. the signature of the createProxy methods is the following
public Object createProxy(AbstractName target, ClassLoader loader);
public Object createProxy(AbstractName target, Class type);
now i do not know exactly how to modify the GeronimoTransactionManagerLookup in order to use new ProxyManager.

Paolo Denti wrote:
the problem is

java.lang.NoSuchMethodException: org.apache.geronimo.kernel.proxy.ProxyManager.createProxy(javax.management.ObjectName, java.lang.Class)

?? are the online javadocs correct for the 2.0.1 version ?

Paolo Denti wrote:
no, never mind ... too many tries and i wrote this "nonsense" stuff ... the clzArray is the parameter list of the createProxyMethod ... it is correct.
anyway it fails on the
proxyManagerClass.getMethod("createProxy", clzArray) call.

Paolo Denti wrote:
Kevan, i tried and following the execution, the problem is in the proxyManagerClass.getMethod("createProxy", clzArray);
the getMethod call fails.

But looking at the javadoc i see that the signature of the ProxyManager createProxy method is
Object createProxy(javax.management.ObjectName, Class)
but we are inovoking proxyManagerClass.getMethod("createProxy", clzArray) where clzArray is a Class[] as if the signature were
Object createProxy(javax.management.ObjectName, Class[])




Kevan Miller wrote:

On Aug 28, 2007, at 11:34 AM, Paolo Denti wrote:

ok, thanks. therefore the problem "should" lie in how the transactionManager is looked up, that is the method getTransactionManager of the GeronimoTransactionManagerLookup class.

Right. Paolo, at a minimum, I think you need to update your GeronimoTransactionManagerLookup class to contain the following setting of TransactionMgrGBeanName: 

public static final String TransactionMgrGBeanName="geronimo:J2EEServer=geronimo,ServiceModule=org.apache.geronimo.configs/transaction/2.0.1/car,j2eeType=TransactionManager,name=TransactionManager";

I don't have a working hibernate environment, at the moment. If you could try this new setting, it would be great...

--kevan




Reply via email to