Ah, thanks Andy. Yes, I tried your basex quick start as it seems quite handy.
The application gets correctly created in Openshift, but it is not cloned on the local machine. The first time I tried it cloned it, but then the "git pull" did not work. I'm going to retry with Putty following the link you provided. Thanks for the advice. > I use windows8. Getting all the ssh keys right can be challenging. Are > you > able to create just a simple DIY app? > and then ssh into it. see > https://www.openshift.com/blogs/access-your-application-gear-using-ssh-with-putty > . > Beyond that which of approaches above are you trying? > If it is https://github.com/Quodatum/openshift-basex-quick-start .Which > step fails? > > /Andy > > > > > > On 8 May 2014 17:08, <a.bouc...@no-log.org> wrote: > >> Andy, Dirk, Christian, many thanks for the indications. >> >> However I still have no luck with openshift as whatever I'm doing, the >> ssh >> connection does not want to work. >> >> I tried everything including switching from windows 8 to a windows 7 >> machine, using git BASH, etc, and even using SFTP via filezilla as >> explained here: >> >> ( >> https://www.openshift.com/blogs/using-filezilla-and-sftp-on-windows-with-openshift >> ) >> >> as well as following this advices for windows OS: >> >> https://www.openshift.com/blogs/tips-for-creating-openshift-apps-with-windows >> >> but each time, it says "Permission Denied" or "No supported >> authentication >> methods available (server sent: >> publickey,gssapi-keyex,gssapi-with-mic)". >> >> So it does not want to "git clone" the application to the local machine >> via ssh... >> >> Rather frustrating, but well, I'm patient and open to any suggestion. >> >> >> >> > Andy, >> > >> > thanks for the interesting link! >> > >> > Christian >> > >> > >> > >> > On Thu, May 8, 2014 at 2:10 PM, Andy Bunce <bunce.a...@gmail.com> >> wrote: >> >> Hi Aurelien, >> >> >> >> If you do try the BaseXHTTP server route on OpenShift, rather than >> the >> >> WAR >> >> packaging, this repo may help >> >> https://github.com/Quodatum/openshift-basex-quick-start. By default >> just >> >> RESTXQ is enabled but it is easy to re-able REST and or Webdav. >> >> This uses the OpenShift data directory to provide persistence across >> >> restarts. >> >> >> >> /Andy >> >> >> >> >> >> On 8 May 2014 12:25, Dirk Kirsten <d...@basex.org> wrote: >> >>> >> >>> Hello Aurelien, >> >>> >> >>> how to deploy a WAR file heavily depends on the container you are >> >>> using, >> >>> so there is no general guidance from us. It might be more advisable >> to >> >>> ask on the actual container mailing list (i.e. tomcat, jetty, >> whatever) >> >>> or consult their documentation. >> >>> >> >>> Having said that, some time ago I testes BaseX on OpenShift using >> >>> JBosAS. This documentation actually helped me: >> >>> >> https://openshift.github.io/documentation/oo_cartridge_guide.html#jbossas >> >>> >> >>> I just pushed the repository to github: >> >>> https://github.com/dirkk/openshift-basex >> >>> >> >>> Now, when modifying the RestXQ files I simply edit the files in >> >>> src/main/webapp, commit (git commit) them and by using git push push >> >>> them to openshift. Using maven, OpenShift compiles the WAR file and >> >>> deploys it automatically at http://jbossas-dirkk.rhcloud.com/ >> >>> >> >>> Be ware, that when you use OpenShift, everything is subject to your >> git >> >>> repository, i.e. they might spawn a new process by cloning your >> >>> repository. This means, everything you store on the file system >> which >> >>> is >> >>> not in git is actually not safely stored (you can use S3 or similar >> to >> >>> do so). So this also applies to BaseX when it stores its database >> >>> files. >> >>> >> >>> Also, you might want to take a look at the BaseXHTTP version. In >> this >> >>> case, BaseX runs within a Jetty servlet container and this is as >> simple >> >>> as starting basexhttp. So if you want to be up and running in no >> time, >> >>> this might be your safest bet (if you have a web server were you can >> >>> run >> >>> java). >> >>> >> >>> Cheers, >> >>> Dirk >> >>> >> >>> On 08/05/14 12:41, a.bouc...@no-log.org wrote: >> >>> > Hello, >> >>> > >> >>> > Thanks to the developers for the excellent database software. I >> love >> >>> > basex having used it on windows desktop for some little >> >>> database-driven >> >>> > projects, but now, I'd like to deploy it in the context of a web >> >>> > application, if possible. >> >>> > >> >>> > So I read everything I could find about the topic but didn't find >> a >> >>> > step-by-step guide of how to accomplish it. >> >>> > >> >>> > I'm not familiar with java, but I tried to deploy the downloadable >> >>> BaseX >> >>> > war application on Appfog services, and also using Openshift with >> >>> Tomcat >> >>> > 7. >> >>> > >> >>> > On Appfog, the process of installing the war file (which seemed to >> be >> >>> > straightforward) didn't complete and generated a java console >> error. >> >>> > >> >>> > (cf >> >>> > >> >>> > >> http://stackoverflow.com/questions/12283448/deploy-simple-java-web-application-on-appfog >> ) >> >>> > >> >>> > And on OpenShift, the process of uploading the war file succeeded, >> >>> the >> >>> > console stating that the build was successful, but when going to >> the >> >>> URL >> >>> > of the application, the server generates an internal error HTTP >> >>> status >> >>> > 500... >> >>> > >> >>> > (cf >> >>> > >> >>> > >> https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear >> ) >> >>> > >> >>> > From there, I don't know what to do next, but would really like to >> >>> get a >> >>> > basex web app up and running and interacting with it through the >> HTTP >> >>> > REST API. >> >>> > >> >>> > Thanks for any help in this regards. >> >>> > Aurelien >> >>> > >> >>> > >> >>> >> >>> -- >> >>> Dirk Kirsten, BaseX GmbH, http://basex.org >> >>> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >> >>> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >> >>> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle >> >>> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 >> >> >> >> >> > >> >