joerghoh / cq5-healthcheck

CQ5 Healthcheck code
Apache License 2.0
28 stars 15 forks source link

Not able to build code #42

Closed deepaksha2 closed 11 years ago

deepaksha2 commented 11 years ago

Hi, We are trying to build the code by using command "mvn package". 2 packages get build fine but the package core is giving errors. We are not able to proceed due to it. Below is the error.

Failed to execute goal on project core: Could not resolve dependencies for project de.joerghoh.cq5.healthcheck:core:bundle:1.0.1-SNAPSHOT: Failed to collect dependencies at com.day.cqse:cqse-httpservice:jar:4.1.24: Failed to read artifact descriptor for com.day.cqse:cqse-httpservice:jar:4.1.24: Could not find artifact com.day.cqse:cqse:pom:4.1.24 in adobe-public-releases (http://repo.adobe.com/nexus/content/groups/public) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project core: Could not resolve dependencies for project de.joerghoh.cq5.healthcheck:core:bundle:1.0.1-SNAPSHOT: Failed to collect dependencies at com.day.cqse:cqse-httpservice:jar:4.1.24 at org

alexsaar commented 11 years ago

hi, sorry for the late reply. I just tested the build and deleted the mentioned dependency from my local repo. Everything works fine for me using Maven 3.1.0. the CQSE dependency was successfully downloaded again from the public Adobe Nexus.

Which Maven version do you use. Could you also please check if you can access this artifact via browser at this location: http://repo.adobe.com/nexus/content/groups/public/com/day/cqse/cqse-httpservice/4.1.24/

deepaksha2 commented 11 years ago

Hi Alexander,

Thanks for response. We are able to build the code and install it in AEM. But still we our unable to find "statusPage.html" inside content directory of installed project. Also, instead of apps, app folder has been created. Can you please guide us as to where the html page might reside.

On Tue, Sep 24, 2013 at 1:58 PM, Alexander Saar notifications@github.comwrote:

hi, sorry for the late reply. I just tested the build and deleted the mentioned dependency from my local repo. Everything works fine for me using Maven 3.1.0. the CQSE dependency was successfully downloaded again from the public Adobe Nexus.

Which Maven version do you use. Could you also please check if you can access this artifact via browser at this location: http://repo.adobe.com/nexus/content/groups/public/com/day/cqse/cqse-httpservice/4.1.24/

— Reply to this email directly or view it on GitHubhttps://github.com/joerghoh/cq5-healthcheck/issues/42#issuecomment-24983790 .

Thanks, Deepaksha

alexsaar commented 11 years ago

with the introduction of support for multiple status pages we recently moved the sample pages to /etc/healthstatus. see http://localhost:4502/etc/healthstatus/fullstatus.html for example.

deepaksha2 commented 11 years ago

Hi Alexander,

We are trying to install the health check package on our system by using the following command.

mvn -PautoInstallPackage install

But it is not getting installed.

I have attached the logs being generated. The error that is coming is

HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused

[INFO] HttpMethodDirector - Retrying request

[INFO]

[INFO] Reactor Summary:

[INFO]

[INFO] cq5-healthcheck-1.0.1-SNAPSHOT - Reactor Project .. SUCCESS [1.803s]

[INFO] cq5-healthcheck-1.0.1-SNAPSHOT Bundle ............. SUCCESS [26.680s]

[INFO] cq5-healthcheck-1.0.1-SNAPSHOT Package ............ FAILURE [4.767s]

[INFO]

[INFO] BUILD FAILURE

[INFO]

[INFO] Total time: 40.867s

[INFO] Finished at: Tue Oct 08 02:16:29 CDT 2013

[INFO] Final Memory: 12M/13M

[INFO]

[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:install (install-content-package) on project myproject-content: Connection refused -> [Help 1]

[ERROR]

This is affecting us as we are unable to generate the desired HealthCheck.html page.

Can you please guide us as to what might be going wrong.

On Tue, Sep 24, 2013 at 1:58 PM, Alexander Saar notifications@github.comwrote:

hi, sorry for the late reply. I just tested the build and deleted the mentioned dependency from my local repo. Everything works fine for me using Maven 3.1.0. the CQSE dependency was successfully downloaded again from the public Adobe Nexus.

Which Maven version do you use. Could you also please check if you can access this artifact via browser at this location: http://repo.adobe.com/nexus/content/groups/public/com/day/cqse/cqse-httpservice/4.1.24/

— Reply to this email directly or view it on GitHubhttps://github.com/joerghoh/cq5-healthcheck/issues/42#issuecomment-24983790 .

Thanks, Deepaksha Last login: Tue Oct 8 02:07:34 2013 from lh7u0cnu244b65x.uhc.com


RHN kickstart on 2010-09-17

This is Web Content Management Sandbox To restart Vignette components use bounce_vgn.sh [stop|start] To restart Tomcat Application Server use bounce_tomcat.sh [stop|start]

To check DB connection use check.db

apsrd0015 (vguser):/home/vguser >cd /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject >mvn -PautoInstallPackage install -ksh: mvn: not found [No such file or directory] apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject >cd /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/ap> apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target >mvn --version -ksh: mvn: not found [No such file or directory] apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target >ache-maven-3.1.0-bin/apache-maven-3.1.0 < apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target >export PATH=$PATH:$M2_HOME/bin apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target >mvn --version Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-27 21:15:32-0500) Maven home: /home/vguser/HealthCheck/apache-maven-3.1.0-bin/apache-maven-3.1.0 Java version: 1.6.0_22, vendor: Oracle Corporation Java home: /ebiz/Vignette/Content/8_1/java/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.18-194.11.1.el5", arch: "amd64", family: "unix" apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target >ealthcheck-master/app/target/myproject < apsrd0015 (vguser):/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject >mvn -PautoInstallPackage install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] cq5-healthcheck-1.0.1-SNAPSHOT - Reactor Project [INFO] cq5-healthcheck-1.0.1-SNAPSHOT Bundle [INFO] cq5-healthcheck-1.0.1-SNAPSHOT Package [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building cq5-healthcheck-1.0.1-SNAPSHOT - Reactor Project 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ myproject --- [INFO] Installing /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/pom.xml to /home/vguser/.m2/repository/my-group-id/myproject/1.0-SNAPSHOT/myproject-1.0-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building cq5-healthcheck-1.0.1-SNAPSHOT Bundle 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myproject-bundle --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myproject-bundle --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) @ myproject-bundle --- [INFO] Writing abstract service descriptor /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml with 2 entries. [INFO] Generating 2 Service Component Descriptors to /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myproject-bundle --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myproject-bundle --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ myproject-bundle --- [INFO] Surefire report directory: /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/target/surefire-reports


T E S T S

Running com.mycompany.myproject.SimpleUnitTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.136 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ myproject-bundle --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ myproject-bundle --- [INFO] Installing /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/target/myproject-bundle-1.0-SNAPSHOT.jar to /home/vguser/.m2/repository/my-group-id/myproject-bundle/1.0-SNAPSHOT/myproject-bundle-1.0-SNAPSHOT.jar [INFO] Installing /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/pom.xml to /home/vguser/.m2/repository/my-group-id/myproject-bundle/1.0-SNAPSHOT/myproject-bundle-1.0-SNAPSHOT.pom [INFO] [INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ myproject-bundle --- [INFO] Installing my-group-id/myproject-bundle/1.0-SNAPSHOT/myproject-bundle-1.0-SNAPSHOT.jar [INFO] Writing OBR metadata [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building cq5-healthcheck-1.0.1-SNAPSHOT Package 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myproject-content --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myproject-content --- [INFO] No sources to compile [INFO] [INFO] --- content-package-maven-plugin:0.0.20:check-signature (default-check-signature) @ myproject-content --- [INFO] No signature defined. Skipping signature check. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myproject-content --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/content/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myproject-content --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ myproject-content --- [INFO] No tests to run. [INFO] [INFO] --- content-package-maven-plugin:0.0.20:package (default-package) @ myproject-content --- [INFO] Embedding --- Embedded: groupId=my-group-id,artifactId=myproject-bundle,filter=false,excludeTransitive=false,target=/apps/myproject/install/ --- [INFO] Embedding my-group-id:myproject-bundle:jar:1.0-SNAPSHOT (from /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/bundle/target/myproject-bundle-1.0-SNAPSHOT.jar) -> jcr_root/apps/myproject/install/myproject-bundle-1.0-SNAPSHOT.jar [INFO] Merging /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/content/src/main/content/META-INF/vault/filter.xml with inlined filter specifications. [INFO] Building content-package: /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/content/target/myproject-content-1.0-SNAPSHOT.zip [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ myproject-content --- [INFO] Installing /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/content/target/myproject-content-1.0-SNAPSHOT.zip to /home/vguser/.m2/repository/my-group-id/myproject-content/1.0-SNAPSHOT/myproject-content-1.0-SNAPSHOT.zip [INFO] Installing /home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/content/pom.xml to /home/vguser/.m2/repository/my-group-id/myproject-content/1.0-SNAPSHOT/myproject-content-1.0-SNAPSHOT.pom [INFO] [INFO] --- content-package-maven-plugin:0.0.20:install (install-content-package) @ myproject-content --- [INFO] Installing myproject-content (/home/vguser/cq5-healthcheck-master/cq5-healthcheck-master/app/target/myproject/content/target/myproject-content-1.0-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp [INFO] HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused [INFO] HttpMethodDirector - Retrying request [INFO] HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused [INFO] HttpMethodDirector - Retrying request [INFO] HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused [INFO] HttpMethodDirector - Retrying request [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] cq5-healthcheck-1.0.1-SNAPSHOT - Reactor Project .. SUCCESS [1.803s] [INFO] cq5-healthcheck-1.0.1-SNAPSHOT Bundle ............. SUCCESS [26.680s] [INFO] cq5-healthcheck-1.0.1-SNAPSHOT Package ............ FAILURE [4.767s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 40.867s [INFO] Finished at: Tue Oct 08 02:16:29 CDT 2013 [INFO] Final Memory: 12M/13M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:install (install-content-package) on project myproject-content: Connection refused -> [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 -rf :myproject-content

alexsaar commented 11 years ago

unless you created your own profile there is no "autoInstallPackage" profile but just a "installPackages". This will install into a local installation with default port (4502) and admin account (admin:admin). If you want to deploy to a different host or port or have changed the admin pwd you can set the following properties via command line as JVM props.

deepaksha2 commented 11 years ago

Hi Alexander,

The package has been installed...still there is no fullstatus.html page. also when we are trying to do further configurations , it is not letting us save it. I hve attached the screenshot.

On Thu, Oct 10, 2013 at 3:21 PM, Alexander Saar notifications@github.comwrote:

unless you created your own profile there is no "autoInstallPackage" profile but just a "installPackages". This will install into a local installation with default port (4502) and admin account (admin:admin). If you want to deploy to a different host or port or have changed the admin pwd you can set the following properties via command line as JVM props.

  • depl.user (default to admin)
  • depl.password (defaults to admin)
  • depl.host (defaults to localhost)
  • depl.port (defaults to 4502)

    — Reply to this email directly or view it on GitHubhttps://github.com/joerghoh/cq5-healthcheck/issues/42#issuecomment-26040991 .

Thanks, Deepaksha

alexsaar commented 11 years ago

what URL do you use to access the fullstatus.html?

deepaksha2 commented 11 years ago

Hi Alexander,

We have successfully installed healthcheck page on author instance. Now we are trying to install it on publish instance. It is installed and healthcheck page is coming. But some values are not getting populated. Are there any specific config changes that need to be done to get it working properly for publish mode? I am attaching the screen shot for healthcheck page on publish instance.

On Thu, Oct 17, 2013 at 1:10 PM, Alexander Saar notifications@github.comwrote:

what URL do you use to access the fullstatus.html?

— Reply to this email directly or view it on GitHubhttps://github.com/joerghoh/cq5-healthcheck/issues/42#issuecomment-26484566 .

Thanks, Deepaksha