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 Fri, 31 Aug 2007 11:16:17 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">Hi kevan, sorry i could not answer
before. No, the structure is the usual one<br>
</font></font>
<div>EAR:</div>
<div>&nbsp; META-INF/</div>
<div>&nbsp; War<br>
&nbsp;&nbsp;&nbsp; WEB-INF<br>
&nbsp;&nbsp;&nbsp; lib<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hibernate.jar
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spring.jar(s)<br>
<br>
Viet, may be that you are not really using the transaction manager of
the container ? may be you are using just some queries in autocommit
mode or read-only mode ?<br>
<br>
Paolo<br>
</div>
</div>
<br>
Kevan Miller wrote:
<blockquote cite="mid:4A5B3289-C4B8-47DF-82AF-357BC7A628E9@gmail.com"
 type="cite"><br>
  <div>
  <div>On Aug 30, 2007, at 8:12 AM, Paolo Denti wrote:</div>
  <br class="Apple-interchange-newline">
  <blockquote type="cite"> <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)
	<snip>&nbsp;</snip></pre>
  </blockquote>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Hi Paolo,</div>
  <div>What's the layout of your ear? I'm guessing it's something like:</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>EAR:</div>
  <div>&nbsp; META-INF/</div>
  <div>&nbsp; hibernate.jar</div>
  <div>&nbsp; spring.jar(s)</div>
  <div>&nbsp; War1</div>
  <div>&nbsp; War2</div>
  <br>
  </div>
  <div>In Geronimo, each of your WARs will have a unique ClassLoader.
>From your stack trace, It looks like somebody (your apps, spring,
hibernate, or acegi) is attempting to share Hibernate interfaces
between two different WAR classloaders (i.e. assuming that there is a
single instance of Hibernate classes/interfaces). Moving your
hibernate.jar file into the lib/ directory of your EAR may fix your
problem (do not move the spring jars into lib). So, your ear layout
would look like:</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>EAR:</div>
  <div>&nbsp; META-INF/...</div>
  <div>&nbsp; lib/hibernate.jar</div>
  <div>&nbsp; spring.jar(s)</div>
  <div>&nbsp; War1.war</div>
  <div>&nbsp; War2.war</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Let us know how this works. It sounds like Viet has a basic
hibernate app working. So, /me crosses fingers...</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>--kevan</div>
  <br>
</blockquote>
</body>
</html>

Mime
View raw message