Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-1095

FIWARE.Request.Tech.WebUI.RealVirtualInteraction.Unable_configure_cross-origin_requests

    Details

    • HD-Chapter:
      WebUI
    • HD-Enabler:
      Real Virtual Interaction

      Description

      Responsible: fiware@ulpgc.es
      Tested GE(s): GIS Data Provider - GeoServer 3D GE

      Environment:

      • Filab Cloud
        Machine ID: c3bb506b-3aaa-4a91-bd08-1fe7b7364aac
        Region: Spain
        Test user: ulpgc-test-web-ui3
        Image name: Ubuntu Server 14.04.1 (64 bits)
      • Local
        Operating System: Ubuntu 14.04.1 (64 bits)
        Virtualization software: VirtualBox 4.3.18
        Host Operating System: Windows 8 (64 bits)

      Link:
      https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/GIS_Data_Provider_-_Installation_and_Administration_Guide#Configuration_for_allowing_cross-origin_requests

      Description:

      In the section Configuration for allowing cross-origin requests of the
      Installation and Administration Guide we are told to allow cross-origin
      requests by modifying src/web/app/pom.xml and
      src/web/app/src/main/webapp/WEB-INF/web.xml. However, when we try to run
      again the server we get an error regarding the new dependency added in
      src/web/app/pom.xml. The error can be seen in the console output shared
      below.

      Console output:
      test@tesgis-14-04:~/geoserver/src/web/app$ mvn -Djetty.port=9090 jetty:run
      -Pw3ds
      [INFO] Scanning for projects...
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Building GeoServer Web Application
      [INFO] task-segment: [jetty:run]
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Preparing jetty:run
      [INFO] [git-commit-id:revision

      {execution: default}

      ]
      [INFO] [GitCommitIdMojo] .git directory could not be found, skipping
      execution
      [INFO] [resources:resources

      {execution: default-resources}

      ]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory
      /home/test/geoserver/src/web/app/src/main/resources
      [INFO] skip non existing resourceDirectory
      /home/test/geoserver/src/web/app/src/main/java
      [INFO]
      ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).

      Project ID: null:jetty-project:pom:9.0.6.v20130930

      Reason: Cannot find parent: org.eclipse.jetty:jetty-parent for project:
      null:jetty-project:pom:9.0.6.v20130930 for project
      null:jetty-project:pom:9.0.6.v20130930

      [INFO]
      ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Total time: 20 seconds
      [INFO] Finished at: Wed Nov 05 12:28:28 CET 2014
      [INFO] Final Memory: 41M/98M
      [INFO]
      ------------------------------------------------------------------------

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

        Activity

        Hide
        sami_jylkk J-P Viuhkola added a comment -

        Most probably error was caused due wrong jetty version number. Documentation is now updated with correct version number:

        <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-servlets</artifactId>
        <version>9.2.4.v20141103</version>
        </dependency>

        Show
        sami_jylkk J-P Viuhkola added a comment - Most probably error was caused due wrong jetty version number. Documentation is now updated with correct version number: <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlets</artifactId> <version>9.2.4.v20141103</version> </dependency>
        Hide
        pablo.fernandez Pablo Fernandez Moniz added a comment -

        Hi Sami,

        We changed the Jetty Servlet version in the pom.xml and the geoserver was executed succesfully with Jetty. We confirm that it worked for both our local machine and the one deployed in FiLab cloud. Thank you very much for the correction!

        Best regards,

        Show
        pablo.fernandez Pablo Fernandez Moniz added a comment - Hi Sami, We changed the Jetty Servlet version in the pom.xml and the geoserver was executed succesfully with Jetty. We confirm that it worked for both our local machine and the one deployed in FiLab cloud. Thank you very much for the correction! Best regards,
        Hide
        sami_jylkk J-P Viuhkola added a comment -

        Hi Pablo,
        Glad to hear that problem is now verified and thank you for reporting problem!

        Best regards,
        Sami

        Show
        sami_jylkk J-P Viuhkola added a comment - Hi Pablo, Glad to hear that problem is now verified and thank you for reporting problem! Best regards, Sami

          People

          • Assignee:
            sami_jylkk J-P Viuhkola
            Reporter:
            pablo.fernandez Pablo Fernandez Moniz
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: