JBoos Tools + eclipse Galileo + richfaces -> Hello world

5 respostas
comedor_de_folhas

E ae galera!!!

estou aqui com :

richfaces-ui-3.3.3.Final-bin.zip
eclipse-jee-galileo-SR2-win32
JBoss Tools

inicialmente, crio um novo projeto JSF atraves do JBOSS Tools:

é gerado uma estrutura como essa:

eu adiciono os jars do ricfaces na minha lib:

eu adiciono os jars no meu classpath

deixo meu ‘web.xml’ igual ao inicado no site do ricthfaces:

http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#GettingStarted

<?xml version="1.0"?>

<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">

<display-name>Greeter</display-name>

  

<context-param>

   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

   <param-value>server</param-value>

</context-param>

  

<context-param>

   <param-name>org.richfaces.SKIN</param-name>

   <param-value>blueSky</param-value>

</context-param>



<context-param>

      <param-name>org.richfaces.CONTROL_SKINNING</param-name>

      <param-value>enable</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>

  

<login-config>

   <auth-method>BASIC</auth-method>

   </login-config>

</web-app>

crio um ‘index,jsp’ com um componente para testar:

index.jsp

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<html>
	<head>
		<title></title>
	</head>
	<body>
		<f:view>
			<h:outputText value="ola mundo cruel" />
			
			<rich:calendar></rich:calendar>
		</f:view>
	</body>	
</html>

-clico com o botao direito no meu projeto: run as -> run on server: e escolho o jboss:

o maldito dá erro:

14:48:54,156 INFO  [ServerImpl] Starting JBoss (Microcontainer)

14:48:54,156 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)

14:48:54,156 INFO  [ServerImpl] Bootstrap URL: null

14:48:54,156 INFO  [ServerImpl] Home Dir: C:\jboss-5.1.0.GA

14:48:54,156 INFO  [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/

14:48:54,156 INFO  [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/

14:48:54,156 INFO  [ServerImpl] Patch URL: null

14:48:54,156 INFO  [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/

14:48:54,156 INFO  [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/common/lib/

14:48:54,156 INFO  [ServerImpl] Server Name: default

14:48:54,156 INFO  [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server

14:48:54,156 INFO  [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/

14:48:54,156 INFO  [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/server/default/conf/

14:48:54,156 INFO  [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\default

14:48:54,156 INFO  [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/default/

14:48:54,156 INFO  [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\default\data

14:48:54,156 INFO  [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/server/default/lib/

14:48:54,156 INFO  [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\default\log

14:48:54,156 INFO  [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\default\tmp\native

14:48:54,156 INFO  [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\default\tmp

14:48:54,156 INFO  [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server\default\tmp\deploy

14:48:54,562 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.1.0.GA/server/default/conf/bootstrap.xml

14:48:54,890 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]

14:48:54,890 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]

14:48:55,062 INFO  [CopyMechanism] VFS temp dir: C:\jboss-5.1.0.GA\server\default\tmp

14:48:55,062 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.

14:48:55,625 INFO  [ServerInfo] Java version: 1.6.0_20,Sun Microsystems Inc.

14:48:55,625 INFO  [ServerInfo] Java Runtime: Java SE Runtime Environment (build 1.6.0_20-b02)

14:48:55,625 INFO  [ServerInfo] Java VM: Java HotSpot Client VM 16.3-b01,Sun Microsystems Inc.

14:48:55,625 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86

14:48:55,625 INFO  [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss 5.1 Runtime -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=C:\jboss-5.1.0.GA\lib\endorsed -Dfile.encoding=Cp1252

14:48:55,656 INFO  [JMXKernel] Legacy JMX core initialized

14:48:56,687 INFO  [ProfileServiceBootstrap] Loading profile: ProfileKey@15724a0[domain=default, server=default, name=default]

14:48:57,718 INFO  [WebService] Using RMI server codebase: <a href="http://localhost:8083/">http://localhost:8083/</a>

14:49:00,984 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

14:49:00,984 INFO  [NativeServerConfig] 3.1.2.GA

14:49:01,609 INFO  [AttributeCallbackItem] Owner callback not implemented.

14:49:02,765 INFO  [LogNotificationListener] Adding notification listener for logging mbean jboss.system:service=Logging,type=Log4jService to server org.jboss.mx.server.MBeanServerImpl@b34b1[ defaultDomain=jboss ]

14:49:13,062 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10873319{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}

14:49:13,062 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10873319{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}

14:49:13,062 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10873319{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}

14:49:13,062 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10873319{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}

14:49:15,187 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://localhost/jndi/rmi://localhost:1090/jmxconnector

14:49:15,265 INFO  [MailService] Mail Service bound to java:/Mail

14:49:16,968 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.

14:49:16,984 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent

14:49:17,031 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent

14:49:17,062 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.

14:49:17,062 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer

14:49:17,234 INFO  [TransactionManagerService] Initializing recovery manager

14:49:17,359 INFO  [TransactionManagerService] Recovery manager configured

14:49:17,375 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference

14:49:17,390 INFO  [TransactionManagerService] Starting transaction recovery manager

14:49:17,671 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Arquivos de programas\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;native

14:49:17,750 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080

14:49:17,750 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009

14:49:17,765 INFO  [StandardService] Starting service jboss.web

14:49:17,765 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA

14:49:17,843 INFO  [Catalina] Server startup in 89 ms

14:49:17,875 INFO  [TomcatDeployment] deploy, ctxPath=/web-console

14:49:18,859 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws

14:49:18,875 INFO  [TomcatDeployment] deploy, ctxPath=/invoker

14:49:18,968 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml

14:49:18,984 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml

14:49:19,000 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml

14:49:19,000 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml

14:49:19,015 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml

14:49:19,078 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main

14:49:19,093 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.

14:49:19,093 INFO  [RAMJobStore] RAMJobStore initialized.

14:49:19,093 INFO  [StdSchedulerFactory] Quartz scheduler DefaultQuartzScheduler initialized from default resource file in Quartz package: quartz.properties

14:49:19,093 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2

14:49:19,093 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

14:49:19,406 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name java:DefaultDS

14:49:20,234 INFO  [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started

14:49:20,312 INFO  [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds

14:49:20,312 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@14001dc started

14:49:20,328 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000

14:49:20,328 INFO  [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds

14:49:20,328 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1020ab5 started

14:49:20,328 INFO  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will <em>not</em> support failover

14:49:20,328 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will <em>not</em> support load balancing

14:49:20,328 INFO  [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds

14:49:20,328 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@53fca0 started

14:49:20,328 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000

14:49:20,406 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name java:JmsXA

14:49:20,656 INFO  [JBossASKernel] Created KernelDeployment for: profileservice-secured.jar

14:49:20,656 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3

14:49:20,656 INFO  [JBossASKernel]   with dependencies:

14:49:20,656 INFO  [JBossASKernel]   and demands:

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView

14:49:20,656 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService

14:49:20,656 INFO  [JBossASKernel]   and supplies:

14:49:20,656 INFO  [JBossASKernel] 	Class:org.jboss.profileservice.spi.ProfileService

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureProfileService/remote

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService

14:49:20,656 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar

14:49:20,656 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3

14:49:20,656 INFO  [JBossASKernel]   with dependencies:

14:49:20,656 INFO  [JBossASKernel]   and demands:

14:49:20,656 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService

14:49:20,656 INFO  [JBossASKernel]   and supplies:

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager

14:49:20,656 INFO  [JBossASKernel] 	Class:org.jboss.deployers.spi.management.deploy.DeploymentManager

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureDeploymentManager/remote

14:49:20,656 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar

14:49:20,656 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3

14:49:20,656 INFO  [JBossASKernel]   with dependencies:

14:49:20,656 INFO  [JBossASKernel]   and demands:

14:49:20,656 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService

14:49:20,656 INFO  [JBossASKernel]   and supplies:

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView

14:49:20,656 INFO  [JBossASKernel] 	Class:org.jboss.deployers.spi.management.ManagementView

14:49:20,656 INFO  [JBossASKernel] 	jndi:SecureManagementView/remote

14:49:20,656 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar

14:49:20,656 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@2ad6c6{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

14:49:20,656 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@bb70ad{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

14:49:20,656 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@b2eca9{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

14:49:20,734 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3

14:49:20,734 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager

14:49:20,765 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface
SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface

14:49:20,828 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
14:49:20,828 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView
14:49:20,843 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

SecureManagementView/remote - EJB3.x Default Remote Business Interface
SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface

14:49:20,875 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
14:49:20,890 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
14:49:20,890 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

SecureProfileService/remote - EJB3.x Default Remote Business Interface
SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface
14:49:21,078 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console

14:49:21,140 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context /admin-console

14:49:23,062 INFO  [TomcatDeployment] deploy, ctxPath=/

14:49:23,093 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console

14:49:23,156 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080

14:49:23,156 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009

14:49:23,171 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 29s:15ms

14:49:31,312 INFO  [TomcatDeployment] deploy, ctxPath=/TV_BD

14:49:31,359 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context /TV_BD

14:49:31,390 ERROR [[/TV_BD]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)

at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)

at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)

at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

at $Proxy38.start(Unknown Source)

at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

at org.jboss.system.ServiceController.start(ServiceController.java:460)

at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)

at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ClassCastException: com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:138)

at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:126)

at com.sun.faces.renderkit.ResponseStateManagerImpl.init(ResponseStateManagerImpl.java:422)

(tem mais mas nao da pra colar senao da pau na hora de postar a msg)

Alguem pode me dar uma luz??? oue pode estar errado??

5 Respostas

S

Cara se bem me lembro, não uso mais JSF, seu view tem que ser um nivel acima de body e head. ou seja:

<f:view>
<head>
...
</head>
<body>
...
...
...
</body>
</view>

Tenta ae, derepente resolve seu problema.

comedor_de_folhas
snoop:
Cara se bem me lembro, não uso mais JSF, seu view tem que ser um nivel acima de body e head. ou seja:
<f:view>
<head>
...
</head>
<body>
...
...
...
</body>
</view>
Tenta ae, derepente resolve seu problema.

tentei fazer isso, mas deu erro:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<html>
	<f:view>
		<head>
			<title></title>
		</head>
		<body>
			<f:view>
				
				<h:outputText value="ola mundo cruel" />
				
				<rich:calendar></rich:calendar>
				
				
			</f:view>
		</body>	
	</f:view>
</html>

erro:

HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 6

3: <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
4: <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
5: <html>
6: 	<f:view>
7: 		<head>
8: 			<title></title>
9: 		</head>


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

java.lang.RuntimeException: Cannot find FacesContext
	javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
	javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
	org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:94)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the JBoss Web/2.1.3.GA logs.

mas vlws por responder!!!!

S

Vc está usando JSF 1.2 ou 2.0?

comedor_de_folhas

1.2 sera q se eu usar 2.0 da certo??

S

1.2 sera q se eu usar 2.0 da certo??

Acho que não mas, vale a tentativa. Vai uma dica, ja que vc esta começando, aprendendo o basico do jsf. Reinstala o netbeans com o apache que vem nativo e inicia um novo projeto. Limpo, sem richfaces, e coloca para rodar a pagina index que o netbeans cria sozinho. Ai vc começa a brincar pouco a pouco. Coloca o richfaces, cria seus backbeans e etc…
Depois que vc entender o que se passa bem, os ciclos de vida, requisições e etc na pratica, começa a tentar o servidor e as tecnologias que vc considerar mais adequadas ao seu projeto.
Uma coisa que me disseram aqui uma vez é muito certa, quanto mais simples seu servidor menor a chance de dar pau, se vc não precisa de determinadas funções use um server mais simples.

Criado 17 de junho de 2010
Ultima resposta 18 de jun. de 2010
Respostas 5
Participantes 2