1 Reply Latest reply: Oct 15, 2012 10:57 PM by Kalyan Pasupuleti-Oracle RSS

    Error  [Deployer:149003] for simple deploy in test environment

    965451
      Hi buddies,

      I'm quite newbie in WLST scripting, and I'm trying to automate my application deploy through it. Here's my current simple script:


      <pre>
      #workaround to avoid errors into Eclipse IDE
      if __name__ == '__main__':
      from wlstModule import *
      connect("weblogic","PASSWORD","server:7001")
      deploy(appName='application-name', path='C:/workspace/application-name/application-name/trunk/application-name/deploy')
      </pre>

      However it dumps the following stack:

      <pre>
      Current Status of your Deployment:
      Deployment command type: deploy
      Deployment State : failed
      Deployment Message : weblogic.management.ManagementException: [Deployer:149003]Unable to access application source information in '/workspace/application-name/application-name/trunk/application-name/deploy' for application 'application-name'. The specific error is: No application files exist.
      No stack trace available.
      This Exception occurred at Mon Oct 15 09:40:19 BRT 2012.
      weblogic.management.scripting.ScriptException: Error occured while performing deploy : Deployment Failed.
           at weblogic.management.scripting.ExceptionHandler.handleException(ExceptionHandler.java:48)
           at weblogic.management.scripting.WLSTUtils.throwWLSTException(WLSTUtils.java:188)
           at weblogic.management.scripting.JSR88DeployHandler.deploy(JSR88DeployHandler.java:542)
           at weblogic.management.scripting.WLScriptContext.deploy(WLScriptContext.java:430)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.python.core.PyReflectedFunction.__call__(Unknown Source)
           at org.python.core.PyMethod.__call__(Unknown Source)
           at org.python.core.PyObject.__call__(Unknown Source)
           at org.python.core.PyObject.invoke(Unknown Source)
           at org.python.pycode._pyx16.deploy$8(<iostream>:235)
           at org.python.pycode._pyx16.call_function(<iostream>)
           at org.python.core.PyTableCode.call(Unknown Source)
           at org.python.core.PyTableCode.call(Unknown Source)
           at org.python.core.PyFunction.__call__(Unknown Source)
           at org.python.pycode._pyx15.f$0(C:\Users\ms55042\workspace-oracle\teste\wlst\deploy-teste.py:9)
           at org.python.pycode._pyx15.call_function(C:\Users\ms55042\workspace-oracle\teste\wlst\deploy-teste.py)
           at org.python.core.PyTableCode.call(Unknown Source)
           at org.python.core.PyCode.call(Unknown Source)
           at org.python.core.Py.runCode(Unknown Source)
           at org.python.util.PythonInterpreter.execfile(Unknown Source)
           at weblogic.management.scripting.WLST.main(WLST.java:124)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at weblogic.WLST.main(WLST.java:29)
      Problem invoking WLST - Traceback (innermost last):
      File "C:\Users\ms55042\workspace-oracle\teste\wlst\deploy-teste.py", line 9, in ?
      File "<iostream>", line 246, in deploy
      File "<iostream>", line 1848, in raiseWLSTException
      WLSTException: Error occured while performing deploy : Target exception thrown while deploying application: Error occured while performing deploy : Deployment Failed. : Error occured while performing deploy : Deployment Failed.
      Use dumpStack() to view the full stacktrace
      </pre>

      I'm not sure about how to start debugging it, could you please help me?

      Thanks and regards

      Maurício
        • 1. Re: Error  [Deployer:149003] for simple deploy in test environment
          Kalyan Pasupuleti-Oracle
          Hi,

          Try to check in this way.


          Open a shell window and execute following
          BEA_HOME\wlserver_92\common\bin>wlst.cmd
          wlserver_10.3\common\bin>wlst.cmd
          wls:/offline> connect()
          Please enter your username [weblogic] :weblogic
          Please enter your password [welcome1] :
          Please enter your server URL [t3://localhost:7001] :t3://xxx:7001
          ( Enter the Admin url i.e IP and Port of machine on which Admin is running
          Once wlst is connected, execute following
          deploy('commfw', 'D:/downloads/commfw.war', targets='MServer',upload='true')


          Regards,
          Kal