[seam-dev] Seam on (upcoming) JBoss AS7 - Please deploy your applications and report any issues
Ales Justin
ales.justin at gmail.com
Tue Jun 7 06:42:43 EDT 2011
>> I tried previous week JPA war and Booking ear examples, but haven't been
>> successful with deployment yet.
>>
>> Are you saying, that you successfully deployed JPA example with your VFS
>> fixes?
>
> Almost.
> It's failing atm since it cannot find the legacy Hibernate Validator classes.
> I'm just about to bundle that along with the app, and see if it works.
OK, after adding super legacy hibernate-annotations jar:
* http://community.jboss.org/message/608837#608837
I managed to get it somehow deployed.
Getting the following errors:
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]
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:333) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:259) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:255) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:408) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1720) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:77) [hibernate-entitymanager-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:894) [hibernate-entitymanager-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:879) [hibernate-entitymanager-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) [hibernate-entitymanager-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48) [hibernate-jpa-2.0-api-1.0.0.Final.jar:1.0.0.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32) [hibernate-jpa-2.0-api-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:81) [jboss-seam.jar:]
at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50) [jboss-seam.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138) [jboss-seam.jar:]
at org.jboss.seam.Component.callComponentMethod(Component.java:2179) [jboss-seam.jar:]
at org.jboss.seam.Component.callCreateMethod(Component.java:2094) [jboss-seam.jar:]
at org.jboss.seam.Component.newInstance(Component.java:2054) [jboss-seam.jar:]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) [jboss-seam.jar:]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) [jboss-seam.jar:]
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112) [jboss-seam.jar:]
at org.jboss.seam.init.Initialization.init(Initialization.java:727) [jboss-seam.jar:]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) [jboss-seam.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
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)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:158)
at org.h2.index.TreeIndex.add(TreeIndex.java:56)
at org.h2.table.RegularTable.addRow(RegularTable.java:125)
at org.h2.command.dml.Insert.insertRows(Insert.java:126)
at org.h2.command.dml.Insert.update(Insert.java:86)
at org.h2.command.CommandContainer.update(CommandContainer.java:69)
at org.h2.command.Command.executeUpdate(Command.java:201)
at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:126)
at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:111)
at org.jboss.jca.adapters.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:349)
at org.hibernate.tool.hbm2ddl.DatabaseExporter.export(DatabaseExporter.java:64) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:406) [hibernate-core-4.0.0.Alpha3.jar:4.0.0.Alpha3]
... 34 more
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)
More information about the seam-dev
mailing list