Questions tagged [wsadmin]

wsadmin is a command shell for administrating IBM Websphere Application Server.

Wsadmin is a command shell for administrating the IBM Websphere Application Server, it takes its name from the batch/script file that is actually used to invoke the shell.

Commands can be entered interactively, or ran as a file based script that Wsadmin receives as an argument.

Wsadmin can interpret commands written in Jacl or Jython, although Jacl has been deprecated with WebSphere Application Server 6.1.

255 questions
15
votes
4 answers

Remote Deploy to WebSphere 8.5 using maven

I would like to control a remote deployment of a maven generated EAR over to an existing WAS instance not running on the build server. Ideally, I would like to do this within Maven so that I can remote deploy in say the integration-test phase then…
theINtoy
  • 3,388
  • 2
  • 37
  • 60
11
votes
3 answers

how to set java class loader PARENT_LAST

i have a spring mvc web application that I need to change the class loader on. I need to change the class loader to be equal to PARENT_LAST. I am using WAS 6.1 and already have a jacl script from a previous web application I can copy to do the…
Richie
  • 4,989
  • 24
  • 90
  • 177
10
votes
3 answers

Remote deployment to Websphere 6.1.x using wsadmin

I am trying to remotely deploy a war file to a websphere application server. I understand this is possible to do using wsadmin, but I am a Websphere newb. I know I can run wsadmin and connect using SOAP to the remote app server, but that is where I…
noplay
  • 2,391
  • 6
  • 26
  • 33
10
votes
2 answers

Human-friendly WebSphere scripting tool/library?

I'm developing lots of scripts for managing WAS infrastructure and I'm getting an impression that somebody at IBM has screwed up wsadmin on purpose. It couldn't be an accident. Here's a "simple" example: for node in…
Marcin Płonka
  • 2,840
  • 1
  • 17
  • 17
8
votes
4 answers

How do I determine if an application is running using wsadmin Jython script?

I can get a list of instlled applications but how do I get the status using Jython?
blank
  • 17,852
  • 20
  • 105
  • 159
8
votes
2 answers

Advantages of using jython vs. jacl in wsadmin scripting (WebSphere Application Server 7+)

Facing the programming for the wsadmin scripting client I see that you can use both jacl and jython. I've the same level of confidence with both two languages. I'm wondering if, in the specific of wsadmin programming , there are advantages of using…
Franco Rondini
  • 10,841
  • 8
  • 51
  • 77
6
votes
2 answers

wsadmin + jython restart WAS appserver

Is it possible to stop/start WAS appserver using wsadmin (jacl/jython). I want to detele all caches on profile and then restart WAS appserver. I'm using wsadmin as standalone.
5
votes
2 answers

How do I install (or uninstall) an EAR in WebSphere Application Server v.8.5 via command line, using wsadmin?

Rather than having to go through the administration console, which is tedious, I would rather install and uninstall my Java application (EAR) via command-line, saved as a short-cut in Windows. Please note that I am running WebSphere Application…
Ebony Maw
  • 514
  • 7
  • 23
5
votes
2 answers

A way to configure WebSphere 8.5 Liberty Profile programmatically?

I'm moving from IBM RAD 8 / WAS 7.0 to IBM RAD 9 / WAS 8.5. Liberty Profile. There's a plenty of configuration things such as URLs and namespace bindings. I've found an information that WSADMIN is not working for Liberty Profile. I haven't found,…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
4
votes
1 answer

Where in the world is com.ibm.ws.scripting.adminCommand.AdminTask?

Frustrated with the damn awful API provided by WebSphere Admin Server, I'm writing my own Java DSL wrapper. My jython files now simply read: from my.package import MyDSL config = MyDSL(AdminConfig, AdminTask) config.goGoGadgetSkates() # or something…
Synesso
  • 37,610
  • 35
  • 136
  • 207
4
votes
2 answers

Data source automatic binding

I have a JDBC datasource defined in WebSphere named 'jdbc/dataSource1'. In my application based on Spring i want to obtain the datasource using jndi lookup, but by another name, like 'jdbc/dataSource2'. To achieve this i created ibm-web-bnd.xml…
crew4ok
  • 195
  • 1
  • 3
  • 10
4
votes
1 answer

wsadmin AdminApp.install of a 23MB EAR is hanging

I'm able to log into my local WAS 8 admin console and deploy a 23MB EAR with all of the defaults with no problems. However, when I attempt to do the install using wsadmin and this Jython…
Zack Macomber
  • 6,682
  • 14
  • 57
  • 104
3
votes
2 answers

NPE when trying to instantiate Java object from Jython (WAS)

Given the class public class MyObject { public MyObject() { System.out.println("true = " + true); } } and the jython script import sys sys.path.append('my-custom.jar') from my.custom import * config = MyObject() I get the following…
Synesso
  • 37,610
  • 35
  • 136
  • 207
3
votes
1 answer

Script interface to install an arbitrary files to all nodes in Websphere?

I'm rather new to wsadmin and the administration client available for Websphere. I was wondering if anyone had an example of deploying arbitrary files to every Node in a Cell? Ideally I am looking for a solution that would work with both Websphere…
Charlie
  • 7,181
  • 1
  • 35
  • 49
3
votes
1 answer

WebSphere Server is not in running state : Jython WebSphere Scripting?

Please find the below code runningServer1 = AdminControl.completeObjectName("type=Server,node=nodename,process=processname,*") print "server running --->",runningServer1 if len(runningServer1) == 0: print "Error: Server not…
crackerplace
  • 5,305
  • 8
  • 34
  • 42
1
2 3
16 17