This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235892 - Project fails to deploy after adding JSF framework with PrimeFaces
Summary: Project fails to deploy after adding JSF framework with PrimeFaces
Status: CLOSED DUPLICATE of bug 231409
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.3.1
Hardware: All All
: P1 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 19:00 UTC by ajeh
Modified: 2013-11-21 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ajeh 2013-09-12 19:00:07 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Linux version 2.6.35.14-96.PhenomX4full.fc14.x86_64 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

Project fails to deploy after adding JSF framework with PrimeFaces:

ant -f /home/username/NetBeansProjects/Builder -DforceRedeploy=true -Ddirectory.deployment.supported=true run-deploy
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
Builder-ejb.init:
Builder-ejb.deps-jar:
Builder-ejb.compile:
Builder-ejb.library-inclusion-in-manifest:
Building jar: /home/username/NetBeansProjects/Builder/Builder-ejb/dist/Builder-ejb.jar
Builder-ejb.dist-ear:
Builder-war.init:
Builder-war.deps-module-jar:
Builder-war.deps-ear-jar:
Builder-ejb.init:
Builder-ejb.deps-jar:
Builder-ejb.compile:
Builder-ejb.library-inclusion-in-manifest:
Builder-ejb.dist-ear:
Builder-war.deps-jar:
Builder-war.library-inclusion-in-archive:
Builder-war.library-inclusion-in-manifest:
Builder-war.compile:
Builder-war.compile-jsps:
Builder-war.do-ear-dist:
Building jar: /home/username/NetBeansProjects/Builder/Builder-war/dist/Builder-war.war
Builder-war.dist-ear:
pre-pre-compile:
pre-compile:
Copying 1 file to /home/username/NetBeansProjects/Builder/build
Copying 1 file to /home/username/NetBeansProjects/Builder/build
do-compile:
post-compile:
compile:
pre-dist:
post-dist:
dist-directory-deploy:
pre-run-deploy:
Initial deploying Builder to /home/username/NetBeansProjects/Builder/dist/gfdeploy/Builder
Completed initial distribution of Builder
Initializing...
deploy?DEFAULT=/home/username/NetBeansProjects/Builder/dist/gfdeploy/Builder&name=Builder&force=true failed on GlassFish Server 4.0 
 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:/home/username/NetBeansProjects/Builder/dist/gfdeploy/Builder/lib/primefaces-3.5.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.
/home/username/NetBeansProjects/Builder/nbproject/build-impl.xml:294: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 3 seconds)
Comment 1 Martin Fousek 2013-09-13 11:06:25 UTC
There is placed warning by creation of the new WebApplication that for usage of the PF3.5 and JSF2.2 there is necessary to download and place this JAR on the application classpath:
http://commons.apache.org/proper/commons-fileupload/download_fileupload.cgi

According to the issue #231409, this was already resolved in another way - handled by the IDE and you should be able to run that app in NetBeans 7.4 because the FileUpload JAR are placed on the CP by the IDE. PF library consist of the primefaces.jar and the commons-fileupload.jar. Marking as duplicate of that issue.

You can give it try in the development builds now:
http://bits.netbeans.org/download/trunk/nightly/latest/

*** This bug has been marked as a duplicate of bug 231409 ***