<!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="http://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: Running Seam 2 archives on Jboss 7
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/matt.drees">Matt Drees</a> in <i>JBoss AS7 Development</i> - <a href="http://community.jboss.org/message/608976#608976">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><blockquote class="jive-quote"><p>:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>12:35:30,194 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH00231:Schema export unsuccessful: org.hibernate.tool.hbm2ddl.ImportScriptException: Error during import script execution at line 1</p><p>    at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:411) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]</p><p>    ...</p><p>Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_5 ON PUBLIC.CUSTOMER(USERNAME)"; SQL statement:</p><p>insert into Customer (username, password, name) values ('gavin', 'foobar', 'Gavin King') [23001-145]</p><p>    at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)</p><p>    ...</p></blockquote><p>Hmm, I haven't run into that one.  My app doesn't use an import.sql.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and after hitting UI</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered.</p><p>    com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)</p><p>    org.jboss.seam.jsf.SeamApplication.setViewHandler(SeamApplication.java:376)</p><p>    org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:87)</p><p>    com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)</p><p>    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)</p><p>    com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)</p><p>    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)</p><p>    javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)</p><p>    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)</p><p>    org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)</p><p>    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)</p><p>    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)</p><p>    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)</p><p>    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)</p><p>    org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)</p><p>    org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)</p><p>    org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)</p><p>    org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)</p><p>    org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I ran into this.  I was using Richfaces 3.x, and it didn't play nice with JSF 2.  I got around it by switching to Richfaces 4.  You might be able to get around it using <a class="" href="http://community.jboss.org/docs/DOC-14504">Richfaces 3.3.3</a>. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Another thought, if you guys really want to make an AS7 transition easy for Seam2 users, is to make a JSF 1.2 environment available (using the same mechanism that AS6 did to let you configure which JSF environment you wanted). </p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/608976#608976">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS7 Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>