How to Deploy EAR from command line?

hello all, I would like to know if there is a good way to deploy EAR files from
the command line for weblogic server 6.1
the documentation says I can just copy the file over and use auto-deploy but then
it wont be administerable from the the admin console
thanks!
James

Hi James,
Autodeployment should work under the development mode.
Make sure you are not running into the production mode.
Another approach is to use WebLogic's JMX API to dynamically
deploy your EAR. This could be quite tedious though.
Lynch
"James" <[email protected]> ¼¶¼g©ó¶l¥ó
news:3c02eefa$[email protected]..
>
hello all, I would like to know if there is a good way to deploy EAR filesfrom
the command line for weblogic server 6.1
the documentation says I can just copy the file over and use auto-deploybut then
it wont be administerable from the the admin console
thanks!
James

Similar Messages

  • How to deploy an .ear from command line.....

    Definetly newbie question folks....
    I want to deploy from command line.....
    Hop in folks and help this newbie guy ;)
    Thanks
    Desi_Thug

    Please redirect the query to http://forums.bea.com/bea/category.jspa?categoryID=2004 - WebLogic Server/J2EE Newsgroups
    FYI
    http://edocs.bea.com/wls/docs91/deployment.html

  • How to pass arguments from command-line to Point(x,y)

    Hi guys, I'm a beginner. i'm trying to figure this out 'how to pass the arguments from command-line to Point(x,y)'. See below is the code that i have written. But it appears eror. Is there anyone can help me to figure this out?
    class day5FourDPoint {
    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;
    day5FourDPoint rect(Point AB, Point CD) {
    a = AB.x;
    b = AB.y;
    c = CD.x;
    d = CD.y;
    return this;
    void printout() {
    System.out.println("Four Dimension : " + a + b + c + d);
    public static void main(String[] arguments) {
    day5FourDPoint FD = new day5FourDPoint();
    FD.rect(arguments);
    if (arguments.length > 1 & arguments.length < 4) {
    for (int i=0; i < arguments.length; i++) {
    FD=Integer.parseInt(arguments);
    FD.printout();
    }

    I don't use VBS so this is just a guess based on what I have read in this forum. I think when you are passing an 'array' to javascript it needs to be a variant data type. My guess your arguments are not making it to the javascript because it it the wrong data type.

  • How to run Ant from command line in Tarantella env?

    I am getting Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher error message when I run Ant from tarantella command line. Is this Ant version issue? I can only find Ant with version 1.4.2. Where can I find the correct Ant version (1.6.5) and what class path do I need to specify if I want to run Ant from command line. This works if I run Ant inside of Jdeveloper 11g.
    thanks

    Hi
    What is the correct Java version? What are the steps to rectify the problem?

  • Deploy EAR from command prompt

    What is the best way to deploy an EAR from the command prompt using JDEV11g?

    Are you trying to deploy your application as EAR or are you trying to deploy the EAR file to an WLS ?
    If you are trying to deploy your application you can use ojdeploy
    ojdeploy -workspace /usr/jdoe/Application1.jws  -profile * If you are trying to deploy the EAR to an WLS
    wlserver_10.3\server\bin\setWLSEnv.cmd
    java weblogic.Deployer -adminurl "http://wls:7101" -remote -username "user" -password  "pass" -deploy -upload MyApp.ear -targets  AdminServer

  • How to pass arguments from command line to the .jsx

    Hi, I have a .jsx file that does some scripting with photoshop. I would like to be able to call that script from the command line and pass some arguments. I have been going off of the forum at http://support.muse.adobe.com/thread/290023, mainly the last post. Here it is ...
    command line example : runjavascript.vbs c:\mydirectory\test.jsx arg0 arg1 arg2 arg3
    =====start runjavascript.vbs ===============
    Set vbsArguments = WScript.Arguments
    If vbsArguments.Length = 0 Then
    WScript.Echo "Argument(0) is `your script to execute"
    WScript.Echo "Arguments(0+n) are passed to your script as argument(0) to argument(n-1)"
    Else
    ReDim jsxArguments(vbsArguments.length-2)
    for i = 1 to vbsArguments.length - 1
    jsxArguments(i-1) = vbsArguments(i)
    Next
    Set photoshop = CreateObject( "Photoshop.Application" )
    photoshop.BringToFront
    'DoJavaScript has 3 parameters
    ' syntax DoJavaScript(arg[0], arg[1], arg[2]]
    'arg[0] == javascript file to execute, full pathname
    'arg[1] == an array of arguments to past to the javascript
    'arg[2] == AiJavaScriptExecutionMode: aiNeverShowDebugger = 1,, aiDebuggerOnError = 2 aiBeforeRunning = 3
    ' only use 1
    Call photoshop.DoJavaScriptFile( vbsArguments(0), jsxArguments, 1)
    End IF
    =====end runjavascript.vbs ===============
    =======start test.jsx ====================
    #target photoshop
    for( n = 0 ; n < arguments.length; n++ ){
    alert("argument("+ n+")= " + arguments[n]);
    =======end test.jsx ====================
    In summary, it calls a VBScript from the command line and passing args to the VBScript where it will run the .jsx and pass along the args to the .jsx. This is all seems to work, except that the args never make it from the command line into the .jsx and I'm having trouble narrowing down why.
    I know the args are getting into the VBScript from the command line because I can successfully print them out using WScript.Echo. The VBScript then takes the args and makes a new array called jsxArguments which just holds the arguments that are to be passed on to the .jsx as the second argument in the DoJavaScriptFile().
    I cannot tell if the jsxArguments is correct or not. I added an isobject(jsxArguments) check in the VBScript which fails, but if I do a WScript.Echo jsxArguments(0) it will correctly print out the contents of the array at that position.
    I know that the args are not getting into the .jsx because I added a line alert(arguments.length) which prints out 0.
    Any help would be greatly appreciated. Thanks.

    I don't use VBS so this is just a guess based on what I have read in this forum. I think when you are passing an 'array' to javascript it needs to be a variant data type. My guess your arguments are not making it to the javascript because it it the wrong data type.

  • How to secure erase from command line

    what are the command(s) in terminal to use secure erase?

    Or in the srm manpage, if you're not aiming at a partition or at the whole disk...

  • How to programatically start j2ee application/service  from command line

    Hi all
    We have developed a j2ee application and deployed  the .ear file on SAP J2EE (Netweaver'04) engine.
    We are able to successfully start/stop the application from Visual administrator -> Deploy -> Service -> Start application (or) Stop application.
    We need to start and stop the same application programatically or via command line instead of doing it from VA.  Any thoughts from anyone on how to do it ?
    Thanks in advance.
    Regards
    Nagesh

    The cammands are there in the respective folders, these are just the batch files / .sh scripts that can be run from command line.
    /usr/sap/<instance>JC<client>/j2ee/admin
    go.sh and go.bat can run either on command line
    j2ee/configtool
    configtool.sh / configtool.bat  
    similarly for other smaller utilities. For the main server, the related commands are in exe directory of sapmnt
    /sapmnt/<instance>/exe
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 16, 2009 11:16 PM

  • Ant deploy from Jdev works fine - same ant deploy from command line fails

    Hi
    I'm using Jdev 10.1.3 and OAS 10.1.3 and created some web services. I can deploy using the Wizard in JDev - works fine, created a build.xml file using the <oracle:deploy> ant task. Also work fine from JDeveloper.
    But when running from command line (windows) I get the following:
    d:\>ant deploy
    Buildfile: build.xml
    init:
    compile:
    copy:
    ear:
    [war] Building war: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    [war] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task)
    [ear] Building ear: D:\invision\source\INVisionWebService1013\deploy\INVisionWebService.ear
    [delete] Deleting: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    deploy:
    BUILD FAILED
    D:\invision\source\INVisionWebService1013\build.xml:282: The following error occurred while executing this line:
    jar:file:/D:/apache/apache-ant-1.6.5/lib/ant-oracle-classes.jar!/oracle/antlib.xml:27: taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found
    I have studied the web for suggestion also http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14431/anttasks.htm#sthref164 but nothing seems to work. Tried copying oracle jars to my ant directory (ant version 1.6.5) but still no success (above error message disappered but other came instead).
    Why must this process be so complex. Can anyone help?

    Hi,
    You need to have the following jars in your classpath before firing the ant deploy task.
    ${Oracle_Home}\j2ee\utilities\ant-oracle-classes.jar;
    ${Oracle_Home}\j2ee\home\lib\adminclient.jar;
    ${Oracle_Home}\2ee\home\lib\oc4j-internal.jar;
    ${Oracle_Home}\j2ee\home\lib\javax77.jar;
    ${Oracle_Home}\j2ee\home\lib\javax88.jar;
    ${Oracle_Home}\j2ee\home\lib\jmxri.jar;
    ${Oracle_Home}\OracleAS_1\webservices\lib\wsa.jar;
    Please check your classpath and add the above jars, if not present and try ant deploy task now.
    I suppose it should work fine.
    Hope its helpful.
    Rgds,
    Prashanth Babu.

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • How to delete more than one workbook from command line

    Hi, I'd like to delete more than one workbook from command line:
    The following syntax, it doesn't work....but I followed the manual instructions:
    dis51adm.exe /connect eul/eul@uatdb /delete /workbook "ALE_TEST_1, ALE_TEST_2" /eul eul /log D:\Ale\delete.log
    where:
    eul/eul@uatdb: is the db’s schema/user where the EUL is installed;
    /delete "ALE_TEST_1, ALE_TEST_2": is the command to delete the workbooks, specified inside the “” (with the relative path)
    /log D:\Ale\delete.log: is the command to write a log’s file named “delete.log” to track the action     
    The log file says:
    22/4/2008 4:00:26 μμ
    dis51adm.exe /connect /delete /workbook ALE_TEST_1, ALE_TEST_2 /eul eul /log D:\Ale\delete.log
    Document ALE_TEST_1, ALE_TEST_2 not found in EUL.
    Internal EUL Error: ObjectNotFound - Can't find EUL element
    There are 0 eul elements to be deleted.
    Completed deleting eul elements.
    22/4/2008 4:00:29 μμ
    Anyone can tell me how is the right syntax ?
    Thanks in advance
    Alex

    Hi Rod
    I was coming to that conclusion myself but wanted to wait until the other avenues had been exhausted first - aka making sure of the workbook names.
    I checked through all of the command line documentation and read nothing which clearly indicated that only one workbook could be processed at a time, other than the fact that the syntax says workbook and not workbooks, which could be a big clue.
    I think you are right though in that it has to be one at a time, which would be a pain.
    Best wishes
    Michael

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • How to restore or backup Apex application from Command line ? URGENT

    We have Oracle apex 4.1 installed in Oracle 11g R2 database (windows 64-bit) 2008 R2
    For some reason our database dictionary objects are corrupted.
    We wanted to backup our Apex applications in some workspaces ASAP.
    We are not able to access apex from http://localhost:7777/pls/apex/htmldb_login
    We have an underlying database schema export (expdp).
    1) Is there a way to export or backup the apex application without logging into the apex URL ? if yes how ?
    2) Does Oracle has any of its own native tool to backup and restore from command line ?
    Thanks in advance

    My (MS Windows) experience, if I may; perhaps you'll find something useful.
    You'll find the README.TXT file in /apex/utilities directory. Read it.
    In order to use APEXExport, you need JDK version 1.5 or higher. Check your version by typing (and viewing the result):
    C:\>java –version
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)Its directory should be part of the PATH environment variable: on my computer, directory name isC:\Program Files\Java\jre1.6.0_06\binFurthermore, Oracle JDBC class libraries must be part of the CLASSPATH environment variable. Check whether it exists (in Control Panel - System - Advanced - Environment Variables). For my 10gXE, it is here:C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarI couldn't make it work; didn't know that ".\" directory must be entered into CLASSPATH as well (found that information in Arie Geller's book). Therefore, my final CLASSPATH version is:.\;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarOK, setup is done. Now, go to your /apex/utilities directory and, from the command prompt, run (mind the upper case!)java oracle.apex.APEXExportwhich will show a short help.
    I chose to export the whole workspace. In order to do that, I need the workspace ID (got it from Apex's SQL Workshop; that might be a problem as you can't get there, can you? I can't tell how to find that information apart from SQL Workshop, but I'm pretty sure someone, who is much more experienced than me, will know it). OK, here's how you find it:select v('WORKSPACE_ID') from dual;Finally, here's the final step - export:C:\apex\utilities>java oracle.apex.APEXExport -db localhost:1521:xe -user scott -password tiger -workspaceid 1038408092496568The result are fxxx.sql files (where "xxx" represents application number).
    I hope you'll manage to export your applications; basically, nothing special here (except that ".\" directory in the CLASSPATH variable).
    Best of luck!

  • How to run an executable from command-line

    I'm learning how to use the Terminal and I got stuck in a silly thing (I suppose it is). How can I run an executable file from command-line in Terminal?
    For example: I have a file named "Hello" in the folder /sample. If I use the ls command (ls sample), I can see the file Hello. Then I move to the directory (cd /sample) and try to run the file Hello (typing "Hello") but I got "command not found" message.
    If I drag the Hello file from Finder to Terminal and hit Return, it runs perfectly. And if I type the full path to the file (even if I'm already inside its directory), it also runs.
    So, my doubt is if there is any command to run an executable from command-line.
    Thanks

    KJK555 wrote:
    Hi VK:
    Can you enlighten me on why it's neccessary to do the "./" thingy in OS X when in unix/linux
    I never had to resort to doing that?
    Kj
    I took the trouble of reading *man bash* and it explains the issue. to add the current directory to PATH you need to add an empty path to PATH like this
    PATH=$PATH::
    you can add it to ~/.bash_profile so that it's executed automatically when you start bash. I suspect the linux system you are talking about had this set up by default or had it added to PATH in /etc/profile which defines PATH globally.

Maybe you are looking for

  • Windows Update error code 8024402C

    I've been having this problem for months and I can't make any updates so please solve my problem, I went to your website about that problem and it still doesn't solve my problem, I would really appreciate if you could solve it thank you in advance. P

  • How do I install Mountain Lion on FileVault2 encrypted System disk

    So I got a Mountain Lion installation DVD from our system administrator at work to upgrade my 2010 MacBook Pro. I run the installer from the disk under Lion and it copis stuff to /OS X Install Data and reboots. Now, it just displays the "Lion" passph

  • How can i get my email to go into the in box instead of all mail or archive box

    My incoming e mail does not appear in my inbox but does appear in All Mail or Archive boxes ,. how can i put this right

  • User and folder management !

    Hi, I'm currently busy with an external application written in VBA/Vb.NET to assign in "batch" the differents rights to folder ! I can create folder, user, and usergroup. But i'm still blocked for the assigning aspects. - add usergroup to folder - as

  • Some filters doesn't seem to work right after a fresh install

    Hi, I just begin learning Motion and I am having some problem when following the Apple Pro Training Series book. Certain filters don't seem to work properly, I cannot add these filters by using the "Add Filter" method, they don't even have a preview