Using parameters like: -Dname=value w/ WL command-line (startWeblogic)

Hello BEA/WL gurus and users, I have the dubious task of including information to be passed to a servlet deployed as a .war on my BEA/WL 92 instance. I would like to include a so-called minus D argument like the following when I start up my WL instance:
startWeblogic.(cmd|sh) -Dname=value
Then when the servlet is running I would like to extract the value from the name using some weblogic.jar gadgetry.
Does anything exists for doing the proposed above?
Please advise, David. (rants and raves are OK too).

Generally, the cleaner way to provide application parameters for web applications is to modify the web.xml to add parameters, or create a deployment plan to modify the web.xml (although I think the latter only works to modify existing parameters to different values). These strategies isolate the application changes to within the application itself, as opposed to changing the entire server environment.
That being said, if you use the NodeManager to start your servers, if you edit the server config in the admin console and go to the "Server Start" tab, you can edit the "Arguments" field to add your property setting. If the property value has spaces in it, you'll have to add quotes around the value.

Similar Messages

  • Where we use Conversions like Fixed Value and Value mapping?

    where we use Conversions? like Fixed Value and Value mapping?

    Mostly say when u have a scenario like converting a value in the source to a another in
    target. Say in source it might me KM but in target u might need Kilometers and u hav multiple entries like this.
    Ref:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    https://www.sdn.sap.com/irj/sdn/xi-elearning

  • Select into using  parameters versus real values

    Can anyone please explain how PL/SQL operates in a condition where you pass in a value versus
    hardcoding it ? When it's hard coded, I get a 1 row response and the correct information
    When I pass in the value through the call statement, I get exact fetch returns more rows than requested number of rows. ORA - 01422
    Here is the command line pl/sql --
    declare
    n_count number;
    aa char(255);
    bb char(255);
    cc char(255);
    begin
    select vol_id, orig_id, incoming_msg
    into aa, bb, cc
    from
    table_name where file_name ='123456'
    and incoming_msg ='I';
    n_count :=sql%rowcount;
    DBMS_OUTPUT.Put_line ('sqlcode is' || sqlcode);
    end;
    sqlcode is 1.
    The above returns one row ... which is what I want
    Now if I wrap it to pass in the file_name That is where I get the fetch returns more rows.
    create or replace procedure test(file_name IN VARCHAR2)
    authid CURRENT_USER
    IS
    n_count number;
    aa char(255);
    bb char(255);
    cc char(255);
    begin
    select vol_id, orig_id, incoming_msg
    into aa, bb, cc
    from
    table_name where file_name =file_name
    and incoming_msg ='I';
    n_count :=sql%rowcount;
    DBMS_OUTPUT.Put_line ('sqlcode is' || sqlcode);
    end;
    procedure is successfully created..
    then
    Call TEST('123456');
    error at line 1p
    ORA-10422: exact fetch returns more than requested number of rows
    ORA -06512 at TEST, line 17
    Line 17 is the select vol_id, orig_id, incoming_msg
    into aa, bb, cc
    so what is it about select and into in a procedure that causes this error ... AND how to get around it ?
    Many Thanks in advance.

    sgonos wrote:
    Can anyone please explain how PL/SQL operates in a condition where you pass in a value versus
    hardcoding it ? When it's hard coded, I get a 1 row response and the correct information
    When I pass in the value through the call statement, I get exact fetch returns more rows than requested number of rows. ORA - 01422
    Now if I wrap it to pass in the file_name That is where I get the fetch returns more rows.
    create or replace procedure test(file_name IN VARCHAR2)
    authid CURRENT_USER
    IS
    n_count number;
    aa char(255);
    bb char(255);
    cc char(255);
    begin
    select vol_id, orig_id, incoming_msg
    into aa, bb, cc
    from
    table_name where file_name =file_name
    and incoming_msg ='I';
    n_count :=sql%rowcount;
    DBMS_OUTPUT.Put_line ('sqlcode is' || sqlcode);
    end;
    procedure is successfully created..
    then
    Call TEST('123456');
    error at line 1p
    ORA-10422: exact fetch returns more than requested number of rows
    ORA -06512 at TEST, line 17
    Line 17 is the select vol_id, orig_id, incoming_msg
    into aa, bb, cc
    so what is it about select and into in a procedure that causes this error ... AND how to get around it ?Perhaps this part...
    where file_name =file_namewhich of course will be true for every row.
    I would suggest you rename your parameter to p_file_name and have the SQL read:
    where file_name = p_file_name

  • Using computer variables in task sequence "Run Command Line"

    I am attempting to deploy VMs through VMware's vRealize Automation tool using CM. The process creates a CM computer object then creates a direct rule on a CM collection for the new computer object. During the creation of the computer object vRA creates computer
    variables provided by me on the computer object. I see the computer object built and i see the custom variables on the computer object:
    Name Value
    dns1 10.10.10.10
    dns2 10.10.10.11
    gateway 10.10.10.1
    ipAddress 10.10.10.2
    netMask 255.255.255.0
    In the task sequence the last step is to "Run Command Line":
    cmd /c netsh int ip set address name="Ethernet0" static %ipAddress% %netMask% %gateway% & cmd /c netsh int ip set dns name="Ethernet0" static %dns1% & cmd /c netsh int ip set dns name="Ethernet0" static %dns2% index=2
    When the TS gets to that step it doesn't substitute the variables in the command with the computer variables listed above. Looking at the smsts logs after the deployment is complete I see lines stating:
    Set Command Line:...
    Start executing command line:...
    Executing command line:...
    ProgramName = ...
    All of those lines show the command exactly as it is above with the %variables% intact.
    The command immediately fails with the error:
    Invalid address parameter (%ipAddress%). It should be a valid IPv4 address.
    Does anyone have a suggestion on why the TS isn't using the variables? I found this article https://technet.microsoft.com/en-us/library/bb693541.aspx but its for 2007 not 2012. I wasn't able to find something comparable for 2012.

    I don't know why anyone here thinks you *need* sccm osd to achieve fully automated customizations.
    Customer selects base image (2008 r2 core, 2008r2 gui, 2012 r2 core, 2012 r2 gui), which should be thin and with zero customizations anyway,
    vaai accelerated clone creates vm,
    ip addr/gateway/dns config is injected with powercli,
    customers config management engine agent of choice is installed via powercli script injection/execution (we have puppet users, ConfigMgr users, saltstack users, IEM users, Cheff users),
    the clone completes in ~2 minutes and a VM is presented to the customer in less than 5 minutes 
    Deploying windows VMs via SCCM OSD is not only slow, but requires dev work on the customer side to get things rolling which wastes everyone's cycles including your own

  • Bulk PDF generation using 3-rd party tools and/or command line options

    Good day!
    I have another question:
    Is it possible to automatically convert a pack of Frame Maker books into PDF's using 3-rd party tools or command line options.
    Thank you

    Check out Datazone's DZbatcher available at
    http://www.datazone.com/english/overview/download.html
    This will give you the ability to batch convert FM books to PDFs.

  • Using a the string args to input command line numerical input

    Hello,
    I am trying to allow the user to input a number from the command line to set up the number of elements in an array. I am having trouble converting the string info to int. Could someone post an example of how this is possible? Or a way to read a string for a numerical value?
    Example:
    nameofprogram 105 (so this means they want a 105 element array create when the program starts)
    Message was edited by:
    2disbetter

    try this
    public class Test {
         public static void main(String[] args)
              final int i = Integer.parseInt( args[0]);
              int[] a = new int;
              System.out.println(a.length);
    if you have to have variable in size part of the array object creator it needs to be final.

  • Issues With Printer Using drv:///sample.drv/generic.ppd from Command Line

    Hi All,
    I was using generic postscript driver earlier with Mountain Lion. I Created a print queue using "lpadmin -p MYPrintQueue -m drv:///sample.drv/generic.ppd -v socket://<IP>:9100 -E"
    This created a print queue with Generic Postscript Driver.
    Now when i am trying same command with Mavericks, It's Creating a Local Raw Printer. Can anyone tell me where i am going wrong.
    I need command line resolution only.
    I know i can create print queue from cups web interface. There its working fine.
    But i need to use command line only.
    Thanks.

    Hi,
    Would you please try following commands?
    Please don't add quotes on the inf file path: change the driver folder name NC Print Drivers as NCPrintDrivers.
    rundll32 printui.dll PrintUIEntry /if /f C:\Temp\NCPrintDrivers\dellopd_A06\dellopd.inf /r "192.168.10.157"
    Make sure to run the command as admin.
    Let me know if it can work fine.
    Kate Li
    TechNet Community Support

  • Using JAR files when compiling in Windows command line

    Hi all,
    I can't get my JAR files to be recognized. Cananyone help with classpaths, syntax etc. when compiling Java in Windows??
    Thanks in advance.

    This page links to detailed descriptions of both the javac and java command syntaxes
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html#basic

  • Passing user defined parameters in oracle reports thru command line

    Hi All
    We are currently using Reports 6i with Oracle 10g 10.2.0.4.0
    I would like to know that is it possible to pass user defined parameters values while calling report from command line.
    For Example: I am using following coding to call report from command line.
    for /f "tokens=1-3 delims=/ " %%a in ('date /t mm/dd/yyyy -1') do (
    set mm=%%b
    set dd=%%a
    set yyyy=%%c)
    rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%.pdf desformat=PDF BACKGROUND=NO BATCH=YES
    The report contains some user defined parameter which is using in where condition of reqport query.
    Select * from banks
    where id = :Bank_ID
    Now I want to Pass value for :Bank_Id from command line (like we pass parameter list while calling report with run_product), how it is possible?
    Thanks
    Hassan

    Hi guys
    Fortunately I am able to perform the required task as I just added the report parameter field as follows:
    rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%%h%%mi%%ss%%ts%.pdf desformat=PDF BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log bank_id='MCB'
    bank_id is the report parameter using in where clause.
    Regards,
    Hassan

  • How can i pass input parameters to .rdf file in DOS  command prompt?

    Hi friends,
    Please give some idea about this problem.
    I am running a .rdf file at dos mode like this .
    c:\orareport\bin\RWRUN60 TEST.RDF USERNAME/PASS@DBINSTANCE
    now it asking input parameters.
    insted of passing the input values to parameter form
    can i pass at command line along with report name.
    if possible how ?
    thanx
    Reddy

    Hi,
    there is a plenty of parameters you can specify from DOC command line.
    You can have them in help menu.
    Lanch rwrun60
    Help\search\ seach for: param
    you will find parameters from rwrun60 from the command line.
    MODULErunfile
    [USERID=]userid
    [PARAMFORM=]YES
    [CMDFILE=]cmdfile
    [TERM=]termfile
    [ARRAYSIZE=]n
    [DESTYPE=]SCREEN]
    [DESNAME=]desname
    [DESFORMAT=]desformat
    [CACHELOB=]YES
    [COPIES=]n
    [CURRENCY=]currency_symbol
    [THOUSANDS=]thousands_symbol
    [DECIMAL=]decimal_symbol
    [READONLY=]YES
    [LOGFILE=]logfile
    [BUFFERS=]n
    [BATCH=]YES
    [PAGESIZE=]width x height
    [PROFILE=]profiler_file
    [RUNDEBUG=]YES
    [ONSUCCESS=]COMMIT
    [ONFAILURE=]COMMIT
    [KEYIN=]keyin_file
    [KEYOUT=]keyout_file
    [ERRFILE=]error_file
    [LONGCHUNK=]n
    [ORIENTATION=]DEFAULT
    [BACKGROUND=]YES
    [MODE=]BITMAP
    [PRINTJOB]YES
    [TRACEFILE=]tracefile
    [TRACEMODE=]{TRACE_APPEND|TRACE_REPLACE}
    [TRACEOPTS=]{TRACE_ERR|TRACE_PRF|TRACE_APP|TRACE_PLS|
    TRACE_SQL|TRACE_TMS|TRACE_DST|TRACE_ALL|(opt1, opt2, ...)}
    [AUTOCOMMIT=]YES
    [NONBLOCKSQL=]YES
    [ROLE=]rolename/[rolepassword]
    [BLANKPAGES=]YES
    [DISABLEPRINT=]YES
    [DISABLEMAIL=]YES
    [DISABLEFILE=]YES
    [DISABLENEW=]YES
    [DELIMITER=]value
    [CELLWRAPPER=]value
    [DATEFORMATMASK=]mask
    [NUMBERFORMATMASK=]mask
    [DESTINATION=]filename.DST
    [DISTRIBUTE=]YES
    [PAGESTREAM=]YES
    EXPRESS_SERVER="server=[server]/domain=[domain]/user=[userid]/password=[passwd]"
    [CUSTOMIZE]=filename.xml | (filename1.xml, filename2.xml, . . .)
    [SAVE_RDF]=filename.rdf
    <param>=value
    Mbo

  • Starting Projector w/Command line Parameters

    I would like pass one to three command line parameters to the projectors embedded SWF at runtime.
    Player 11.1
    myProjector.exe param1, param1
    Thanks,
    Jim

    Im looking to do this via a command line. Ultimately how I intend on using this is creating a Windows Explorer Context Menu that allows me to right click on a folder or file and automatically add it to iTunes.
    Ive already created one to 'Play in iTunes' and using the command line mentioned above and it works like a charm.
    Thanks again!

  • GUI Applications unable to use command line tools

    Hi All-
    I've searched, but I can't find a thread about this one, so...
    On OS 10.4.5:
    Whenever I use a GUI app that wants to use a command line tool (e.g. curl, df, java), the app fails giving an error message to the effect of "unable to find curl" or the like. It is as if the GUI cannot find my unix $PATH.
    Examples:
    -- Eclipse refuses to launch, because it appears to use "java xxxxxxx" to launch.
    -- Automator fails to run certain Safari actions because they use curl to navigate web pages.
    -- Carbon Copy Cloner fails to launch, because it can't find a tool (df, IIRC) to read drive/volume info
    Possibly relevant details:
    -- I can use the tool in question from the command line, so they are present, and in my $PATH, but the GUI can't find them.
    -- I recently moved from an old G4 to a relatively new G5, and had issues migrating files, so I eventually just copied my entire home directory from the old machine to the new, replacing the freshly created one on the new machine. I feel like that missed something that tells the GUI where your $PATH is, or some other link between GUI and command line.
    -- I created a new user, and that user does not experience the same troubles. This adds to my suspicion that it is account/PATH related.
    Any help anyone can give it greatly appreciated.
    -p
    PM G5 dual 2.0   Mac OS X (10.4.5)  

    Did you by any chance create an evironment.plist file? It is located in ~/.MacOSX/ If you don't know about it or don't know to look (.MacOSX is normally invisible), try this:
    In Finder.app, in the "Go" menu select "Go to Folder..." (shift-command-G), type ~/MacOSX in the text field and hit OK, the finder should then open a window or complain.
    If it opens a window and you find in it a file named environment.plist move that file to the desktop and try your applications. Do they work as advertized? Try again after logging in/out if things don't work. Do they work now?
    Whatever hapens, tell us more...

  • Using process manager to get command line of a running application

    hello,
    i'm currently using the process manager framework to get a list of current running processes on the machine. i would like to get the command line to display to the user. i can see how to get the path to the executable file. i.e. /Applications/AppRunning however i'd like to get the full command line and im either missing it from the documentation or not seeing the links to get that information. so i want to get /Applications/AppRunning -c someoption -f another option. can anyone recommend a function to assist me or if im using the wrong API to get the information i am looking for can someone recommend the correct API?
    thank you very much.

    musikit wrote:
    thank you very much. you have been more then informative about this. i'll have to check out the kernel queues and events api you mentioned. i've never really digged this far into a unix style OS before. it's pretty interesting. it seems like EVFILT_PROC is what i want to get process starts/stops.
    I've never done this either, so I'm quite sure I'm missing some big things here. Some other things that might be handy are dtrace and ptrace. I strongly suspect that there is some really easy way to do it that I don't know about. You might try searching on the Apple developer mailing lists.
    at the end of the day though i still need to be able to retrieve the command line of a running executable. 'ps' can do it so i'm assuming there is a programatic way of doing it. is the mac 'ps' command source code online anywhere that i can see what it's doing?
    I don't know about ps. There are a number of Mac applications that do things similar to what you propose. Marcopolo is open-source and can detect when applications are launched.
    i have looked at the linux procps package however it relies on the procfs which mac does not have.
    Amit Singh wrote a MacFUSE-based procfs for the Mac. You can look at the source code to that, but, to quote Amit "the MacFUSE version of procfs makes heavy use of the Mach programming interfaces". Good luck with that. Still, there might be some helpful information in that link.

  • Regkey Import via task sequence using command line. Running directly from DP.

    I have a package that is going to run straight from the dp called JAVAHOME. Inside this package there is a regkey called JAVAHOME.REG
    If I want to run it as part of a task sequence using a command line.
    The run a command line step has use package called JAVAHOME checked.
    Now to import it, in run a command line I use
    cmd.exe /c reg.exe import javahome.reg
    or
    cmd.exe /c reg.exe import .\javahome.reg
    I always get it wrong when running things directly from the DP.

    To be sure about the behavior, I would use a batch file and use the %~dp0 variable. So, the command line in the batch file would be something like
    reg.exe import %~dp0javahome.reg
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • DP Execution-Execute a DP without supplying value for command line argument

    DP Execution - How to execute a DP without supplying value for a command line argument?
    My requirement is like Directive should have an optional command line argument.
    i.e., even if the value is not supplied for the command line arg, my DP should run.
    Your help is appreciable.

    What is DP?
    What is Directive?

Maybe you are looking for

  • Content selector is not loading content in application

    Hi all, I am working on weblogic portal 10.2 and MySQL 5. I have created one content selector using workshop and i can preview the content in workshop Same content I can see using weblogic portal admin console. And written a JSP to display the conten

  • Can't get PHP to work

    I've gone through the articles at http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html and http://www.macdevcenter.com/pub/a/mac/2005/08/16/apache.html?page=2 regarding enabling PHP on Tiger, but can't get started. The problem seems to

  • Page down problem in O3AI transaction

    Hi dear.. i am uploading a file in ap using o3ai transaction ,,, but its not having Page down tab So need to insert OK CODE = "P+ "  manually .. but each time it needs  curser moment at the last entry and then needs page dwn statement.. Any body can

  • I just started to have font problems, fonts deactivate as soon as they are activated

    I just started experiencing font problems, fonts deactivate as soon as they are activated. I noticed that in my emails the fonts were suddenly bold and I can't use passwords on Safari in some cases. Has anyone experienced this?

  • 6500 - 3750 rx oversizedpkts problems

    We have 2 3750 stacks connected to 2 6500 switches. One stach is connected to a 6513 switch and has no problems. The other stach is connected to a 6506 switch and on the truk ports we get a lot of rxoversizedpkts on the 6506. We don't use jumbosize a