how to add 3rd party jars in cloud foundry server - cloud-foundry

I am new to Cloud Foundry, I created an account, and created a Java application.
Now I need to add 3rd party jar and lib to tomcat/lib folder and add lib to environment variable of that server.
Is this possible in cloud foundry?
Thanks

To do what you are trying to do, instead of deploying your app as a Java app, you will have to do a standalone deployment along with your custom Tomcat.
Take a look here for explanation : http://blog.cloudfoundry.com/2012/05/11/running-standalone-web-applications-on-cloud-foundry/
Let me know if you need any other help.
Thanks,
- Hitesh

You can create a new War file for your application after normally adding the new 3rd party jar and then redeploy the application. That will update your application on cloudfoundry.
Let me know if that is what you were looking for.
Thanks,
- Hitesh

Related

How to create a Module for AWS SDK

I am trying to develop a custom module for AWS-IOT, Here i got module to access AWS services but the existing module is not supported for AWS-IOT which is the new service launched by Amazon.
I have downloaded the AWS-SDK but here i am unable to find .m files.
Please let me know if you need more info.
Thanks, Rakesh Kalwa.
If AWS marketplace modules is not working then you maybe try another open source module ti.aws. please check that.
And if still not working then you can also create your new module based on AWS SDK. for modules development help Please visit Extending Titanium Mobile.

Auto-reloading WAR in Jetty standalone

I have a WAR deployed to Jetty 9.0.0.M3. I am trying to figure out what I need to set in my context in order to be able to have it reloaded every time I upload an updated war file (without having to restart Jetty).
I had a look at the docs, but I'm afraid I couldn't find what I was looking for. I only know how to do this with the embedded Jetty Maven plugin, but not with the standalone.
Any help would be appreciated! Thanks.
The key is in the deployer. You need to wire up the deployment manager functionality and have it manage the starting of the webapp.
http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java
The jetty xml files are effectively a thin skin over java so look the following xml file which is what jetty uses for the traditional webapp startup of our distribution.
http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-deploy/src/main/config/etc/jetty-deploy.xml
This ought to get you fixed up.

Does it possible to deploying a none-web application on Cloud Foundry?

plz tell me...
I want to deploy a pure java code like jar file, NOT web application, on Cloud Foundry.
is it possible or not?
Yes, it is. This is called "Standalone apps" and is described here : http://blog.cloudfoundry.com/2012/05/01/cloud-foundry-improves-support-for-background-processing/
Just choose that kind of framework when deploying. You'll need to provide the startup script for your app, ie the command that spawns java

Issues while deploying tomcat 7 in cloudfoundry

I have a java Spring application that I want to deploy to Cloudfoundry on Tomcat7. I am newbie to Cloudfoundry and followed the steps mentioned here but when I issue vmc push command I am getting warning Can't determine the Application Type with no options provided. Any idea to resolve this ?
C:\apps\tomcat7>vmc push
Would you like to deploy from the current directory? [Yn]:
Application Name: myApp77
[WARNING] Can't determine the Application Type.
Select Application Type:
Dan's comment is correct. You should be given the option to choose standalone app.
You may want to have a look at https://github.com/ericbottard/cloudfoundry-tomcat-7 which is a distribution of tomcat already customized (and tested) as described in the blog post you mention.
Even better, if you're using Maven, just follow the README and you'll be able to deploy your war project automatically as a tomcat7 standalone.
Hope this helps,
This actually sounds correct to me, in the list of application types should be an entry named "standalone application". Select that one and then provide the command you wish to start the application with, in this case it's 'bin/startup.sh'

Where does the tomcat axis file server-config.wsdd come from?

Part of our system provides a web service through apache tomcat, the service is referenced in the server-config.wsdd file. Unfortunately nobody can remember how it got in there.
The apache set up has changed, and I need to update the system for the new configuration. What magic keywords can I google for to help me work out how and why it got into the existing server-config.wsdd, and how it might fit into the new server-config.wsdd
The server-config.wsdd file is generated by the wsdl2java tool from Axis. So, some developer used the tool and copied the file inside your Tomcat conf, where it belongs.
The server-config.wsdd is created when you deploy your web service by running
java org.apache.axis.client.AdminClient \deploy.wsdd
my knowledge says that it is hardcoded... and by using java org.apache.axis.client.AdminClient \deploy.wsdd or by explicitly invoking it through an ant script you can embody it to the server-config.wsdd and deploy the service