voyent
Messages posted by: allanbruno  XML
Profile for allanbruno -> Messages posted by allanbruno [38] Go to Page: 1, 2, 3 Next 
Author Message
Well, after all my problems has been resolved, there are more...

I just wanna to send a mail with a attachment, but the mail come to me without a attachment....
There is me code:
Code:
 
 <m:message xmlns="http://www.w3.org/1999/xhtml"
     xmlns:m="http://jboss.com/products/seam/mail"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:p="http://jboss.com/products/seam/pdf" 
     xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:s="http://jboss.com/products/seam/taglib">
 
     <m:header name="X-Composed-By" value="JBoss Seam"/>
  	<m:from name="Sistema GCC WEB - Cadastramento" address="allanbruno@gmail.com"/>
  	<m:replyTo address="allanbruno@gmail.com"/>
  	
  	<m:to name="allanbruno@gmail.com">allanbruno@gmail.com</m:to>
  	<m:subject>Test the Email</m:subject>
  	<m:body type="plain">This is a test email
     
     CNPJ: #{fsscInscricaoContribuinte.cnpjPessoaJuridica}
   
   <m:attachment fileName="tiny.pdf">
   <p:document>                                                      
         A very tiny PDF                                                                                                
     </p:document>
   
   </m:attachment>
    
    </m:body>
    
     
     
     </m:message>
 
 


And my method:

Code:
 
 public void send() {
 	    try {
 	    	renderer.render("/mail.xhtml");
 	  
 	       
 	   } 
 	   catch (Exception e) {
 		   e.printStackTrace();
 
 	   }
 	}
 


PS: There no is error on send, but dont have attachment with the mail...

Anyone?

i read a post (http://www.icefaces.org/JForum/posts/list/4534.page) about a problem to deploy a icefaces+seam application in a jbossAS (4.2.0)
i tried delete jars files that they said to get off WEB-INF/lib.
but now im getting another message error

Code:
 	[STDOUT] 15:10:16,525 WARN  [AnnotationDeploymentHandler] could not load annotation class: javax.ws.rs.ext.Provider
 java.lang.ClassNotFoundException: javax.ws.rs.ext.Provider
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
 	at org.jboss.seam.deployment.AnnotationDeploymentHandler.<init>(AnnotationDeploymentHandler.java:60)
 	at org.jboss.seam.deployment.StandardDeploymentStrategy.<init>(StandardDeploymentStrategy.java:62)
 	at org.jboss.seam.init.Initialization.create(Initialization.java:131)
 	at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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:634)
 	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)
 15:10:16,541 INFO  [STDOUT] 15:10:16,525 WARN  [AnnotationDeploymentHandler] could not load annotation class: javax.ws.rs.Path
 java.lang.ClassNotFoundException: javax.ws.rs.Path
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
 	at org.jboss.seam.deployment.AnnotationDeploymentHandler.<init>(AnnotationDeploymentHandler.java:60)
 	at org.jboss.seam.deployment.StandardDeploymentStrategy.<init>(StandardDeploymentStrategy.java:62)
 	at org.jboss.seam.init.Initialization.create(Initialization.java:131)
 	at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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:634)
 	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)
 
 


Code:
 RROR [[/gccWeb]] StandardWrapper.Throwable
 java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
 	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
 	at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4375)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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:634)
 	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)
 15:10:23,917 ERROR [[/gccWeb]] Servlet /gccWeb threw load() exception
 java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
 	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
 	at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4375)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	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:634)
 	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)
 



and when jboss is running and try initialize the application i got that error

Code:
 ERROR [ExceptionFilter] could not roll back transaction
 java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction
 	at org.jboss.seam.transaction.Transaction.getUserTransaction(Transaction.java:79)
 	at org.jboss.seam.transaction.Transaction.createUTTransaction(Transaction.java:71)
 	at org.jboss.seam.transaction.Transaction.getTransaction(Transaction.java:44)
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597)
 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
 	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
 	at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
 	at org.jboss.seam.Component.unwrap(Component.java:2237)
 	at org.jboss.seam.Component.getInstance(Component.java:2004)
 	at org.jboss.seam.Component.getInstance(Component.java:1967)
 	at org.jboss.seam.Component.getInstance(Component.java:1961)
 	at org.jboss.seam.Component.getInstance(Component.java:1934)
 	at org.jboss.seam.Component.getInstance(Component.java:1929)
 	at org.jboss.seam.transaction.Transaction.instance(Transaction.java:36)
 	at org.jboss.seam.web.ExceptionFilter.rollbackTransactionIfNecessary(ExceptionFilter.java:155)
 	at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:113)
 	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 	at java.lang.Thread.run(Thread.java:619)
 15:06:22,742 INFO  [STDOUT] 15:06:22,742 WARN  [ExceptionFilter] handling uncaught exception
 javax.servlet.ServletException: Servlet execution threw an exception
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
 	at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
 	at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 	at java.lang.Thread.run(Thread.java:619)
 Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.icesoft.faces.webapp.http.core.SingleViewServer
 	at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.<init>(MainSessionBoundServlet.java:97)
 	at com.icesoft.faces.webapp.http.servlet.MainServlet$3.newServer(MainServlet.java:72)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.checkSession(SessionDispatcher.java:86)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:52)
 	at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 	at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 	... 32 more
 


so i dont know what can be because i was running on glassfish but now i need to run application in a jbossAS
I see a solution on forum of Seam. The image is a ByteArrayInputStream =)

So...
Code:
  String pathImagemTitulo = request.getSession().getServletContext().getRealPath( "/config/facelets/funGG01.jpeg" );
  File logoTitulo = new File(pathImagemTitulo);
  if(logoTitulo.exists())
  	 	{
  	 		FileInputStream fis = new FileInputStream(logoTitulo);
  	  				
  	 		 byte[] pixels = new byte[fis.available()];
  	 		 fis.read(pixels);	
  	 		 ByteArrayInputStream imagem = this.getAwtImage(pixels);
  	 		this.fsscInscricaoContribuinte.setImagemTitulo(imagem);
  	 		
   }
 


The method:
Code:
 public ByteArrayInputStream getAwtImage(byte[] data) {
 	ByteArrayInputStream inStream = new ByteArrayInputStream(data);
 	ByteArrayOutputStream outStream = new ByteArrayOutputStream();		   
 	try {
 		BufferedImage image = ImageIO.read(inStream);
 		ImageIO.write(image, "jpeg", outStream);
 		outStream.close();
 	} catch (IOException e) {
 		
 		e.printStackTrace();
 	}
 	return new ByteArrayInputStream(outStream.toByteArray());
 }
 




Best Regards!

Well, when it's just fine, the images is not loaded...

I try with
Code:
 <p:image alignment="right" wrap="true" value="/jboss.jpg" /> 
 


And i put the image all over my application, but the error is the same:

Code:
 java.lang.NullPointerException
 	at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
 	at com.lowagie.text.Image.getInstance(Unknown Source)
 	at org.jboss.seam.pdf.ui.UIImage.createITextObject(UIImage.java:161
 



After all this, i try:

Code:
 
  String mImagem = "jboss.jpg";
     	 
       	 Image imagem = Toolkit.getDefaultToolkit().getImage(mImagem);
       	 this.fsscInscricaoContribuinte.setImagemTitulo(imagem);
 
 


and so:

Code:
 <p:image alignment="right" wrap="true" imageData="#{fsscInscricaoContribuinte.imagemTitulo}"/>
 
 


And o got the same error!

Whats happening?

Well, when it's just fine, the images is not loaded...

I try with
Code:
 <p:image alignment="right" wrap="true" value="/jboss.jpg" /> 
 


And i put the image all over my application, but the error is the same:

Code:
 java.lang.NullPointerException
 	at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
 	at com.lowagie.text.Image.getInstance(Unknown Source)
 	at org.jboss.seam.pdf.ui.UIImage.createITextObject(UIImage.java:161
 



After all this, i try:

Code:
 
  String mImagem = "jboss.jpg";
     	 
       	 Image imagem = Toolkit.getDefaultToolkit().getImage(mImagem);
       	 this.fsscInscricaoContribuinte.setImagemTitulo(imagem);
 
 


and so:

Code:
 <p:image alignment="right" wrap="true" imageData="#{fsscInscricaoContribuinte.imagemTitulo}"/>
 
 


And o got the same error!

Whats happening?

It's works Judy! Was missing itext-1.1.4.jar and iText-2.1.5 =)

Great! Thanks one more time!

Best Regards!
Judy, I use Glassfish indeed JBoss...I just took a look in main files and just tried follow the example =)

Well Judy, I do this:

Code:
 <ice:outputLink value="./config/facelets/relatorio.jsf">RELATORIO>
         					<s:conversationId/>
         					</ice:outputLink>
 


And the error was:

Code:
 
 ava.lang.NoClassDefFoundError: com/lowagie/text/xml/simpleparser/EntitiesToUnicode
 	at org.jboss.seam.pdf.ui.ITextComponent.encodeChildren(ITextComponent.java:241)
 


I think that it's so close... What .jar contains this class?

Doesn' works for me. My files:

faces-config.xml
Code:
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE faces-config PUBLIC
           "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
           "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 
 <faces-config>
 <application>
         <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
     </application>
    <application>
       <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
      
    </application>
 
  
   
 	
 </faces-config>
 


web.xml
Code:
 <?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" version="2.5">
  
    <!-- Seam (using Icefaces) generated project-->
 
     <!-- listeners required for this application -->
  
   <listener>
     <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
   </listener>
   <listener>
     <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
   </listener>
   
    <!-- filters -->
    
   <filter>
     <filter-name>Seam Filter</filter-name>
     <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
   </filter>
   <filter-mapping>
     <filter-name>Seam Filter</filter-name>
     <url-pattern>/*</url-pattern>
   </filter-mapping>
   
     <!-- JSF -->
 
     
    <!-- Facelets development mode (disable in production) -->
    
    
   <context-param>
     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
     <param-value>server</param-value>
   </context-param>
   <context-param>
     <param-name>facelets.DEVELOPMENT</param-name>
     <param-value>true</param-value>
   </context-param>
   <context-param>
     <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
     <param-value>.xhtml</param-value>
   </context-param>
   <context-param>
     <param-name>com.icesoft.faces.actionURLSuffix</param-name>
     <param-value>.seam</param-value>
   </context-param>
   <context-param>
     <param-name>com.icesoft.faces.synchronousUpdate</param-name>
     <param-value>false</param-value>
   </context-param>
   <context-param>
     <param-name>com.icesoft.faces.doJSFStateManagement</param-name>
     <param-value>true</param-value>
   </context-param>
   <context-param>
     <param-name>org.icesoft.examples.serverClock</param-name>
     <param-value>false</param-value>
   </context-param>
   <context-param>
     <param-name>com.icesoft.faces.standardRequestScope</param-name>
     <param-value>true</param-value>
   </context-param>
   
    <!-- servlets -->
    
   <servlet>
     <servlet-name>Faces Servlet</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet>
     <servlet-name>Seam Resource Servlet</servlet-name>
     <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
   </servlet>
   <servlet>
     <servlet-name>Persistent Faces Servlet</servlet-name>
     <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet>
     <servlet-name>Blocking Servlet</servlet-name>
     <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
    <servlet>
         <servlet-name>Document Store Servlet</servlet-name>
         <servlet-class>org.jboss.seam.document.DocumentStoreServlet</servlet-class>
     </servlet>
     
 <!-- servlet mappings -->  
   
   
   
   <servlet-mapping>
     <servlet-name>Persistent Faces Servlet</servlet-name>
     <url-pattern>*.seam</url-pattern>
   </servlet-mapping>
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
     </servlet-mapping>
      <servlet-mapping>
         <servlet-name>Document Store Servlet</servlet-name>
         <url-pattern>*.pdf</url-pattern>
     </servlet-mapping>
   <servlet-mapping>
     <servlet-name>Persistent Faces Servlet</servlet-name>
     <url-pattern>/xmlhttp/*</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
     <servlet-name>Blocking Servlet</servlet-name>
     <url-pattern>/block/*</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
     <servlet-name>Seam Resource Servlet</servlet-name>
     <url-pattern>/seam/resource/*</url-pattern>
   </servlet-mapping>
  
  
   <security-constraint>
     <display-name>Restrict raw XHTML Documents</display-name>
     <web-resource-collection>
       <web-resource-name>XHTML</web-resource-name>
       <url-pattern>*.xhtml</url-pattern>
     </web-resource-collection>
     <auth-constraint/>
   </security-constraint>
   
   <session-config>
         <session-timeout>10</session-timeout> 
     </session-config>
 
 
 </web-app>
 



In my pages.xml, I do:

Code:
 <rule if-outcome="aidf">
             	<redirect view-id="/config/facelets/relatorio.jsf" />
                         </rule>
 



In my relatorio.xhtml:

Code:
 
 <p:document xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:p="http://jboss.com/products/seam/pdf" 
             type="PDF" 
             title="barcode">
     <p:header>
         <p:paragraph>
             Test
         </p:paragraph>
     </p:header>
     
 
 </p:document>
 
 


The same error:

Code:
 
 javax.faces.FacesException: Problem in renderResponse: null
 	at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:294)
 	at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
 



What's happing?

I just try to do a simple example and i find here in the forum the same problem:

Code:
 avax.faces.FacesException: Problem in renderResponse: null
 	at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:294)
 .....................
 


It's solved?
Hi everybody.

I have a application that use some <ice:panelTab> (4 exactly) , and if I want add some more (about ten), my panelTab is not displayed anymore. There is a limit? Exists some other manner that my panelTab is displayed like "top-down"?

Code:
  <table align="center" border="0" cellpadding="0" cellspacing="0" width="740">
     
 	<ice:panelTabSet>	
            <ice:panelTab label="A"> A </ice:panelTab>
            <ice:panelTab label="B"> B </ice:panelTab>
            <ice:panelTab label="C"> C </ice:panelTab>
            <ice:panelTab label="D"> D </ice:panelTab>
         </ice:panelTabSet>	
 </table>
 
 


Thanks in advance.

P.S: It's depends on my size "table"?
It's work Judy.

I use a bean like example. But, on tutorial, is not used a Bean, and just works, show a title.

Thanks a lot one more time!

Best regards.
Judy, if I want don't define a object like a "Employee" on sub-node?

It is obrigate to use a object on a sub-node?

My code is simple:

Code:
 
 package arvore;
 
 import java.io.Serializable;
 
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.DefaultTreeModel;
 
 import org.jboss.seam.ScopeType;
 import org.jboss.seam.annotations.Name;
 import org.jboss.seam.annotations.Scope;
 
 import com.icesoft.faces.component.tree.IceUserObject;
 
 /**
  * <p/>
  * A basic backing bean for a ice:tree component.  The only instance variable
  * needed is a DefaultTreeModel Object which is bound to the icefaces tree
  * component in the jspx code.</p>
  * <p/>
  * The tree created by this backing bean is used to control the selected
  * panel in a ice:panelStack.
  * </p>
  */
 @Name("tree")
 @Scope(ScopeType.SESSION)
 public class TreeBean implements Serializable{
 
     // tree default model, used as a value for the tree component
 
     private DefaultTreeModel model;
     private static final String XP_BRANCH_CONTRACTED_ICON = "./xmlhttp/css/xp/css-images/tree_folder_open.gif";
     private static final String XP_BRANCH_EXPANDED_ICON = "./xmlhttp/css/xp/css-images/tree_folder_close.gif";
     private static final String XP_BRANCH_LEAF_ICON = "./xmlhttp/css/xp/css-images/tree_document.gif";
 
 
     public TreeBean() {
 
     	 // create root node with its children expanded
         DefaultMutableTreeNode rootTreeNode = new DefaultMutableTreeNode();
         IceUserObject rootObject = new IceUserObject(rootTreeNode);
         rootObject.setText("Root Node");
         rootObject.setExpanded(true);
         rootObject.setBranchContractedIcon(XP_BRANCH_CONTRACTED_ICON);
         rootObject.setBranchExpandedIcon(XP_BRANCH_EXPANDED_ICON);
         rootObject.setLeafIcon(XP_BRANCH_LEAF_ICON);
         rootTreeNode.setUserObject(rootObject);
 
         // model is accessed by by the ice:tree component
         model = new DefaultTreeModel(rootTreeNode);
 
         // add some child notes
         for (int i = 0; i < 3; i++) {
             DefaultMutableTreeNode branchNode = new DefaultMutableTreeNode();
             IceUserObject branchObject = new IceUserObject(branchNode);
             branchObject.setText("node-" + i);
             branchObject.setBranchContractedIcon(XP_BRANCH_CONTRACTED_ICON);
             branchObject.setBranchExpandedIcon(XP_BRANCH_EXPANDED_ICON);
             branchObject.setLeafIcon(XP_BRANCH_LEAF_ICON);
             branchObject.setLeaf(true);
             branchNode.setUserObject(branchObject);
             rootTreeNode.add(branchNode);
             // add some more sub children
             for (int k = 0; k < 2; k++) {
                 DefaultMutableTreeNode subBranchNode = new DefaultMutableTreeNode();
                 IceUserObject subBranchObject = new IceUserObject(subBranchNode);
                 subBranchObject.setText("sub-node-" + i + "-" + k);
                 subBranchObject.setBranchContractedIcon(XP_BRANCH_CONTRACTED_ICON);
                 subBranchObject.setBranchExpandedIcon(XP_BRANCH_EXPANDED_ICON);
                 subBranchObject.setLeafIcon(XP_BRANCH_LEAF_ICON);
                 branchObject.setLeaf(true);
                 subBranchNode.setUserObject(subBranchObject);
                 branchNode.add(subBranchNode);
             }
         }
         
     }
 
     /**
      * Gets the tree's default model.
      *
      * @return tree model.
      */
     public DefaultTreeModel getModel() {
         return model;
     }
 }
 
 



index.xhtml
Code:
 <f:view xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ice="http://www.icesoft.com/icefaces/component">
 
     <ice:outputDeclaration doctypeRoot="HTML"
                            doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
                            doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
 
     <html>
     <head>
         <meta http-equiv="Content-Type"
               content="text/html; charset=iso-8859-1"></meta>
         <title>Tree Component Tutorial</title>
         <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet"
               type="text/css"/>
     </head>
 
     <body>
     <h2>Tree Style  Example</h2>
     <ice:form>
 
         <!-- first column, for tree navigation -->
         <ice:panelGroup style="border: 1px solid gray; height: 300px;">
             <!--
                 Fully styled Xp themed tree.
             -->
             <ice:tree id="tree"
                       value="#{tree.model}"
                       var="item"
                       hideRootNode="false"
                       hideNavigation="false"
                       imageDir="./xmlhttp/css/xp/css-images/">
                 <ice:treeNode>
                     <f:facet name="icon">
                         <ice:panelGroup style="display: inline">
                              <h:graphicImage value="#{item.userObject.icon}"/>
                         </ice:panelGroup>
                     </f:facet>
                     <f:facet name="content">
                         <ice:panelGroup style="display: inline">
                             <ice:commandLink
                                     value="#{item.userObject.text}"/>
                         </ice:panelGroup>
                     </f:facet>
                 </ice:treeNode>
             </ice:tree>
         </ice:panelGroup>
 
     </ice:form>
     </body>
     </html>
 </f:view>
 
 



It's like the Tutorial on this site... =(
Well judy, I tried what you suggest, and doesn't works. I just try to do the example of Tutorial "tree-style-tutorial"... So simple, and the sub-nodes is not displayed...

Thanks!
I'm using the Icefaces 1.7.1 with Seam 2.1.1 and my tree component does't work.

Here is my simple example:

Code:
 
 @Entity
 @Name("tree")
 @Scope(ScopeType.APPLICATION)
 public class TreeBean {
 
     // tree default model, used as a value for the tree component
     private DefaultTreeModel model;
 
  // default node icons for xp thme
     private static final String XP_BRANCH_CONTRACTED_ICON = "./xmlhttp/css/xp/css-images/tree_folder_open.gif";
     private static final String XP_BRANCH_EXPANDED_ICON = "./xmlhttp/css/xp/css-images/tree_folder_close.gif";
     private static final String XP_BRANCH_LEAF_ICON = "./xmlhttp/css/xp/css-images/tree_document.gif";
 
     
     public TreeBean(){
         // create root node with its children expanded
         DefaultMutableTreeNode rootTreeNode = new DefaultMutableTreeNode();
         IceUserObject rootObject = new IceUserObject(rootTreeNode);
         rootObject.setText("DAM");
         rootObject.setExpanded(true);
         rootObject.setBranchContractedIcon(XP_BRANCH_CONTRACTED_ICON);
         rootObject.setBranchExpandedIcon(XP_BRANCH_EXPANDED_ICON);
         rootObject.setLeafIcon(XP_BRANCH_LEAF_ICON);
         rootTreeNode.setUserObject(rootObject);
 
         // model is accessed by by the ice:tree component
         model =  new DefaultTreeModel(rootTreeNode);
 
         String valores[] = {"Operações","Demais dados da operação","Demais debitos fiscais", "Documentos Fiscais", "Informações complementares", "Demonstrativo", "Indústria Incentivada", "Resumo da Declaração"};
       
         
         // 0, 1, 6
         // add some child notes
         
         // add some child notes
         for (int i = 0; i < valores.length; i++) {
         	 DefaultMutableTreeNode branchNode = new DefaultMutableTreeNode();
              IceUserObject branchObject = new IceUserObject(branchNode);
              branchObject.setText(valores[i]);
              branchObject.setBranchContractedIcon(XP_BRANCH_CONTRACTED_ICON);
              branchObject.setBranchExpandedIcon(XP_BRANCH_EXPANDED_ICON);
              branchObject.setLeafIcon(XP_BRANCH_LEAF_ICON);
              branchObject.setLeaf(true);
              branchNode.setUserObject(branchObject);
              rootTreeNode.add(branchNode);
              // add some more sub children
              for (int k = 0; k < 2; k++) {
                  DefaultMutableTreeNode subBranchNode = new DefaultMutableTreeNode();
                  IceUserObject subBranchObject = new IceUserObject(subBranchNode);
                  subBranchObject.setText("sub-node-" + i + "-" + k);
                  subBranchObject.setBranchContractedIcon(XP_BRANCH_CONTRACTED_ICON);
                  subBranchObject.setBranchExpandedIcon(XP_BRANCH_EXPANDED_ICON);
                  subBranchObject.setLeafIcon(XP_BRANCH_LEAF_ICON);
                  branchObject.setLeaf(true);
                  subBranchNode.setUserObject(subBranchObject);
                  subBranchNode.setAllowsChildren(false);
                  branchNode.add(subBranchNode);
              }
             
        
         }
         
     }
 
     /**
      * Gets the tree's default model.
      *
      * @return tree model.
      */
     public DefaultTreeModel getModel() {
         return model;
     }
 



My index.xhtml

Code:
 
 <f:view xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ice="http://www.icesoft.com/icefaces/component">
 
     <ice:outputDeclaration doctypeRoot="HTML"
         doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
         doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
 
     <html>
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
         <title>SEFAZ / AM - DAM Eletronica 2008 - V1</title>
         <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css" />
     </head>
     <body>
         <h2>Declaracao</h2>
         <ice:form>
             <ice:panelGroup styleClass="treeContainer">
                 <!--
                     This is a very basic tree comprising of only text nodes.  The
                     expand and contract images are rendered because the "imageDir"
                     attribute on the tree component has been set to a known path.
                 -->
                 <ice:tree id="tree"
                       value="#{tree.model}"
                       var="item"
                       hideRootNode="false"
                       hideNavigation="false"
                       imageDir="./xmlhttp/css/xp/css-images/">
                 <ice:treeNode>
                     <f:facet name="icon">
                         <ice:panelGroup style="display: inline">
                              <h:graphicImage value="#{item.userObject.icon}"/>
                         </ice:panelGroup>
                     </f:facet>
                     <f:facet name="content">
                         <ice:panelGroup style="display: inline">
                             <ice:commandLink
                                     value="#{item.userObject.text}"/>
                         </ice:panelGroup>
                     </f:facet>
                 </ice:treeNode>
             </ice:tree>
             </ice:panelGroup>
         </ice:form>
     </body>
     </html>
 </f:view>
 



On the screen is the displayed the tree, but where is the sub-nodes?

The sub-nodes doesn't works...

Can anyone help?

Thanks!
 
Profile for allanbruno -> Messages posted by allanbruno [38] Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team