compile demo version fails out of the box

85 views
Skip to first unread message

Hippo_Beginner

unread,
Dec 18, 2016, 5:14:42 AM12/18/16
to Hippo Community
Hi All
I am new to this group and to Hippo
I download the demo site, and mvn clear verify ends up with build failure. it is failing out of the box. 
Any idea ?
 
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GoGreen ............................................ SUCCESS [01:02 min]
[INFO] GoGreen Bootstrap .................................. SUCCESS [  0.138 s]
[INFO] GoGreen Bootstrap Configuration .................... SUCCESS [ 18.351 s]
[INFO] GoGreen Bootstrap Content .......................... SUCCESS [  1.687 s]
[INFO] GoGreen Site ....................................... FAILURE [01:19 min]
[INFO] GoGreen Bootstrap Web Files ........................ SKIPPED
[INFO] GoGreen CMS ........................................ SKIPPED
[INFO] GoGreen Essentials ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:42 min
[INFO] Finished at: 2016-12-18T10:40:12+02:00
[INFO] Final Memory: 33M/276M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project gogreen-site: Compilation failure
[ERROR] javac: invalid target release: 1.8
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
[ERROR] -> [Help 1]

Ivo Bronsveld

unread,
Dec 18, 2016, 5:29:12 AM12/18/16
to Hippo Community
Hi,

This is because you are not using Java 8. This is required.

Hope this helps!
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

Hippo_Beginner

unread,
Dec 18, 2016, 7:17:16 AM12/18/16
to Hippo Community
Hi
You are correct, I upgraded and it finished the build compile with success 
now I am running the mvn - P cargo.run and it hangs, this is what the screen output is


[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GoGreen 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-versions) @ gogreen ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:regex-property (property-commandline-offline) @ gogreen ---
[INFO] No match to regex '"true"' found in '"false"'. The initial value '"false"' is left as-is...
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:regex-property (property-commandline-online) @ gogreen ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ gogreen ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2
[INFO] Storing buildNumber: -1 at timestamp: 1482062866459
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- cargo-maven2-plugin:1.4.19:start (cargo-run) @ gogreen ---
[INFO] [2.ContainerStartMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.4.19 for container tomcat8x
[INFO] [talledLocalContainer] Tomcat 8.x starting...
[INFO] [stalledLocalDeployer] Deploying [C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2/cms/target/cms.war] to [C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2\target/tomcat8x/webapps]...
[INFO] [stalledLocalDeployer] Deploying [C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2/site/target/site.war] to [C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2\target/tomcat8x/webapps]...
[INFO] [stalledLocalDeployer] Deploying [C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2/essentials/target/essentials.war] to [C:\Users\eyal\Documents\Docker_CMS\developer-trail-11.0.2-iteration-2\developer-trail-11.0.2-iteration-2\target/tomcat8x/webapps]...
[WARNING] [talledLocalContainer] org.codehaus.cargo.container.ContainerException: Port number 8009 (defined with the property cargo.tomcat.ajp.port) is in use. Please free it on the system or set it to a different port in the container configuration.
[ERROR] Starting container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@684b31de] failed, now stopping container
[INFO] [talledLocalContainer] Tomcat 8.x is stopping...
[INFO] [talledLocalContainer] Listening for transport dt_socket at address: 8000
[INFO] [talledLocalContainer] 18-Dec-2016 14:07:57.031 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Could not contact localhost:8205. Tomcat may not be running.
[INFO] [talledLocalContainer] 18-Dec-2016 14:07:57.033 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Catalina.stop:
[INFO] [talledLocalContainer]  java.net.ConnectException: Connection refused: connect
[INFO] [talledLocalContainer]   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
[INFO] [talledLocalContainer]   at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
[INFO] [talledLocalContainer]   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[INFO] [talledLocalContainer]   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[INFO] [talledLocalContainer]   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[INFO] [talledLocalContainer]   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
[INFO] [talledLocalContainer]   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[INFO] [talledLocalContainer]   at java.net.Socket.connect(Socket.java:589)
[INFO] [talledLocalContainer]   at java.net.Socket.connect(Socket.java:538)
[INFO] [talledLocalContainer]   at java.net.Socket.<init>(Socket.java:434)
[INFO] [talledLocalContainer]   at java.net.Socket.<init>(Socket.java:211)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:450)
[INFO] [talledLocalContainer]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] [talledLocalContainer]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [talledLocalContainer]   at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)
[INFO] [talledLocalContainer]



Thank you in advance
Eyal

Ivo Bronsveld

unread,
Dec 18, 2016, 7:21:30 AM12/18/16
to Hippo Community
There is another process using port 8009, probably another tomcat server. Hippo uses cargo to startup a new tomcat server. Does this help?

Hippo_Beginner

unread,
Dec 18, 2016, 7:26:31 AM12/18/16
to Hippo Community
Hi Ivo
we do not use port 8009 , this is what confused us. 
where can we define the Hippo port before we run the mvn -P cargo.run  ?
Thank you
Eyal

Marijan Milicevic

unread,
Dec 18, 2016, 12:52:22 PM12/18/16
to hippo-c...@googlegroups.com
On Sun, Dec 18, 2016 at 1:26 PM, Hippo_Beginner <eya...@openlegacy.com> wrote:
Hi Ivo
we do not use port 8009 , this is what confused us. 

it might be used by an previous, hanging tomcat or tomcat cargo instance 


where can we define the Hippo port before we run the mvn -P cargo.run  ?

you can change JVM parameters  of  cargo setup as described here:
cheers
marijan


To post to this group, send email to hippo-community@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages