[JBoss JIRA] Commented: (RF-572) ClassCastException when trying to access a JSF Portlet using RichFaces
by Viggo Navarsete (JIRA)
[ http://jira.jboss.com/jira/browse/RF-572?page=comments#action_12393024 ]
Viggo Navarsete commented on RF-572:
------------------------------------
Alexander: I'm a bit confused when looking at the maven repository. What exactly should I use as version in my pom.xml to get the version you refer to? In the repository I can only find 3.1.3-SNAPSHOT, 3.1.4-SNAPSHOT and 3.2.0-SNAPSHOT (and some older). I'm looking here: http://snapshots.jboss.org/maven2/org/richfaces/framework/richfaces-api/
(The same question goes for the other richfaces jar's as well, but as soon as I get one right, I would certainly get the other right as well..)
> ClassCastException when trying to access a JSF Portlet using RichFaces
> ----------------------------------------------------------------------
>
> Key: RF-572
> URL: http://jira.jboss.com/jira/browse/RF-572
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.0
> Environment: RealFaces 3.1.0.SNAPSHOT (sourcecode retrieved and built manually from svn 08.08.2007 )
> JSF Portlet Bridge 1.2.1 from Sun
> JBoss Portal 2.6.1.GA
> JBoss AS 4.2.1.GA
> JDK 1.5.0_08
> Postgresql 8.x database
> Linux Kubuntu 6.10
> Reporter: Viggo Navarsete
> Assigned To: Alexander Smirnov
> Fix For: 3.2.0, 3.1.3
>
> Attachments: AbstractExternalContext.java, ContextAttributesMap.java, ContextMap.java, EnumerationIterator.java, FacesContextImpl.java, portlet-jsfrichfacesdemo-session.war, portlet-jsfrichfacesdemo.war, portlet-jsfrichfacesdemo.war, PortletContextImpl.java, ServletContextImpl.java, SessionAttributesNames.java, suggestionBoxDemo-Portal2.6.2.zip
>
>
> I have created a JSF portlet using the latest RichFaces source code from svn. I have added a <rich:panel> to my jsp page, deployed it to my jboss portal, created a portlet instance and added it to a page. When trying to access the page I get the following stacktrace:
> 08:37:37,523 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN
> 08:37:39,853 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
> java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade
> at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
> at org.ajax4jsf.resource.InternetResourceService.getFacesContext(InternetResourceService.java:317)
> at org.ajax4jsf.resource.InternetResourceService.getResourceContext(InternetResourceService.java:251)
> at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:162)
> at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:259)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:595)
> Please read the JBoss Forum reference for more information about configuration of my web.xml, portlet.xml and other "war-file-specific-things".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years
[JBoss JIRA] Resolved: (RF-1289) Getting A4J Undefined though My renderer is properly adding support as child to the component.
by Sergey Halipov (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1289?page=all ]
Sergey Halipov resolved RF-1289.
--------------------------------
Resolution: Out of Date
Cant reproduce issue with the latest Richfaces.
> Getting A4J Undefined though My renderer is properly adding support as child to the component.
> ----------------------------------------------------------------------------------------------
>
> Key: RF-1289
> URL: http://jira.jboss.com/jira/browse/RF-1289
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Windows , Tomcat , Java 1.5, ajax4jsf1.1.0 , oscacche2.3.2
> Reporter: Karthik M
> Assigned To: Sergey Halipov
> Priority: Critical
> Fix For: 3.2.0
>
> Attachments: ajax4jsf Help.zip, web.xml
>
> Original Estimate: 4 days
> Remaining Estimate: 4 days
>
> To replicate this behaviour follow these steps:
> 1) create a custom component and its rendrerer.
> 2) In this parent renderere code try to create 2 child components to this parent component programatically (say 2 input texts..).
> 3) Each of this individual child components has to be ajax aware. So we add support objects to it with neccessary metadata.
> 4) in the xhtml try to verfy whether all the components are rendrered correctly and whether their defined events fire AJAX call.
> There is a thread on this forum where i have staed ths problem...URL is attached..
> I have already set code to sergeysmirnov(a)dev.java.net with subject Query on ajax4jsf.
> I have noted that till the last line of my renderer code all flow is correct..only whne HTML is generated it has no AJAX script declaration or support objects...but the A4J submit function exists...
> I have tried with several beta as well as stable versions but it did not work.
> Please help with this issue..kindly suggest any ideas to make this work..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years
[JBoss JIRA] Created: (RF-1682) First Phase Listener doesn't get invoked
by dapeng wang (JIRA)
First Phase Listener doesn't get invoked
-----------------------------------------
Key: RF-1682
URL: http://jira.jboss.com/jira/browse/RF-1682
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Reporter: dapeng wang
Priority: Critical
Hi,
I found the problem and it is a bug in the ajax4jsf in the class org.ajax4jsf.resource.ResourceLifecycle. There in the method processPhaseListeners all PhaseListener except the first 1 will be notified about the "after phase". The loop end condition should definitely be i >= 0. Under this condition the first listener, which is the SeamPhaseListener will not be notified.
Quote:
private void processPhaseListeners(PhaseListener[] phaseListeners,
PhaseEvent phaseEvent, boolean beforePhase) {
if (beforePhase) {
// Invoke before phase listeners
for (int i = 0; i < phaseListeners.length; i++) {
PhaseListener phaseListener = phaseListeners ;
invokePhaseListener(phaseListener, phaseEvent, beforePhase);
}
} else {
// Invoke after phase listeners, in reverse order.
for (int i = phaseListeners.length - 1; i > 0 ; i--) {
PhaseListener phaseListener = phaseListeners ;
invokePhaseListener(phaseListener, phaseEvent, beforePhase);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years