Results 1 to 5 of 5

Thread: install view command broken?

  1. #1
    Join Date
    Feb 2007
    Location
    Huntington Beach, CA
    Posts
    26

    Exclamation install view command broken?

    I'm getting the following error when trying to install a new view:

    roo> web mvc install view --path /register --title Register --viewName registrationForm
    Created SRC_MAIN_WEBAPP\WEB-INF\views\register
    Created SRC_MAIN_WEBAPP\WEB-INF\views\register\registrationform.jspx
    Updated SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
    Updated SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\register\views.xml
    [Fatal Error] :90:6: The string "--" is not permitted within comments.
    Undo manage SRC_MAIN_WEBAPP\WEB-INF\spring\webmvc-config.xml
    Undo create SRC_MAIN_WEBAPP\WEB-INF\views\register\views.xml
    Undo manage SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Undo manage SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
    Undo create SRC_MAIN_WEBAPP\WEB-INF\views\register\registrationform.jspx
    Undo create SRC_MAIN_WEBAPP\WEB-INF\views\register
    The string "--" is not permitted within comments.
    roo>

    Googling seemed to suggest this might be a Xerces bug, perhaps you're using an old version?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Hmm, works for me:


    Code:
    ~.web roo> web mvc install view --path /register --title Register --viewName registrationForm
    6bb21ed Updated SRC_MAIN_WEBAPP/WEB-INF/i18n/application.properties
    512b51b Updated SRC_MAIN_WEBAPP/WEB-INF/i18n/application.properties
    3283179 Updated SRC_MAIN_WEBAPP/WEB-INF/views/menu.jspx
    Created SRC_MAIN_WEBAPP/WEB-INF/views/register
    d5218a0 Created SRC_MAIN_WEBAPP/WEB-INF/views/register/views.xml
    f9aba75 Created SRC_MAIN_WEBAPP/WEB-INF/views/register/registrationform.jspx
    4014676 Updated SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Can you share a bit of information around your setup? (OS, Roo version, JDK, etc)
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Dec 2005
    Posts
    935

    Default

    I can't reproduce this with either 1.1.2, 1.1.3 or the latest 1.1.4 snapshot release using JDK 1.6.0_24. What JDK are you using?
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  4. #4
    Join Date
    Feb 2007
    Location
    Huntington Beach, CA
    Posts
    26

    Default

    Thanks for the response. I'm running Roo 1.1.2 on Win7. I've tried this with JDK 1.6_20 and now JDK 1.6_24 and get the same error on both. I've also tried via roo.sh on Cygwin (my usual choice) and roo.bat on the command prompt.

    However, I found it works fine on one project (basic pizza shop), but not on my main project. Both are simple apps, though. Could a dependency in the app affect Roo?

  5. #5
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    I will have to try this on a Windows install later tonight to verify. In the meantime can you please try the same command without the slash?:

    Code:
    roo> web mvc install view --path register --title Register --viewName registrationForm
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •