[jboss-user] [JBoss Seam] - Seam 2.0 and MyFaces
pietruha
do-not-reply at jboss.com
Thu Nov 15 16:48:56 EST 2007
Hi
I need to use MyFaces with Seam 2.0 on JBoss 4.2.2 (one of third party jsf libraries needs it). Following the article http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces I have added a context parameter to web.xml. Which version of MyFaces should I use?
If I use MyFaces 1.1.5 I get this error:
21:42:28,843 INFO [FacesConfigurator] Reading config jar:file:/C:/JBoss/server/default/tmp/deploy/tmp45116jboss-seam.jar!/META-INF/faces-config.xml
| 21:42:28,843 ERROR [Digester] Parse Error at line 2 column 14: Document is invalid: no grammar found.
| org.xml.sax.SAXParseException: Document is invalid: no grammar found.
| at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
| at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
| ...
And more and more ...
If I use MyFaces 1.2.0 I get this error:
22:10:43,734 ERROR [DefaultFacesInitializer] Error initializing MyFaces: Class org.jboss.seam.jsf.SeamApplicationFactory is no javax.faces.application.ApplicationFactory
| java.lang.IllegalArgumentException: Class org.jboss.seam.jsf.SeamApplicationFactory is no javax.faces.application.ApplicationFactory
| at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:128)
| at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:107)
| at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:499)
| at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:190)
| at org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:112)
| at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:57)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
| ...
What can I do?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105235#4105235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105235
More information about the jboss-user
mailing list