[JBoss Seam] - Re: Seam 1.1 beta 1
by andyd
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, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@830624{ url=null ,addedOrder=0}
2006-10-25 02:06:11,993 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@86558{ url=null ,addedOrder=0}
2006-10-25 02:06:12,003 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@135b50c{ url=null ,addedOrder=0}
2006-10-25 02:06:12,003 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1015495{ 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, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@126d235{ url=null ,addedOrder=0}
2006-10-25 02:06:12,073 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@a0ee03{ url=null ,addedOrder=0}
2006-10-25 02:06:12,103 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@e3f8b9{ url=null ,addedOrder=0}
2006-10-25 02:06:12,103 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1e2d159{ url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@b4bb65{ url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@17b1683{ url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3171e{ url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@e2e4d7{ url=null ,addedOrder=0}
2006-10-25 02:06:12,133 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1dfc6e{ url=null ,addedOrder=0}
2006-10-25 02:06:12,184 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@140727a{ url=null ,addedOrder=0}
2006-10-25 02:06:12,194 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1bd871{ url=null ,addedOrder=0}
2006-10-25 02:06:12,194 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ba0609{ url=null ,addedOrder=0}
2006-10-25 02:06:12,194 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1e26e12{ url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@a893ff{ url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@18c862e{ url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@bd6b1e{ url=null ,addedOrder=0}
2006-10-25 02:06:12,204 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1c39cb2{ url=null ,addedOrder=0}
2006-10-25 02:06:12,214 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@164a05d{ url=null ,addedOrder=0}
2006-10-25 02:06:12,214 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@15c4ee6{ url=null ,addedOrder=0}
2006-10-25 02:06:12,224 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1382988, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@13fe4e4{ 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
19 years, 6 months
[JBoss Portal] - Re: static and dynamic pages
by Antoine_h
you don't need to build a new page for each content.
you define new pages only if you want to have different portlets shown (or change the position of windows in the page, etc...).
if you change the "structure" of the page.
to have the same "kind/structure" of page, but with different content in the portlets (such as CMS portlet, or other portlets for dynamic content), you should use the same page, but passing a parameter to the portlet so it show the content requiered.
the CMS portlet is working this way : you can define the path of the file from the repository in the url.
the prefix in the url is "content" : /content/your/path/in/repository/file.html
see the reference guide for explaination of that.
the other portlet should work the same way.
in your menu, you put the url that say : "tell to the cms portlet to show this html file".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980575#3980575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980575
19 years, 6 months