thiago.correa 8 de jun. de 2009
Cara, até aonde eu sei não há restrição alguma, ficaria mais fácil você relatar o que está acontecendo!
jason_bourne 8 de jun. de 2009
Estou usando o jboss 4.2.2.GA
segue:
11 : 34 : 55 , 408 ERROR [[/ projeto - jsf ]] Exception sending context initialized event to listener instance of class org . jboss . web . jsf . integration . config . JBossJSFConfigureListener
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 : 135 )
at com . sun . faces . config . ConfigureListener . contextInitialized ( ConfigureListener . java : 228 )
at org . jboss . web . jsf . integration . config . JBossJSFConfigureListener . contextInitialized ( JBossJSFConfigureListener . java : 69 )
at org . apache . catalina . core . StandardContext . listenerStart ( StandardContext . java : 3856 )
at org . apache . catalina . core . StandardContext . start ( StandardContext . java : 4361 )
at org . apache . catalina . core . ContainerBase . addChildInternal ( ContainerBase . java : 790 )
at org . apache . catalina . core . ContainerBase . addChild ( ContainerBase . java : 770 )
at org . apache . catalina . core . StandardHost . addChild ( StandardHost . java : 553 )
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 . apache . tomcat . util . modeler . BaseModelMBean . invoke ( BaseModelMBean . java : 296 )
at org . jboss . mx . server . RawDynamicInvoker . invoke ( RawDynamicInvoker . java : 164 )
at org . jboss . mx . server . MBeanServerImpl . invoke ( MBeanServerImpl . java : 659 )
at org . apache . catalina . core . StandardContext . init ( StandardContext . java : 5312 )
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 . apache . tomcat . util . modeler . BaseModelMBean . invoke ( BaseModelMBean . java : 296 )
at org . jboss . mx . server . RawDynamicInvoker . invoke ( RawDynamicInvoker . java : 164 )
at org . jboss . mx . server . MBeanServerImpl . invoke ( MBeanServerImpl . java : 659 )
at org . jboss . web . tomcat . service . TomcatDeployer . performDeployInternal ( TomcatDeployer . java : 301 )
at org . jboss . web . tomcat . service . TomcatDeployer . performDeploy ( TomcatDeployer . java : 104 )
at org . jboss . web . AbstractWebDeployer . start ( AbstractWebDeployer . java : 375 )
at org . jboss . web . WebModule . startModule ( WebModule . java : 83 )
at org . jboss . web . WebModule . startService ( WebModule . java : 61 )
at org . jboss . system . ServiceMBeanSupport . jbossInternalStart ( ServiceMBeanSupport . java : 289 )
at org . jboss . system . ServiceMBeanSupport . jbossInternalLifecycle ( ServiceMBeanSupport . java : 245 )
at sun . reflect . GeneratedMethodAccessor3 . 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 : 155 )
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 94 )
at org . jboss . mx . server . Invocation . invoke ( Invocation . java : 86 )
at org . jboss . mx . server . AbstractMBeanInvoker . invoke ( AbstractMBeanInvoker . java : 264 )
at org . jboss . mx . server . MBeanServerImpl . invoke ( MBeanServerImpl . java : 659 )
at org . jboss . system . ServiceController $ServiceProxy . invoke ( ServiceController . java : 978 )
at $Proxy0 . start ( Unknown Source )
at org . jboss . system . ServiceController . start ( ServiceController . java : 417 )
at sun . reflect . GeneratedMethodAccessor9 . 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 : 155 )
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 94 )
at org . jboss . mx . server . Invocation . invoke ( Invocation . java : 86 )
at org . jboss . mx . server . AbstractMBeanInvoker . invoke ( AbstractMBeanInvoker . java : 264 )
at org . jboss . mx . server . MBeanServerImpl . invoke ( MBeanServerImpl . java : 659 )
at org . jboss . mx . util . MBeanProxyExt . invoke ( MBeanProxyExt . java : 210 )
at $Proxy44 . start ( Unknown Source )
at org . jboss . web . AbstractWebContainer . start ( AbstractWebContainer . java : 466 )
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 : 155 )
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 94 )
at org . jboss . mx . interceptor . AbstractInterceptor . invoke ( AbstractInterceptor . java : 133 )
at org . jboss . mx . server . Invocation . invoke ( Invocation . java : 88 )
at org . jboss . mx . interceptor . ModelMBeanOperationInterceptor . invoke ( ModelMBeanOperationInterceptor . java : 142 )
at org . jboss . mx . interceptor . DynamicInterceptor . invoke ( DynamicInterceptor . java : 97 )
at org . jboss . system . InterceptorServiceMBeanSupport . invokeNext ( InterceptorServiceMBeanSupport . java : 238 )
at org . jboss . wsf . container . jboss42 . DeployerInterceptor . start ( DeployerInterceptor . java : 87 )
at org . jboss . deployment . SubDeployerInterceptorSupport $XMBeanInterceptor . start ( SubDeployerInterceptorSupport . java : 188 )
at org . jboss . deployment . SubDeployerInterceptor . invoke ( SubDeployerInterceptor . java : 95 )
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 : 659 )
at org . jboss . mx . util . MBeanProxyExt . invoke ( MBeanProxyExt . java : 210 )
at $Proxy45 . start ( Unknown Source )
at org . jboss . deployment . MainDeployer . start ( MainDeployer . java : 1025 )
at org . jboss . deployment . MainDeployer . deploy ( MainDeployer . java : 819 )
at org . jboss . deployment . MainDeployer . deploy ( MainDeployer . java : 782 )
at sun . reflect . GeneratedMethodAccessor21 . 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 : 155 )
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 94 )
at org . jboss . mx . interceptor . AbstractInterceptor . invoke ( AbstractInterceptor . java : 133 )
at org . jboss . mx . server . Invocation . invoke ( Invocation . java : 88 )
at org . jboss . mx . interceptor . ModelMBeanOperationInterceptor . invoke ( ModelMBeanOperationInterceptor . java : 142 )
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 : 659 )
at org . jboss . mx . util . MBeanProxyExt . invoke ( MBeanProxyExt . java : 210 )
at $Proxy9 . deploy ( Unknown Source )
at org . jboss . deployment . scanner . URLDeploymentScanner . deploy ( URLDeploymentScanner . java : 421 )
at org . jboss . deployment . scanner . URLDeploymentScanner . scan ( URLDeploymentScanner . java : 610 )
at org . jboss . deployment . scanner . AbstractDeploymentScanner $ScannerThread . doScan ( AbstractDeploymentScanner . java : 263 )
at org . jboss . deployment . scanner . AbstractDeploymentScanner $ScannerThread . loop ( AbstractDeploymentScanner . java : 274 )
at org . jboss . deployment . scanner . AbstractDeploymentScanner $ScannerThread . run ( AbstractDeploymentScanner . java : 225 )
furutani 8 de jun. de 2009
Eu uso o RichFaces e funciona belezinha
thiago.correa 8 de jun. de 2009
A solução para o teu problema está aqui no GUJ mesmo, era só dar uma pesquisada
http://www.guj.com.br/posts/list/97048.java
Se o teu caso não for como o de cima tem mais coisa por aqui
http://www.guj.com.br/posts/list/43000.java
jason_bourne 8 de jun. de 2009
Então…consegui fazer rodar tirando os jsf*.jar do projeto e criando um index.jsp q redireciona pro principal.jsf…mas mesmo assim os erros no console.
Meu web.xml ta assim:
<?xml version="1.0" encoding="UTF-8"?>
projeto-jsf-jboss
org.richfaces.SKIN
deepMarine
javax.faces.STATE_SAVING_METHOD
server
Ajax4jsf Filter
ajax4jsf
org.ajax4jsf.Filter
ajax4jsf
Faces Servlet
REQUEST
FORWARD
INCLUDE
Faces Servlet
javax.faces.webapp.FacesServlet
1
index.jsp
index.jsf
Faces Servlet
*.jsf
thiago.correa 8 de jun. de 2009
Tá mas que erros são esses?!!!
jason_bourne 8 de jun. de 2009
15 : 46 : 18 , 984 ERROR [[/ projeto - jsf ]] Exception sending context initialized event to listener instance of class org . jboss . web . jsf . integration . config . JBossJSFConfigureListener
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 : 135 )
at com . sun . faces . config . ConfigureListener . contextInitialized ( ConfigureListener . java : 228 )
at org . jboss . web . jsf . integration . config . JBossJSFConfigureListener . contextInitialized ( JBossJSFConfigureListener . java : 69 )
at org . apache . catalina . core . StandardContext . listenerStart ( StandardContext . java : 3856 )
at org . apache . catalina . core . StandardContext . start ( StandardContext . java : 4361 )
at org . apache . catalina . core . ContainerBase . addChildInternal ( ContainerBase . java : 790 )
at org . apache . catalina . core . ContainerBase . addChild ( ContainerBase . java : 770 )
at org . apache . catalina . core . StandardHost . addChild ( StandardHost . java : 553 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( Unknown Source )
.
.
.
wallacehermano 25 de jun. de 2009
Estava com o mesmo problema.
Aqui era o .war que o maven gerou tinha os jar jsf-impl-1.2_12.jar e jsf-api-1.2_12.jar dentro do WEB-INF\lib
Basta deletar os 2 jars do .war que resolveu o problema.
clone_zealot 25 de jun. de 2009
Isso é quando se tem duas versões da mesma classe.
É só deletar uma das versões.
JuniorNMF 4 de ago. de 2011
Acontece tambem no Jboss 5.1.0 GA, e pra resolver é a mesma coisa.