3

Everything works fine when I run my project in NetBeans, but when I try to deploy it I get the following error:

Error occurred during deployment: 

Exception while loading the app : java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
java.lang.RuntimeException:
com.sun.faces.config.ConfigurationException: Source Document:
jar:file:/C:/Users/User/Downloads/glassfish-4.0/glassfish4/glassfish/domains/domain1/applications/Zaman/WEB-INF/lib/primefaces-3.4.jar!/META-INF/faces-config.xml
Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer'
is missing a runtime dependency: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileItem. Please see server.log for more
details.

It says that the cause is:

Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer'
is missing a runtime dependency: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileItem.

I don't know what to do.

Sameer Singh
  • 1,358
  • 1
  • 19
  • 47
user2634009
  • 279
  • 1
  • 4
  • 11

2 Answers2

3

You should add Commons Fileupload to your application.

mthmulders
  • 9,483
  • 4
  • 37
  • 54
  • Thanks. It helped. App deployed witout any problem. but, now it is saying taht, after launching it. `If the server or listener is not running, the link may not work. In this event, check the status of the server instance. After launching the web application, use the browser's Back button to return to this screen.` – user2634009 Jul 30 '13 at 12:35
  • Seems like a different problem, worth a different question. – mthmulders Jul 30 '13 at 12:36
  • Thanks anyway. At last it is deployed. – user2634009 Jul 30 '13 at 12:37
1

Look at How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null

You must add commons-io and commons-fileupload to your classpath

Community
  • 1
  • 1
Flo
  • 411
  • 4
  • 11