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
0
votes
1 answer

Adding a Console User to WebSphere in jython

I need to add Administrative users to the WebSphere Console using a Jython script. I tried to turn on the "Log command assistance commands" preference, but it did not log adding a user. It did log other stuff though. We setup alot of servers and…
Konrad
  • 3,593
  • 3
  • 19
  • 17
0
votes
1 answer

Websphere Scripting - Error while SyncNode

Below is the jacl script which I use for syncing the Node in WAS 7. #Sync Node Changes puts "Begin SyncNode.." set Sync1 [$AdminControl completeObjectName type=NodeSync,process=nodeagent,node=Profile01Node600,*] set Sync2…
Vinoth
  • 133
  • 2
  • 9
0
votes
1 answer

Need help in deploying warn using WSAdmin install with JNDI

I am trying to deploy a web application using WSAdmin tool. But it is throwing an error. JACl script that I am using is : $AdminApp install /opt/www/temp/SampleApp.war {-nopreCompileJSPs -nodeployejb -server delivery -cell delivery_cell -node…
chiranjeevi
  • 73
  • 2
  • 6
0
votes
2 answers

Create classpath from existing jars in a Folder

I new to Python and am looking for a way to create my CLASSPATH argument for Jython script in wsadmin for Websphere, by reading from a folder and including all jars in that folder. Example : /jar_dir 1.jar 2.jar ... …
Debajyoti Das
  • 2,038
  • 4
  • 34
  • 66
0
votes
2 answers

Why is new line "\n" not working for Jython for WAS wasadmin

For a jython script for wsadmin... I am doing CLASSPATH = "/path/jar1.jar" + "\n" + "/path/jar2.jar" But its not working, it setting as /path/jar1.jar/path/jar2.jar Where am I going wrong.
Debajyoti Das
  • 2,038
  • 4
  • 34
  • 66
0
votes
0 answers

Wsadmin distinguish between starting application and started application

I have an application that requires a long initialization before being completely deployed to a Webserver (WebSphere 8.5 for our use case). This initialization takes several minutes even out to half an hour and that is completely normal. I have been…
airmil
  • 115
  • 1
  • 2
  • 7
0
votes
5 answers

Error Running Jython Script from WSADMIN

I am running a Jython script from wsadmin. This is the portion where its throwing an error. SCRIPT: .. .. objNameString = AdminControl.completeObjectName('WebSphere:type=Server,*') NODE_NAME=AdminControl.getAttribute(objNameString, 'nodeName')…
Debajyoti Das
  • 2,038
  • 4
  • 34
  • 66
0
votes
1 answer

How to get the correct error message in websphere wsadmin jython?

I need code which could handling the exception and continue the process. but the error handling routine seems unable to get the correct error message: without exception handling: wsadmin>AdminControl.testConnection (SomeDataSource) WAS7015E:…
user2304417
0
votes
1 answer

How to run jython script from RAD using credentials from properties file?

According to documentation: http://pic.dhe.ibm.com/infocenter/rsawshlp/v7r5m0/index.jsp?topic=%2Fcom.ibm.ws.ast.jythontools.doc%2Ftopics%2Ftjythondebug.html to run jython script with credentials "As defined in soap.client.props or sas.client.props…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
0
votes
1 answer

Error (NPE) in wsadmin console when creating DataSource

I'm creating DataSource in the jython in wsadmin console in the following way: First I search for JDBC provider by name: for provider in AdminConfig.list('JDBCProvider').split('\r\n'): if AdminConfig.showAttribute(provider, 'name') ==…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
0
votes
1 answer

EAR generated using ANT doesn't work on Websphere 8.5

The object is to build .ear by using ANT then deploy it on Websphere 8.5 with wsadmin. Manually, the ear file is generated from a jar file and after deployment, the web application works very well. But if I use the ear generated by ANT, after…
allenzzzxd
  • 331
  • 1
  • 10
  • 24
0
votes
0 answers

How to code AdminApp in the wsAdmin task

I am trying to issue a wsadmin command to load the virtual host after I install the new application "MYAPP". But I could not find the right syntax. Here is how my ANT task looks like:
0
votes
1 answer

Create URL resource with the scope to node

I'm creating the URL resorce on WebSphere 7 with the following Jython script: AdminResources.createURL(node, server, urlProvider, 'MyUrl', 'url/MyUrl', '/my/url') The problem is, the scope of new URL Resource is set to node+server. In Admin…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
0
votes
1 answer

wsadmin com.ibm.ws.exception.RuntimeWarning: java.lang.NoClassDefFoundError:

After installing ear file through wsadmin script getting below error when starting server. i checked within the ear file the same class present in one of the jar. com.ibm.ws.exception.RuntimeWarning: java.lang.NoClassDefFoundError: Please suggest…
Kathir
  • 28
  • 1
  • 3
0
votes
1 answer

websphere wsadmin.sh -f file vs interactive

Have a strange problem with jython script execution in WAS70 (solaris): wsadmin.sh in interactive mode versus with -f option. AdminConfig.show('') works in the interactive mode of the wsadmin.sh but it doesn't show any output when run with…
Ronin
  • 1
  • 2
1 2 3
16
17