Jelastic, deploy DropWizard application - dropwizard

I have a Dropwizard application that works fine locally, but I can not figure out how to deploy it into my Jelastic environment.
I read "Hosting Spring Boot Standalone and Clustered Java Applications with Jelastic Cloud" tutorial but seems like it is more focused on Spring Boot applications. To run my DropWizard app I need to execute
java -jar myJar.jar server config.yml
but from the tutorial it seems that Elastic just executes the jar without providing "server" and "config.yml" parameters.
So when I upload and deploy my jar file (I tried both, jar and zip approaches) all I can see in the output is
Node ID : XXXXX
-----------------------
Deploy failed
/opt/repo/jelastic/scripts/deploy.sh line 66 clearCache command not found
zipinfo cannot find or open /, /.zip or /.ZIP.
zipinfo cannot find or open /, /.zip or /.ZIP.
Error Nothing to run
and SpringBoot log is empty.
Can you please tell me is there a way to deploy a DropWizard application, or the only way to deploy it is using docker registry?

To provide parameters to your application you need to edit file variables.conf from your dashboard, then just restart the application

Related

how to access the application deployed in openshift3 (wildfly server)

I have deployed the application in my local wildfly server and able to access my application through the url (http://127.0.0.1:8080/dhana/.
I have deployed the same application in openshift3 starter (new) and the build & deployment is successful.
It showing me the service url as ( http://dhanabalan-dhana.a3c1.starter-us-west-1.openshiftapps.com), But when I tried to hit this link it shows as below
Looks like server is up and running, Can anyone guide me to access the application?
Do I need to specify any port (8080) here?
Note: ROOT.war is the deployed file

Not able to configure Jenkins to deploy a spring boot application on cloud foundry

I have a Spring Boot application that exposes a REST api (http://localhost:8080/hello-world-rest-demo/api/hello) and prints Hello World string.
I have successfully deployed this application on both local and remote Tomcat through Jenkins and it is working fine without any issues. I have also deployed it to my Cloud Foundry account using cf push command through CLI after creating the manifest.yml file successfully and is working a expected (https://hello-world-rest-demo.cfapps.io/api/hello returns 200 status code and prints Hello World).
However, the problem is that my Jenkins integration with Cloud Foundry is not working as expected and I am not able to deploy it through Jenkins (running on a separate physical machine which does not have Cloud Foundry CLI installed).
Not sure what am I missing here.
manifest.yml
---
applications:
- name: hello-world-rest-demo
path: target/hello-world-rest-demo.war
You need to give Cloud Foundry API Endpoint for Target. For Pivotal Web Services, API Endpoint is https://api.run.pivotal.io
Got it working!
Changed the target url to: https://api.run.pivotal.io

Can't get highcharts export server working using Java

everyone,
I followed instructions on highcharts export server. And my test environment is Ubuntu Server, tomcat 7.x, java 1.7.x, the latest highcharts export server code cloned by git. No problem occurred during mvn install and mvn clean package. And soem settings of my app-convert.properties is
port=8080 # the same port with my tomcat
exec = /home/{my user name}/phantomjs-1.9.1-linux-x86_64/bin/phantomjs
And from the logs of Tomcat, I can see that phantomjs is started and listening on port 8080. Also when I access http://{myservername}:8080/highchars-export-web/, it's loaded correctly, even when I click 'Generate Image' button, it gave me a file named 'Charts.png'. However, the image's size is 1kb, not the one as getting from http://export.highcharts.com/demo. I don't know what I am missing. I need you guys help on this.
Best wishes,
Arthur
Pick a different port other than the one your tomcat (or other service) is listening on. That port you set in the app.properties files is for the phatomjs service to listen on.

grails Two application deploy on tomcat Server heapSpace issue

I have two grails(2.1.1) project deploy on the one tomcat(7.0.39).
I deployed a project on tomcat server, its worked but when i deployed other project on same tomcat , its generates heap Space error and and stop the tomcat server.
I have some idea to ignore this error by setting JAVA_OPTS. But I didn't have any rights to access Tomcat/bin directory.

Unable to run Selenium RC server as windows service

I have followed this link to run Selenium Server as a windows service: http://www.claytonstechnobabble.com/2011/08/run-any-application-as-windows-service.html
The service gets installed successfully but when I try to run it it gives error:
"The SeleniumRC service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
can you guys help me on that asap? what am I missing?
This is the selenium server file that I am trying to run: "selenium-server-standalone-2.5.0.jar"
Ali, you might try capturing the output from the service. Since the Java app is designed to be run in console mode, there is likely to be some useful explanation if you can capture std out and std err. Running the service with a wrapper like Java Service Launcher will provide that functionality to log the error information: http://jslwin.sourceforge.net/
Create a bat file containing
//cd Location of file
java -jar selenium-server-standalone-2.5.0.jar
then use this bat file to execute in service.

Resources