-
15. Re: Running Seam 2 archives on Jboss 7
alesj Jun 7, 2011 8:58 AM (in response to matt.drees)Doh! I was looking at your 'as7-941' branch.
:-)
Yeah, that's what got merged into AS7 master.
And the names are pretty similar, hence easy to get it confused.
For this latest fix I need to discuss it with Jason, since they don't like it 100%.
-
16. Re: Running Seam 2 archives on Jboss 7
jaikiran Jun 7, 2011 9:11 AM (in response to matt.drees)Matt Drees wrote:
Would you guys be willing to make available an org.hibernate.validator.legacy module or something?
I don't see any problem in doing that. However, Scott Marlow might know better, so I've asked him to take a look at this thread.
-
17. Re: Running Seam 2 archives on Jboss 7
matt.drees Jun 7, 2011 9:18 AM (in response to alesj):
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 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).
-
18. Re: Running Seam 2 archives on Jboss 7
alesj Jun 7, 2011 9:20 AM (in response to jaikiran)Would you guys be willing to make available an org.hibernate.validator.legacy module or something?
I don't see any problem in doing that. However, Scott Marlow might know better, so I've asked him to take a look at this thread.
We could then easily also add this module as part of SeamProcessor, if it's really neccessary.
-
19. Re: Running Seam 2 archives on Jboss 7
alesj Jun 7, 2011 9:21 AM (in response to matt.drees)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).
I guess this is for Stan to decide if/what can be done. Stan?
-
20. Re: Running Seam 2 archives on Jboss 7
matt.drees Jun 7, 2011 10:45 AM (in response to alesj)Ales Justin wrote:
Doh! I was looking at your 'as7-941' branch.
:-)
So, yes, the 'vfs-rl-941' branch runs my app just fine (after a small non-related change I had to make to ResourceInjectionAnnotationParsingProcessor).
Message was edited by: Matt Drees (got the branch name wrong)
-
21. Re: Running Seam 2 archives on Jboss 7
matt.drees Jun 7, 2011 10:46 AM (in response to alesj)Ales Justin wrote:
Would you guys be willing to make available an org.hibernate.validator.legacy module or something?
I don't see any problem in doing that. However, Scott Marlow might know better, so I've asked him to take a look at this thread.
We could then easily also add this module as part of SeamProcessor, if it's really neccessary.
Definitely, that'd be great!
-
22. Re: Running Seam 2 archives on Jboss 7
ssilvert Jun 7, 2011 11:29 AM (in response to alesj)Ales Justin wrote:
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).
I guess this is for Stan to decide if/what can be done. Stan?
This is something I definitely want to do, but I can't commit to when. I'm juggling JSF on AS7, JSFUnit 2.x, and AS7 Console. At the moment AS7 Console is getting most of my attention. For AS 7.1, we'll set priorities and see where this falls on the list.
Stan
-
23. Re: Running Seam 2 archives on Jboss 7
jaikiran Jun 7, 2011 11:35 AM (in response to ssilvert)Stan Silvert wrote:
Ales Justin wrote:
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).
I guess this is for Stan to decide if/what can be done. Stan?
This is something I definitely want to do, but I can't commit to when.
If it doesn't require too much of a hack and isn't going to take too long (considering the tasks for 7.0 CR1) then I guess either me or Stuart (if he is interested and has the time) can take a look. Let's discuss this offline.
-
24. Re: Running Seam 2 archives on Jboss 7
sgilda Jun 13, 2011 11:33 AM (in response to matt.drees)I have migrated a Seam 2 application to AS7. This application is running with Seam 2.2.2 and RichFaces 3.3.1. There are no JSPs or JSFs in this app. It's all HTML or XHTML pages. However, the XHTML pages use JSF tags. I've been able to resolve all the issues I ran into and it seems to deploy with no errors. However, none of the JSF tags render on the page. Only the text and html tags seem to appear.
I noticed comments that other people were successful. Does anyone else have an application that uses JSF tags?
-
25. Re: Running Seam 2 archives on Jboss 7
matt.drees Jun 13, 2011 4:13 PM (in response to sgilda)I was only ever able to get my Seam 2 app running by using a JSF2 fork of Seam 2 instead of the standard Seam 2.2.2 distribution. I had run into different problems than what you're getting; i'm not sure if the behavior you're seeing is related to JSF 2 or not.
-
26. Re: Running Seam 2 archives on Jboss 7
sgilda Jun 13, 2011 5:50 PM (in response to matt.drees)Thanks for the info. Do you use JSF tags in your pages. Do they render?
-
27. Re: Running Seam 2 archives on Jboss 7
matt.drees Jun 13, 2011 6:44 PM (in response to sgilda)Yep, I'm using JSF (facelets) tags, and yep, they render correctly.
-
28. Re: Running Seam 2 archives on Jboss 7
nitinkhekare Aug 26, 2011 12:42 AM (in response to matt.drees)I am getting an error while deploying an seam ear to jboss-as-web-7.0.0.Final, sea mversion is 2.2.0
The error stack trace is
09:53:51,992 WARN [org.jboss.modules] (MSC service thread 1-3) Failed to define class org.jboss.seam.integration.jbossas.vfs.VFSScanner in Module "deployment.commonconsole.ear:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/seam/integration/jbossas/vfs/VFSScanne
(Module "deployment.sample.ear:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
at org.jboss.modules.Module.loadModuleClass(Module.java:588)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at org.jboss.seam.deployment.DeploymentStrategy.instantiateScanner(DeploymentStrategy.java:114) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.deployment.DeploymentStrategy.initScanner(DeploymentStrategy.java:98) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.deployment.DeploymentStrategy.getScanner(DeploymentStrategy.java:59) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.init.Initialization.create(Initialization.java:132) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam.jar:2.2.0.GA]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/deployment/AbstractScanner
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_22]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) [:1.6.0_22]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [:1.6.0_22]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_22]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.jboss.seam.deployment.AbstractScanner from [Module "deployment.sample.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
... 26 more
09:53:52,086 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SMGR]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.LinkageError: Failed to link org/jboss/seam/integration/j
ssas/vfs/VFSScanner (Module "deployment.sample.ear:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
at org.jboss.modules.Module.loadModuleClass(Module.java:588)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at org.jboss.seam.deployment.DeploymentStrategy.instantiateScanner(DeploymentStrategy.java:114) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.deployment.DeploymentStrategy.initScanner(DeploymentStrategy.java:98) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.deployment.DeploymentStrategy.getScanner(DeploymentStrategy.java:59) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.init.Initialization.create(Initialization.java:132) [jboss-seam.jar:2.2.0.GA]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam.jar:2.2.0.GA]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/deployment/AbstractScanner
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_22]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) [:1.6.0_22]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [:1.6.0_22]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_22]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.jboss.seam.deployment.AbstractScanner from [Module "deployment.sample.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
... 26 more
Can anybody help me in this?
Thanks
-
29. Re: Running Seam 2 archives on Jboss 7
sgilda Aug 26, 2011 7:42 AM (in response to nitinkhekare)The org.jboss.seam.deployment.AbstractScanner class is in the jboss-seam.jar. Did you copy the jboss-seam.jar to the root of your EAR?