[jboss-user] [JBoss Seam] - Re: richfaces3.0.1 is not fit for seam?

gringalet do-not-reply at jboss.com
Mon Aug 27 22:20:39 EDT 2007


thanks, man. i have deleted this from my web.xml

  | <context-param>     
  |       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>     
  |       <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>   
  |     </context-param>  
so the error disappeared .
but another error happens, please help me.

  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.done
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: ajaxContext
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.ajax4jsf.VIEW_STATE_SAVED
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.ajax4jsf.view.ID
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.ResponseWrapper
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.faces.webapp.UIComponentTag.UNIQUE_ID_COUNTER
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
  | 2007-08-28 10:12:23,828 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] Process after phase RENDER_RESPONSE(6)
  | 2007-08-28 10:12:23,828 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter] create HTML/XML parser for content type: text/html;charset=utf-8
  | 2007-08-28 10:12:23,828 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter] Parsing html total time 0ms
  | 2007-08-28 10:12:23,828 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Finished request processing total time 532ms for uri: /wcrm/home.jsf
  | 2007-08-28 10:12:23,828 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007-08-28 10:12:30,562 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/wcrm].[jsp]] Servlet.service() for servlet jsp threw exception
  | org.apache.jasper.JasperException: The absolute uri: http://richfaces.ajax4jsf.org/drag-drop cannot be resolved in either web.xml or the jar files deployed with this application
  | 	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
  | 	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
  | 	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
  | 	at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
  | 	at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
  | 	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
  | 	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
  | 	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
  | 	at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
  | 	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
  | 	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
  | 	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
  | 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
  | 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
  | 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
  | 	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
  | 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
  | 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 2007-08-28 10:12:36,000 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/wcrm].[jsp]] Servlet.service() for servlet jsp threw exception
  | org.apache.jasper.JasperException: The absolute uri: http://richfaces.ajax4jsf.org/drag-drop cannot be resolved in either web.xml or the jar files deployed with this application
  | 	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
  | 	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
  | 	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
  | 	at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
  | 	at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
  | 	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
  | 	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
  | 	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
  | 	at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
  | 	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
  | 	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
  | 	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
  | 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
  | 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
  | 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
  | 	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
  | 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
  | 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 2007-08-28 10:13:25,125 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000
  | 

my richfaces is 3.0.2 
my ajax4jsf is 1.1.2

the jsp file like this:
<?xml version="1.0" encoding="UTF-8"?>
  | <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
  | <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  | <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j" %>
  | <%@ taglib uri="http://richfaces.ajax4jsf.org/drag-drop" prefix="dnd" %>
  | <%@ taglib uri="http://richfaces.ajax4jsf.org/tree" prefix="rich"%>
  | <html>
  | 	<head>
  | 		<title></title>
  | 		<style type="text/css">
  | 			.inputs {
  | 				font-size : 11px;
  | 				font-family : verdana;
  | 			}
  |             .customNode {
  |                 color : #00FFFF;
  |                 cursor: crosshair;
  |             }
  |             
  |             .colored {
  |             	background-color: #FEFEDE;
  |             }
  | 
  |         </style>
  | 	</head>
  | 	<body>
  | 		<f:view>
  | 			<a4j:outputPanel ajaxRendered="true">
  | 				<h:messages />
  | 			</a4j:outputPanel>
  | 
  | 			<h:form>
  | 
  | 			<dnd:dragIndicator id="treeIndicator">
  | 				<f:facet name="single">
  | 					<f:verbatim>{marker} <br /> {treeParam} <br /> {nodeParam}</f:verbatim>
  | 				</f:facet>
  | 			</dnd:dragIndicator>
  | 
  | 			<h:selectOneRadio binding="#{skinBean.component}" />
  | 			<h:commandLink action="#{skinBean.change}" value="set skin" />
  | 			<br />
  | 			<h:outputText value="Change tree switchType:" />
  | 				<h:selectOneRadio value="#{bean.switchType}" onclick="submit()">
  | 					<f:selectItem itemLabel="client" itemValue="client" />
  | 					<f:selectItem itemLabel="server" itemValue="server" />
  | 					<f:selectItem itemLabel="ajax" itemValue="ajax" />
  | 			</h:selectOneRadio>
  | 			<h:outputText value="SwitchType is: #{bean.switchType}" />
  | 			<br />
  | 			<h:outputText value="Drag switch:" />
  | 				<h:selectOneRadio value="#{bean.dragOn}" onclick="submit()">
  | 					<f:selectItem itemLabel="on" itemValue="#{true}" />
  | 					<f:selectItem itemLabel="off" itemValue="#{false}" />
  | 			</h:selectOneRadio>
  | 
  | 			<h:outputText value="Render facets:" />
  | 				<h:selectOneRadio value="#{bean.renderFacets}" onclick="submit()">
  | 					<f:selectItem itemLabel="true" itemValue="#{true}" />
  | 					<f:selectItem itemLabel="false" itemValue="#{false}" />
  | 			</h:selectOneRadio>
  | 
  | 			<h:outputText value="Drag is: #{bean.dragOn ? 'on' : 'off'}" />
  | 			<br />
  | 			<h:commandButton value="#{bean.commandButtonCaption}"
  | 			actionListener="#{bean.changeIcons}" />
  | 
  | 				<rich:tree id="tree" switchType="#{bean.switchType}"
  | 					value="#{bean.data}" var="data"
  | 					nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}"
  | 					changeExpandListener="#{bean.onExpand}"
  | 					nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}"
  | 					onselected="window.status='selectedNode: '+event.selectedNode;"
  | 					onexpand="window.status='expandedNode: '+event.expandedNode"
  | 					oncollapse="window.status='collapsedNode: '+event.collapsedNode"
  | 					ajaxSubmitSelection="true" reRender="outputText, selectOneListbox"
  | 					preserveModel="none"
  | 					dragIndicator="treeIndicator"
  | 					immediate="false"
  | 
  | 					acceptedTypes="file1"
  | 					dragType="#{bean.dragOn ? 'file1' : ''}"
  | 
  | 					iconCollapsed="#{bean.iconCollapsed}"
  | 					iconExpanded="#{bean.iconExpanded}"
  | 					iconLeaf="#{bean.iconLeaf}"
  | 					icon="#{bean.icon}"
  |                     dropListener="#{bean.processDrop}">
  | 
  | 					<f:facet name="icon">
  | 						<h:outputText value="icon" rendered="#{bean.renderFacets}"/>
  | 					</f:facet>
  | 
  | 					<f:facet name="iconLeaf">
  | 						<h:outputText value="leaf" rendered="#{bean.renderFacets}"/>
  | 					</f:facet>
  | 
  | 					<f:facet name="iconExpanded">
  | 						<h:outputText value="expanded" rendered="#{bean.renderFacets}"/>
  | 					</f:facet>
  | 
  | 					<f:facet name="iconCollapsed">
  | 						<h:outputText value="collapsed" rendered="#{bean.renderFacets}"/>
  | 					</f:facet>
  | 
  | 					<dnd:dndParam name="treeParam" value="Tree Parameter" />
  | 					<dnd:dndParam name="accept" value="accept" />
  | 
  | 					<rich:treeNode type="input" dropListener="#{bean.processDrop}" oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')" onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')">
  | 						<h:outputText value="#{data} : " />
  | 						<h:inputText value="#{data.name}" required="true" styleClass="inputs">
  | 						</h:inputText>
  | 
  | 						<dnd:dndParam name="nodeParam" value="Node Parameter" />
  | 
  | 					</rich:treeNode>
  | 					<rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">
  | 						<h:outputText value="#{data}" />
  | 					</rich:treeNode>
  | 				</rich:tree>
  | 
  | 				<h:outputText value="Enter path to expand, eg. [webApp_:id__1 , webApp_:id__1:7 ]:" />
  | 				<h:inputText value="#{bean.pathToExpand}">
  | 					<a4j:support event="onchange" reRender="tree" action="#{bean.expandNode}"/>
  | 				</h:inputText>
  | 	
  | 				<f:verbatim>
  | 					<br />
  | 					<br />
  | 				</f:verbatim>
  | 	
  | 				<rich:tree  id="testTree"
  | 				  var="_data"
  | 				  switchType="ajax"
  | 				  ajaxSubmitSelection="true"
  | 				  preserveModel="none"
  | 				  value="#{bean.data1}"
  | 				  nodeSelectListener="#{bean.onSelectInc}"
  | 				  nodeFace="node">
  | 				  <rich:treeNode type="node">
  | 				    <h:outputText value="#{_data}" />
  | 				  </rich:treeNode>
  | 				</rich:tree>	
  | 
  | 
  | 			</h:form>
  | 
  | 			<a4j:status startText="...start..." />
  | 
  | 			<a4j:log hotkey="O" />
  | 
  | 		</f:view>
  | 	</body>
  | </html>
  | 

my web.xml like this:

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <web-app version="2.5"
  |     xmlns="http://java.sun.com/xml/ns/javaee"
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  | 
  |     <!-- Seam -->
  | 
  |     
  |     <listener>
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  | 
  |     <filter>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  |     </filter>
  | 
  |     <filter-mapping>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <url-pattern>*.jsf</url-pattern>
  |     </filter-mapping>
  | 
  |     <!-- MyFaces -->
  |     
  |     <listener>
  |         <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>
  |     
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>     
  |     </context-param>
  | 
  | 	<servlet>
  | 		<servlet-name>Faces Servlet</servlet-name>
  | 		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  | 		<load-on-startup>1</load-on-startup>
  | 	</servlet>
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>Faces Servlet</servlet-name>
  | 		<url-pattern>*.jsf</url-pattern>
  | 	</servlet-mapping>
  | 	
  | 	
  | 	<!--ajax-->
  | 	
  |  	
  | 	<display-name>a4jEchoText</display-name>
  | 
  |     <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>
  | 	
  |    
  |     <filter-mapping>     
  |       <filter-name>ajax4jsf</filter-name>     
  |       <url-pattern>*.seam</url-pattern>   
  |     </filter-mapping>   
  |     <!--
  |     <context-param>     
  |       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>     
  |       <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>   
  |     </context-param>  
  |     -->
  | 	<context-param>
  |         <param-name>org.ajax4jsf.SKIN</param-name>
  |         <param-value>myskin</param-value>
  | 	</context-param>
  | 	
  | 	<session-config>
  |         <session-timeout>10</session-timeout> 
  |     </session-config>    
  | </web-app>
please help me,thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078560#4078560

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078560



More information about the jboss-user mailing list