webspherewsadmin

WSADMIN: Invalid command "print"


I'm trying to run a print commant using websphere wsadmin and it gives me the error " error while eval'ing Jacl expression: invalid command name "print"", although the command is totally correct. As in the screenshot.

enter image description here

How to solve this problem?


Solution

  • This error can be fixed by changing the default scripting language on the properties file

    ..\IBM\WebSphere\AppServer\profiles\AppSrv01\properties\wsadmin.properties
    

    to be jython instead of jacl

    com.ibm.ws.scripting.defaultLang=jython