This requires that you have support for running 32bit apps. On rpm based
systems, try running:
yum install glibc.i686
On 03/25/2015 06:28 PM, Peter Nix wrote:
I checked out the various projects for xwiki
(-commons, -rendering,
-platform, and -enterprise) from github yesterday, and have successfully
built all but enterprise project, which fails on the build step for the
windows installer. The error printed alludes to needing a valid JRE, but
according to my java version information, my jre should be fine.
I'm using ubuntu 12.04 LTS, and have tried with and without the unix
profile flag (-Punix) as specified on
http://dev.xwiki.org/xwiki/bin/view/Community/Building (either way gives
the same behavior).
Any thoughts on how to fix this?
- Peter
$ java -version
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
$ mvn -v
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-46-generic", arch:
"amd64", family:
"unix"
$ mvn clean install -DskipTests=true
....
[INFO] --- maven-dependency-plugin:2.10:unpack (unpack) @
xwiki-enterprise-installer-windows ---
[INFO] Configured Artifact: launch4j:launch4j:linux:3.0.2:zip
[INFO] Unpacking
/home/likewise-open/ANT/nixpeter/.m2/repository/launch4j/launch4j/3.0.2/launch4j-3.0.2-linux.zip
to
/home/likewise-open/ANT/nixpeter/Projects/xwiki/xwiki-enterprise/xwiki-enterprise-installers/xwiki-enterprise-installer-windows/target/dependency
with includes "" and excludes ""
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (run-launch4j) @
xwiki-enterprise-installer-windows ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks
main:
Compiling resources
Generated resource file...
LANGUAGE 0, 1
2 RCDATA BEGIN "1.7.0\0" END
18 RCDATA BEGIN "1\0" END
1 ICON DISCARDABLE
"~/Projects/xwiki/xwiki-enterprise/xwiki-enterprise-installers/xwiki-enterprise-installer-windows/target/classes/xe.ico"
10 RCDATA BEGIN "XWiki Windows Installer\0" END
21 RCDATA BEGIN "http://java.com/download\0" END
20 RCDATA BEGIN "32\0" END
9 RCDATA BEGIN "true\0" END
101 RCDATA BEGIN "An error occurred while starting the application.\0" END
102 RCDATA BEGIN "This application was configured to use a bundled Java
Runtime Environment but the runtime is missing or corrupted.\0" END
103 RCDATA BEGIN "This application requires a Java Runtime Environment\0"
END
104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime
Environment installation or the runtime is corrupted.\0" END
17 RCDATA BEGIN "true\0" END
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] XWiki Enterprise - Parent POM ..................... SUCCESS [2.484s]
[INFO] XWiki Enterprise - Distribution Archetype ......... SUCCESS [0.911s]
[INFO] XWiki Enterprise - UI ............................. SUCCESS [0.081s]
[INFO] XWiki Enterprise - UI - Admin User ................ SUCCESS [1.013s]
[INFO] XWiki Enterprise - UI - Main wiki preferences ..... SUCCESS [0.193s]
[INFO] XWiki Enterprise - UI - Common .................... SUCCESS
[3:07.873s]
[INFO] XWiki Enterprise - UI - Wiki ...................... SUCCESS [14.006s]
[INFO] XWiki Enterprise - Distribution - Parent POM ...... SUCCESS [0.063s]
[INFO] XWiki Enterprise - UI - Wiki All .................. SUCCESS [8.231s]
[INFO] XWiki Enterprise - UI - Main wiki ................. SUCCESS [19.991s]
[INFO] XWiki Enterprise - Data - Parent POM .............. SUCCESS [2.157s]
[INFO] XWiki Enterprise - Data - HSQLDB .................. SUCCESS
[2:44.054s]
[INFO] XWiki Enterprise - UI - Main Wiki All ............. SUCCESS [8.391s]
[INFO] XWiki Enterprise - Web ............................ SUCCESS
[1:55.462s]
[INFO] XWiki Enterprise - Distribution - Jetty ........... SUCCESS [2.178s]
[INFO] XWiki Enterprise - Distribution - Jetty - HSQLDB .. SUCCESS [16.062s]
[INFO] XWiki Enterprise - Installers - Parent POM ........ SUCCESS [0.028s]
[INFO] XWiki Enterprise - Installers - Generic ........... SUCCESS [31.620s]
[INFO] XWiki Enterprise - Installers - Windows ........... FAILURE [0.713s]
[INFO] XWiki Enterprise - Installer - Debian ............. SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Common .... SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - MySQL - Common SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Postgres SQL - Common
SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Tomcat .... SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Tomcat - Common SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Tomcat 7 - MySQL SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Tomcat 7 - Postgres SQL
SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Tomcat 8 - MySQL SKIPPED
[INFO] XWiki Enterprise - Installer - Debian - Tomcat 8 - Postgres SQL
SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9:40.418s
[INFO] Finished at: Wed Mar 25 15:10:01 PDT 2015
[INFO] Final Memory: 123M/983M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run (run-launch4j) on
project xwiki-enterprise-installer-windows: An Ant BuildException has
occured: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException:
java.io.IOException: Cannot run program
"/home/likewise-open/ANT/nixpeter/Projects/xwiki/xwiki-enterprise/xwiki-enterprise-installers/xwiki-enterprise-installer-windows/target/dependency/bin/windres":
error=2, No such file or directory
[ERROR] around Ant part ...<launch4j
configFile="/home/likewise-open/ANT/nixpeter/Projects/xwiki/xwiki-enterprise/xwiki-enterprise-installers/xwiki-enterprise-installer-windows/target/classes/launch4j.xml"/>...
@ 6:183 in
/home/likewise-open/ANT/nixpeter/Projects/xwiki/xwiki-enterprise/xwiki-enterprise-installers/xwiki-enterprise-installer-windows/target/antrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :xwiki-enterprise-installer-windows
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs