3 Replies Latest reply on Oct 15, 2010 4:33 AM by Ilya Shaikovsky

    Richfaces core-demo + JBoss AS6 :failing to deploy

    pcanto Newbie

      Scenario:

      I tried to compile (.\richfaces-4.0.0.20101004-M3\examples\core-demo) successfully, but fails to deploy.

      Background:

      No problems to compile and deploy .\richfaces-4.0.0.20101004-M3\examples\richfaces-showcase

      Fresh install:

      jboss-6.0.0.20100911-M5

      jboss-6.0.0.20100911-M5\server\default (selected for deploy)

      apache-maven-2.2.1 (selected for make war)

      richfaces-4.0.0.20101004-M3\examples\core-demo

       

      Prompt:

      $ cd /opt/dev/richfaces-4.0.0.20101004-M3/examples/core-demo
      $ mvn clean package -Pjee6
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building RichFaces Examples: Core
      [INFO]    task-segment: [clean, package]
      [INFO] ------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Deleting file set: D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\target (included: [**], excluded: [])
      [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
      [INFO] [enforcer:enforce {execution: enforce-java-version}]
      [INFO] [enforcer:enforce {execution: enforce-maven-version}]
      [INFO] [checkstyle:check {execution: richfaces-checkstyle-report}]
      [INFO]
      [INFO] [resources:resources]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO] [compiler:compile]
      [INFO] Compiling 15 source files to D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\target\classes
      [INFO] [resources:testResources]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\src\test\resources
      [INFO] [compiler:testCompile]
      [INFO] No sources to compile
      [INFO] [surefire:test]
      [INFO] No tests to run.
      [INFO] [war:war]
      [INFO] Packaging webapp
      [INFO] Assembling webapp[core-demo] in [D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\target\core-demo-4.0.0.20101004-M3-jee6]
      [INFO] Processing war project
      [INFO] Copying webapp resources[D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\src\main\webapp]
      [INFO] Webapp assembled in [194 msecs]
      [INFO] Building war: D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\target\core-demo-4.0.0.20101004-M3.war
      [INFO] [source:jar-no-fork {execution: attach-sources}]
      [INFO] Building jar: D:\opt\dev\richfaces-4.0.0.20101004-M3\examples\core-demo\target\core-demo-4.0.0.20101004-M3-sources.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7 seconds
      [INFO] Finished at: Fri Oct 15 02:52:18 ART 2010
      [INFO] Final Memory: 25M/60M
      [INFO] ------------------------------------------------------------------------
      $ cd /opt/dev/jboss-6.0.0.20100911-M5/bin
      $ ./run.bat default
      $ ./run.bat default
      Calling D:\opt\dev\jboss-6.0.0.20100911-M5\bin\run.conf.bat
      ===============================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: D:\opt\dev\jboss-6.0.0.20100911-M5
      
        JAVA: C:\Program Files (x86)\Java\jdk1.6.0_22\bin\java
      
        JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.s
      erver.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server
      
        CLASSPATH: C:\Program Files (x86)\Java\jdk1.6.0_22\lib\tools.jar;D:\opt\dev\jboss-6.0.0.20100911-M5\bin\run.jar
      
      ===============================================================================
      
      run.bat: unused non-option argument: default
      03:36:19,758 INFO  [AbstractJBossASServerBase] Server Configuration:
      
              JBOSS_HOME URL: file:/D:/opt/dev/jboss-6.0.0.20100911-M5/
              Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
              Common Base: $JBOSS_HOME\common/
              Common Library: $JBOSS_HOME\common/lib/
              Server Name: default
              Server Base: $JBOSS_HOME\server/
              Server Library: $JBOSS_HOME\server/default/lib/
              Server Config: $JBOSS_HOME\server/default/conf/
              Server Home: $JBOSS_HOME\server/default/
              Server Data: $JBOSS_HOME\server/default/data/
              Server Log: $JBOSS_HOME\server/default/log/
              Server Temp: $JBOSS_HOME\server/default/tmp/
      
      03:36:19,764 INFO  [AbstractServer] Starting: JBossAS [6.0.0.20100911-M5 "Neo"]
      .....
      
      
      

       

      Go to: http://localhost:8080/

       

      And from: JBoss AS 6 Admin Console --> Add New Web Application (WAR) --> absolute path to the local file --> click Continue.

      (http://localhost:8080/admin-console/secure/summary.seam?path=-3%2FApplications%2FWeb+Application+%28WAR%29&conversationId=3&conversationPropagation=end)

      war.jpg

       

      Getting the following error:

      deploy.jpg

      • Failed to create Resource core-demo-4.0.0.20101004-M3.war - cause:  java.lang.Exception:Failed to start deployment  [vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war]  during deployment of 'core-demo-4.0.0.20101004-M3.war' - cause:  java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException:  Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):  *** DEPLOYMENTS IN ERROR: Name -> Error  vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war  -> org.jboss.deployers.spi.DeploymentException: Error during deploy:   vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war   DEPLOYMENTS  IN ERROR:   Deployment  "vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war"  is in error due to the following reason(s):  java.lang.ArrayIndexOutOfBoundsException: 2  ->  org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of  incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):  *** DEPLOYMENTS IN ERROR: Name -> Error  vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war  -> org.jboss.deployers.spi.DeploymentException: Error during deploy:   vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war   DEPLOYMENTS  IN ERROR:   Deployment  "vfs:///D:/opt/dev/jboss-6.0.0.20100911-M5/server/default/deploy/core-demo-4.0.0.20101004-M3.war"  is in error due to the following reason(s):  java.lang.ArrayIndexOutOfBoundsException: 2

       

      That's it, someone could give me some idea, where there may be a problem?

      Need more input? just ask me...

       

      This is my first post , so forgive if I do not know the Netiquette comunity rules.

       

      Thanks in advance,

      Pablo.-

       

      PD: Sorry for my English..