Using Ant to execute WLST setAppMetadataRepository command

I am having a problem using Ant to execute the setAppMetadataRepository WLST command. This command puts an entry in adf-config.xml that points to the MDS datasource.
This is the ant task that I'm using. These commands work from the WLST tool, but when using them with Ant, I get the error below.
   <target name="setAppMetadataRepositoryUsingWlst">
      <wlst debug="true" failonerror="true">
         <script>
            archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear')
            archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository')
            archive.save()
        </script>
      </wlst>
   </target>Here is the error that I get (NameError: getMDSArchiveConfig). This is saying that getMDSArchiveConfig isn't a recognized command. Other commands (like connect(...)) work ok from ant, but not these MDS commands. Is this a bug or am I doing something wrong here?
[wlst] <WLSTTask> All lines will be trimmed by 12
[wlst] <WLSTTask> Line: archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear'). Final trim length: 12, String length: 124
[wlst] <WLSTTask> Line: archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository') . Final trim length: 12,
String length: 147
[wlst] <WLSTTask> Line: archive.save(). Final trim length: 12, String length: 26
[wlst] <WLSTTask> The script that will be executed
[wlst] archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear')
[wlst] archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository')
[wlst] archive.save()
[wlst]
[wlst] Error: Error executing the script snippet
[wlst] archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear')
[wlst] archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository')
[wlst] archive.save()
[wlst]
[wlst] due to:
[wlst] Traceback (innermost last):
[wlst] File "<string>", line 1, in ?
{color:red} [wlst] NameError: getMDSArchiveConfig{color}
Thanks,
Mike

Not all WLST installations are equivalent. Have a read of [http://www.oracle.com/technetwork/articles/adf/part10-085778.html]this, specifically the paragraph right after Figure 13 for something to try. Bottom line - the WLST that comes with the base WLS server install cannot do the MDS operations.
John

Similar Messages

  • Using Applescript to execute a Terminal command

    I've looked at the possible answers that come up when I ask this question here, but none really fit my question.
    I want to automate the Terminal command that cleans out obsolete entries in my right-click "Open with" menu, which I have to do often. Rather than copying the command each time I want it, then opening Terminal, pasting it in, etc., is there a way to automate this with Applescript?  Thanks!

    Thanks for the fast reply, Niel. I understand this is a newbie Applescript question, but over the years I have just never used Applescript and other than this one thing, probably won't again.  So rather than take hours to learn it, I hope you don't mind the additional question regarding this.  Do I just put the following into the main Applescript editor?
    do shell script "ls -l ~"
    /System/Library/Frameworks/CoreServices.framework//Versions/A/\
    Frameworks/LaunchServices.framework/Versions/A/Support/lsregister \
    -kill -r -domain local -domain user;
    killall Finder

  • Using SXPG_CALL_SYSTEM  to execute Unix 'MV' command not working

    Here is the code (method - params begin with "p_").  This returns no error but yet the file is not moved (called in a test program).  Any ideas?
    DATA: lv_sourcepath TYPE rlgrap-filename,
            lv_targetpath TYPE string,
            lv_fname      TYPE rlgrap-filename,
            lv_path       TYPE rlgrap-filename,
            lv_paramstr   TYPE sxpgcolist-parameters,
            lv_status     TYPE extcmdexex-status,
            lv_execproto  TYPE TABLE OF btcxpm.
      " Get physical path to archive folder
      lv_targetpath = zcacl001_utilities=>get_appserver_path( 'ZDIR_KHRIS_INTF_ARCV' ).
      " Type casting needed for function module call below
      lv_sourcepath = p_sourcepath_in.
      " Split filename from path in source
      zcacl001_utilities=>parse_file_path( EXPORTING
                                              p_fullname_in   = lv_sourcepath
                                           IMPORTING
                                              p_filename_out  = lv_fname
                                              p_path_out      = lv_path ).
      " Concatenate filename to target path
      CONCATENATE lv_targetpath lv_fname INTO lv_targetpath.
      " Build parameter string
      CONCATENATE '-f' lv_sourcepath lv_targetpath INTO lv_paramstr SEPARATED BY space.
      CALL FUNCTION 'SXPG_CALL_SYSTEM'
        EXPORTING
          commandname                = 'mv'
          additional_parameters      = lv_paramstr
          trace                      = space
        IMPORTING
          status                     = lv_status
          exitcode                   = p_exitcode_out
        TABLES
          exec_protocol              = lv_execproto
        EXCEPTIONS
          no_permission              = 1
          command_not_found          = 2
          parameters_too_long            = 3
          security_risk                  = 4
          wrong_check_call_interface = 5
          program_start_error            = 6
          program_termination_error      = 7
          parameter_expected         = 8
          too_many_parameters            = 9
          illegal_command                = 10.

    Try to put this type of entry in the Object request.
    Prog Obje Objectname
    R3TR EXCC commandname
    I am not sure, weather this will work or not.
    Regards,
    Naimesh Patel

  • Any way to create Execute Queues or set Load Order using ANT?

    Hello All,
    Does anyone know whether wlconfig or some other Ant tasks can be used
    in order to automate the creation of specific Execute Queues? We'd like
    to script and package this so as to avoid having the user configure
    queues through the admin console.
    I'd also like to find out if there is some way to set the application
    Load Order through wlconfig or wldeploy.
    I have looked at the WebLogic command reference here: http://e-
    docs.bea.com/wls/docs81/admin_ref/ant_tasks.html but don't see anything
    promising.
    Am I missing something? I'm not too familiar with all the scripting
    possibilities so any help would be much appreciated. We are using
    WebLogic Server 8.1 SP3 on Windows and UNIX.
    Thanks

    Thanks Anilkumar, but I was trying to figure out how to create these using
    Ant scripts and NOT the admin console which is what your link seems to be
    pointing to.
    <akari> wrote in message news:[email protected]..
    Hi,
    go through the following link,In that you will find information about how
    to create execute Queues.
    http://e-docs.bea.com/wls/docs81/perform/AppTuning.html#1105201
    -----Anilkumar kari

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Error while Executing stored procedure using ant

    Hi,
    I am trying to execute a stored procedure using ant ..
    My build.xml is like this...
    <project name="myproject" default="db.build">
    <target name="db.build">
    <sql driver="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@idm.orademo.com:1521:orcl"
    userid="test"
    password="oracle11g"
    print="yes"
    classpath="E:\\ojdbc14.jar"
    src="E:\\upg_9102BP07.sql" />
    <!--
    <classpath>
    <pathelement path=""\\>
    <\\classpath> -->
    </target>
    </project>
    I have my stored procedure in upg_9102BP07.sql as shown in above src..
    When im executing ant cmd I got the following exception
    E:\>ant -f test.xml
    Buildfile: test.xml
    db.build:
    *[sql] Executing resource: E:\upg_9102BP07.sql*
    *[sql] Failed to execute: declare cnt int*
    BUILD FAILED
    E:\test.xml:12: java.sql.SQLException: ORA-06550: line 1, column 15:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    *:= . ( @ % ; not null range default character*
    Total time: 44 seconds
    I have no clue.. But this sql ran successfully when did manually..
    Please help me in solving the issue...
    -- Marias

    Here is my script bit lengthy...
    Rem
    Rem $Header: oim/server/Database/Oracle/Upgrade/Release91x/910x/List/9102_ddl_AddcolumnToRCE_Oracle.sql st_oim_devjain_bug-9003841/1 2009/10/09 02:24:19 devjain Exp $
    Rem
    Rem 9102_ddl_AddcolumnToRCE_Oracle.sql
    Rem
    Rem Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
    Rem
    Rem NAME
    Rem 9102_ddl_AddcolumnToRCE_Oracle.sql - <one-line expansion of the name>
    Rem
    Rem DESCRIPTION
    Rem Create a new column 'RCE_DELETE' in RCE table
    Rem
    Rem MODIFIED (MM/DD/YY)
    Rem blaksham 09/30/09 - Created
    Rem
    declare cnt int;
    Begin
         Select Count(1) into cnt From User_Tab_Columns Where TABLE_NAME='RCM' And COLUMN_NAME='RCM_DELETE';
         IF cnt=0 Then
         Begin
              Execute Immediate 'ALTER TABLE RCM ADD RCM_DELETE VARCHAR2(1)';
         End;
         Else
              DBMS_OUTPUT.PUT_LINE('Column already exists in the DB');
         End IF;
    End;
    Rem
    Rem $Header: oim/server/Database/Oracle/Upgrade/Release91x/910x/List/9102_dml_odf_source_name.sql st_oim_devjain_bug-9003841/1 2009/10/09 02:44:45 devjain Exp $
    Rem
    Rem 9103_dml_odf_source_name.sql
    Rem
    Rem Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
    Rem
    Rem NAME
    Rem 9103_dml_odf_source_name.sql - <one-line expansion of the name>
    Rem
    Rem DESCRIPTION
    Rem <short description of component this file declares/defines>
    Rem
    Rem NOTES
    Rem <other useful comments, qualifications, etc.>
    Rem
    Rem MODIFIED (MM/DD/YY)
    Rem vpotukuc 09/17/09 - Bug8796435: Increase the size of odf_source-name
    Rem vpotukuc 09/17/09 - Created
    Rem
    SET ECHO ON
    SET FEEDBACK 1
    SET NUMWIDTH 10
    SET LINESIZE 80
    SET TRIMSPOOL ON
    SET TAB OFF
    SET PAGESIZE 100
    declare
    collen NUMBER := 0;
    begin
    select char_length into collen from user_tab_columns where table_name = 'ODF' and column_name = 'ODF_SOURCE_NAME';
    IF (collen < 400) then
    execute immediate 'alter table ODF modify ODF_SOURCE_NAME varchar2(400)';
    END IF;
    END;
    File name: 91_dml_update_reviewers_With_NoEmail_attestation.sql
    Purpose: Modify the email template to replace the 'Delegated By Last Name' with 'Reviewer Last Name' and 'Delegated By User Id' to 'Reviewer User Id'.
    Author: Babu Lakshamanaiah
    Description: Modify the email template 'Attestation Reviewers With No E-mail Addresses Defined'
    declare
    cnt int;
    begin
    Select Count(1) into cnt From emd Where emd_name='Attestation Reviewers With No E-mail Addresses Defined' and emd_language='en' and emd_country='US';
    IF cnt=0 Then
    Begin
    DBMS_OUTPUT.PUT_LINE('There is no record with emd_name Attestation Reviewers With No E-mail Addresses Defined ');
    End;
    Else
    update emd set emd_body='The following attestation reviewers do not have email addresses defined. Attestation requests have been generated for these reviewers and can be accessed by loging in to Oracle Identity Manager. However, notification emails were not sent.' ||chr(10) || chr(10) ||
    'Attestation process: <Attestation Definition.Process Name>' || chr(10) ||
    'Attestation Request ID: request <Attestation Request.Request Id>' || chr(10) ||
    'Request date: <Attestation Request.Request Creation Date>' || chr(10) || chr(10) ||
    'Reviewers Without E-mail Address: <reviewers> ' || chr(10) ||
    '<Attestation Task.Reviewer First Name> <Attestation Task.Reviewer Last Name> [<Attestation Task.Reviewer User Id>]' Where emd_name='Attestation Reviewers With No E-mail Addresses Defined' and emd_language='en' and emd_country='US';
    End IF;
    commit;
    end;
    Please help me out.....
    --Marias                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Using cfexecute to execute dos command in windows.

    Hi!
    Well i have a requirement where i need to check status of
    particular service in windows from time to time.
    I inferred that we can use cfexecute for this. Well i tried
    to use the same but i was not successful in achieving the desired
    result.
    The following is the code i have written for the above
    purpose.
    <cfexecute name="sc query Internet Information Services"
    arguments="y"
    outputfile="d:\Temp\Output.txt"
    timeout="90" />
    I get the following message:
    oldfusion.tagext.lang.ExecuteTag$TimeoutException: Timeout
    period expired without completion of sc query Internet Information
    Services
    at
    coldfusion.tagext.lang.ExecuteTag.doStartTag(ExecuteTag.java:170)
    at
    cfserverchecking2ecfm748178803.runPage(D:\Test\serverchecking.cfm:3)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
    well i have tried using different timeout periods but it dint
    work for me.i have gone crazy with it.
    Please advice on this.
    Many thanks.

    In addition to Mr Black's suggestions, take a look at these
    two entries about using cfexecute on Ben Forta's blog
    http://www.forta.com/blog/index.cfm/2006/7/31/Using-CFEXECUTE-To-Execute-Command-Line-Util ities
    http://www.forta.com/blog/index.cfm/2006/9/11/A-Couple-Of-CFEXECUTE-Gotchas

  • Vista: use the windows program manager to execute operating system commands

    attempting to run forms 6 on vista... the forms app attempts a call sqlplus using the host builtin to populate some tables before calling the report.
    in windows vista i get a message box indicating "use the windows program manager to execute operating system commands".
    is this windwos vista message? would this have to do with permissions?
    any insight most appreciated and thanks in advance.

    I don't know about the HOST-problem, but..
    the forms app attempts a call sqlplus using the host builtin to populate some tables before calling the report.What about putting the logic from the SQL*Plus-scripts into a database-procedure and call that instead. I think,, with the current approach you will get problems at least when you have to migrate to Web (e.g. Forms 10g).

  • Error while using "ant" command in weblogic6.1

    Hi,
    when I try to build the build.xml file in Weblogic 6.1 using "ant" command in
    samples\ejb20\basic\ContainerManaged
    I'm getting the following error. Pls help me out
    Error
    compile_ejb:
    [javac] Compiling 4 source files to D:\bea\wlserver6.1\samples\examples\ejb2
    0\basic\containerManaged\build
    [javac] D:\bea\wlserver6.1\samples\examples\ejb20\basic\containerManaged\Acc
    ount.java:17: cannot access java.lang.Object
    [javac] bad class file: D:\JDK1.4\JRE\lib\rt.jar(java/lang/Object.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of
    the classpath.
    [javac] public interface Account extends EJBObject {
    [javac] ^
    [javac] 1 error
    BUILD FAILED
    Please Help me out
    Thanks & Regards
    Venki

    Weblogic 6.1 does not support JDK 1.4. Use 1.3

  • Perform NetBeans build steps from command-line using Ant

    If I build a project using NetBeans, it creates the lib directory and populates it with dependant .jar's. It also puts the class-path in the manifest file.
    If I build using Ant ("ant jar" from build.xml folder), it creates the .jar without the class-path and without the lib folder.
    I want to build a simple project from the command-line, using Ant (or anything else that can process the build.xml file without having to modify it outside of NetBeans), and have it produce the same output as NetBeans.
    The project is a simple Swing app.
    How do I do it?

    Yes, I'm aware of that - there doesn't seem to be much participation in the NetBeans forum. I did actually ask the same question there with no (timely) response, so I thought I'd ask here as there seems to be far more people here who could answer my question.

  • How to execute XML batch commands using SharePoint Web services or Client Object Model

    Hi,
    I have a requirement to execute some batch commands to update SharePoint View Style, how can i do it using SharePoint webservices or SharePoint Client Object model.
          I need to execute the following Batch command over a particular web.
    <Method ID="UpdateView">
      <SetVar Name="Cmd">UpdateView</SetVar>
      <SetList Scope="Request">{GUID of List}</SetList>
      <SetVar Name="View">{GUID of View}</SetVar>  
      <SetVar Name="ViewStyle">6</SetVar>
      <SetVar Name="RowLimit">100</SetVar>
      <SetVar Name="Paged">TRUE</SetVar>
    </Method>

    Hi
    I tried it already... But UpdateView Method in the Views.asmx and Lists.asmx, both are not supporting for updating the style of the view (like Boxed, Newsletter...).
    If you have any code sample which will do this job with any of the SharePoint web services, please share it..

  • Error while using ant of webcenter spaces.

    Hi All.
    I am using jdev 11.1.1.5 . we using webcenter spaces application.While doing clean stage of ant option , i got this error.
    BUILD FAILED
    C:\siemens_repositories\workspace_siemens_occ\dev\OCCDesignWebCenterSpaces\WebCenterSpacesExtensionLibrary\internal-targets.xml:54: Problem: failed to create task or type if
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    Total time: 0 seconds
    build.xml is as below
    <?xml version="1.0" encoding="US-ASCII" ?>
    <project name="Portal" default="all" basedir=".">
    <!-- initialize properties for use by the build -->
    <property environment="env"/>
    <property file="build.properties"/>
    <tstamp/>
    <!-- define the ojdeploy ant task -->
    <taskdef name="ojdeploy"
    classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask"
    uri="oraclelib:OJDeployAntTask"
    classpath="${oracle.jdeveloper.ant.library}"/>
    <target name="all" depends="deploy"/>
    <target name="clean">
    <delete includeemptydirs="true">
    <fileset dir="${oracle.jdeveloper.workspace.dir}" includes="**/deploy/**/*"/>
    <fileset dir="${oracle.jdeveloper.workspace.dir}" includes="**/classes/**/*"/>
    </delete>
    </target>
    <target name="deploy">
    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
    executable="${oracle.jdeveloper.ojdeploy.path}"
    ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"
    ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">
    <ora:deploy>
    <ora:parameter name="workspace"
    value="${oracle.jdeveloper.workspace.path}"/>
    <ora:parameter name="profile"
    value="${oracle.jdeveloper.deploy.profile.name}"/>
    </ora:deploy>
    </ora:ojdeploy>
    </target>
    </project>

    i got the solution.the jdev version mismatch.and i used forward slash
    this is my config.properties
    #My properties
    #CUSTOMER - all properties need to be provided proper values
    #Fri Jul 30 00:00:00 PDT 2010
    ############ User Inputs Required ###################
    ## Enter the base directory where JDeveloper is installed.
    ## For example:
    ## On Windows, if JDeveloper is installed in the directory
    ## C:\MYJDEV, enter the path as: C:\\MYJDEV
    ## On Linux, if JDeveloper is installed in the directory /scratch/MYJDEV,
    ## enter the path as: /scratch/mywork/MYJDEV
    ## Note that the JDeveloper directory contains other folders such as jdeveloper,
    ## wlserver_10.3, modules, and so on.
    ####jdeveloper.install.home.directory=C:/Oracle/Middleware
    jdeveloper.install.home.directory=C:/Oracle/Middleware
    ## Enter the wlst executable
    ## For example:
    ## On Windows, wlst.cmd
    ## On Linux, wlst.sh
    #wlst.executable=wlst.cmd
    wlst.executable=wlst.cmd
    ## Enter the absolute path of the DesignWebCenterSpaces project.
    ## For example:
    ## On Windows, enter the path as:
    ## extending.spaces.home.dir=C:\\JDeveloper\\mywork\\DesignWebCenterSpaces
    ## On Linux, enter the path as:
    ## extending.spaces.home.dir=/scratch/mywork/DesignWebCenterSpaces
    ####extending.spaces.home.dir=C:/siemens/Tag_2.0.0.19/OCCDesignWebCenterSpaces
    extending.spaces.home.dir=C:/siemens_repositories/workspace_siemens_occ/dev/OCCDesignWebCenterSpaces
    ## Enter the path for ojdeploy executable
    ## For example:
    ## On Windows, enter the path as:
    ## oracle.jdeveloper.ojdeploy.path=${jdeveloper.install.home.directory}\\jdeveloper\\jdev\\bin\\ojdeploy.exe
    ## On Linux, enter the path as:
    ## oracle.jdeveloper.ojdeploy.path=${jdeveloper.install.home.directory}/jdeveloper/jdev/bin/ojdeploy
    #oracle.jdeveloper.ojdeploy.path=${jdeveloper.install.home.directory}\\jdeveloper\\jdev\\bin\\ojdeploy.exe
    oracle.jdeveloper.ojdeploy.path=${jdeveloper.install.home.directory}/jdeveloper/jdev/bin/ojdeploy.exe
    ## Enter the port number on which the WLS Administration Console is running.
    ## The URL of the Administration Console contains the port number.
    ## For example: http://myhost.com:7001/console
    ####wls.port=7001
    wls.port=7001
    ## Enter the host machine on which the Spaces application is running and where
    ## the custom shared library is to be deployed.
    ####wls.host=delvmpllsocc06.sapient.com
    #wls.host=yorke.med.siemens.de
    wls.host=192.168.0.93
    ## Enter the host and port number on which the Spaces application is running
    ## For example, if the Spaces application is running at: http://myhost.com:8888/webcenter
    ## wc.host=myhost.com, wc.port=8888, and wc.protocol=http
    ####wc.port=8888
    ####wc.host=delvmpllsocc06.sapient.com
    #wc.port=8887
    #wc.host=yorke.med.siemens.de
    ## Specify whether the Spaces URL protocol is http or https.
    wc.protocol=http
    ## For security purposes, administrator user name and password details
    ## are stored in secure files.
    ## Obtain the location of these secure files from your systems administrator
    ## or run WLST commands to generate these files as follows:
    ## 1. Navigate to: WC_ORACLE_HOME/common/bin
    ## 2. Enter the command: wlst.sh
    ## 3. At the WLST command prompt, connect to the Administration Server
    ## for Oracle WebCenter:
    ## connect('<admin_user>','<admin_pwd>', '<host>:<port>')
    ## Where admin_user is the user name of the administrator, admin_pwd is
    ## the administrator's password, host is the WebCenter instance, and port is
    ## the Administration Server port.
    ## 4. Run the following command to create a user configuration file and key file
    ## in a specified location:
    ## storeUserConfig('<userConfigFile>', <userKeyFile>')
    ## Where userConfigFile is the name and location of the file storing user details
    ## and userKeyFile is the name and location of the file storing passwords.
    ## For example:
    ## storeUserConfig('C:/myFiles/myuserconfigfile.secure', 'C:/myFiles/myuserkeyfile.secure')
    ## For example:
    ## On Windows, enter the path as:
    ## wls.userkey=C:\\JDeveloper\\mywork\\ps1userkeyfile.secure
    ## wls.userconfig=C:\\JDeveloper\\mywork\\ps1userconfigfile.secure
    ## On Linux, enter the path as:
    ## wls.userkey=/scratch/myfiles/ps1userkeyfile.secure
    ## wls.userconfig=/scratch/myfiles/ps1userconfigfile.secure
    ## Use the wls.userconfig property to set the userConfigFile path and
    ## the wls.userkey property to set the userKeyFile path.
    ####wls.userkey=C:/siemens/Tag_2.0.0.19/OCCDesignWebCenterSpaces/myuserkeyfile.secure
    ####wls.userconfig=C:/siemens/Tag_2.0.0.19/OCCDesignWebCenterSpaces/myuserconfigfile.secure
    wls.userkey=C:/siemens_repositories/workspace_siemens_occ/dev/OCCDesignWebCenterSpaces/keyfile.secure
    wls.userconfig=C:/siemens_repositories/workspace_siemens_occ/dev/OCCDesignWebCenterSpaces/config.secure
    ## Enter the targets on which the shared library is to be deployed.
    wls.target=WC_Spaces,AdminServer
    ## Enter the targets on which the webcenter.ear file is to be deployed.
    wls.webcenter.app.target=WC_Spaces
    ## Enter the name of the Spaces application (webcenter).
    ## Obtain this information from your systems administrator or from the
    ## WLS Administration Console as follows:
    ## 1. Login to WLS Administration Console.
    ## 2. Navigate to Deployments> webcenter>Overview
    ## The application's name displays here.
    webcenter.app.name=webcenter
    ## Use the restart.implementation.version.suffix property to override the next default
    ## implementation version number for your shared library.
    ## You can obtain the current implementation version from your
    ## systems administrator or from the WLS Administration Console as follows:
    ## 1. Login to WLS Administration Console.
    ## 2. Navigate to Deployments> [your-shared-library-name] >Overview
    ## The version number displays here. For example: 11.1.1.2.5
    ## The current implementation version is the last number, that is, 5 in this example.
    ## By default, the implementation version increments by 1 each time that you rebuild
    ## your shared library (using Run Ant Target>clean-stage).
    ## You can restart at a higher value if necessary. For example, if the current value is
    ## 11.1.1.2.20 and you want the next new version to be 11.1.1.2.41 rather than
    ## 11.1.1.2.21, do so by resetting the restart.implementation.version.suffix property to 40.
    ## Note:
    ## The first time you run Run Ant Target>clean-stage, the manifestImpl.properties file
    ## is created and the manifest.implementation.version property is set to
    ## 11.1.1.2.1. This initial version number is derived from the default.implementation.version
    ## set in build.properties (11.1.1.2) and appended with the restart.implementation.version.suffix property below.
    ## For example, if the restart.implementation.version.suffix is set to 1, the initial
    ## manifest.implementation.version will be 11.1.1.2.1.
    ## During subsequent builds, the restart.implementation.version.suffix and the lastNumber property
    ## in manifestImpl.properties are compared, and the higher of the two numbers is incremented by 1.
    ## If, for any reason, the manifestImpl.properties file is deleted, the file is recreated the next time
    ## that you run Run Ant Target>clean-stage, and the implementation version resets using the
    ## restart.implementation.version.suffix only (as if for the first time). For example, 11.1.1.2.1,
    ## if the restart.implementation.version.suffix=1
    ####restart.implementation.version.suffix=2
    ####restart.implementation.version.suffix.ear=2
    ###This change is probably not really necessary.
    restart.implementation.version.suffix=11.1.1.5
    restart.implementation.version.suffix.ear=11.1.1.5

  • Error in starting weblogic server using ant

    Hi,
    I am trying to start the weblogic server using ant.I used the following command:
    <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath>
    <pathelement location="${BEA_HOME}/weblogic81/server/lib/weblogic.jar" />
    </classpath>
    </taskdef>
    <target name="start-weblogic">
    <wlserver username="weblogic" password="weblogic" failonerror="false" servername="myserver" domainname="rwadomain" dir="${BEA_HOME}/user_projects/domains/rwadomain" host="localhost" port="7001" weblogichome="${BEA_HOME}/weblogic81" beahome="${BEA_HOME}" policy="${BEA_HOME}\weblogic81\server\lib\weblogic.policy" />
    </target>
    But it is giving me an error that java.lang.NoClassDefFoundError: weblogic/Server
    I also tried the following command:
    <target name="start-weblogic">
    <java classname="weblogic.Server" fork="yes" classpathref="weblogic.classes" failonerror="true">
    <sysproperty key="weblogic.Domain" value="rwadomain"></sysproperty>
    <sysproperty key="weblogic.RootDirectory" value="C:\bea\user_projects\domains\rwadomain"></sysproperty>
    <sysproperty key="weblogic.ConfigFile" value="config.xml"></sysproperty>
    <sysproperty key="weblogic.ListenAddress" value="localhost"></sysproperty>
    <sysproperty key="weblogic.ListenPort" value="7001"></sysproperty>
    <arg line="-ms200m -mx200m"></arg>
    </java>
    </target>
    But the problem with this command is that it does not reurn control to execute the further commands.
    Please suggest something.
    Thanks in advance
    -amit

    Hi,
    You should take a look at the <parallel> ant task.
    Regards,
    LG

  • Using Ant with Oracle

    I am trying to create tables using Ant build scripts for deployment purposes. I am able to create the schema and the sequences. It seems to be able to create tables except for triggers. I cannot create triggers after creating the tables. Ant displays an error whenever it reaches the part of a script which involves the trigger part. I am using the Oracle JDBC thin driver with Ant. Am I missing any files that should be included to support triggers? Is there a work-aorund? I appreciate the help...
    Thanks!

    First of all, for me, this is a complete wrong approach. You should just issue a "drop table <your_tablename>;" and then look if it succeded or not. You can catch the exception and handle it, so the build will not fail.
    If you really want do it with PL/SQL, then never do it the way you have tried to do it. Read the net about SQL injection.
    Remember, dbms_output will write to an output buffer on the server, not on your client. The client had to read from the buffer.
    set serveroutput on is a SQL*Plus command, it will fail if not issued there.
    It would probably make sense to return a value, indicating if the command succeeded or not. So you could code something like:
    SQL> get t
      1  create or replace function sidd ( p_tablename in varchar2 ) return varchar2 as
      2  begin
      3    for rec in ( select table_name
      4                 from   user_tables
      5                 where  table_name = p_tablename
      6               ) loop
      7      begin
      8        execute immediate 'drop table ' || rec.table_name;
      9        dbms_output.put_line( 'table ' || rec.table_name || ' dropped.' );
    10        return 'SUCCEEDED';
    11      exception
    12        when others then
    13          dbms_output.put_line( 'table ' || rec.table_name || ' coud not be dropped.' );
    14          return 'FAILED';
    15      end;
    16    end loop;
    17    return 'FAILED';
    18* end;
    SQL> /
    Function created.
    SQL> exec :ret := sidd ( 'my_t1' );
    PL/SQL procedure successfully completed.
    RET
    FAILED
    SQL> exec :ret := sidd ( 'MY_T1' );
    table MY_T1 dropped.
    PL/SQL procedure successfully completed.
    RET
    SUCCEEDED
    SQL>

  • Executing WLST scripts through InstallAnyWhere Java code

    We are trying to execute WLST scripts (embedded java mode) through custom Java class of the InstallAnywhere. We could not able to succeed in that, gives error "Weblogic.Home" not found. After passing this parameter we got "WLST_offline" class not found. We have included Weblogic.jar & config.jar in the Insatllanywhere Path, now we are getting NPE in readTemplate command.
    Suggest us the right way to do so.
    Thanks

    Typically the environment is set up using a Domain's setDomainEnv.cmd or setDomainEnv.sh scripts, you may want to see if there is anything obvious in the script environment setup that you are missing.

Maybe you are looking for

  • Numbers file wont open. please help asap!

    I've been workin on a Numbers file for some days and have always safed it at the end of the day. Today i wanted to open it but i keep on getting this error that it can not be opened. Does anybody know a quick solution to it?

  • Error- DBMS_STANDARD package must be created before using PL/SQL

    HI I am trying to run a very small and simple program on my Oracle81 personal edition on Win98. I get this error when i want to execute the program " package DBMS_STANDARD must be created before using PL/SQL " What should i do to create the package??

  • Saved PDF files are empty 6 months later

    On January 27th 2014 I filled a bunch of immigration forms from USCIS. I downloaded the files on my laptop, filled in the blanks and saved them on my hard drive. 2 weeks later I reopened them and printed couple of them and everything was fine, all fi

  • Cursor does not sort..

    Hi, I'm working with a package that has a cursor defined in it. the issue I'm having is the 'order by' does not see to be working and I cannot figure out why. I'm hoping some smarter coders here will spot why it fails and tell me what I'm missing. I

  • Download files and burning on cd

    Hi Mac is new to me - and I dont find it very easy compare to Windows - to be frank! Drag and drop dont realy function in mac it seems... I have downloaded some files in Safari. A download windows is opening and the files are stored here. If I mark t