2014-10-29 9:09 GMT+01:00 Marek Marczak <mmarczak@anonymised.com>:
OK, I fixed it.
Ok good.
It turns out that java on linux is more memory restricted. I needed to
enlarge default java memory in JAVA_OPTS system variable and also set
bigger PermGen size. I noticed that lastest stable development version has
bigger memory requirements than lastest release version (2.10.3).
Yes you have to set JAVA_OPTS to avoid OutOfMemory error. Like for the
build, you need to set MAVEN_OPTS.
If set you'll have:
[INFO] --- gmaven-plugin:1.0:execute (Check memory settings) @ geoserver ---
[INFO]
Max Heap Memory: 1024.0 MB
Max PermGen Size: 256.0 MB
If not
[INFO] --- gmaven-plugin:1.0:execute (Check memory settings) @ geonetwork
---
[INFO]
Max Heap Memory: -1 MB
Max PermGen Size: -1 MB
[ERROR]
In order for the build to complete both the -Xmx parameter and the
-XX:MaxPermSize= must be set. The e2e tests require this because the start
Geonetwork and run tests against it which takes a lot of memory.
Cmd/Powershell:
$Env:MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
Bash/SH:
export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
develop/stable-develop branch require a bit more memory on startup than
2.10 mainly due to the on-the-fly build/minification of JS and Less files
(related to Wro4j module).
Francois
Best regards,
Marek
W dniu 2014-10-28 o 13:24, Francois Prunayre pisze:
Hi,
2014-10-28 12:26 GMT+01:00 silo <mmarczak@anonymised.com>:
Hello everyone,
I'm trying to compile geonetwork from sources and deploy it on tomcat7
app
server. I used the sources from a stable develop branch and did it step by
step as in manual on geonetwork website. I got all succes messages in
maven
prompt, but the war file is not correct. I can't run the file on my tomcat
serwer. Previously, I downloaded a war file from Sourceforge website and
it
was working perfecty. There is no index html file
in a war created from
sources
/home is the home page and takes care of redirection depending on
browser language, ...
https://github.com/geonetwork/core-geonetwork/blob/stable-develop/web/src/main/webResources/WEB-INF/web.xml#L370
It's normal to not have index.html file.
and h2 databasees wre created (with errors) in main directory (not
in webapps folder!).
h2 db by default is configured with relative path (
https://github.com/geonetwork/core-geonetwork/blob/stable-develop/web/src/main/webapp/WEB-INF/config-db/h2.xml#L18).
Use full path if you want the db to be in a specific location
/app/geonetwork-db for example.
What type of errors do you have when the app starts ?
If you run
cd web
mvn jetty:run
does it work ok ?
Francois
I also tried to compile latest release version
(2.10.3), but I got an error:
[ERROR] Failed to execute goal on project cachingxslt: Could not resolve
dependencies for project
org.geonetwork-opensource:cachingxslt:jar:2.10.3-0:
Failure to find net.sf.saxon:saxon:jar:9.1.0.8b-patch in
http://download.osgeo.org/webdav/geotools/ was cached in the local
repository, resolution will not be reattempted until the update interval
of
geotools has elapsed or updates are forced -> [Help 1]
[ERROR]
Can anyone help me to build a valid war archive from sources? Thank you in
advance.
Best regards,
Marek
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Can-t-build-a-valid-war-archive-from-sources-tp5169905.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
Marek Marczak+48 17 864 24 82
OPGK RZESZÓW S.A.
Rzeszów ul. Geodetów 1, 35-328 Rzeszów
tel. sekr. +48178624816,
tel. centr. +48178642400,
fax +48178621414