geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Denti <>
Subject Re: Problem at geronimo boot
Date Wed, 05 Sep 2007 09:47:09 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">Hi Kevan,<br>
you can find the deployable ear here:
<a class="moz-txt-link-freetext" href=""></a><br>
and just the webapp with sources included here:
<a class="moz-txt-link-freetext" href=""></a><br>
in order to deploy the app, you need a connection pools named TestDS,
pointing to an existing db, nothing more (a table named test will be
automatically created in that db).<br>
deploy and just browse to <a class="moz-txt-link-freetext" href="http://localhost:8080/index.htm">http://localhost:8080/index.htm</a>
on the tomcat
version to get the problem<br>
about the Viet links, those links are jmx related, and i cannot solve
the problem just<br>
</font></font>setting MBeanExporter's
"exposeManagedResourceClassLoader" property to "true"<br>
<font size="-1"><font face="Verdana"><br>
moreover, seeing in which conditions it happens (for example point 4)
it looks more a geronimo problem, being related to the web context.<br>
Kevan Miller wrote:
<blockquote cite=""
  <div>On Sep 3, 2007, at 3:33 AM, Paolo Denti wrote:</div>
  <br class="Apple-interchange-newline">
  <blockquote type="cite"> <font size="-1"><font face="Verdana">Hi
Kevan, Viet<br>
i prepared a basic spring/hibernate application using jta on geronimo.
it works.<br>
then i tried to add all the components i am using in my "bad"
application, one by one, and, finally, i found it:<br>
it was very difficult because the problem happens under an incredible
particular set of conditions in AND:<br>
1) the most important: sitemesh is used to render pages<br>
2) you deploy an ear (deploying just the war, it works always)<br>
3) you use the tomcat version of geronimo (with the jetty version, it
works always; i discovered it at the end of all tests !!)<br>
4) the web app in the ear has the root context (in the sub contexts, it
works always)<br>
    </font></font><font size="-1"><font face="Verdana"><br>
just commenting the sitemesh filter mapping in <a
 moz-do-not-send="true" href="http://web.xml">web.xml</a>, everything
works. if i apply sitemesh filter, i get<br>
    <pre>org.springframework.transaction.CannotCreateTransactionException: Could not
open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException:
interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
    <font size="-1"><font face="Verdana"> </font></font><font size="-1"><font
 face="Verdana">i can make it available for everybody if needed.<br>
otherwise, if you prefer, just try to modify Viet app. in this way:<br>
1) add "sitemesh-2.3.jar" to WEB-INF/lib<br>
2) add "decorators.xml" to WEB-INF<br>
&nbsp;&nbsp;&nbsp; &lt;decorators defaultdir="/WEB-INF/decorators"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;decorator name="default"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/decorator&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/decorators&gt;<br>
3) add "decorators" folder to WEB-INF<br>
4) add default.jsp to decorators folder<br>
&nbsp;&nbsp;&nbsp; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 moz-do-not-send="true" class="moz-txt-link-rfc2396E"
&nbsp;&nbsp;&nbsp; &lt;%@ taglib uri=<a moz-do-not-send="true"
prefix="decorator" %&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;%@ taglib uri=<a moz-do-not-send="true"
prefix="page" %&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;html xmlns=<a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="">""</a>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;title&gt;&lt;decorator:title
 size="-1"><font face="Verdana"> (sitemesh decorated)</font></font><font
 size="-1"><font face="Verdana">&lt;/title&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;decorator:body
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/body&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/html&gt;<br>
5) add sitemesh filter to <a moz-do-not-send="true"
&nbsp;&nbsp;&nbsp; &lt;filter&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/filter&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;filter-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/filter-mapping&gt;<br>
6) execute your web controller which users jta: you should get an
  <div><br class="khtml-block-placeholder">
  <div>Paolo -- wow! Thanks a bunch for tracking down this detail. This
is terrific.</div>
  <div><br class="khtml-block-placeholder">
  <div>Did you try either of the suggestions that Viet proposed?</div>
  <div><br class="khtml-block-placeholder">
  <div>On Aug 31, 2007, at 8:40 AM, Viet Nguyen wrote:</div>
  <blockquote type="cite">I found these two related jiras that I hope
will fix your problem:<br>
    <a moz-do-not-send="true"
    <a moz-do-not-send="true"
People have suggested two solutions:<br>
1. switch to using Hibernate 3.2.0 (hibernate "solution")<br>
2. set MBeanExporter's "exposeManagedResourceClassLoader" property to
"true" (spring workaround)</blockquote>
  <div><br class="khtml-block-placeholder">
  <div>On Sep 3, 2007, at 3:33 AM, Paolo Denti wrote:</div>
  <div><br class="khtml-block-placeholder">
  <blockquote type="cite"><font size="-1"><font face="Verdana"><br>
p.s. about the hot deploy, i cannot hot deploy even my small test
Geronimo Application Server started<br>
00:54:24,935 ERROR [Deployer] Deployment failed due to <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
 class="Apple-style-span" face="Helvetica" size="3"><span
 class="Apple-style-span" style="font-size: 12px;"><br
  <div>Strange. I had no problem with my test ear... If you could make
your test app available, that would be great.</div>

View raw message