I may be wrong, but this so looks like a classloader issue to me. I've tried
putting myfaces and dependency jars into my EAR, but no difference.
Code from FactoryFinder (MyFaces 1.1.5 -- assuming simlar code here) and log
below. It would seem that there is no Map of factoryClassNames at the
classloader key.
Enough for tonite, I guess.
Andy.
public static Object getFactory(String factoryName)
throws FacesException
{
if(factoryName == null)
throw new NullPointerException("factoryName may not be null");
ClassLoader classLoader = getClassLoader();
Map factoryClassNames = (Map) _registeredFactoryNames.get(classLoader);
if (factoryClassNames == null)
{
String message = "No Factories configured for this Application.
This happens if the faces-initialization "+
"does not work at all - make sure that you properly include all
configuration settings necessary for a basic faces application " +
"and that all the necessary libs are included. Also check the
logging output of your web application and your container for any exceptions!" +
"\nIf you did that and find nothing, the mistake might be due to
the fact that you use some special web-containers which "+
"do not support registering context-listeners via TLD files and " +
"a context listener is not setup in your web.xml.\n" +
"A typical config looks like this;\n\n" +
"
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>\n"
+
"\n";
throw new IllegalStateException(message);
...........................
2006-10-25 02:06:11,843 INFO [org.jboss.seam.Component] Component: login,
scope: STATELESS, type: STATELESS_SESSION_BEAN, class:
org.jboss.seam.example.booking.LoginAction, JNDI: LoginAction/local
2006-10-25 02:06:11,853 DEBUG [org.jboss.seam.Component] interceptor stack:
[Interceptor(org.jboss.seam.interceptors.RemoveInterceptor),
Interceptor(org.jboss.seam.interceptors.EventInterceptor),
Interceptor(org.jboss.seam.interceptors.ConversationalInterceptor),
Interceptor(org.jboss.seam.interceptors.BusinessProcessInterceptor),
Interceptor(org.jboss.seam.interceptors.ConversationInterceptor),
Interceptor(org.jboss.seam.interceptors.BijectionInterceptor),
Interceptor(org.jboss.seam.interceptors.RollbackInterceptor),
Interceptor(org.jboss.seam.interceptors.OutcomeInterceptor),
Interceptor(org.jboss.seam.interceptors.ValidationInterceptor)]
2006-10-25 02:06:11,853 INFO [org.jboss.seam.Component] Component:
hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class:
org.jboss.seam.example.booking.HotelSearchingAction, JNDI:
HotelSearchingAction/local
2006-10-25 02:06:11,903 DEBUG [org.jboss.seam.Component] interceptor stack:
[Interceptor(org.jboss.seam.interceptors.RemoveInterceptor),
Interceptor(org.jboss.seam.interceptors.EventInterceptor),
Interceptor(org.jboss.seam.interceptors.ConversationalInterceptor),
Interceptor(org.jboss.seam.interceptors.RollbackInterceptor),
Interceptor(org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor),
Interceptor(org.jboss.seam.example.booking.LoggedInInterceptor),
Interceptor(org.jboss.seam.interceptors.BusinessProcessInterceptor),
Interceptor(org.jboss.seam.interceptors.ConversationInterceptor),
Interceptor(org.jboss.seam.interceptors.OutcomeInterceptor),
Interceptor(org.jboss.seam.interceptors.BijectionInterceptor),
Interceptor(org.jboss.seam.interceptors.ValidationInterceptor)]
2006-10-25 02:06:11,903 INFO [org.jboss.seam.Component] Component:
bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class:
org.jboss.seam.example.booking.BookingListAction, JNDI: BookingListAction/local
2006-10-25 02:06:11,943 DEBUG [org.jboss.seam.Component] interceptor stack:
[Interceptor(org.jboss.seam.interceptors.RemoveInterceptor),
Interceptor(org.jboss.seam.interceptors.EventInterceptor),
Interceptor(org.jboss.seam.interceptors.ConversationalInterceptor),
Interceptor(org.jboss.seam.interceptors.RollbackInterceptor),
Interceptor(org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor),
Interceptor(org.jboss.seam.example.booking.LoggedInInterceptor),
Interceptor(org.jboss.seam.interceptors.BusinessProcessInterceptor),
Interceptor(org.jboss.seam.interceptors.ConversationInterceptor),
Interceptor(org.jboss.seam.interceptors.OutcomeInterceptor),
Interceptor(org.jboss.seam.interceptors.BijectionInterceptor),
Interceptor(org.jboss.seam.interceptors.ValidationInterceptor)]
2006-10-25 02:06:11,943 INFO [org.jboss.seam.Component] Component: hotel,
scope: CONVERSATION, type: ENTITY_BEAN, class:
org.jboss.seam.example.booking.Hotel
2006-10-25 02:06:11,953 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
isUserInRole
2006-10-25 02:06:11,953 DEBUG [org.jboss.seam.Component] instantiating Seam
component: isUserInRole
2006-10-25 02:06:11,953 DEBUG [org.jboss.seam.Component] initializing new
instance of: isUserInRole
2006-10-25 02:06:11,953 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
conversationContext
2006-10-25 02:06:11,953 DEBUG [org.jboss.seam.Component] instantiating Seam
component: conversationContext
2006-10-25 02:06:11,953 DEBUG [org.jboss.seam.Component] initializing new
instance of: conversationContext
2006-10-25 02:06:11,953 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
applicationContext
2006-10-25 02:06:11,953 DEBUG [org.jboss.seam.Component] instantiating Seam
component: applicationContext
2006-10-25 02:06:11,953 DEBUG [org.jboss.seam.Component] initializing new
instance of: applicationContext
2006-10-25 02:06:11,953 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
userPrincipal
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] instantiating Seam
component: userPrincipal
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] initializing new
instance of: userPrincipal
2006-10-25 02:06:11,963 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
sessionContext
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] instantiating Seam
component: sessionContext
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] initializing new
instance of: sessionContext
2006-10-25 02:06:11,963 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
facesContext
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] instantiating Seam
component: facesContext
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] initializing new
instance of: facesContext
2006-10-25 02:06:11,963 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
businessProcessContext
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] instantiating Seam
component: businessProcessContext
2006-10-25 02:06:11,963 DEBUG [org.jboss.seam.Component] initializing new
instance of: businessProcessContext
2006-10-25 02:06:11,963 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
eventContext
2006-10-25 02:06:11,973 DEBUG [org.jboss.seam.Component] instantiating Seam
component: eventContext
2006-10-25 02:06:11,973 DEBUG [org.jboss.seam.Component] initializing new
instance of: eventContext
2006-10-25 02:06:11,973 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
expressions
2006-10-25 02:06:11,973 DEBUG [org.jboss.seam.Component] instantiating Seam
component: expressions
2006-10-25 02:06:11,973 DEBUG [org.jboss.seam.Component] initializing new
instance of: expressions
2006-10-25 02:06:11,973 INFO [org.jboss.seam.contexts.Lifecycle] starting up:
pageContext
2006-10-25 02:06:11,973 DEBUG [org.jboss.seam.Component] instantiating Seam
component: pageContext
2006-10-25 02:06:11,973 DEBUG [org.jboss.seam.Component] initializing new
instance of: pageContext
2006-10-25 02:06:11,973 INFO [org.jboss.seam.init.Initialization] done
initializing Seam
2006-10-25 02:06:11,983 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:11,993 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,003 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,003 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,013 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter]
Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.5.GA (build:
CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5'
2006-10-25 02:06:12,013 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,073 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,103 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,103 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,184 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,194 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,194 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,194 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,214 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,214 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,224 DEBUG [org.jboss.mx.loading.RepositoryClassLoader]
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
2006-10-25 02:06:12,224 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SeamBookingPortletWeb]]
Exception starting filter ajax4jsf
java.lang.IllegalStateException: No Factories configured for this Application.
This happens if the faces-initialization does not work at all - make sure that
you properly include all configuration settings necessary for a basic faces
application and that all the necessary libs are included. Also check the
logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you
use some special web-containers which do not support registering
context-listeners via TLD files and a context listener is not setup in your
web.xml.
A typical config looks like this;
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
at
org.ajax4jsf.framework.resource.InternetResourceService.init(InternetResourceService.java:58)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.init(BaseFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:77)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)..................
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980586#3980586
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980586
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user