Matt Drees [
http://community.jboss.org/people/matt.drees] created the discussion
"Re: Running Seam 2 archives on Jboss 7"
To view the discussion, visit:
http://community.jboss.org/message/608976#608976
--------------------------------------------------------------
:
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
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:411)
[hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
...
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:
"PRIMARY_KEY_5 ON PUBLIC.CUSTOMER(USERNAME)"; SQL statement:
insert into Customer (username, password, name) values ('gavin',
'foobar', 'Gavin King') [23001-145]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
...
Hmm, I haven't run into that one. My app doesn't use an
import.sql.
and after hitting UI
java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has
been rendered.
com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)
org.jboss.seam.jsf.SeamApplication.setViewHandler(SeamApplication.java:376)
org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:87)
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
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
http://community.jboss.org/docs/DOC-14504 Richfaces 3.3.3.
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).
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/608976#608976]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]