Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1328

webmvc-config.xml has errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT, PERSISTENCE
    • Labels:
      None
    • Environment:
      sts-2.3.3.M2
      roo-1.1.0.M3
      maven-2.2.1.RELEASE

      Description

      Doings this in a new Eclipse Roo Project

      // Spring Roo 1.1.0.M3 [rev e66e029] log opened at 2010-08-30 22:38:45
      project --topLevelPackage com.test --projectName TestRoo3 --java 6
      persistence setup --database GOOGLE_APP_ENGINE --provider DATANUCLEUS
      entity --class ~.datos.Pedido --testAutomatically
      field string --fieldName descripcion
      gwt setup
      perform package

      Does not compile because the file webmvc-config.xml has errors:

      <!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources -->
      <mvc:resources location="classpath:/META-INF/dojo/" mapping="/resources/dojo/**"/>
      <mvc:resources location="classpath:/META-INF/dijit/" mapping="/resources/dijit/**"/>
      <mvc:resources location="classpath:/META-INF/spring/" mapping="/resources/spring/**"/>
      <mvc:resources location="/" mapping="/resources/**"/>

      <!-- Allows for mapping the DispatcherServlet to "/" by forwarding static resource requests to the container's default Servlet -->
      <mvc:default-servlet-handler/>

      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. webmvc-config.xml /TestRoo3/src/main/webapp/WEB-INF/spring line 14 XML Problem
      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. webmvc-config.xml /TestRoo3/src/main/webapp/WEB-INF/spring line 15 XML Problem
      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. webmvc-config.xml /TestRoo3/src/main/webapp/WEB-INF/spring line 16 XML Problem
      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. webmvc-config.xml /TestRoo3/src/main/webapp/WEB-INF/spring line 17 XML Problem
      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:default-servlet-handler'. webmvc-config.xml /TestRoo3/src/main/webapp/WEB-INF/spring line 20 XML Problem

      Doing a mvn gwt:run results in

      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building TestRoo3
      [INFO] task-segment: [gwt:run]
      [INFO] ------------------------------------------------------------------------
      [INFO] Preparing gwt:run
      [INFO] [gae:unpack

      Unknown macro: {execution}

      ]
      [INFO] Extracting GAE SDK file: /home/sergio/.m2/repository/com/google/appengine/appengine-java-sdk/1.3.4/appengine-java-sdk-1.3.4.zip
      [INFO] To path: /home/sergio/.m2/repository/com/google/appengine/appengine-java-sdk/1.3.4
      [INFO] [aspectj:compile

      Unknown macro: {execution}

      ]
      [INFO] [resources:resources

      Unknown macro: {execution}

      ]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO] [compiler:compile

      Unknown macro: {execution}

      ]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [datanucleus:enhance

      Unknown macro: {execution}

      ]
      [INFO] CP: /home/sergio/.m2/repository/org/datanucleus/datanucleus-core/1.1.6/datanucleus-core-1.1.6.jar
      [INFO] CP: /home/sergio/.m2/repository/org/datanucleus/datanucleus-rdbms/1.1.6/datanucleus-rdbms-1.1.6.jar
      [INFO] CP: /home/sergio/.m2/repository/javax/transaction/transaction-api/1.1/transaction-api-1.1.jar
      [INFO] CP: /home/sergio/.m2/repository/org/datanucleus/datanucleus-enhancer/1.1.4/datanucleus-enhancer-1.1.4.jar
      [INFO] CP: /home/sergio/.m2/repository/asm/asm/3.2/asm-3.2.jar
      [INFO] CP: /home/sergio/.m2/repository/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
      [INFO] CP: /home/sergio/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar
      [INFO] CP: /home/sergio/.m2/repository/org/datanucleus/datanucleus-jpa/1.1.5/datanucleus-jpa-1.1.5.jar
      [INFO] CP: /home/sergio/.m2/repository/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3.0_spec-1.1.1.jar
      [INFO] CP: /home/sergio/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar
      [INFO] CP: /home/sergio/.m2/repository/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar
      [INFO] CP: /media/linux-home/sergio-ori/Programacion/springsource/maven-2.2.1.RELEASE/lib/maven-2.2.1-uber.jar
      [INFO] CP: /media/linux-home/sergio-ori/workspace/workspace-sts-2.3.3.M2/TestRoo3/target/TestRoo3-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes
      [INFO] CP: /home/sergio/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
      [INFO] CP: /home/sergio/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
      [INFO] CP: /home/sergio/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar
      [INFO] CP: /home/sergio/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar
      [INFO] CP: /home/sergio/.m2/repository/org/aspectj/aspectjrt/1.6.10.M1/aspectjrt-1.6.10.M1.jar
      [INFO] CP: /home/sergio/.m2/repository/net/sf/flexjson/flexjson/2.0/flexjson-2.0.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-core/3.0.4.RELEASE/spring-core-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-asm/3.0.4.RELEASE/spring-asm-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-context/3.0.4.RELEASE/spring-context-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-aop/3.0.4.RELEASE/spring-aop-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-beans/3.0.4.RELEASE/spring-beans-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-expression/3.0.4.RELEASE/spring-expression-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-aspects/3.0.4.RELEASE/spring-aspects-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-context-support/3.0.4.RELEASE/spring-context-support-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-tx/3.0.4.RELEASE/spring-tx-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/com/google/appengine/orm/datanucleus-appengine/1.0.7.final/datanucleus-appengine-1.0.7.final.jar
      [INFO] CP: /home/sergio/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.3.4/appengine-api-1.0-sdk-1.3.4.jar
      [INFO] CP: /home/sergio/.m2/repository/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final.jar
      [INFO] CP: /home/sergio/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
      [INFO] CP: /home/sergio/.m2/repository/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-jdbc/3.0.4.RELEASE/spring-jdbc-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-orm/3.0.4.RELEASE/spring-orm-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
      [INFO] CP: /home/sergio/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-web/3.0.4.RELEASE/spring-web-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/spring-webmvc/3.0.4.RELEASE/spring-webmvc-3.0.4.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/org/springframework/webflow/spring-js/2.1.1.RELEASE/spring-js-2.1.1.RELEASE.jar
      [INFO] CP: /home/sergio/.m2/repository/commons-digester/commons-digester/2.0/commons-digester-2.0.jar
      [INFO] CP: /home/sergio/.m2/repository/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar
      [INFO] CP: /home/sergio/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar
      [INFO] CP: /home/sergio/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar
      [INFO] CP: /home/sergio/.m2/repository/joda-time/joda-time/1.6/joda-time-1.6.jar
      [INFO] CP: /home/sergio/.m2/repository/com/google/gwt/gwt-servlet/2.1-SNAPSHOT/gwt-servlet-2.1-SNAPSHOT.jar
      [INFO] CP: /home/sergio/.m2/repository/org/json/json/20090211/json-20090211.jar
      2010-08-30 22:55:31,412 [main] ERROR DataNucleus.Plugin - Bundle "org.datanucleus.store.appengine" se hace falta "org.datanucleus" versi�n "[1.0.4, 1.1.5.final)" pero ese bundle tiene versi�n "1.0.7.final" que esta fuera de los versiones aceptadas.
      DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
      DataNucleus Enhancer : Classpath
      >> /media/linux-home/sergio-ori/Programacion/springsource/maven-2.2.1.RELEASE/boot/classworlds-1.1.jar
      ENHANCED (PersistenceCapable) : com.test.datos.Pedido
      DataNucleus Enhancer completed with success for 1 classes. Timings : input=511 ms, enhance=169 ms, total=680 ms. Consult the log for full details
      [INFO] [gwt:run

      Unknown macro: {execution}

      ]
      [INFO] using GWT jars for specified version 2.1-SNAPSHOT
      [INFO] establishing classpath list (scope = runtime)
      [INFO] create exploded Jetty webapp in /media/linux-home/sergio-ori/workspace/workspace-sts-2.3.3.M2/TestRoo3/target/TestRoo3-0.1.0.BUILD-SNAPSHOT
      [ERROR] 2010-08-30 20:55:41.557:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
      [ERROR] 30-ago-2010 20:55:41 com.google.appengine.tools.development.IsolatedAppClassLoader checkWorkingDirectory
      [ERROR] ADVERTENCIA: Your working directory, (/media/linux-home/sergio-ori/workspace/workspace-sts-2.3.3.M2/TestRoo3) is not equal to your
      [ERROR] web application root (/media/linux-home/sergio-ori/workspace/workspace-sts-2.3.3.M2/TestRoo3/target/TestRoo3-0.1.0.BUILD-SNAPSHOT)
      [ERROR] You will not be able to access files from your working directory on the production server.
      [ERROR]
      [ERROR] 30-ago-2010 20:55:41 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
      [ERROR] INFO: Successfully processed /media/linux-home/sergio-ori/workspace/workspace-sts-2.3.3.M2/TestRoo3/target/TestRoo3-0.1.0.BUILD-SNAPSHOT/WEB-INF/appengine-web.xml
      [ERROR] 30-ago-2010 20:55:41 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
      [ERROR] INFO: Successfully processed /media/linux-home/sergio-ori/workspace/workspace-sts-2.3.3.M2/TestRoo3/target/TestRoo3-0.1.0.BUILD-SNAPSHOT/WEB-INF/web.xml
      [ERROR] Unable to start embedded HTTP server
      [ERROR] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
      [ERROR] at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:91)
      [ERROR] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:431)
      [ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1053)
      [ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:795)
      [ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:282)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6 minutes 9 seconds
      [INFO] Finished at: Mon Aug 30 23:01:27 CEST 2010
      [INFO] Final Memory: 30M/71M
      [INFO] ------------------------------------------------------------------------

        Attachments

          Activity

            People

            Assignee:
            balex Ben Alex
            Reporter:
            sergio.otero Sergio Otero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: