2 Replies Latest reply on Mar 6, 2007 12:48 AM by gavin.king

    Documentation on how to set up Seam together with Trinidad a

      Hi @all,

      After I spent a lot of time in setting up Seam, Trinidad, Facelets and ajax4jsf together and want to share my experiences with others I set up a small wiki-page at the apache-wiki yesterday, in which I wrote a short description about what I did to make Seam, Trinidad, Facelets and ajax4jsf work together.

      Anyone who is interested in how to set up these components to work together or has some ideas to improve this settings is invited to have a look at the following url and share his ideas.

      You will find it at

      http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail

      I hope it helps some people to get these great components together.

      Thomas

        • 1. Re: Documentation on how to set up Seam together with Trinid
          lschaffer

          Hello,
          I have tried to integrate trinidad with seam 1.2 following the instructions found in http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail
          First at all I have created a small seam project with seam gen, that is worked.
          Then I have replaced web.xml, faces-config.xml downloaded and copied the jars into lib etc...

          But I have got this exception (using jboss 4.0.5)

          21:56:31,421 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss45/server/default/./tmp/depl
          oy/tmp16804msservice3.ear-contents/msservice3-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-c
          onfig.xml
          21:56:31,421 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss45/server/default/./tmp/depl
          oy/tmp16804msservice3.ear-contents/msservice3-exp.war/WEB-INF/lib/trinidad-impl-1.0.1-incubating-SNA
          PSHOT.jar!/META-INF/faces-config.xml
          21:56:32,718 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
          21:56:33,015 ERROR [StartupServletContextListener] Error initializing ServletContext
          java.lang.IllegalArgumentException: Class org.jboss.seam.jsf.SeamApplicationFactory is no javax.face
          s.application.ApplicationFactory
          at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:132)
          at javax.faces.FactoryFinder.getFactory(FactoryFinder
          .java:107)
          at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:4
          39)
          at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:141)
          at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextLi
          stener.java:69)
          at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet
          ContextListener.java:52)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
          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 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
          at org.jboss.mx.server.MBeanServerImpl.invoke
          (MBeanServerImpl.java:659)

          • 2. Re: Documentation on how to set up Seam together with Trinid
            gavin.king

            You copied too many jars. You have multiple JSF APIs in the classpath.