-
15. Re: JSF 1.2 / Seam
gavin.king Mar 7, 2006 3:36 AM (in response to rogerk)Yes, it is the nightly build of JSF RI.
-
16. Re: JSF 1.2 / Seam
simon.nicholls Mar 7, 2006 4:05 AM (in response to rogerk)Actually, could I be a pain & ask you to email me your updated ear/attach it somewhere? I'm getting FacesServlet.init NullPointerExceptions on servlet load.
-
17. Re: JSF 1.2 / Seam
gavin.king Mar 7, 2006 4:08 AM (in response to rogerk)Probably you need to add:
<listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> </listener>
to your web.xml. -
18. Re: JSF 1.2 / Seam
simon.nicholls Mar 7, 2006 4:48 AM (in response to rogerk)Hehe! True! For some barmy reason I'd pasted in a commented out listener last night (....the myfaces one, just to deepen the shame of it all).
In general though, I was asking so that there is a clear example of getting JSF 1.2 working with Seam & facelets, for people reading the thread. In case anyone else fancies trying, these are the changes I made from the ear in JIRA (numberguess example but using facelets). In total I updated:
JSF implementation: new jsf-* jars plus el-* jars in jsf-libs. Replaced ConfigureListener in web.xml with JSF 1.2 version
Added these to faces-config:
<navigation-handler>org.jboss.seam.jsf.SeamNavigationHandler</navigation-handler>
<variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
<state-manager>org.jboss.seam.jsf.SeamStateManager</state-manager>
jsf-facelets 1.0.12 is now the only jar in WEB-INF/lib
Thanks for the fixes. Hope it solves Roger's problem too. I'll add a page to Seam wiki if possible -
19. Re: JSF 1.2 / Seam
gavin.king Mar 7, 2006 4:55 AM (in response to rogerk)"simon.nicholls" wrote:
Added these to faces-config:
<navigation-handler>org.jboss.seam.jsf.SeamNavigationHandler</navigation-handler>
<variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
<state-manager>org.jboss.seam.jsf.SeamStateManager</state-manager>
If you are working against current Seam CVS, you do *not* need to do this. There is a faces-config.xml with these lines in the seam jar."simon.nicholls" wrote:
Thanks for the fixes. Hope it solves Roger's problem too. I'll add a page to Seam wiki if possible
That would be cool. -
20. Re: JSF 1.2 / Seam
simon.nicholls Mar 7, 2006 7:37 AM (in response to rogerk)Have added a wiki page, and linked it into the JBoss Seam amin page, under Tips
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSeam -
21. Re: JSF 1.2 / Seam
simon.nicholls Mar 7, 2006 7:39 AM (in response to rogerk)Err...I mean the *main* Seam wiki page
-
22. Re: JSF 1.2 / Seam
gavin.king Mar 7, 2006 7:40 AM (in response to rogerk)Thanks, looks good :-)
-
23. Re: JSF 1.2 / Seam
gressho Mar 8, 2006 8:10 AM (in response to rogerk)Hi,
I tried the NumberGuess example in Glassfish. At first the JBoss logging
classes were missing, so I added jboss-common.jar to the EAR. This
led to the following log entry:
Message ID:
WebModule[/NumberGuessWeb]Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.UnsupportedClassVersionError
Complete Message
Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:653)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4755)
at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1461)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1131)
at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1058)
at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:196)
at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:632)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:908)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:201)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:848)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:527)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:571)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:133)
at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:517)
at java.lang.Thread.run(Thread.java:595)
Glassfish uses Java 5 and I thougt it should be backwards compatible to older
class files?!
I was using the ear from the wiki and the jboss-common.jar from JBoss 4.0.4RC1.
Best wishes
Werner Gresshoff -
24. Re: JSF 1.2 / Seam
gavin.king Mar 8, 2006 11:05 AM (in response to rogerk)Um. That is wierd. I mean, I am running JBoss on Java 5....
-
25. Re: JSF 1.2 / Seam
simon.nicholls Mar 8, 2006 4:52 PM (in response to rogerk)I'm not ;-) I'm sure the problem was that I was trying out Mustang amongst other things. Gavin, can you or another JBoss representative remove the attachment from the wiki page? I'll build a Java 5 version, but don't want to cause confusion with multiple attachments up there.
-
26. Re: JSF 1.2 / Seam
gavin.king Mar 8, 2006 6:17 PM (in response to rogerk)Remove which attachment from where?
-
-
28. Re: JSF 1.2 / Seam
gavin.king Mar 8, 2006 6:36 PM (in response to rogerk)Um. I don't seem to be able to figure out how to do that...
Thomas? -
29. Re: JSF 1.2 / Seam
simon.nicholls Mar 8, 2006 7:19 PM (in response to rogerk)I've rebuilt it on Java 5. I wonder if it's possible to overwrite the wiki attachments. Sandbox keeps asking me to log in, else I'd check. Am travel tired, so will test etc tomorrow. Cheers Gavin