[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5968) JSF Portlet Facet always adds richfaces fragments to web.xml

Jiri Peterka (JIRA) jira-events at lists.jboss.org
Thu May 27 10:12:08 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12532742#action_12532742 ] 

Jiri Peterka commented on JBIDE-5968:
-------------------------------------

Steps to reproduce:
1. Have defined JBoss-epp-5.0.0-ga runtime
2. Create Dynamic web project with epp-5.0.0-ga runtime
3. Configuration -> modify -> Select JavaServer Faces 1.2, JBoss Core Portlet 2.0, Jboss JSF Portlet 1.0
4. 5x Next
5. Rich Faces Capabilities ->  Enable Add/Change Richfaces Libraries and select Libraries selected by portletbridge distribution
6. Click Finish
ASSERT: There should be richfaces libs (richfaces-impl.jar, richfaces-ui.jar,..) under Project->Web App Libraries

> JSF Portlet Facet always adds richfaces fragments to web.xml
> ------------------------------------------------------------
>
>                 Key: JBIDE-5968
>                 URL: https://jira.jboss.org/browse/JBIDE-5968
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Portal/GateIn
>    Affects Versions: 3.1.0.CR2
>            Reporter: Dominik Pospisil
>            Assignee: Snjezana Peco
>             Fix For: 3.1.1
>
>
> JSF Portlet Facet always adds richfaces fragments to web.xml. Created project could not be deployed due to missing richfaces libraries.
> Steps to reproduce:
> 1) File -> New -> Dynamic Web Project
> 2) Select EPP 4.3 Runtime
> 3) Click Modify on Runtime configuration
> 4) Select JSF 1.2 facet and JBoss Core Portlet and JBoss JSF Portlet facets
> 5) Click OK, 5x next
> 6) JBoss JSF Portlet Capabilities - do NOT select Add/Change richfaces libraries
> 7) click Finish
> Geneated web.xml contains following fragment which I guess should not be there:
>   <context-param>
>     <param-name>org.richfaces.LoadStyleStrategy</param-name>
>     <param-value>NONE</param-value>
>   </context-param>
>   <context-param>
>     <param-name>org.richfaces.LoadScriptStrategy</param-name>
>     <param-value>NONE</param-value>
>   </context-param>
>   <context-param>
>     <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
>     <param-value>rfRes</param-value>
>   </context-param>
>   <filter>
>     <display-name>Ajax4jsf Filter</display-name>
>     <filter-name>ajax4jsf</filter-name>
>     <filter-class>org.ajax4jsf.Filter</filter-class>
>   </filter>
>   <filter-mapping>
>     <filter-name>ajax4jsf</filter-name>
>     <servlet-name>Faces Servlet</servlet-name>
>     <dispatcher>REQUEST</dispatcher>
>     <dispatcher>FORWARD</dispatcher>
>     <dispatcher>INCLUDE</dispatcher>
>   </filter-mapping>
> When removed from web.xml, portlet deploys correctly.
> Server console shows:
> 14:51:25,306 INFO  [TomcatDeployer] deploy, ctxPath=/testProject3, warUrl=.../deploy/testProject3.war/
> 14:51:25,723 ERROR [ContainerBase] Exception starting filter ajax4jsf
> java.lang.ClassNotFoundException: org.ajax4jsf.Filter
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1364)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list