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>

Similar Messages

  • Has anyone been able to contact Adobe to learn why their Flash Player does not work on Mac OS 10.6.8, no matter how many updates you install?  This seems like a big error by Adobe.

    I have thee Mac computers with Mac OS 10.6.8, one of which is a Mac Pro.  No matter how many updates I install from Adobe, their Flash Player does not work on any of these 3 computers.  I don't know how to contact Adobe Systems about this problem, but I think it is their responsibility to make sure that their so-called "universal" software works proplerly on a relatively recent operating system like OS 10.6.8 that is still in widespread use.  When you install the updates, nothing happens -- not even an error message.  What is the point of a universal player that is not universal?  It works fine on my MacBook Pro with OS 9 Mavericks, but it does not work at all -- indeed, has never worked -- on my 3 Macs with OS 10.6.8.  Has anyone contacted Adobe Systems to find out why the Flash Player does not work with OS 10.6.8 and what they plan to do about it?

    Where are you getting Flash from?
    Get the appropriate dmg installer here and then run it.
    http://www.adobe.com/products/flashplayer/distribution3.html
    If it still won't install, do these two things: First uninstall any Flash by going into the second level Hard Drive Library>Internet Plug-ins, and trash the Flash Player.plugin and flashplayer.xpt. Then boot into Safe Boot, Shift at the startup chime (give it much longer than a usual boot) and run the installer while booted in Safe Boot.

  • HT1409 I have done this but it does not work with one of my albums and I dont know why??

    I have done this but it does not work with one of my albums and I dont know why??

    That would be it. Sometimes you can tweak the album & artist names enough for iTunes to download matching art from the store, or you could add a bonus track featuring 1 second of silence and attach artwork to that, or you could convert the files to Apple Lossless.
    tt2

  • My iphone 5 has 7GB, went to apple store the guy said my backup that I was restoring from was corrupted so I have to restore it as a new phone wondering that if I do this and it does not work, will iTunes have my old backup saved?

    My iphone 5 has 7GB, went to apple store the guy said my backup that I was restoring from was corrupted so I have to restore it as a new phone wondering that if I do this and it does not work, will iTunes have my old backup saved?

    Yes, if you have been backing up on a regular basis.
    If this is your first time backing up, then no.
    you can check edit - preference - backup - see what is listed

  • Why this character \ it is not working in action scrip?

    Hi...
    Why this character \ it is not working in action scrip? And
    how can I solve it?
    on (release) {
    text.text = text.text + "l"
    Please your help ASAP
    thank you

    yea, that's true, but I don't think that is the problem.. I
    use it every once in a while, and it doesn't break the script.
    "I’m trying to make bush button if i press it, the
    action script it well write the text in text area and I’m
    using Flash MX 2004"
    This statement makes
    zero sense.. please clean it up and make it understandable,
    and tell what version of Actionscript you are publishing to.

  • TS2972 I got a new computer.  Apple TV states "to access your itunes on apple TV, turn on home sharing using..  I have done this. Still does not work

    I got a new computer.  Apple TV states "to access your itunes on apple TV, turn on home sharing using..  I have done this. Still does not work.  Can anyone advise me on why - it was all working great before i switched computers

    You mention doing all of the above, what would that be exactly?
    The article linked above is for airplay, have you checked home sharing tips?
    http://support.apple.com/kb/ts2972

  • In 5s, personal hot spot does not work from time to time. Not detected

    In 5s, personal hot spot does not work from time to time. Iphone does not get detected on Wi-fi or bluetooth. Restarting or rebooting does not help.  

    Settings, general, reset and reset network settings. Clear out your network settings and set personal hotspot again.
    also avoid special characters making a password. hashtags or open brackets for example doesn't work too good.

  • HT5096 This procedure absolutely does NOT work

    Because of the sparse storage format of the Backups.backupdb directory, the Finder thinks the directory is much larger than it actually is. In fact, in many cases, such as mine, it thinks that it is MUCH larger than the physical drive on which it resides.
    For example, I have a 1TB drive and the Time Machine directory claims to be more than 5TB. When I go to copy it over to another 1TB drive it says that it cannot execute the copy because the size is too large and there is not enough room. Although there actually is enough room.
    In any case, the procedure outlined in this memo ABSOLUTELY DOES NOT WORK.

    Try running Firefox in [[Safe Mode]] and see if that helps!

  • Script does not work anymore after updating to FM 12.0.3

    Hi,
    With TCS5, Robohelp would crash when importing FrameMaker books to RH, because the FM files had embedded graphics. So, I found a script to externalize the graphics before doing the import (the script is: ExtendScript of the week: Externalizing Graphics « TechComm Central by Adobe). However, this script is not working since I updated from 12.0.2 to 12.0.3. And without this script, we can't create HTML5 output!
    Although I wrote a few simple scripts, this one is quite complex and would be difficult to debug. Anyone here knows what could have changed to make the script useless after such a small update? Or can update this script to make it work?
    Thanks!

    Hi again,
    For those who would like to know... I made this script work with 12.0.3. I simply removed the instructions that  added an item in the File menu and stuff about a report, which I don't think ever worked. So, I still don't know exactly why it didn't work anymore (don't have time or knowledge to investigate), but I'm still interested to know.

  • Why this candlestick Chart does not returns an URL as a link ?

    Hi,
    I have done a nice Candlestick Flash Chart. But The problem is that the link does not work. When I click on a point - the cross -, nothing happens, which means the URL is not displayed in the URL zone of the navigator - I am under Firefox. I have been using this technique on other charts (2D Column) and it was working nicely. I don't see why it is not working in the Candlestick type chart. I have been outputting the result of the PL/SQL into an item to check if the SLQ generated by the PL/SQL function was coorect and tested it under SQL Developper and I do get good results and nices URLS under SQL Developper. Thus is why i don't understand why this is not working here.
    DECLARE
    X VARCHAR2 (4000);
    BEGIN
    x := 'SELECT
    ''f?p=&APP_ID.:8:&SESSION.:GET_DETAIL_MONTH:NO::P8_MONTH:''
    ||TO_CHAR(TRUNC(DATE1, ''MM''), ''MM/YY'') LINK,
      TO_CHAR(TRUNC(DATE1, ''MM''), ''MM/YY'') LABEL,
      AVG(VALEUR) OPEN,
      MAX(VALEUR) HIGH,
      MIN(VALEUR) LOW,
      AVG(VALEUR) CLOSE FROM EVV_'|| UPPER (:p184_ename) ||
    ' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SITE_ECHELLE WHERE SITE = '''
    || UPPER (:p184_ename) ||
    ''') AND DATE1 BETWEEN TO_DATE (''01/01/'
    ||:P8_YEAR||'000000'', ''DD/MM/YYYYHH24MISS'') AND TO_DATE (''31/12/'
    ||:P8_YEAR||'235959'', ''DD/MM/YYYYHH24MISS'')
    GROUP BY TRUNC(DATE1, ''MM'')
    ORDER BY TRUNC(DATE1, ''MM'')';
    RETURN (X);
    END;Example of SQL generated by the above function :
    SELECT 'f?p=12400:8:1473118156348570:GET_DETAIL_MONTH:NO::P8_MONTH:'
    ||TO_CHAR(TRUNC(DATE1, 'MM'), 'MM/YY') LINK,
    TO_CHAR(TRUNC(DATE1, 'MM'), 'MM/YY') LABEL ,
    AVG(VALEUR) OPEN,
    MAX(VALEUR) HIGH,
    MIN(VALEUR) LOW,
    AVG(VALEUR) CLOSE
    FROM EVV_E007
    WHERE CLEF_VAR =
    (SELECT CLEF_VAR FROM SITE_ECHELLE WHERE SITE = 'E007'
    AND DATE1 BETWEEN TO_DATE ('01/01/2006000000', 'DD/MM/YYYYHH24MISS') AND TO_DATE ('31/12/2006235959', 'DD/MM/YYYYHH24MISS')
    GROUP BY TRUNC(DATE1, 'MM')
    ORDER BY TRUNC(DATE1, 'MM')
    Example of output of the link :
    f?p=12400:8:1473118156348570:GET_DETAIL_MONTH:NO::P8_MONTH:01/06     f?p=12400:8:1473118156348570:GET_DETAIL_MONTH:NO::P8_MONTH:02/06     
    Thank you for your kind answers !

    Hello Christian,
    I first thought that your url shouldn't contain / (in your month format - better to use a dash -).
    But then I remembered the Candlestick chart that is standard in APEX is having a bug.
    I did a quick test here: http://anychart.apex-evangelists.com/pls/apex/f?p=454:8:0::NO:::
    On the left you see the default chart in APEX (based on Anychart 3.3), if you click on the candle it doesn't show hello. If you click on the right chart it does.
    The right chart is based on Anychart 5 and makes use of our integration kit.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Error: ELM does not work from UI

    Hello guru´s,
    hard to explain this briefly, but here it goes.
    We´re trying to upload an ELM from UI, and it doesn´t work. But the thing is, if you just SAVE from UI (not launch), and then you go to CRMD_MKTLIST and you flag required fields, it works. But obviously, we need to do that from UI.
    Besides this, we´ve implemented a Badi CRM_MKTLIST_BADI for a specific format but it´s never called from UI; however, if we simulate the execution from SAP GUI, this BADI works correctly.
    Thanks in advance.

    SunSudio Express (December 2006 release) introduces some
    interesting new features, but there are still problems. For the first time,
    I was able to debug Fortran 90 applications in Linux, but debugging is
    still very limited. This is good to know that you were able to debug a f90 application
    on Linux. What problems do you see? Please, report them, and we
    will file them as bugs or RFEs (requests for enhancements).
    Furthermore, the Fortran error parser does not work, even when
    compiling using Sun's f95 compiler. Yes, you are right, this feature does not work yet.
    This is a heavy disadvantage. I assume that Fortran error parsing
    is not supported on Linux, although the tutorials don't make this
    point clear: Yes, it does not work yet on all platforms.
    In the Options window, there are settings concerning C/C++ (and
    its parser), but there are no similar options for the Fortran parser,
    even in "Advanced Settings" (which are similar to the old Options
    window). There will be similar options for Fortran.
    My Linux system is Debian 3.1 (Sarge), with JDK 1.5.0.09.JDK 1.5.0.09 is ok.
    We do not target Debian system, but we assume everything
    should work there (we test on Red Hat and SUSE).
    Good to know that our assumption is correct :-)
    I don't think that I'm doing something wrong, but I want to ask, just
    to be sure: has someone had seen the Fortran error parser working
    on Linux? No. It does not work on Linux, and it does not work on other platforms.
    What about Fortran word completion? No, this feature is not implemented yet.
    Thanks you for trying Sun Studio 12 Express release and for your report.
    Nik

  • DARI (Arabic) script does not work in WORD 2004

    When I change to AFGHAN DARI in MS WORD I can type the characters (although as other discussions have shown KEYBOARD viewer does not work) BUT they are not joined properly in the words.
    i.e. the same form of the character is used whether it is at the start, middle or end of the word. PATHETIC - how would you like to write all English in UPPERCASE??
    MS WORD does the correct thing on Windows XP
    Does anyone have any ideas - apart from throwing this new MacBook away?
    Any Word processors for the MAC that work properly?
    Please HELP!!

    Does anyone have any ideas - apart from throwing this new MacBook away?
    Yes, throw Word away. MS Office for Mac has no support for Arabic, Hebrew, Devanagari, etc.
    All other word processors (except Appleworks) have better support for Arabic than Word does. Mellel is the best. See this note:
    http://homepage.mac.com/thgewecke/TypingArabic.html

  • Magic mouse forward backward swiping does not work from time to time

    Hello...
    from time to time the forward/backward swiping functionality of my magic mouse does not work (The scrolling works though). Disconnecting and reconnecting does not do the trick. So I guess it might be a software problem. Restarting the iMac does not always help at once. After a couple of times it will work though again.
    Can anyone help?
    Regards
    Bjoern

    your answer should be here.
    http://discussions.apple.com/thread.jspa?threadID=2211072&start=0&tstart=0

  • Icloud log in with Apple id  does not work from my mac when i try to run on photo stream

    When I try to active photostream or sharing via icloud it does not work I get an errormessage that there is communication problems with icloud. I cant get around to administrate the stream from the Icloud site or via my imac directly. It has never worked!

    yes, the apple id works for everyting else, but not for icloud. on my phone and ipad it is set up with the correct apple id and password. however, when i try to log on to icloud under system by clicking the icon the erromessag that i get is unknown apple id or password.

  • HT204032 Why find my Mac does not work in powernap?

    FInd my Mac does not work in powernap mode even though I enabled it energy preferences to work while on battery power.
    ANy ideas?

    "I think Find My Mac is not one of the features claimed to work in Power Nap."
    Yes it is.
    Please see the link at top of this page.
    "Find My Mac. Locate a lost Mac notebook even when it’s sleeping."

Maybe you are looking for

  • Need help: Deployment of application on multiple admin servers in a cluster

    Forwarding this to the weblogic.developer.interest.clustering group as well:           Hi,           I have created two admin servers and one managed server on each of them. Then I have added these two managed servers to both the admin servers.      

  • Display problem in some posts

    Some posts on the forum have text or code included in small windows with sliders at the side and bottom. See http://forums.adobe.com/thread/471158?tstart=0 for instance. On my screen the window is not large enough to view the code, and there seems to

  • I want to add transaction code for one user.

    Hi abapers, My requirement is; I want to add transaction code for one user. EX: zsdf to kanne. Can any body tell me the procedure step by step. With regards,

  • Removing leading 0 in query designer

    Hi guys, I have a characteristic with values like '0000000123'. How can I remove the leading zeros in query designer? Thanks.

  • Guest and E4200 - Mac Filtering

    I have an e4200 v1. I have figured out that if mac filtering is enabled, the guest feature will only work if the mac adapter of the guest client is added to the list of allowed mac filters. Doesnt adding a mac filter for guests defeat the whole purpo