Deployment of icarus-1.0.2.war fails

Post Reply
Cult
Posts: 2
Joined: 20 Feb 2016, 19:33

05 Aug 2016, 12:28

Maven-Version: 3.3.9
Primefaces 6.0
Server: WildFly 9.0.2 Final
Java 1.8.0_101 (latest)

Messages when building with maven which might be relevant:

Code: Select all

Scanning for projects...

Some problems were encountered while building the effective model for org.primefaces:icarus:war:1.0.2
The expression ${build.sourceDirectory} is deprecated. Please use ${project.build.sourceDirectory} instead.

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

                                                                        
------------------------------------------------------------------------
Building icarus 1.0.2
------------------------------------------------------------------------

--- maven-clean-plugin:2.5:clean (default-clean) @ icarus ---

--- maven-resources-plugin:2.6:resources (default-resources) @ icarus ---
Using 'UTF-8' encoding to copy filtered resources.
Copying 0 resource

--- sass-maven-plugin:2.20:update-stylesheets (sass-layout) @ icarus ---
Checked 5 files for /home/jd/NetBeansProjects/tag/src/main/webapp/resources/sass/layout
Checked 6 files for /home/jd/NetBeansProjects/tag/src/main/webapp/resources/icarus-layout/css
Skip compiling Sass templates, no changes.

--- sass-maven-plugin:2.20:update-stylesheets (saas-theme) @ icarus ---
Checked 0 files for /home/jd/NetBeansProjects/tag/src/main/sass
Checked 0 files for /home/jd/NetBeansProjects/tag/target/icarus-1.0.2/css
Compiling Sass templates
Queueing Sass template for compile: /home/jd/NetBeansProjects/tag/src/main/webapp/resources/sass/theme/orange => /home/jd/NetBeansProjects/tag/src/main/webapp/resources/primefaces-icarus-orange
Queueing Sass template for compile: /home/jd/NetBeansProjects/tag/src/main/webapp/resources/sass/theme/blue => /home/jd/NetBeansProjects/tag/src/main/webapp/resources/primefaces-icarus-blue
Queueing Sass template for compile: /home/jd/NetBeansProjects/tag/src/main/webapp/resources/sass/theme/green => /home/jd/NetBeansProjects/tag/src/main/webapp/resources/primefaces-icarus-green
Queueing Sass template for compile: /home/jd/NetBeansProjects/tag/src/main/webapp/resources/sass/theme/red => /home/jd/NetBeansProjects/tag/src/main/webapp/resources/primefaces-icarus-red
Array values in the parameter to `Gem.paths=` are deprecated.
Please use a String or nil.
An Array ({"GEM_PATH"=>["/home/jd/NetBeansProjects/tag/target/rubygems"]}) was passed in from 


--- maven-compiler-plugin:2.3.2:compile (default-compile) @ icarus ---
Compiling 137 source files to /home/jd/NetBeansProjects/tag/target/classes

--- maven-resources-plugin:2.6:testResources (default-testResources) @ icarus ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/jd/NetBeansProjects/tag/src/test/resources

--- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ icarus ---
No sources to compile

--- maven-surefire-plugin:2.17:test (default-test) @ icarus ---
No tests to run.

--- maven-war-plugin:2.6:war (default-war) @ icarus ---
Packaging webapp
Assembling webapp [icarus] in [/home/jd/NetBeansProjects/tag/target/icarus-1.0.2]
Processing war project
Copying webapp webResources [/home/jd/NetBeansProjects/tag/src/main/java] to [/home/jd/NetBeansProjects/tag/target/icarus-1.0.2]
Copying webapp resources [/home/jd/NetBeansProjects/tag/src/main/webapp]
Webapp assembled in [109 msecs]
Building war: /home/jd/NetBeansProjects/tag/target/icarus-1.0.2.war

--- maven-install-plugin:2.5.2:install (default-install) @ icarus ---
Installing /home/jd/NetBeansProjects/tag/target/icarus-1.0.2.war to /home/jd/.m2/repository/org/primefaces/icarus/1.0.2/icarus-1.0.2.war
Installing /home/jd/NetBeansProjects/tag/pom.xml to /home/jd/.m2/repository/org/primefaces/icarus/1.0.2/icarus-1.0.2.pom
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 9.714 s
Finished at: 2016-08-05T12:17:59+02:00
Final Memory: 57M/610M
------------------------------------------------------------------------
When deploying to WildFly 9.0.2-Final the following error occurs:

Code: Select all

{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host.\"/icarus-1.0.2\"" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host.\"/icarus-1.0.2\": java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined
    Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined
    Caused by: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined"}}}}
Any Ideas ?

Cult
Posts: 2
Joined: 20 Feb 2016, 19:33

06 Aug 2016, 11:57

I have already solved this Issue by myself.

The following code was removed from the pom.xml

Code: Select all

<dependency>
            <groupId>org.glassfish</groupId>
            <artifactId>javax.faces</artifactId>
            <version>2.2.8</version>
</dependency>
and replaced by

Code: Select all


<properties>
    <jsf.version>2.2.8</jsf.version>
</properties>

<dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>${jsf.version}</version>
            <scope>provided</scope>
</dependency>

<dependency>
           <groupId>com.sun.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>${jsf.version}</version>
            <scope>provided</scope>
</dependency>
now it works

cagatay.civici
Prime
Posts: 17986
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 Aug 2016, 00:48

I was going to suggest that, the war includes JSF libs which might conflict with the runtime already provided in the app server. Thanks for sharing.

Post Reply

Return to “Icarus”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest