Hide Forgot
Description of problem: I build and test the project local, it works well. It can run locally and build a ROOT.war. Then git-push the src/ and pom.xml to the server. The server will auto maven clean package deploy. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.deploy a jboss project use maven build 2.The website is the orgin openshift default page. So there is no deploy process. 3.Download the ROOT.war from openshift , git-push it and it works. Actual results: remote: [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ virtual-judge --- remote: [INFO] Changes detected - recompiling the module! remote: [INFO] Compiling 87 source files to /var/lib/openshift/52959c3a5004463a090003ad/app-root/runtime/repo/target/classes remote: [INFO] remote: [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ virtual-judge --- remote: [INFO] Using 'UTF-8' encoding to copy filtered resources. remote: [INFO] skip non existing resourceDirectory /var/lib/openshift/52959c3a5004463a090003ad/app-root/runtime/repo/src/test/resources remote: [INFO] remote: [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ virtual-judge --- remote: [INFO] No sources to compile remote: [INFO] remote: [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ virtual-judge --- remote: [INFO] Tests are skipped. remote: [INFO] remote: [INFO] --- maven-war-plugin:2.3:war (default-war) @ virtual-judge --- remote: [INFO] Packaging webapp remote: [INFO] Assembling webapp [virtual-judge] in [/var/lib/openshift/52959c3a5004463a090003ad/app-root/runtime/repo/target/virtual-judge] remote: [INFO] Processing war project remote: [INFO] Copying webapp resources [/var/lib/openshift/52959c3a5004463a090003ad/app-root/runtime/repo/src/main/webapp] remote: [INFO] Webapp assembled in [3646 msecs] remote: [INFO] Building war: /var/lib/openshift/52959c3a5004463a090003ad/app-root/runtime/repo/target/ROOT.war remote: [INFO] ------------------------------------------------------------------------ remote: [INFO] BUILD SUCCESS remote: [INFO] ------------------------------------------------------------------------ remote: [INFO] Total time: 27.785s remote: [INFO] Finished at: Wed Nov 27 02:46:07 EST 2013 remote: [INFO] Final Memory: 12M/162M remote: [INFO] ------------------------------------------------------------------------ remote: [WARNING] The requested profile "openshift" could not be activated because it does not exist. remote: Preparing build for deployment remote: Deployment id is cf89340d remote: Activating deployment remote: Starting MySQL cartridge remote: Starting PHPMyAdmin cartridge remote: Deploying JBoss remote: Starting jbossas cartridge remote: Found 127.6.108.1:8080 listening port remote: Found 127.6.108.1:9999 listening port remote: /var/lib/openshift/52959c3a5004463a090003ad/jbossas/standalone/deployments /var/lib/openshift/52959c3a5004463a090003ad/jbossas remote: CLIENT_MESSAGE: Artifact: ./ROOT.war is still deploying remote: /var/lib/openshift/52959c3a5004463a090003ad/jbossas remote: Artifacts deployed: ./ROOT.war remote: Result: success remote: Activation status: success remote: Deployment completed with status: success To ssh://vjudge-yongwm.rhcloud.com/~/git/vjudge.git/ c57c126..acab034 master -> master The website is the orgin openshift default page. So there is no deploy process. Expected results: Then I sftp to download the openshift build ROOT.war and delete the pom.xml and put the ROOT.war to deployment, the git-push. It works. 2 files changed, 0 insertions(+), 260 deletions(-) create mode 100755 deployments/ROOT.war delete mode 100755 pom.xml Counting objects: 6, done. Delta compression using up to 8 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 21.21 MiB | 75 KiB/s, done. Total 4 (delta 0), reused 0 (delta 0) remote: Stopping MySQL cartridge remote: Stopping PHPMyAdmin cartridge remote: Waiting for stop to finish remote: Stopping jbossas cartridge remote: Sending SIGTERM to jboss:200190 ... remote: Building git ref 'master', commit 2f8dc88 remote: Preparing build for deployment remote: Deployment id is 52a38156 remote: Activating deployment remote: Starting MySQL cartridge remote: Starting PHPMyAdmin cartridge remote: Deploying JBoss remote: Starting jbossas cartridge remote: Found 127.6.108.1:8080 listening port remote: Found 127.6.108.1:9999 listening port remote: /var/lib/openshift/52959c3a5004463a090003ad/jbossas/standalone/deployments /var/lib/openshift/52959c3a5004463a090003ad/jbossas remote: CLIENT_MESSAGE: Artifact: ./ROOT.war is still deploying remote: CLIENT_MESSAGE: Artifact: ./ROOT.war is still deploying remote: CLIENT_MESSAGE: Artifact: ./ROOT.war is still deploying remote: /var/lib/openshift/52959c3a5004463a090003ad/jbossas remote: Artifacts deployed: ./ROOT.war remote: Result: success remote: Activation status: success remote: Deployment completed with status: success To ssh://vjudge-yongwm.rhcloud.com/~/git/vjudge.git/ acab034..2f8dc88 master -> master Website is working. Additional info: Because I'm use Windows to build it using Oracle Java. Openshift uses OpenJDK on Redhat. So if I deploy the local build ROOT.war, it works but something wrong.
I'm not sure what kind of infomation is usefull for this bug.
Same case on Tomcat 7. Maybe I'm missing some marker?