[RESOLVIDO] RichFaces - JBoss erro 404

2 respostas
T

Bom dia galera, tudo bem?

Estou seguindo o richfaces userguide para começar a trabalhar com a
linguagem…
Só que de cara em um ridiculo exemplo, já peguei este erro de 404…

Estou utilizando JBoss 4.2 cujo já tem as libs do jsf 1.2 e as unicas
bibliotecas que coloquei no lib do meu projeto foram as do
richfaces…

  • richfaces-api-3.2.1.GA.jar
  • richfaces-impl-3.2.1.GA.jar
  • richfaces-ui-3.2.1.GA.jar

No meu web.xml eu acrescentei algumas coisas que vi em posts
anteriores para ver se funcionava algo, mas persiste o erro…

Bom, segue os códigos…

echo.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Repeater</title>
</head>
<body>
       <f:view>
               <h:form>
                       <rich:panel header="Simple Echo">
                               <h:inputText size="50" value="#{bean.text}">
                                       <a4j:support event="onkeyup" reRender="rep"/>
                               </h:inputText>
                               <h:outputText value="#{bean.text}" id="rep"/>
                       </rich:panel>
               </h:form>
       </f:view>
</body>
</html>

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://
java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://
java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">

 <display-name>richfaces</display-name>

 <welcome-file-list>
   <welcome-file>index.html</welcome-file>
   <welcome-file>index.htm</welcome-file>
   <welcome-file>index.jsp</welcome-file>
   <welcome-file>index.jsf</welcome-file>
   <welcome-file>default.html</welcome-file>
   <welcome-file>default.htm</welcome-file>
   <welcome-file>default.jsp</welcome-file>
   <welcome-file>default.jsf</welcome-file>
 </welcome-file-list>

 <context-param>
       <param-name>org.richfaces.SKIN</param-name>
       <param-value>blueSky</param-value>
 </context-param>

 <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>server</param-value>
 </context-param>

 <context-param>
       <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
       <param-value>true</param-value>
 </context-param>

 <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>false</param-value>
 </context-param>

 <context-param>
       <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
       <param-value>false</param-value>
 </context-param>


 <filter>
       <display-name>RichFaces Filter</display-name>
       <filter-name>richfaces</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
 </filter>

 <filter-mapping>
       <filter-name>richfaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
 </filter-mapping>

 <listener>
       <listener-class>com.sun.faces.config.ConfigureListener</listener-
class>
 </listener>

 <!-- FACES SERVLET -->

 <servlet>
   <servlet-name>Faces Servlet</servlet-name>
   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
   <load-on-startup>1</load-on-startup>
 </servlet>

 <!-- FACES SERVLET MAPPING -->

 <servlet-mapping>
   <servlet-name>Faces Servlet</servlet-name>
   <url-pattern>*.jsf</url-pattern>
 </servlet-mapping>
</web-app>

Jboss - Alguns trexos

11:23:26,988 ERROR [STDERR] javax.faces.FacesException:
org.ajax4jsf.renderkit.ChameleonRenderKitFactory
11:23:26,988 ERROR [STDERR]     at
javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:
556)
11:23:26,988 ERROR [STDERR]     at
javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:
448)

11:23:27,009 ERROR [[/richfaces]] Exception sending context
initialized event to listener instance of class
com.sun.faces.config.ConfigureListener
javax.faces.FacesException:
org.ajax4jsf.renderkit.ChameleonRenderKitFactory

11:23:27,078 WARN  [ServiceController] Problem starting service
jboss.web.deployment:war=richfaces.war,id=-[telefone removido]
org.jboss.deployment.DeploymentException: URL file:/C:/eclipse/
jboss-4.2.0.GA/server/default/tmp/deploy/tmp61708richfaces-exp.war/
deployment failed

11:23:27,091 ERROR [URLDeploymentScanner] Incomplete Deployment
listing:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@942601e7 { url=file:/C:/eclipse/
jboss-4.2.0.GA/server/default/deploy/richfaces.war }
 deployer: MBeanProxyExt[jboss.web:service=WebServer]
 status: Deployment FAILED reason: URL file:/C:/eclipse/
jboss-4.2.0.GA/server/default/tmp/deploy/tmp61708richfaces-exp.war/
deployment failed
 state: FAILED
 watch: file:/C:/eclipse/jboss-4.2.0.GA/server/default/deploy/
richfaces.war
 altDD: null
 lastDeployed: 1218205406200
 lastModified: 1218205406179
 mbeans:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=richfaces.war,id=-[telefone removido]
 State: FAILED
 Reason: org.jboss.deployment.DeploymentException: URL file:/C:/
eclipse/jboss-4.2.0.GA/server/default/tmp/deploy/tmp61708richfaces-
exp.war/ deployment failed

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=richfaces.war,id=-[telefone removido]
 State: FAILED
 Reason: org.jboss.deployment.DeploymentException: URL file:/C:/
eclipse/jboss-4.2.0.GA/server/default/tmp/deploy/tmp61708richfaces-
exp.war/ deployment failed

2 Respostas

T

up…

T

Galera, simplesmente coloquei as bibliotecas commons:

  • commons-beanutils-1.7.0.jar
  • commons-collections-3.2.jar
  • commons-digester-1.8.jar
  • commons-logging-1.1.jar

E funcionou… kkkk
Estou utilizando as novas libs richfaces****.jar

Para quem está com o JBOSS como eu, ele já traz algumas bibliotecas jsf, sendo assim não precisa adiciona-las novamente…
basta voc~e ter as novas richfaces***.jar que já acompanham a parte de ajax junto com essas commons que irá funcionar beleza…

Agora rodou legal…

Abraços a todos

Criado 8 de agosto de 2008
Ultima resposta 8 de ago. de 2008
Respostas 2
Participantes 1