Built-in wlst ant task does not work in weblogic 10.3.1

Hi,
We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
[echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
tmp/wlstTemp/packages'
[echo] [wlst] java.io.IOException: No such file or directory
[echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
[echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
[echo] [wlst] at java.io.File.createTempFile(File.java:1792)
[echo] [wlst] at java.io.File.createTempFile(File.java:1828)
[echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
[echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
[echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
[echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
<target name="init-taskdefs">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="ant-ext/ant-contrib.jar" />
</classpath>
</taskdef>
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
<taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
</target>
<macrodef name="wlShutdownServer">
<attribute name="adminUser" default="${deploy.admin.username}" />
<attribute name="adminPassword" default="${deploy.admin.password}" />
<attribute name="adminUrl" default="${deploy.admin.url}" />
<attribute name="serverTarget" />
<sequential>
<trycatch property="server.error">
<try>
<wlst failonerror="true"
arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
<script>
adminUser=sys.argv[0]
adminPassword=sys.argv[1]
adminUrl=sys.argv[2]
serverTarget=sys.argv[3]
connect(adminUser,adminPassword,adminUrl)
target=getMBean("/Servers/"+serverTarget)
if target == None:
target=getMBean("/Clusters/"+serverTarget)
type="Cluster"
else:
type="Server"
print 'Shutting down '+serverTarget+'...'
shutdown(serverTarget,type,'true',15,force='true')
print serverTarget+' was shut down successfully.'
</script>
</wlst>
<!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
to start back up again. -->
<echo message="Deleting any lok files that have not been removed..." />
<delete failonerror="false">
<fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
</delete>
</try>
<catch>
<fail message="@{serverTarget} shutdown failed. ${server.error}" />
</catch>
<finally/>
</trycatch>
</sequential>
</macrodef>
Any help would be appreciated. Thanks!

Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change.

Similar Messages

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • [svn:fx-trunk] 7473: Fix for 'ant asdoc' does not work.

    Revision: 7473
    Author:   [email protected]
    Date:     2009-06-01 12:09:26 -0700 (Mon, 01 Jun 2009)
    Log Message:
    Fix for 'ant asdoc' does not work.
    It should now work from both svn and package zip.
    Bugs: SDK-15306
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15306
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml

  • "Take Picture" task does not work in Automator

    I have downloaded the task "Take Picture" from automator.us, installed it and used it in Automator. It does not work! The log reads that an error occurred in (NSReceiverEvaluationScriptError: 4 (-2700)).
    I activated the GUI scripting as pointed out on the download page.

    I have the same problem, anybody pls

  • Class generated by genInterface ant task does not compile

    I am trying to build a web service from existing wsdl using genInterface and topDownAssemble ant tasks.
    The wsdl contains following type definition. Java class generated from this type (see below) does not compile. The problem is that there are two class members named
    'value'. Is this an issue with Web Services Assembly tool or there is some way to get
    around it?
    <s:simpleType name="quantityType">
    <s:restriction base="s:string">
    <s:enumeration value="summation"/>
    <s:enumeration value="demand"/>
    <s:enumeration value="value"/>
    <s:enumeration value="consumption"/>
    </s:restriction>
    </s:simpleType>
    // Version = Oracle WebServices (10.1.3.3.0, build 070610.1800.23513)
    public class QuantityType implements java.io.Serializable {
    private java.lang.String value;
    private static final String _summationString = "summation";
    private static final String _demandString = "demand";
    private static final String _valueString = "value";
    private static final String _consumptionString = "consumption";
    public static final java.lang.String summation = new java.lang.String(summationString);
    public static final java.lang.String demand = new java.lang.String(demandString);
    public static final java.lang.String value = new java.lang.String(valueString);
    public static final java.lang.String consumption = new java.lang.String(consumptionString);
    public static final QuantityType summation = new QuantityType(_summation);
    public static final QuantityType demand = new QuantityType(_demand);
    public static final QuantityType value = new QuantityType(_value);
    public static final QuantityType consumption = new QuantityType(_consumption);
    Andrei

    Pls set debug attribute of JWSC ant task to true or on, e.g.
    <jwsc srcdir="." destdir="${output.dir}" debug="on" keepGenerated="true">
              </jwsc>

  • Deployment to an UEFI enabled system using a custom Format and Partition Disk Task does not work

    Hello all,
    I know that MDT 2012 Update 1 has the necessary intelligence to create the GPT partition etc. when the Gather Process detects that the system is UEFI enabled. However i wanted to configure the Format and Parition task myself, so i copied the default one,
    disabled it and just added a new one with the following configuration.
    Disk Number 0
    Disk Type = GPT
    i then added
    EFI, Partition Type = EFI, 500 MB, file system FAT32
    MSR, 128 MB,
    OSDisk 40 GB, PRIMARY
    i then start the Win8 x64 Task Sequence , it formats the disks, it applies the image, but then when it reboots i cannot boot.
    What am i doing wrong here ?
    Alsx Verboon www.verboon.info

    Is this of any help?
    http://social.technet.microsoft.com/Forums/en-US/mdt/thread/a6679550-a343-463c-9301-1bf9706ad9af/
    http://blogs.technet.com/b/mniehaus/archive/2011/06/11/mdt-2012-beta-1-uefi-support.aspx

  • Built-in pdf reader plugin does not work in 5.1.7

    The WEBdav built-in PDF reader in 5.1.7 shows a black page, and looking at the list of plugins, it has no file to go to:
    WebKit built-in PDF
    — from file “”.
    How do I fix this?

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Built in PDF reader plugin does not work in Safari 6.0

    Safai 6.0 won't open PDF screens within a web link. Instead it shows a blank screen.
    Any help to fix this problem would be great

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy / paste:    /LIbrary/Internet Plug-Ins
    Click Go then move the Adobe PDF (or just PDF) browser plugin to the Trash.
    Quit and relaunch Safari to test.

  • Auto deploy does not work in Weblogic 6.1 !!!!

    Hi everyone,
    I am facing a problem in my weblogic 6.1 that whatever ejb componet I am deploying
    (after modification) to the weblogic server, the changes are not getting reflected
    if the server is running. Each time, I have stop the server and start it and then
    only the changes done in ejb is getting reflected.
    I am not setting startmode while starting the server. So by default it is false
    means ie., the server is running in devlopment mode.
    Does this problem exist if we do not have proper Service Pack ? Does this problem
    exist in higher version of weblogic ?
    thank you in advance.

    "jyothip" <[email protected]> wrote:
    >
    Hi everyone,
    I am facing a problem in my weblogic 6.1 that whatever ejb componet I
    am deploying
    (after modification) to the weblogic server, the changes are not getting
    reflected
    if the server is running. Each time, I have stop the server and start
    it and then
    only the changes done in ejb is getting reflected.
    I am not setting startmode while starting the server. So by default it
    is false
    means ie., the server is running in devlopment mode.
    Does this problem exist if we do not have proper Service Pack ? Does
    this problem
    exist in higher version of weblogic ?
    thank you in advance.

  • Why this WLST script does not work from ant a task

    Hi,
              The following is my lovely WLST script to disable managed server hostname verification in a cluster environment.
              It works perfect if I run it from the OS command line,
              java -cp $WL_HOME/server/lib/weblogic.jar sslSetting.py weblogic weblogic t3://localhost:7001
              But if I run it from ant task, it never works. Nothing happens, not even any messages. Any idea?
              ------ sslSetting.py -----------
              # Disable HostnameVerification on managed servers
              # This is a ONLINE script. The admin server must be running
              # @param $1 BEA_USER_NAME
              # @param $2 BEA_USER_PWD
              # @param $3 admin server URL
              if (len(sys.argv) != 4):
              print "usage: " + sys.argv[0] + " domain-home "
              sys.exit()
              beaUserName=sys.argv[1]
              beaUserPwd=sys.argv[2]
              adminServerUrl=sys.argv[3]
              def handleServer(server):
              SSLPath="/Servers/" + server.getName() + "/SSL/" + server.getName()
              print("handleServer(1): " + SSLPath)
              try:
              cd (SSLPath)
              print("handleServer(2): " + SSLPath)
              set("HostnameVerificationIgnored", "true")
              except Exception, inst:
              dumpStack()
              print ("FAILED handleServer(): " + SSLPath)
              else:
              print ("DONE handleServer(): " + SSLPath)
              #===============================================================================
              # Main
              #===============================================================================
              try:
              connect(beaUserName, beaUserPwd, adminServerUrl)
              edit()
              startEdit()
              adminServerName=cmo.getAdminServerName()
              for server in cmo.getServers():
              if adminServerName != server.getName():
              handleServer(server)
              save()
              activate()
              except Exception:
              dumpStack()
              else:
              print ("=== DONE ===")

    OK, when I run the WLST script from command java, I only need the weblogic.jar in the classpath. But I'll need a couple other jar file for it to work inside an ant target, as showing below.
              <target name="run-wlst">
              <java classname="weblogic.WLST" fork="true">
              <classpath>
              <pathelement path="${props.JAVA_HOME}/lib/tools.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/weblogic_sp.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/weblogic.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/webservices.jar"/>
              </classpath>
              <sysproperty key="weblogic.Home" value="${props.WL_HOME}" />
              <arg line="sslSetting.py weblogic weblogic t3://localhost:7001"/>
              </java>
              </target>

  • Satellite M645-S4050: built in camera does not work correctly

    My built in camera does not work correctly.
    It does not have any kind of effect on and it captures pictures and videos as if some kind of thermal camera was on.
    Also some videos I load up on youtube look like this.
    I have been researching for an answer but can't find it, please help me.

    All you can do is to test it with latest webcam driver.
    Remove preinstalled camera software and install latest version offered on Toshiba download page.
    If the same happen again visit nearest Toshiba service and show them how it looks like. Maybe the cam must be exchanged.
    In the past I have used several Toshiba laptops with built in cam but I have never saw something lke this.

  • MDT - Custom Reference Image does not work with Task Sequence, normal Windows 7 Enterprise Iso media works fine.

    Hi,
    Our MDT server is acting strange!
    I have previously had this system running without problem - i could both capture and deploy computers as is and no changes have been made to mdt.
    But my latest capture does not work. When i capture my reference maching in my VM environment it completes without errors and i can import the latest wim file.
    When i deploy the tast sequence, it install the custom Wim image, but it ends up with "login" screen as the administrator i have entered for the capture/deploy sequence, but it goes to stop at this point and applications is not installed.
    If i change the ISO in the task sequence under Install OS step, to a clean Win7 install media then the capture completes and install applications.
    I have also tried to:
    Capture reference without password
    Capture reference without Windows updates
    Customsettings.ini, bootstrap, BDD.log and SMSTS.log to be found here: https://onedrive.live.com/redir?resid=ED5029A20300B814!365&authkey=!AALV1b2ubD0laEE&ithint=folder%2cini
    Hope you will be able to assist,
    Regards,
    Anders

    if you have noticed your smsts.log, there is same error multiple - 
    Executing in non SMS standalone mode. Ignoring send a task execution status message request
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    User did not specify local data drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume A:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume D:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume X:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume Z:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    TSM root drive = TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    We do not find an available volume to store the local data path
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSNextInstructionPointer=1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a TS execution environment variable _SMSTSNextInstructionPointer=1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSInstructionStackString=0
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a TS execution environment variable _SMSTSInstructionStackString=0
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Save the current environment block TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    pszPath[0] != L'\0', HRESULT=80070057 (c:\qfe\nts_sms_fre\sms\framework\core\ccmcore\path.cpp,58)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Filesystem::Path::Add(sEnvPath, EnvDataFileName, sEnvPath), HRESULT=80070057 (e:\nts_sms_fre\sms\framework\tscore\environmentlib.cpp,639)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to save environment to  (80070057)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    TS::Environment::SharedEnvironment.saveEnvironment(szPath), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,842)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to save the current environment block. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
    The parameter is incorrect. (Error: 80070057; Source: Windows)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    SaveEnvironment(), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,420)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to persist execution state. Error 0x(80070057)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to save execution state and environment to local hard disk
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Start executing an instruciton. Instruction name: Gather local only. Instruction pointer: 1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSCurrentActionName=Gather local only
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSNextInstructionPointer=1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    what about the mass storage driver in your boot image, is it updated?
    Md.Waseem Please remember to click “Mark as Answer” on the post that helps you. Thank you.

  • Having installed lion i find the built in web cam  does not work

    After having installed lion i find the built in web cam (on my mac book pro) does not work, it maybe it just does not work anymore and it is a coincedence that i was changing the OS at the time . Are there any issues with this? i have looked at the discussions but no one seems to have this problem.

    After having installed lion i find the built in web cam (on my mac book pro) does not work, it maybe it just does not work anymore and it is a coincedence that i was changing the OS at the time . Are there any issues with this? i have looked at the discussions but no one seems to have this problem.

  • M305-s4822 Built in microphone does not work

    Help my built in micorophone does not work.
    WiFi works somtimes not. What has happened to Toshiba quality? 
    Hope some one can help trying to fix for my daughter it is her college computer.  I would return it but it is out of warrenty.
    Very Unhappy with this machine.
    GA

    You can't hear other callers:
    Why can't I hear the other person in Skype for Mac OS X?
    Other callers can't hear you:
    Why can’t my friend hear me on Skype for Mac OS X?

  • Application does not work properly when I press a CommanButton

    Hi all, I am having a problem with weblogic 10.3.5.
    It turns out that an application built with JDeveloper 11.1.5, I test it, and everything goes well in the JDeveloper integrated Weblogic.
    But when deploy in a standalone weblogic 10.3.5 server, the application does not work properly when I press a CommanButton to go to another page search (the property "action" is set correctly) , but nothing happens, stays in the same home page. Similarly when a commanButton link to run a task-flow, It do not work , however in the JDeveloper integrated Weblogic it runs correctly.
    How I can solve these problems?
    Thanks.

    Thanks Frank for help us, but when I writing this comment we are doing at home. So, we going to test the page in a stand alone weblogic server 10.3.5. We wrote the URL as :
    " http://<our ip>:7001/myApp/faces/index.jspx "
    this application contains a report desing and compiled with iReport 4.5.1 ( last version in the moment ), we can see the report when I press a commanButton without any problem.
    But now, we need try your suggestions in the office, and give you more information about it . Thanks for the moment.
    In the Afternoon we gonna give you more information about it .

Maybe you are looking for

  • T400 strange power issue

    I have a strange intermitent problem with my T400. Usually, I put the machine into hibernate at night. I then usually unplug the device and all the lights go out. Twice now, after doing the above, I have returned in the morning to find the battery li

  • When I'm in Safari, it automatically opens new tabs that I did not request.  How do I stop this?

    Help!  Every time I do a new search or open a bookmarked page in Safari, another tab/window opens up with different ads.  How do I stop this?  It's so annoying!

  • MSI Dragon Liquid Cooler

    Hi all, would like to ask if you have any info on what the hell is the MSI Dragon Liquid Cooler? Seen it on scan.co.uk for 40 quid (Pounds) but why does it come as an OEM and why MSI doesn't have any info about it on their website? Seen some reviews

  • Creating primary key dynamically ?

    hi I have say table t1 which has pk constraint say pk1 using say 4 columns c1,c2,c3,c4 in database1. I need to create same pk constraint with same parameters and name on same table t1 which is into another database. I need a generic function / proc t

  • Does Adobe CS6 support touch gestures?

    I'm talking about touchscreen-and-pen devices like (on Windows) Samsung Slate 7 and Asus EP121 and (Mac) Modbook. I mean touch gestures like pinch-zoom, panning and so on. At the moment I understand that in CS5.5 these aren't supported at all on Wind