myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Ahrer <>
Subject Re: [Tomahawk] - Both MyFaces and the RI are on your classpath
Date Mon, 11 Aug 2008 11:57:33 GMT


I'm trying to do something (probably) similar: Porting a JBoss Seam JSF RI
1.2 app to WebSphere 6.1. I have been running into many problems.
Now I'm stuck with an exception at startup
java.lang.IllegalStateException: Application was not properly initialized at
startup, could not find Factory: javax.faces.context.FacesContextFactory
	at javax.faces.FactoryFinder.getFactory(
	at javax.faces.webapp.FacesServlet.init(

For this I actually created a fresh JSF 1.2 appplication with no other
dependencies than JSF 1.2 (It starts and works on Tomcat 6.x). 

I have pretty much come to the conclusion that it would not be wise to use
WebSphere 6.1 + JSF 1.2 at all. The built-in JSF is in which contains other ibm packages as well.
I haven't yet tried to remove the built-in JSF impl 1.1 from my WebSphere
installation - I don't think that one would get support from IBM if they
would do so in a production environment.

I find it strange that JBoss is describing a WebSphere deployment for it's
Seam framework in
Chapter 35  when it seems to cause major troubles.

Since there have been a few months sínce this posting I'm corious if
somebody has been successful with this one!

Thanks, Martin wrote:
> schrieb:
>> Hi,
>> I'm using Tomahawk 1.1.6 on WebSphere 6.1 and does work correctly. But
>> on the log I found:
>> "Both MyFaces and the RI are on your classpath. Please make sure to use
>> only one of the two JSF-implementations."
>> I know that WAS has a JSF 1.1 implementation (Sun implementation) and my
>> application classloader policy is PARENT-LAST. The question is:
>> The log has an "ERROR" severity, so can this cause some problem?
> Having both on the classpath *is* a serious problem. You do need to
> resolve this.
> Setting the classloader policy cannot solve this problem; that can
> change which is *first*, but cannot make one of them invisible. So you
> will need to either remove the websphere implementation, or overwrite it
> with the myfaces one, or use some websphere-specific feature (if one
> exists) to make the "built-in" lib invisible.
> There is some information on the wiki about configuring various
> containers. The wiki can be found here:
> Regards,
> Simon

View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message