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 Thu, 06 Sep 2007 09:29:54 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 Viet,<br>
sorry, i had to tell you: the hibernate properties are set for mysql
inno db and it should work for every mysql version.<br>
if you want to test it with derby you should change the hibernate
dialect in the file<br>
Viet Nguyen wrote:
 type="cite">Hi Paolo,<br>
Which DB are you using? I could not get this to work on the derby db
that comes with Geronimo because it doesn't support some keywords (e.g.
AUTO_INCREMENT), but when I used MySQL everything works fine (with or
without the commenting of the filters in the web.xml and on both jetty
and tomcat containers).<br>
  <div><span class="gmail_quote">On 9/5/07, <b class="gmail_sendername">Paolo
Denti</b> &lt;<a moz-do-not-send="true"
  </a>&gt; wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
    <div bgcolor="#ffffff" text="#000000"><font size="-1"><font
 face="Verdana">Hi Kevan,<br>
you can find the deployable ear here:
    <a moz-do-not-send="true"
 href="" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)"></a><br>
and just the webapp with sources included here:
    <a moz-do-not-send="true"
 href="" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)"></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 moz-do-not-send="true"
 href="http://localhost:8080/index.htm" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">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>
    <div><span class="e" id="q_114d5117dd9a0fe2_1"><br>
Kevan Miller wrote:
    <blockquote type="cite"><br>
      <div>On Sep 3, 2007, at 3:33 AM, Paolo Denti wrote:</div>
      <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" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">web.xml</a>,
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"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">""
&nbsp;&nbsp;&nbsp; &lt;%@ taglib uri=<a moz-do-not-send="true"
 href="" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">""</a>
prefix="decorator" %&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;%@ taglib uri=<a moz-do-not-send="true"
 href="" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">""</a>
prefix="page" %&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;html xmlns=<a moz-do-not-send="true"
 href="" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">""</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"
 href="http://web.xml" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">web.xml</a><br>
&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>Paolo -- wow! Thanks a bunch for tracking down this detail.
is terrific.</div>
      <div>Did you try either of the suggestions that Viet proposed?</div>
      <div>On Aug 31, 2007, at 8:40 AM, Viet Nguyen wrote:</div>
      <blockquote type="cite">I found these two related jiras that I
will fix your problem:<br>
        <a moz-do-not-send="true"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
        <a moz-do-not-send="true"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"></a><br>
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>On Sep 3, 2007, at 3:33 AM, Paolo Denti wrote:</div>
      <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
 face="Helvetica" size="3"><span style="font-size: 12px;"><br>
      <div>Strange. I had no problem with my test ear... If you could
your test app available, that would be great.</div>

View raw message