RTC and Websphere Jython scripts error
![]()
Francisco Burgos (5●1●5●7)
| asked Oct 08 '12, 5:52 a.m.
retagged Oct 09 '12, 3:33 p.m. by Ralph Earle (257●3●9)
I am following the documentation for installing RTC using Websphere (http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/index.jsp) but when I tried to use Jython script for configure websphere it doesn't work.
I am in the part of documentation: Installing / Installing the Rational solution for CLM / Deploying and starting the server / Deploying and starting WebSphere Application Server / Administering WebSphere Application Server by using Jython / Setting up a WebSphere application Server For now I did: 1. Install RTC 2. Install DB2 2.2 Create DB for QM, JTS, etc... 3. Install WebSphere Error that I get (Output): WASX7209I: Connected to process "server1" on node vmuseridxxxNode03 using SOAP connector; The type of process is: UnManagedProcess WASX7487E: Failed to import script libraries modules: C:\Program Files\IBM\WebSphere\AppServer\scriptLibraries\perfTuning\V70\ applyPerfTuningTemplate.py; Examine the wsadmin log file to determine the problem. WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[C:\Progra~1\IBM\JazzTeamServer\conf]" Disabled Java2 Security Enabled Application Security Enabled Administrative Security Enabled Unprotected URI Setting configuration for Application Server server1 Set initial and max heap size to 4096 Set JVM args -Xmx1200m WASX7017E: Exception received while running file "C:\Progra~1\IBM\JazzTeamServer\server\was\clm_was_config.py"; exception info rmation: com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last): File "<string>", line 315, in ? IndexError: index out of range: 2 WASX7341W: No "save" was performed before the interactive scripting session exited; configuration changes will not be saved. Steps: 1. I create a profile from Profile Management Tool (Environment: Applicaton Server): "AppSrv03" 2. Start server 3. Open cmd: 3.1 cd C:\Program Files\IBM\WebSphere\AppServer\bin 3.2 Input command: wsadmin.bat -lang jython -profileName AppSrv03 -user myuser -password mypass -f C:\Progra~1\IBM\JazzTeamServer\server\was\clm_was_config.py C:\Progra~1\IBM\JazzTeamServer\conf I am using: WebSphere 7.0.0.23 |
4 answers
![]()
Karl Weinert (2.0k●5●27●36)
| answered Oct 18 '12, 7:38 a.m.
JAZZ DEVELOPER edited Oct 18 '12, 9:06 a.m.
<path>\clm_was_config.py null null C:\Progra~1\IBM\JazzTeamServer\conf
Comments I did it, but I get same result.
Francisco did you try using -language argument instead of -lang or adding null null to the command? What is the command line that works in 8.0.0.3? I tested on 8 no patches and 7.0.0.21 which showed the same issue with which arguments are passed to the script. Are you sure the error is the same each time? Is moving to 8.0.0.3 going to be your resolution or are you going to try to use 7.0.x still? If you are going to continue to try and resolve this with 7.0 then please post the error you get when using the full -language argument.
|
![]()
Dinesh Kumar B (4.1k●4●13)
| answered Oct 08 '12, 6:25 a.m.
JAZZ DEVELOPER edited Oct 08 '12, 6:38 a.m.
run the command from the profile bin directory and not App Server bin
In you case its possibly C:\IBM\WebSphere\AppServer\profiles\AppSrv03\bin which removes the params profileName <value> and that should make the script pick the values rightly hope it helps Comments I have done it and I get same error exactly, with same output.
when i got this same error, three things took care of it
Nothing happen. I have done this:
one more difference is the space in the path and usage of Progra~1 for resolving it. my installation does not have spaces in its path and so the short names are not required when I run the script.
|
![]()
Use Forward slashes "/" instead of backward slash "\" when mentioning any path throughout in the command line.
Also if you have multiple profiles, I would add "-profileName <profilename>" param in the command or run the command from the <profilename>/bin (which Dinnesh also pointed) otherwise your command will fire against the default profile as set in WAS.
|
![]()
Oops it looks like I have missed reading one of your old posts. :-)
Assuming you are trying this in a test environment, you can try the following but take precautions as necessary. Take a backup of the .py file. Then open it with windows notepad (I would recommend that as other text editors can do harm) Change the line appcontextconfPath = "file:///"+ sys.argv[2] to appcontextconfPath = "file:///"+ sys.argv[0] and save it and run the command. Hope this might help! |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Did you deploy the applications yet? That can be done manually or done with the clm_deploy.py script.
I did it manually with the console of WAS, but I couldn't do it with the script.