[jboss-user] [Installation, Configuration & DEPLOYMENT] - migration from jboss-4.0.5.GA to jboss-4.2.1.GA

chris.katsuo do-not-reply at jboss.com
Tue Dec 18 14:38:01 EST 2007

Hello everybody,

We have to migrate an application written with Seam 1.1.0.CR1 on 
jboss-4.0.5.GA ( at this time MyFaces was the built-in JSF implementation) to Seam 2.0.0.GA on jboss-4.2.1.GA.

After a while, we have finally been able to port everything using default configuration (so SUN RI JSF 1.2 built-in JSF implementation).
Actually, we have created from scratch a Seam application using Seam generator and integrate piece by piece our old application.

Unfortunately, one of the third-party component we are using is fckeditor / fck-faces which is built-in on top of MyFaces :(

So reading several posts on the forum and reading blog on internet, we tried to enable MyFaces in our application.
We went through 
but nothing helped us :(

We are totally blocked about this issue and we really need help.
Is there a place with a sample of EAR file using MyFaces in JBoss 4.2.1GA please ?

We would really need a sample of an application with MyFaces bundled in it.

We put 
anonymous wrote : 
  | <context-param>
  |     <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
  |     <param-value>true</param-value>
  | </context-param>
in faces-config.xml

we copied the lib myfaces-impl-1.1.5.jar and myfaces-api-1.1.5.jar ( and dependencies) in WEB-INF\lib but we got digester error :
anonymous wrote : 
  | ERROR [org.apache.commons.digester.Digester] Parse Error at line 2 column 14: Document is invalid: no grammar found.
  | org.xml.sax.SAXParseException: Document is invalid: no grammar found.

I guess because our faces-config.xml has been created with Seam generator targeted for JSF 1.2

we does the same with myfaces-api-1.2.0.jar and myfaces-impl-1.2.0.jar

anonymous wrote : 
  | ERROR [org.apache.myfaces.webapp.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 

I'm sure we missed some steps or configurations specifying that we use MyFaces in place of Sun RI.

This context parameter and the copy of the libraries can't be sufficient.
Please let us know what is missing.

a small sample of an EAR file using MyFaces in place of Sun RI would be extremely helpful.

or is there a guide as seam2migration.txt explaining what we shouldn't remove if we want to keep using MyFaces ?
There is no instructions for this scenario.

Thanks in avance
Christophe Laumond

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113932#4113932

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113932

More information about the jboss-user mailing list