I am newbie to websphere.
I need to automate deployment of my war file on to the websphere using ant or shell script.
That ant target/ shell command should deploy and install my war.
Any suggestions?
IBM provide a set of ant tasks for deploying applications to websphere. Take a look at this answer:
Example of a build.xml for an EAR that deploys in WebSphere 6
Related
How can java standalone client can be implemented for remotely deploying war file to ibm liberty 20.0.0.x?
No documentation found for standalone deployment script at https://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/cwlp_server_clusters.html
Any modifications should be done to war before deploy to ibm liberty?
i have build a war file through jenkins by using maven. now i have to build that war file to 12 jboss servers after finish the build please help me how to achieve this
thanks in advance
For multiple deployments, you better not use direct Jenkins features.
Instead you should use a configuration tool such as Ansible, Chef or Puppet.
I followed this tutorial http://www.mastertheboss.com/jboss-maven/jboss-maven-example-building-a-java-ee-6-application/ in order to have a simple web application to better understand Java EE and JBOSS. I set up the example project (by archetype) and compiled it.
However, I am stuck after running mvn compile. I want to deploy my application as a war file to my JBOSS webroot directory (in my case /usr/share/jboss-as/standalone/deployments/).
I think mvn package and mvn install must be executed. Where can I specify that I want a war file and that it should be copied to my deployment location on JBOSS?
Obviously, I can use the jboss maven plugin http://docs.jboss.org/jbossas/7/plugins/maven/latest/, which is addressed via console
jboss-as:deploy
Configuration is read from the POM file.
We are using Jenkins in our project for build and deployment on dev environments. I have sucessfullly created a war file using maven in jenkins and now I have to create another job to deploy that war file into the weblogic server.
However, I am not aware of the required steps for configuring this job in jenkins. Will it be a matter of just invoking a maven deploy command? Can some one please tell me what will be the required steps to deploy a war file into weblogic 10.3.5 using jenkins?
edit : The approach we are following is after creating the war file we are cheking the war file created into svn and then the deploy job will take the war file from there and deploy it into the weblogic. Does some one thing there is a better way of doing thhings than this?
Thanks,
Manish
Use the Jenkins "Weblogic Deployer Plugin". This will do the deployment for you. All you need to do is specify:
Task Name: Give the deployment a name; Eg. Webapp WL Deployment
Environment: Specify the environment you are deploying to. Make sure you are using the AdminServer port number and not the Managed Server port number; default is 7001
Name: The name weblogic should use for your webapp to display the deployed component
Built resource to deploy: The file name of your webapp. You can use also use regular expressions for this
Targets: The name of the managed server you want to deploy the webapp to
Weblogic libraries: Whether or not the webapp should be deployed as a library component.
Hi recently i heard that we can use jetty-runner to deploy a war file.But my question is can we use this to deploy a war file which uses no maven.Can we use jetty-runner to deploy any war files.
jetty-runner is separate from maven, you just need to point at a war file
http://blogs.webtide.com/janb/entry/jetty_runner
cheers