title: Error Running Jython Script from WSADMIN
body: <p>I am running a Jython script from <code>wsadmin</code>. This is the portion where its throwing an error. </p>
  
  <p><strong>SCRIPT</strong>:</p>
  
  <pre><code>..
  ..
  objNameString = AdminControl.completeObjectName('WebSphere:type=Server,*') 
  NODE_NAME=AdminControl.getAttribute(objNameString, 'nodeName') 
  CELL_NAME=AdminControl.getCell()
  SERVER_NAME= "MyAppServer"
  ..
  ..
  # Start Web application
  print "Starting Web Application..."
  appManager = AdminControl.queryNames('cell='+ CELL_NAME +',node='+ NODE_NAME +',type=ApplicationManager,process='+ SERVER_NAME +',*')
  print appManager
  AdminControl.invoke(appManager, 'startApplication', 'AppName')
  print "Web Application Started..."
  </code></pre>
  
  <p><strong>ERROR</strong>:</p>
  
  <pre><code>Starting Web Application...
  WASX7017E: Exception received while running file "/scratch/py/CreateWPSDomain.py"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7025E: Error found in String ""; cannot create ObjectName.
  </code></pre>
  
  <p>Anything wrong with the way I have concatenated ? Coz the error like this seems to come when values are empty or not registered properly. </p>
  
  <p><strong>Update</strong>: Is there any sample jython scripts which I can reference. My req: 1. Creates a server > 2. Install the war file > 3. Creates Datasources > 4. Starts the Server > 5. Starts the Application.</p>