Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Deployment in WS5.0 thru cmd line

 
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way to deploy an application in WebSphere 5.0 through command line. i.e., without using the admin console?
I understand that this can be done with the help of custom ant tasks. Had anyone tried this before?
thanks
Sudharsan
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read in the WebSphere InfoCenter about WSCP. This is a command line tool that allows you to do installation and management of the server.
Kyle
 
Sudharsan Govindarajan
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle,
Thanks for the info. I'm using Websphere v5.0 and there is no wscp available for it. I think it is replaced by WSAdmin. When I try to execute the commands of wscp, i get an Exception. It seems most of those objects-types available for WSCP like VirtualHost, ApplicationServer, EnterpriseApp are not available in WSadmin.
I get an exception when i try to execute them

And in Infocenter, I could not find any documents related to WSAdmin.
Sudharsan
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, you're right about the renaming -- slipped my mind for a moment. Go to the InfoCenter Open "System Administration", "Console", "Scripting", "Managing Applications Using Scripting", "Installing Applications with the WSAdmin Tool".
The syntax is
$AdminApp install c:/MyStuff/application1.ear {-server serv2}

Kyle
 
Sudharsan Govindarajan
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kyle! That helped me..
Any idea how to do it using custom Ant tasks?
thanks again
Sudharsan
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem with the ANT tasks is that they're not very well documented, and I don't have time right now to write the pages of information that I'd have to write to show you how to do it...
In the meantime, use WSAdmin.
Kyle
 
Sudharsan Govindarajan
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kyle! I aprreciate ur prompot and sincere replies. Lets meet in this thread sometime after, to discuss how to deploy thru Ant.
sudharsan
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic