Created attachment 917040 [details]
petstore.war renamed as ROOT.war
Description of problem: If you try creating a tar ball on a MaC client and deploy it using binary deployments, the shows errors in the logs for the ._ files that MaC creates while creating a tar ball.
Version-Release number of selected component (if applicable):
Create a tar ball on MaC and deploy it to an OSE application
Steps to Reproduce:
On a MaC client workstation:
rhc app-create javaapp jbossews-2.0 –-no-git
rhc configure-app --app javaapp --no-auto-deploy --keep-deployments 2 --deployment-type binary
mkdir -p build-dependencies/.m2 dependencies/jbossews/webapps repo/.openshift/config
Place your war file (for example petstore.war) in dependencies/jbossews/webapps. Rename the war to ROOT.war or add a ROOT folder with index.html in the above directory.
Add a web.xml file to repo/.openshift/config
tar -czvf ../javaapp-archive.tar.gz ./
rhc deploy --app javaapp --ref ../javaapp-archive.tar.gz
INFO: Deploying web application archive /var/lib/openshift/53b1d796e0b8cdb2860008b8/app-root/runtime/dependencies/jbossews/webapps/._petstore.war
Jun 30, 2014 6:11:09 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/._petstore]
java.util.zip.ZipException: error in opening zip file
However RHC returns success when you deploy the above tar ball.
Just making sure we have the severity set correctly, the deployment of the application actually works, right?
After I realized the issue, I only deployed it from linux. I did not try with MaC again.
After I switched over to Linux, I realized that it won't work without web.xml and I added that. Then it started working.
This looks like it's probably cartridge-specific.
OpenShift Enterprise v2 has officially reached EoL. This product is no longer supported and bugs will be closed.
Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3. https://www.openshift.com/container-platform/
More information can be found here: https://access.redhat.com/support/policy/updates/openshift/