cargocpc timeout on Hello World tutorial

538 views
Skip to first unread message

Monte Hatch

unread,
Feb 19, 2016, 10:42:59 AM2/19/16
to Hippo Community
I am attempting to follow the Hello World tutorial and am running into the same error whenever I try to run it.

*** [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.13:start (cargo-run) on project gogreenproject: Execution cargo-run of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.13:start failed: Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown. ***

I have used the maven build, created a new project through eclipse, and downloaded the zip from GitHub. All three projects build fine, but when I run mvn -Pcargo.run -Drepo.path=storage I get the above timeout error.

I've tried looking around to set the timeout higher, just to see what happens. in conf/context.xml I added:

<Resource name="UserTransaction" type="javax.transaction.UserTransaction" auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="300"/>



However, when the tomcat container is built and added to the target folder it gets overridden...
target/tomacat8x/conf/context.xml

...
 
 <Resource name="UserTransaction" type="javax.transaction.UserTransaction" auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="300"/>
 
<Resource name="UserTransaction" type="javax.transaction.UserTransaction" auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>


When I look in the tomcat logs I get:

19-Feb-2016 10:22:24.065 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
19-Feb-2016 10:22:24.177 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Feb-2016 10:22:24.190 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
19-Feb-2016 10:22:24.201 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Feb-2016 10:22:24.202 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1790 ms
19-Feb-2016 10:22:24.370 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
19-Feb-2016 10:22:24.371 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23
19-Feb-2016 10:22:24.614 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\cms.war
19-Feb-2016 10:28:01.390 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\cms.war has finished in 336,773 ms
19-Feb-2016 10:28:01.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\site.war
19-Feb-2016 10:28:01.454 INFO [localhost-startStop-1] org.apache.catalina.realm.JAASRealm.setUseContextClassLoader Setting useContextClassLoader = true
19-Feb-2016 10:31:58.469 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\site.war has finished in 237,055 ms
19-Feb-2016 10:31:58.481 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\essentials.war

...Then the process is interrupted with timeout.

It is extremely frustrating as I am attempting to explore and learn Hippo, but cannot even get the tutorial to run... I followed every step carefully. This is very disappointing.

Minos Chatzidakis

unread,
Feb 22, 2016, 4:14:36 AM2/22/16
to Hippo Community
Hi Monte,

Try changing the timeout by following the instructions at [1]

On Fri, Feb 19, 2016 at 4:42 PM, Monte Hatch <ha...@staff.acm.org> wrote:
I am attempting to follow the Hello World tutorial and am running into the same error whenever I try to run it.

*** [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.13:start (cargo-run) on project gogreenproject: Execution cargo-run of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.13:start failed: Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown. ***

I have used the maven build, created a new project through eclipse, and downloaded the zip from GitHub. All three projects build fine, but when I run mvn -Pcargo.run -Drepo.path=storage I get the above timeout error.

I've tried looking around to set the timeout higher, just to see what happens. in conf/context.xml I added:

<Resource name="UserTransaction" type="javax.transaction.UserTransaction" auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="300"/>


No, this has no effect on cargo..

Are you running the tutorial on a slow computer? Are you getting the timeout at the beginning of the tutorial or near the end? 

When Hippo starts up it initialises sample content and configuration. Sometimes, if this content is too large, the timeout needs to be increased. It kinda surprises me that you're getting a timeout with the HelloWorld tutorial since there's not a lot of content in there. Anyway, try increasing the timeout with [1].


hth
Minos
--
 


However, when the tomcat container is built and added to the target folder it gets overridden...
target/tomacat8x/conf/context.xml

...
 
 <Resource name="UserTransaction" type="javax.transaction.UserTransaction" auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="300"/>
 
<Resource name="UserTransaction" type="javax.transaction.UserTransaction" auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>


When I look in the tomcat logs I get:

19-Feb-2016 10:22:24.065 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
19-Feb-2016 10:22:24.177 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Feb-2016 10:22:24.190 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
19-Feb-2016 10:22:24.201 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
19-Feb-2016 10:22:24.202 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1790 ms
19-Feb-2016 10:22:24.370 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
19-Feb-2016 10:22:24.371 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23
19-Feb-2016 10:22:24.614 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\cms.war
19-Feb-2016 10:28:01.390 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\cms.war has finished in 336,773 ms
19-Feb-2016 10:28:01.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\site.war
19-Feb-2016 10:28:01.454 INFO [localhost-startStop-1] org.apache.catalina.realm.JAASRealm.setUseContextClassLoader Setting useContextClassLoader = true
19-Feb-2016 10:31:58.469 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\site.war has finished in 237,055 ms
19-Feb-2016 10:31:58.481 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive O:\eclipse\gogreenproject\target\tomcat8x\webapps\essentials.war

...Then the process is interrupted with timeout.

It is extremely frustrating as I am attempting to explore and learn Hippo, but cannot even get the tutorial to run... I followed every step carefully. This is very disappointing.

--
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.



--

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - Inc. 71 Summer Street, 2nd Floor, MA 02110


--
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.



--

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - Inc. 71 Summer Street, 2nd Floor, MA 02110

Reply all
Reply to author
Forward
0 new messages