geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Denti <paolo.de...@gmail.com>
Subject Re: Problem at geronimo boot
Date Thu, 30 Aug 2007 12:12:13 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">thanks Viet, i also tried with
your version. now it deploys perfectly but i get the same problem i
have with david version.</font></font><br>
<pre>interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

full stack is
java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not
visible from class loader
	java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
	java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67)
	org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163)
	org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111)
	org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359)
	org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:456)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:350)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:262)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:102)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	$Proxy25.onApplicationEvent(Unknown Source)
	org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
	org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
	org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
	org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
	org.acegisecurity.intercept.AbstractSecurityInterceptor.publishEvent(AbstractSecurityInterceptor.java:447)
	org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:250)
	org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:104)
	org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
	org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
	org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:229)
	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
	org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)
	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
	org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
	org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
</pre>
<br>
Viet Nguyen wrote:
<blockquote
 cite="mid:c0ccf8740708291902t28f9b4d3te500b72b70a9d64b@mail.gmail.com"
 type="cite">Well I try your code Kevan, and I altered it some to get
this:<br>
  <br>
package org.hibernate.transaction;<br>
  <br>
import java.util.Iterator;<br>
import java.util.Properties;<br>
import java.util.Set;<br>
  <br>
import javax.transaction.TransactionManager
;<br>
import org.hibernate.HibernateException;<br>
import org.hibernate.transaction.TransactionManagerLookup;<br>
  <br>
import org.apache.geronimo.gbean.AbstractName;<br>
import org.apache.geronimo.gbean.AbstractNameQuery;<br>
import org.apache.geronimo.kernel.Kernel;<br>
import org.apache.geronimo.kernel.KernelRegistry;<br>
import org.apache.geronimo.kernel.proxy.ProxyManager;<br>
  <br>
public class GeronimoTransactionManagerLookup<br>
&nbsp;&nbsp;&nbsp; implements TransactionManagerLookup {&nbsp; <br>
  <br>
&nbsp;&nbsp; public static final String UserTransactionName =
"java:comp/UserTransaction";<br>
  <br>
&nbsp;&nbsp; public TransactionManager getTransactionManager(Properties props)
throws HibernateException {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Kernel kernel = KernelRegistry.getSingleKernel();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ProxyManager proxyManager = kernel.getProxyManager();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AbstractNameQuery query = new
AbstractNameQuery(TransactionManager.class.getName
());<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Set names = kernel.listGBeans(query);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AbstractName name = null;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
for (Iterator it = names.iterator(); it.hasNext();)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
name = (AbstractName) it.next();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Object transMg = (Object) proxyManager.createProxy(name,
TransactionManager.class);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
return (TransactionManager)transMg;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }catch (Exception e) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.printStackTrace();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.out.println();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
throw new HibernateException("Geronimo Transaction Manager
Lookup Failed", e);
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
}<br>
  <br>
&nbsp;&nbsp; public String getUserTransactionName() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return UserTransactionName;<br>
&nbsp;&nbsp; }<br>
}<br>
  <br>
I tested it out and everything works on geronimo-jetty6-jee5-2.0.1<br>
  <br>
So I hope you can test it out Paolos. <br>
  <br>
Hope this works,<br>
Viet Nguyen<br>
</blockquote>
</body>
</html>

Mime
View raw message