Mapstore installation on ubuntu server

425 views
Skip to first unread message

Gianfranco Mura

unread,
Feb 15, 2013, 3:49:08 AM2/15/13
to mapstore-...@googlegroups.com
Hi all, We are system integrators and would like to test Mapstore to integrate it in our idt architecture for map publish and share. I started yesterday the installation following the guides on your web site but some errors occours. Below a report of installation errors. Can anyone help me? thanks in advance

Gianfranco

My Environment is:

OS: Ubuntu Server 10.04.4 LTS

Servlet container: Glassfish3 v. 3.1.1

java jdk 1.6.0_26


First tentative: I am building geostore from src after git clone following the building instructions. All work fine (git clone, postgresql db creation, ant & maven installation, …). when building the web application from src (with or without postgresql support is the same)


Command:

mvn clean install -Dovrdir=postgres -Ppostgres -e (or mvn clean install -e)


Response:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   GeoStore - 0 Server Root
[INFO]   GeoStore - Core
[INFO]   GeoStore - Core - Model
[INFO]   GeoStore - Core - Persistence
[INFO]   GeoStore - Core - Services API
[INFO]   GeoStore - Core - Services implementation
[INFO]   GeoStore - Modules
[INFO]   GeoStore - Modules - REST root
[INFO]   GeoStore - Modules - REST API
[INFO]   GeoStore - Modules - REST services
[INFO]   GeoStore - Modules - REST client
[INFO]   GeoStore - Modules - REST EXTJS services
[INFO]   GeoStore - Modules - REST services test
[INFO]   GeoStore - Web
[INFO]   GeoStore - Webapp
[INFO]   Master GeoStore POM
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoStore - 0 Server Root
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /opt/geostore/src/server/pom.xml to /root/.m2/repository/it/geosolutions/geostore/geostore-root/1.2-SNAPSHOT/geostore-root-1.2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoStore - Core
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /opt/geostore/src/server/core/pom.xml to /root/.m2/repository/it/geosolutions/geostore/geostore-core/1.2-SNAPSHOT/geostore-core-1.2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoStore - Core - Model
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set: /opt/geostore/src/server/core/model/target (included: [**], excluded: [])
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /opt/geostore/src/server/core/model/src/main/resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 18 source files to /opt/geostore/src/server/core/model/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/opt/geostore/src/server/core/model/src/main/java/it/geosolutions/geostore/core/model/SecurityRule.java:[60,68] illegal start of expression


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
/opt/geostore/src/server/core/model/src/main/java/it/geosolutions/geostore/core/model/SecurityRule.java:[60,68] illegal start of expression


        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
/opt/geostore/src/server/core/model/src/main/java/it/geosolutions/geostore/core/model/SecurityRule.java:[60,68] illegal start of expression


        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Feb 14 12:21:00 UTC 2013
[INFO] Final Memory: 23M/347M
[INFO] ------------------------------------------------------------------------


Second tentative: Deploying on glassfish the war file

http://maven.geo-solutions.it/it/geosolutions/geostore/geostore-webapp/1.1.0/geostore-webapp-1.1.0.war


This is the error on glassfish:


Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geostoreInitializer' defined in URL [file:/etc/glassfish3/glassfish/domains/domain1/applications/geostore-webapp-1.1.0/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'categoryService' defined in URL [jar:file:/etc/glassfish3/glassfish/domains/domain1/applications/geostore-webapp-1.1.0/WEB-INF/lib/geostore-services-impl-1.1.0.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'categoryDAO': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factor .... msg.seeServerLog


Tobia Di Pisa

unread,
Feb 15, 2013, 4:49:59 AM2/15/13
to mapstore-...@googlegroups.com
Hi Gianfranco,

about the first issue building GeoStore, the problem was a 'typo' error for the @UniqueConstraint definition inside the SecurityRule class,
due to recent modifications to make available the Oracle compatibility. I've just pushed the fix inside the GeoStore master branch so
you can try now.

About the second issue probably you have this problem because GeoStore can not successfully connects to the database:

- Wrong connection parameters ?
- Database not properly created ?

I do not know precisely why watching your attached log error. Can you please send me a more detailed log ?

Many Thanks,
      Tobia Di Pisa

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==

Dott. Ing. Tobia di Pisa
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


2013/2/15 Gianfranco Mura <g.m...@riteco.it>

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To post to this group, send an email to mapstore-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mapstore-developers?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gianfranco Mura

unread,
Feb 19, 2013, 12:40:29 PM2/19/13
to mapstore-...@googlegroups.com, tobia....@geo-solutions.it
Hi Tobia,
thanks for the reply,
recloning the git project the build of geostore work fine. I have complete all the installation and configuration activities deploying geostore, mapstore, mapcomposer, httpproxy, xmlJsonTranslate on my tomcat 7 servlet container. When I go to mapstore url (http://80.86.91.18:8089/mapstore) the server return the message "The server returns HTTP status code 500!
Check the log!
". I haven't found error explanation in the server log files and I think it is a configuration error. If i activate the mapcomposer directly at url http://80.86.91.18:8089/mapcomposer it works. The same error (HTTP status code 500!) is generated activating the mapstore demo downloaded directly on my computer (ubuntu desktop). There is a compatibility problem with ubuntu? I have attached to this post configuration and server log files. Can anyone help me? Thanks in advance

Gianfranco
2013/2/15 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsub...@googlegroups.com.
2013/2/15 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsub...@googlegroups.com.
catalina.2013-02-19_log.txt
catalina_out.txt
config_js.txt
localhost.2013-02-19_log.txt
localhost_access_log.2013-02-19.txt
mapStoreConfig_js.txt

Tobia Di Pisa

unread,
Feb 19, 2013, 12:53:23 PM2/19/13
to mapstore-...@googlegroups.com
Hi Gianfranco,

have you built the GeoStore application using the '-Pextjs' profile. MapStore uses this REST service to manage several request.

Best Regards,

     Tobia Di Pisa
 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==

Dott. Ing. Tobia di Pisa
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


2013/2/19 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.

Gianfranco Mura

unread,
Feb 20, 2013, 6:17:06 AM2/20/13
to mapstore-...@googlegroups.com, tobia....@geo-solutions.it
Hi Tobia,
today i have rebuild geostore using -Pextjs,postgres and all work fine. It is probably better that in the building instructions extjs should be reported as mandatory to connect mapstore and geostore.

For successfully building geostore i have modified the pom.xml in /geostore/src/server for build & test failure errors resolution:

1) in the maven-compiler-plugin configuration: <fork>false</fork>
2) in the maven-surefire-plugin configuration: <forkMode>never</forkMode>

i have set the environment variable MAVEN_OPTS=-Xmx2048m -XX:MaxPermSize=1024m

many thanks for your help.

Gianfranco
2013/2/19 Gianfranco Mura <g.m...@riteco.it>
2013/2/15 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsubscribe...@googlegroups.com.
2013/2/15 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsubscribe...@googlegroups.com.
To post to this group, send an email to mapstore-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
2013/2/19 Gianfranco Mura <g.m...@riteco.it>
2013/2/15 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsubscribe...@googlegroups.com.
2013/2/15 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsubscribe...@googlegroups.com.
To post to this group, send an email to mapstore-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.

Tobia Di Pisa

unread,
Feb 20, 2013, 7:02:30 AM2/20/13
to mapstore-...@googlegroups.com
Hi Gianfranco,

perfect, many thanks for your feedbacks.


Regards,
     Tobia Di Pisa

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==

Dott. Ing. Tobia di Pisa
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


2013/2/20 Gianfranco Mura <g.m...@riteco.it>
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages