Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to run jsf richfaces fileupload example from "exadel.com"

 
fahad nizamani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FileUpload.xhtml



FileUploadBean.java



File.java




web.xml





faces-config.xml




libraries that i have included in my lib folder

ajax4jsf-1.1.1.jar
commons-beanutils.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
commons-logging-1.0.4.jar
cssparser-0.9.5.jar
guava-r08.jar
itext-2.1.7.jar
jhighlight-1.0.jar
jsf-api.jar
jsf-facelets-1.1.15.B1.jar
jsf-impl.jar
jstl-1.1.2.jar
myfaces-api-1.2.3.jar
myfaces-impl-1.1.0.jar
richfaces-api-3.1.4.GA.jar
richfaces-api-3.2.2.GA.jar
richfaces-api-3.3.3.Final.jar
richfaces-impl-3.1.4.GA.jar
richfaces-impl-3.2.2.GA.jar
richfaces-ui-3.1.4.GA.jar
richfaces-ui-3.2.2.GA.jar
sac-1.3.jar
standard-1.1.2.jar


when i try to run this example i am getting errors and exceptions on consol and status 404, requested resource is not availabe


13:06:22,255 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found jsf-fileupload-richfaces.war in deployment directory. To trigger deployment create a file called jsf-fileupload-richfaces.war.dodeploy
13:06:27,320 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "jsf-fileupload-richfaces.war"
13:06:31,487 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.GlassFishInjectionProvider:com.sun.enterprise.InjectionManager' for service type 'com.sun.faces.spi.injectionprovider'
13:06:31,490 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProviderrg.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
13:06:31,494 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProviderrg.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
13:06:32,100 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."jsf-fileupload-richfaces.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jsf-fileupload-richfaces.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "jsf-fileupload-richfaces.war"

at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]
Caused by: java.lang.RuntimeException: Error getting reflective information for class org.ajax4jsf.taglib.html.jsp.ActionParam with ClassLoader ModuleClassLoader for Module "deployment.jsf-fileupload-richfaces.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.VerifyError: (class: org/ajax4jsf/taglib/html/jsp/ActionParam, method: setProperties signature: (Ljavax/faces/component/UIComponent;)V) Incompatible object argument for function call
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0]
at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0]
at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more

13:06:32,215 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "jsf-fileupload-richfaces.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jsf-fileupload-richfaces.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jsf-fileupload-richfaces.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"jsf-fileupload-richfaces.war\""}}
13:06:32,221 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."jsf-fileupload-richfaces.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jsf-fileupload-richfaces.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "jsf-fileupload-richfaces.war"

13:06:32,312 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jsf-fileupload-richfaces.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jsf-fileupload-richfaces.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"jsf-fileupload-richfaces.war\""}}}}
13:06:32,336 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment jsf-fileupload-richfaces.war in 108ms


I took example source code from exadel "http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf"

i am using jBoss-7.1.1, jdk-1.7

kindly can any one help me running this example for richfaces fileupload on exadel.com.

i do not know whether i am mistaking in xml configuration or missing or duplicating jar files, kindly do help me.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss 7 already has a JSF/faces implementation I believe.

This example is pretty old, so I think that you're having an API conflict trying to run a jsf 1.x app in a jsf 2.x environment.

WP
 
fahad nizamani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear William you believe this Exadel richfaces file upload example is compatible to jsf 1.x and i am trying to run this example in jsf 2.x environment.
i am very new to jsf and richfaces i have to do file upload in jsf2.0 using richfaces, if you can help me then please guide me the way or suggest me the links that i may follow
to complete my task "file upload using rich faces in jsf2.0". Any one who has a good grip on jsf2.0 and "rich faces" kindly guide me.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic