When running a Jython script to control the state of an Application Deployed to a Standalone Liberty Profile server, we get the following error: TypeError: javax.management.remote.JMXServiceURL(): 3rd arg can't be coerced to int
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
root@node01 standalone]# ./controlApp.sh status HelloWorld-0.0.1-SNAPSHOT Environment Settings PATH=/opt/ibm/java-x86_64-80/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/apps/jython_2.7.0/bin WLP_INSTALL_DIR=/var/apps/waslp_DV01/wlp JYTHON_SCRIPTS=/var/apps/scripts/liberty CLASSPATH=/var/apps/waslp_DV01/wlp/clients/restConnector.jar JYTHONPATH=/var/apps/waslp_DV01/wlp/clients/jython:/var/apps/scripts/liberty/lib script parameters ACTION=status APP_NAME=HelloWorld-0.0.1-SNAPSHOT Server settings.. SERVER_NAME=server1 TRUST_STORE=/var/apps/waslp_DV01/wlp/usr/servers/server1/resources/security/key.jks TRUST_STORE_PASSWORD=Liberty HOST=192.168.0.40 PORT=9443 USER_NAME=wasadmin USER_PASSWORD=wasadmin Executing CMD: jython controlApp.py status HelloWorld-0.0.1-SNAPSHOT /var/apps/waslp_DV01/wlp/usr/servers/server1/resources/security/key.jks Liberty 192.168.0.40 9443 wasadmin wasadmin MAIN:BEGIN varName=controlApp.py varValue=status action=%s controlApp.py appName=%s status trustStore=%s HelloWorld-0.0.1-SNAPSHOT trustStorePassword=%s /var/apps/waslp_DV01/wlp/usr/servers/server1/resources/security/key.jks hostname=%s Liberty port=%s 192.168.0.40 username=%s 9443 password=%s wasadmin Connecting to the server... Traceback (most recent call last): File "controlApp.py", line 57, in <module> _mBeanConnection = getConnection( File "controlApp.py", line 21, in getConnection connector.connect(hostname, port, username, password) File "/var/apps/waslp_DV01/wlp/clients/jython/restConnector.py", line 57, in connect self.connectBasic(host, port, args[0], args[1]) File "/var/apps/waslp_DV01/wlp/clients/jython/restConnector.py", line 76, in connectBasic self.connectAdvanced(host, port, map) File "/var/apps/waslp_DV01/wlp/clients/jython/restConnector.py", line 65, in connectAdvanced url = JMXServiceURL("REST", host, port, "/IBMJMXConnectorREST") TypeError: javax.management.remote.JMXServiceURL(): 3rd arg can't be coerced to int |
The reason for this is the line of code in the Jython script that create a connection to the Liberty Server’s JMX interface (WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=*) is a string not an.. read more →







How to Automate WebSphere
WebSphere Application Server Install and Upgrade Automation Course Looking to automate WAS inatalls? Do you need to save time automating manual WAS tasks? Want to know howto create shel scipts to manage WAS installs and upgrades? Have you ever wondered how to automate IBM Installation Manager? Ever needed to automate the installation of WAS 8.5.5.x.. read more →







When running a Jython script in WAS you get the following error:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
C:\scripts\traceManager>"C:/Program Files/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/wsadmin.bat" -username wasadmin -password wasadmin -lang jython -f "C:/scripts/traceManager/manageTrace.py" WASX7209I: Connected to process "dmgr" on node myCellManager01 using SOAP connector; The type of process is: DeploymentManager WASX7017E: Exception received while running file "C:/scripts/traceManager/manageTrace.py"; exception information: com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last): (no code object) at line 0 File "<string>", line 93 else : ^ SyntaxError: inconsistent dedent |
By turning on view tabs/spaces in the editor I was using, we can see that there is an inconsistency between tabs and spaces. This can often happen when your editor is using tabs in stead of spaces and the original script only.. read more →







WebSphere Automation
Do you need to save time automating manual WebSphere Application Server installtion tasks? Have you ever wondered how to automate IBM Installation Manager? Ever needed to automate the installation of WAS 8.5.5.x and automate Upgrades and Roll-backs? The WebSphere Application Server 8.5.5.x Automation Course provides the student with a full set of guides and a set of commercial-grade automation.. read more →







WebSphere Security Course (Essential Security Concepts)
Note: This is part of the $99.95 special deal as this course was released before December 2015. Have you ever wondered how to install and configure a federated repository (LDAP and internal file-based repository)? Have you ever had trouble creating a custom stand-alone LDAP configuration? Have you wondered how to automate the creation of a LDAP.. read more →







CWWIM5020E Could not connect to the ldap
When running the Jython command addIdMgrLDAPServer as part of a Federated repository configuration on WAS 8.5.5.x, I received the following error:
1 |
WASX7017E: Exception received while running file "/var/apps/scripts/wasAdmin/manageSecurity/modifyGlobalSecurity_Federated.py"; exception information: com.ibm.websphere.wim.exception.WIMConfigurationException: com.ibm.websphere.wim.exception.WIMConfigurationException: CWWIM5020E Could not connect to the ldap://<ip-address>:389 repository using properties: [port=389],[bindDN=uid=wasldapbind,ou=security,dc=themiddlewareshop,dc=com],[certificateMapMode=exactdn],[sslConfiguration=],[securityDomainName=admin],[sslEnabled=false],[connectTimeout=100],[connectionPool=false],[id=ApacheLDAP],[ldapServerType=CUSTOM],[host=<ip-addreess>],[referal=ignore],[derefAliases=always],[certificateFilter=],[authentication=simple],[bindPassword=****]. Exception occurred: java.net.ConnectException. |
The reason for this is that the LDAP server was not running. The problem can occur when the the host/ip-address or port is wrong, or a firewall is running and the LDAP port that.. read more →







Bargain Bucket – ALL Courses including new 2015 releases for $229.00
This page provides the facility to purchase the elite membership, which grants you full access to all products released before December 2014 (ALL Courses) and all products relased during 2015 (ALL 2015 COURSES). If it was not for customers like yourself, The Middlewareshop would not be able to provide the quality courses we produce. As.. read more →







WAS 8.5.5 Migration Course
The WebSphere Migration Course (with Automation) course provides scripts to automate the following: Migrate from WAS 7 to WAS 8.x.x.x Install/Upgrade/Remove Update Installer Install/Upgrade WebSphere Application Server 7.x Install/Upgrade IBM HTTP Server (IHS) Understand IHS Administration Install/Upgrade the WebSphere Plugin Report on IBM Installation managed installs Also contained within the course are the following topics:.. read more →







WebSphere Application Server Migration Course
Note:This is not part of the $199 deal as this course was released September 2015. Have you ever wondered how to automate the migration from WAS 7 to WAS 8.x or WAS 8.5.x or WAS 8.5.5.x? Do you need to Migrate a WebSphere Application Server? Do you need to save time automating migration tasks? The WebSphere.. read more →







I experienced this error when I was updating my JDBC Master Jython Script
1 |
com.ibm.websphere.management.exception.ConfigServiceException: ADMG0037E: A new instance of the DataSource object cannot be created because the jndiName attribute of an existing DataSource object has the same value as jdbc/estore_datasource. |
Simply, the reason for this is either you have tried to create another/new Datasource using the same JNDI name, or you are calling a create when you should be calling a modify. When modifying we can use the Datasource name to.. read more →








WebSphere Application Server 8.5.5.x – Advanced Security Course
The WebSphere Application Server 8.5.5.x – Advanced Security Concepts course provides the student with a detailed example-based guide which takes the student through how to configure Global Security for a Standalone Repository for the express purpose of connecting WAS to Microsoft AD, and enabling Full Single Sign on. This course covers how to set up Windows 2012 Server as a Primary Domain Controller and enabled a Windows 8.1 workstation as part of the full-enabling and testing of a fully functioning SSO solution. Included in this course are Jython and shell scripts and even a Java Web Application that is used to prove that SSO is indeed working as intended
WebSphere Message Broker 8 Administration
Here the student learns through examples, one step at a time, the power of WebSphere Message Broker 8.0 an advanced ESB product from IBM.
WAS 8.5.5.x Essential Security Course
Only $149.99 Learn how to configure SSL for both WAS and IBM HTTP Server. Learn SSL insights not previously made available. Implement LDAP configurations using open source products. Automate Global Security configuration using Jython
WAS 8.5.5 Application Client Cookbook
This course was produced because I had many members of the public asking for support on how to connect an Application Client (Java client) to a secure WebSphere Application Server.
2015 ALL Courses – Bargain Bucket
This page provides the facility to purchase an elite membership, which grants you full access to all products published before and during 2015. You get perpetual access and access to the current courses.
WebSphere 8.5.5 Automation Course
WAS 8.5.5 Automation Course Do you need to save time automating manual WAS tasks? Have you ever wondered how to automate IBM Installation Manager? Ever needed to automate the installation of WAS 8.5.5.x and automate Upgrades and Roll-backs? The WebSphere Application Server 8.5.5.x Automation Course provides the student with a full set of guides and a set of commercial-grade automation scripts with detailed worked-examples.
All 2014 Courses – Bargain Box
This page provides the facility to purchase an elite membership, which grants you full access to all products published before 2015. You get perpetual access and access to the current courses. As of 2014, there are 9 courses.
WebSphere Application Server 8.5 Administration course
WAS 8.5 Administration Course This course provides the student with the necessary skills to handle all sorts of administrative tasks on WebSphere Application Server Network Deployment version 8.5. The course material is practical and “hands-on” and covers a wide range of topics derived from industry experience. We have designed this course to include all the necessary instructions to install the product, try out various administrative tasks and can be used easily to refresh your knowledge after the course has been attended. The course also contains over 900 pages of “How To” guides and more than 300 Power Point slides along with Labs, resources and questions and answers.
WebSphere Portal 8 Administration Basics Course
IBM Portal 8 Administration Course
WebSphere 8.5 Performance Tuning Course
WAS 8.5 Performance Tuning Course This course provides students with the tools and techniques to tune the performance of WebSphere Application Server Network Deployment Version 8.5 (WAS ND 8.5) As typical of all our middleware courses, the course material follows a “Do-it-yourself” approach and provides all the necessary instructions and sample code to setup your lab, try out tuning tasks and learn. In short, this course is a highly practical course which teaches performance tuning by example. Something unique about this course is the 145 slide Power Point pack which covers WebSphere Performance Tuning best practices and theory.Article Categories
- Ambari
- Apache
- Apache Directory Studio
- ApacheDS
- Awards
- Big Data
- Blog
- Coherence
- Consulting
- Course Outlines
- Databases
- DataPower
- DB2
- Encouragement
- Errors
- Exclusive Club
- Featured
- Feedback
- FixPack
- Hadoop
- Honors
- IBM
- IBM BPM
- IBM Consulting
- IBM ESB
- IBM HTTP Server
- IBM Installation Manager
- IBM Integration Bus
- IBM Integration Designer
- IBM Middleware
- IBM Packaging Utility
- IBM Portal Server
- IBM Process Server
- IBM Update Installer
- iFix
- IHS
- IHS Administration Server
- IIB
- IIBM 9.0 for Developers
- Installation
- Integration Specialist
- Java
- LDAP
- Liberty Core Runtime
- Liberty Profile
- Middleware Consultant
- Middleware Consulting
- Middleware Knowledge and Insights
- Middleware Training
- Mule ESB
- NetBeans
- Object Data Grids
- Oracle
- Rankings
- Scripting
- SEO
- SOA
- SSL
- Success Mentoring
- Testimonials
- Uncategorized
- Uninstall
- UpdateInstaller
- Upgrade
- WAS
- WAS 7 Migration
- WAS ND
- WebLogic Application Server
- WebSphere
- WebSphere 7
- WebSphere 8.5
- WebSphere 8.5.5
- WebSphere Application Client
- WebSphere Application Server
- WebSphere Application Server Profiles
- WebSphere Architect
- WebSphere Author
- WebSphere Automation
- WebSphere Consultant
- WebSphere Consulting
- WebSphere Courses
- WebSphere Development
- WebSphere Digrams
- WebSphere ESB
- WebSphere Expert
- WebSphere Guru
- WebSphere Installation
- WebSphere Integrated Developer
- WebSphere Java
- WebSphere Jython
- WebSphere Jython Examples
- WebSphere Jython Scipting
- WebSphere Kerberos
- WebSphere Liberty
- WebSphere Liberty Profile
- WebSphere Message Broker
- WebSphere Migration
- WebSphere MQ
- WebSphere Plugin
- WebSphere Portal Server
- WebSphere Process Server
- WebSphere Profile Management
- WebSphere Scripting
- WebSphere Scripts
- WebSphere Security
- WebSphere Shell Script
- WebSphere Specialist
- WebSphere SSO
- WebSphere Training
- What Is
- WID

WebSphere Application Server 8.5.5.x – Advanced Security Course
The WebSphere Application Server 8.5.5.x – Advanced Security Concepts course provides the student with a detailed example-based guide which takes the student through how to configure Global Security for a Standalone Repository for the express purpose of connecting WAS to Microsoft AD, and enabling Full Single Sign on. This course covers how to set up Windows 2012 Server as a Primary Domain Controller and enabled a Windows 8.1 workstation as part of the full-enabling and testing of a fully functioning SSO solution. Included in this course are Jython and shell scripts and even a Java Web Application that is used to prove that SSO is indeed working as intended
WebSphere Message Broker 8 Administration
Here the student learns through examples, one step at a time, the power of WebSphere Message Broker 8.0 an advanced ESB product from IBM.
WAS 8.5.5.x Essential Security Course
Only $149.99 Learn how to configure SSL for both WAS and IBM HTTP Server. Learn SSL insights not previously made available. Implement LDAP configurations using open source products. Automate Global Security configuration using Jython
WAS 8.5.5 Application Client Cookbook
This course was produced because I had many members of the public asking for support on how to connect an Application Client (Java client) to a secure WebSphere Application Server.
2015 ALL Courses – Bargain Bucket
This page provides the facility to purchase an elite membership, which grants you full access to all products published before and during 2015. You get perpetual access and access to the current courses.
WebSphere 8.5.5 Automation Course
WAS 8.5.5 Automation Course Do you need to save time automating manual WAS tasks? Have you ever wondered how to automate IBM Installation Manager? Ever needed to automate the installation of WAS 8.5.5.x and automate Upgrades and Roll-backs? The WebSphere Application Server 8.5.5.x Automation Course provides the student with a full set of guides and a set of commercial-grade automation scripts with detailed worked-examples.
All 2014 Courses – Bargain Box
This page provides the facility to purchase an elite membership, which grants you full access to all products published before 2015. You get perpetual access and access to the current courses. As of 2014, there are 9 courses.
WebSphere Application Server 8.5 Administration course
WAS 8.5 Administration Course This course provides the student with the necessary skills to handle all sorts of administrative tasks on WebSphere Application Server Network Deployment version 8.5. The course material is practical and “hands-on” and covers a wide range of topics derived from industry experience. We have designed this course to include all the necessary instructions to install the product, try out various administrative tasks and can be used easily to refresh your knowledge after the course has been attended. The course also contains over 900 pages of “How To” guides and more than 300 Power Point slides along with Labs, resources and questions and answers.
WebSphere Portal 8 Administration Basics Course
IBM Portal 8 Administration Course