<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Issues with servlet loading in JBoss7
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/dmaier1">Dahn Maier</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/message/730979#730979">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Max. Thank you. Yes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I use Hibernate 3.5+ with Seam 2.2.0 and JPA. When accessing the entityManager all is ok but sometimes I need the actual Hibernate session through the delegate (Session) entityManager.getDelegate(). </p><p>When that happens I get the following error (jboss-seam.jar is in my WEB-INF lib folder):</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><code></code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>java.lang.NoClassDefFoundError: org/jboss/seam/persistence/HibernateSessionProxy</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.persistence.HibernatePersistenceProvider.proxySession(<span style="text-decoration: underline; color: #001993;">HibernatePersistenceProvider.java:116</span>) [jboss-seam.jar:2.2.0.GA]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.persistence.HibernatePersistenceProvider.proxyDelegate(<span style="text-decoration: underline; color: #001993;">HibernatePersistenceProvider.java:140</span>) [jboss-seam.jar:2.2.0.GA]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.persistence.EntityManagerProxy.getDelegate(<span style="text-decoration: underline; color: #001993;">EntityManagerProxy.java:97</span>) [jboss-seam.jar:2.2.0.GA]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.tide.seam.lazy.PersistenceContextManager.fetchEntity(<span style="text-decoration: underline; color: #001993;">PersistenceContextManager.java:90</span>) [granite-seam21.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.tide.seam.lazy.PersistenceContextManager.attachEntity(<span style="text-decoration: underline; color: #001993;">PersistenceContextManager.java:60</span>) [granite-seam21.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.tide.seam.lazy.SeamInitializer.lazyInitialize(<span style="text-decoration: underline; color: #001993;">SeamInitializer.java:89</span>) [granite-seam21.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.tide.seam.SeamServiceInvoker.initializeObject(<span style="text-decoration: underline; color: #001993;">SeamServiceInvoker.java:70</span>) [granite-seam21.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeMethodAccessorImpl.invoke0(<span style="text-decoration: underline; color: #001993;">Native Method</span>) [classes.jar:1.6.0_31]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeMethodAccessorImpl.invoke(<span style="text-decoration: underline; color: #001993;">NativeMethodAccessorImpl.java:39</span>) [classes.jar:1.6.0_31]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingMethodAccessorImpl.invoke(<span style="text-decoration: underline; color: #001993;">DelegatingMethodAccessorImpl.java:25</span>) [classes.jar:1.6.0_31]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Method.invoke(<span style="text-decoration: underline; color: #001993;">Method.java:597</span>) [classes.jar:1.6.0_31]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.service.ServiceInvocationContext.invoke(<span style="text-decoration: underline; color: #001993;">ServiceInvocationContext.java:71</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.service.security.AbstractSecurityService.endAuthorization(<span style="text-decoration: underline; color: #001993;">AbstractSecurityService.java:67</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.seam21.security.Seam21SecurityService.authorize(<span style="text-decoration: underline; color: #001993;">Seam21SecurityService.java:120</span>) [granite-seam21.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.service.ServiceInvoker.invoke(<span style="text-decoration: underline; color: #001993;">ServiceInvoker.java:214</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.amf.process.AMF3MessageProcessor.processRemotingMessage(<span style="text-decoration: underline; color: #001993;">AMF3MessageProcessor.java:136</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.amf.process.AMF3MessageProcessor.process(<span style="text-decoration: underline; color: #001993;">AMF3MessageProcessor.java:59</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.amf.process.AMF0MessageProcessor.process(<span style="text-decoration: underline; color: #001993;">AMF0MessageProcessor.java:78</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.messaging.webapp.AMFEndpoint.service(<span style="text-decoration: underline; color: #001993;">AMFEndpoint.java:71</span>) [granite.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.granite.seam21.FlexFilter.doFilter(<span style="text-decoration: underline; color: #001993;">FlexFilter.java:242</span>) [granite-seam21.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(<span style="text-decoration: underline; color: #001993;">SeamFilter.java:69</span>) [jboss-seam.jar:2.2.0.GA]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(<span style="text-decoration: underline; color: #001993;">SeamFilter.java:73</span>) [jboss-seam.jar:2.2.0.GA]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.seam.servlet.SeamFilter.doFilter(<span style="text-decoration: underline; color: #001993;">SeamFilter.java:158</span>) [jboss-seam.jar:2.2.0.GA]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(<span style="text-decoration: underline; color: #001993;">ApplicationFilterChain.java:280</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(<span style="text-decoration: underline; color: #001993;">ApplicationFilterChain.java:248</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardWrapperValve.invoke(<span style="text-decoration: underline; color: #001993;">StandardWrapperValve.java:275</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardContextValve.invoke(<span style="text-decoration: underline; color: #001993;">StandardContextValve.java:161</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(<span style="text-decoration: underline; color: #001993;">SecurityContextAssociationValve.java:153</span>) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardHostValve.invoke(<span style="text-decoration: underline; color: #001993;">StandardHostValve.java:155</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.valves.ErrorReportValve.invoke(<span style="text-decoration: underline; color: #001993;">ErrorReportValve.java:102</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardEngineValve.invoke(<span style="text-decoration: underline; color: #001993;">StandardEngineValve.java:109</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.connector.CoyoteAdapter.service(<span style="text-decoration: underline; color: #001993;">CoyoteAdapter.java:368</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Processor.process(<span style="text-decoration: underline; color: #001993;">Http11Processor.java:877</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(<span style="text-decoration: underline; color: #001993;">Http11Protocol.java:671</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(<span style="text-decoration: underline; color: #001993;">JIoEndpoint.java:930</span>) [jbossweb-7.0.13.Final.jar:]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(<span style="text-decoration: underline; color: #001993;">Thread.java:680</span>) [classes.jar:1.6.0_31]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>Caused by: <span style="text-decoration: underline; color: #001993;">java.lang.ClassNotFoundException</span>: org.jboss.seam.persistence.HibernateSessionProxy from [Module "deployment.Stylect.war:main" from Service Module Loader]</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.modules.ModuleClassLoader.findClass(<span style="text-decoration: underline; color: #001993;">ModuleClassLoader.java:190</span>)</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(<span style="text-decoration: underline; color: #001993;">ConcurrentClassLoader.java:468</span>)</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(<span style="text-decoration: underline; color: #001993;">ConcurrentClassLoader.java:456</span>)</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(<span style="text-decoration: underline; color: #001993;">ConcurrentClassLoader.java:423</span>)</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.modules.ConcurrentClassLoader.performLoadClass(<span style="text-decoration: underline; color: #001993;">ConcurrentClassLoader.java:398</span>)</code></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><code>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.modules.ConcurrentClassLoader.loadClass(<span style="text-decoration: underline; color: #001993;">ConcurrentClassLoader.java:120</span>)</code></p><p><code><br/></code></p><p><code><br/></code></p><p>Also I am using GraniteDS to glue the server to the client and collection initialization calls that work seamlessly on JBoss 4.2.3 do not trigger any kind of server actions in JBoss 7.1 </p><p>That could be related to this warning that JBoss shows at startup:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><code><p style="margin: 0.0px 0.0px 0.0px 0.0px;">19:46:54,974 WARN&#160; [org.jboss.as.ee] (MSC service thread 1-11) JBAS011006: Not installing optional component org.granite.gravity.servlet3.AsyncRequestListener due to exception: <span style="text-decoration: underline; color: #001993;">org</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><span style="text-decoration: underline; color: #001993;">.jboss.as.server.deployment.DeploymentUnitProcessingException</span>: JBAS011054: Could not find default constructor for class org.granite.gravity.servlet3.AsyncRequestListener</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(<span style="text-decoration: underline; color: #001993;">ComponentDescription.java:606</span>)</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(<span style="text-decoration: underline; color: #001993;">EEModuleConfigurationProcessor.java:81</span>)</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(<span style="text-decoration: underline; color: #001993;">DeploymentUnitPhaseService.java:113</span>) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(<span style="text-decoration: underline; color: #001993;">ServiceControllerImpl.java:1811</span>) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(<span style="text-decoration: underline; color: #001993;">ServiceControllerImpl.java:1746</span>) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(<span style="text-decoration: underline; color: #001993;">ThreadPoolExecutor.java:886</span>) [classes.jar:1.6.0_31]</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.util.concurrent.ThreadPoolExecutor$Worker.run(<span style="text-decoration: underline; color: #001993;">ThreadPoolExecutor.java:908</span>) [classes.jar:1.6.0_31]</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(<span style="text-decoration: underline; color: #001993;">Thread.java:680</span>) [classes.jar:1.6.0_31]</p></code></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Again - none of this in JBoss 4.2.3</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks again for looking into this.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Dahn</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/730979#730979">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>