Date Created: Tue 21-Dec-2010


    Problem:

    C:\IBM\WebSphere\AppServer\bin>wsadmin.sh -f c:\temp\wasscripts\jvm.py
    'wsadmin.sh' is not recognized as an internal or external command,
    operable program or batch file.

    C:\IBM\WebSphere\AppServer\bin>wsadmin -f c:\temp\wasscripts\jvm.py
    WASX7209I: Connected to process "server1" on node T60Windows7PNode01 using SOAP
    connector; The type of process is: UnManagedProcess
    WASX7017E: Exception received while running file "c:\temp\wasscripts\jvm.py"; ex
    ception information: com.ibm.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    (no code object) at line 0
    File "<string>", line 6
    attr.append([['name','name1'],['value',value1']])
    ^
    SyntaxError: Lexical error at line 6, column 50. Encountered: "\r" (13), after
    : ""


    Error:

    attr.append([['name','name1'],['value',value1']])

    Solution:

    Add missing single quote for string.

    attr.append([['name','name1'],['value','value1']])

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories