[jboss-jira] [JBoss JIRA] (AS7-2944) Getting Started Developing Applications Guide | jboss-as-numberguess Issue

Frederic Hornain (Updated) (JIRA) jira-events at lists.jboss.org
Wed Dec 7 13:25:41 EST 2011


     [ https://issues.jboss.org/browse/AS7-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frederic Hornain updated AS7-2944:
----------------------------------

           Priority: Trivial  (was: Major)
    Forum Reference: http://community.jboss.org/message/640325  (was: http://community.jboss.org/message/640325)


Well, I think this ticket can be labelled as "SOLVED".

Indeed, I think I found the problem. It was due to bad download of jboss-jsf-api_2.0_spec-1.0.0.Final.jar plugin from Maven Repository.
So the workaround was to delete the bad jboss-jsf-api_2.0_spec-1.0.0.Final jar packages and to re download it again. - See technical and command line info below -


[fhornain at localhost numberguess]$ mvn package jboss-as:deploy
/usr/lib/jvm/java
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss AS Quickstarts: Numberguess 7.1.0.Beta1b
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ jboss-as-numberguess ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ jboss-as-numberguess ---
[INFO] Compiling 4 source files to /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] error: error reading /home/fhornain/.m2/repository/org/jboss/spec/javax/faces/jboss-jsf-api_2.0_spec/1.0.0.Final/jboss-jsf-api_2.0_spec-1.0.0.Final.jar; invalid LOC header (bad signature)
[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.281s
[INFO] Finished at: Wed Dec 07 19:15:05 CET 2011
[INFO] Final Memory: 7M/104M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project jboss-as-numberguess: Compilation failure
[ERROR] error: error reading /home/fhornain/.m2/repository/org/jboss/spec/javax/faces/jboss-jsf-api_2.0_spec/1.0.0.Final/jboss-jsf-api_2.0_spec-1.0.0.Final.jar; invalid LOC header (bad signature)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



[fhornain at localhost numberguess]$ mv /home/fhornain/.m2/repository/org/jboss/spec/javax/faces/jboss-jsf-api_2.0_spec/1.0.0.Final/jboss-jsf-api_2.0_spec-1.0.0.Final.jar /home/fhornain/.m2/repository/org/jboss/spec/javax/faces/jboss-jsf-api_2.0_spec/1.0.0.Final/jboss-jsf-api_2.0_spec-1.0.0.Final.old



[fhornain at localhost numberguess]$ mvn package jboss-as:deploy/usr/lib/jvm/java
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss AS Quickstarts: Numberguess 7.1.0.Beta1b
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/jboss/spec/javax/faces/jboss-jsf-api_2.0_spec/1.0.0.Final/jboss-jsf-api_2.0_spec-1.0.0.Final.jar
Downloaded: http://repo1.maven.org/maven2/org/jboss/spec/javax/faces/jboss-jsf-api_2.0_spec/1.0.0.Final/jboss-jsf-api_2.0_spec-1.0.0.Final.jar (699 KB at 239.7 KB/sec)
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ jboss-as-numberguess ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ jboss-as-numberguess ---
[INFO] Compiling 4 source files to /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ jboss-as-numberguess ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ jboss-as-numberguess ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ jboss-as-numberguess ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ jboss-as-numberguess ---
[INFO] Packaging webapp
[INFO] Assembling webapp [jboss-as-numberguess] in [/home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/target/jboss-as-numberguess]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/src/main/webapp]
[INFO] Webapp assembled in [37 msecs]
[INFO] Building war: /home/fhornain/Downloads/jboss-as-quickstarts-7.0.2.CR1/numberguess/target/jboss-as-numberguess.war
[INFO] 
[INFO] --- jboss-as-maven-plugin:7.1.0.Beta1b:deploy (default-cli) @ jboss-as-numberguess ---
[INFO] Executing goal deploy on server localhost (127.0.0.1) port 9999.
Dec 07, 2011 7:15:55 PM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.0.CR5
Dec 07, 2011 7:15:55 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.0.CR5
Dec 07, 2011 7:15:55 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.0.CR6
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.465s
[INFO] Finished at: Wed Dec 07 19:15:55 CET 2011
[INFO] Final Memory: 21M/172M
[INFO] ------------------------------------------------------------------------



                
> Getting Started Developing Applications Guide | jboss-as-numberguess Issue
> --------------------------------------------------------------------------
>
>                 Key: AS7-2944
>                 URL: https://issues.jboss.org/browse/AS7-2944
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 7.0.2.Final
>         Environment: I am using Fedora 16, Firefox 8.0, Maven 3.0.3, Eclipse Indigo 3.7.1, JBoss AS 7.0.2 and the JBoss AS Quickstarts 7.0.2.CR1.
>            Reporter: Frederic Hornain
>            Assignee: Stan Silvert
>            Priority: Trivial
>              Labels: maven
>
> Compilation seems fine but when I try to access the http://localhost:8080/jboss-as-numberguess/home.jsf
> I have got the following exception :
> The type javax.faces.component.UIOutput cannot be resolved. It is indirectly referenced from required .class files
> Cannot cast from UIComponent to UIInput
> For more details please have a look at the attached picture @ http://community.jboss.org/message/640325

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list