Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: Sprint 4.1.2
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
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)
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
]
[INFO] [GitCommitIdMojo] .git directory could not be found, skipping
execution
[INFO] [resources: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
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>