Execute Ear from commandline

Hi,
I want to delplooy(execute) an Ear into WAS from commandprompt,please help me how to deploy the Ear from commandprompt,....can any body give the related links
ragards
srinivas

Hi
please go through this thread
how to deploy ear files from command line
If you find this helpful ,dont forget to reward some points
regards
rajeshkr

Similar Messages

  • Error while deploying EAR from commandline

    Hi,
    I am getting the following error when i am trying to deploy EAR using commandline in Oracle 10gAS 10.1.2
    Error: Unexpected error during lookup : Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (ias_admin);Nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for default (ias_admin)
    I am using the following commandline:
    Java -jar admin.jar ormi://hostname:ormi_port ias_admin ias_admin_password -deploy -file .\applications\<EAR_Filename>ear -deploymentName <deploymentname> -iiopClientJar stub_jar_filename
    I have tried without ormi port as well. The userid and password for ias_admin i am using are all correct as i am able to login to enterprise manager successfully.
    I am able to deploy the same EAR using EM but I want to create client stub and i don't know what property to set in EM which create client stub along with deployment.
    Thanks and Regards
    Amit Trivedi

    Looks strange, but do you have blanks in your path names? Don't do that. Cause pain only.
    --olaf                                                                                                                                                                                                   

  • Executing UD32 from a Java program

    Hi I have Clarify application istalled with Tuxedo6.4. I was able to use UD32 utility
    from commandline and execute services in tuxedo. On the Unix (Sun Solaris 2.6)
    I am using the following to execute the UD32
    $ud32 -U sa<NL>
    SRVCNM<TAB>CB_EXESUB<NL>
    CLFY_SUB<TAB>ExternalMsg<NL>
    EQUIP_ID<TAB>1<NL>
    <NL>
    however if I use a java program to execute from the same directory, it is not
    working. I am obtaining a process from the runtime and writting to the process
    to get the above. My code is as follows
    import java.io.*;
    public class udexec {
    public static void main(String args[]) {
    try{
    Runtime rt = Runtime.getRuntime();
    System.out.println("Before");
    Process prcs = rt.exec("ud32 -U sa\n");
    System.out.println("After: " + prcs);
    InputStreamReader isr = new InputStreamReader(prcs.getInputStream());
    PrintWriter out = new PrintWriter(prcs.getOutputStream());
    out.println("SRVCNM CB_EXESUB");
    out.println("CLFY_SUB ExternalMsg");
    out.println("EQUIPID 1");
    out.println("");
    int ret = isr.read();
    String line;
    System.out.println("Before Print");
    System.out.println(ret);
    catch (Exception e) { System.out.println(e); }
    Any help will be greatly appreciated.
    Thank You
    Raju

    No actually I am not getting any error messages. If I use from Command line, I
    can see the output in one of the stdout files. In tha case of java I am not getting
    any. I think after the first line (ud32 -U sa), writing to the process in java
    is not working. Atleast thats what I am thinking.
    --Raju
    Peter Holditch <[email protected]> wrote:
    Raju,
    In what way is it failing? Is there any error writtem to stderr of the
    ud process, or to
    the ULOG?
    Regards,
    Peter.
    Raju Vatsavayi wrote:
    Hi I have Clarify application istalled with Tuxedo6.4. I was able touse UD32 utility
    from commandline and execute services in tuxedo. On the Unix (Sun Solaris2.6)
    I am using the following to execute the UD32
    $ud32 -U sa<NL>
    SRVCNM<TAB>CB_EXESUB<NL>
    CLFY_SUB<TAB>ExternalMsg<NL>
    EQUIP_ID<TAB>1<NL>
    <NL>
    however if I use a java program to execute from the same directory,it is not
    working. I am obtaining a process from the runtime and writting tothe process
    to get the above. My code is as follows
    import java.io.*;
    public class udexec {
    public static void main(String args[]) {
    try{
    Runtime rt = Runtime.getRuntime();
    System.out.println("Before");
    Process prcs = rt.exec("ud32 -U sa\n");
    System.out.println("After: " + prcs);
    InputStreamReader isr = new InputStreamReader(prcs.getInputStream());
    PrintWriter out = new PrintWriter(prcs.getOutputStream());
    out.println("SRVCNM CB_EXESUB");
    out.println("CLFY_SUB ExternalMsg");
    out.println("EQUIPID 1");
    out.println("");
    int ret = isr.read();
    String line;
    System.out.println("Before Print");
    System.out.println(ret);
    catch (Exception e) { System.out.println(e); }
    Any help will be greatly appreciated.
    Thank You
    Raju

  • Execute Excel from ITS

    I'm trying to execute Excel from a ITS transaction using the GUI_EXEC, GUI_RUN or WS_EXECUTE functions I get a 'Select Program' dialog box from windows. I then have to find and select 'excel.exe' for it to work. Is there anyway to avoid the windows dialog box? It works find from SAPGUI.
    Here's my code:
          data: PATHNAME LIKE SOXPC-PATH.
        Check where the Excel is
          CALL FUNCTION 'SO_PROGNAME_GET_WITH_PATH'
               EXPORTING
                    DOCTYPE  = 'XLS'
               IMPORTING
                    PATHNAME = PATHNAME
               EXCEPTIONS
                    OTHERS   = 1.
        Call Excel
          CALL FUNCTION 'WS_EXECUTE'
               EXPORTING
                    PROGRAM     = PATHNAME
                    COMMANDLINE = 'S:\0004.xls'
                    INFORM      = 'X'  
               EXCEPTIONS
                    OTHERS      = 1.
    Thanks,
    Jaed

    If you wanted to role the execookie.txt file out to your user community, assuming they all use Internet Explorer, you could role a file which lets IE determine which application to launch.  The following file worked for me:
    TXT
    c:\Program Files\Internet Explorer\iexplore.exe
    JPG
    c:\Program Files\Internet Explorer\iexplore.exe
    JPEG
    c:\Program Files\Internet Explorer\iexplore.exe
    GIF
    c:\Program Files\Internet Explorer\iexplore.exe
    DOC
    c:\Program Files\Internet Explorer\iexplore.exe
    BMP
    c:\Program Files\Internet Explorer\iexplore.exe
    PDF
    c:\Program Files\Internet Explorer\iexplore.exe
    TIF
    c:\Program Files\Internet Explorer\iexplore.exe
    PPT
    c:\Program Files\Internet Explorer\iexplore.exe
    PPS
    c:\Program Files\Internet Explorer\iexplore.exe
    XLS
    c:\Program Files\Internet Explorer\iexplore.exe

  • How can I run a Local PC executable file from Enterprise Portal?

    I want to run local PC executable files from inside the portal. To be more specific I want to be able to open the Outlook and some powerbuilder executable applications.
    How can I do it?

    If you absolutely want to do it, you can use vbscript for it (though there are a lot of security contstraints)
    See Re: Displaying office programs

  • Error while executing report from Query designer

    Hi All,
    When I am executing from query designer, I am getting following error.
    Even I can't execute it from another portal where i created source system of BI server.
    But i can execute queriew from Query analyser and t-code RSRT.
    When I execute from Query desinger the url is as follows.
    http://XXX:00/irj/servlet/prt/portal/prtroot/pcd!3aportalcontent!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0PA_C01_Q0201&VARIABLE_SCREEN=X&DUMMY=5_
    And the error is:
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,*
    Required information for reproduction  according to note 948490.*
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sap.ip.bi.webapplications.runtime.service.metadata.impl.MetadataAccess.getMetadataModel(MetadataAccess.java:139)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.getMetadataModel(Page.java:8953)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4963)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4473)
    at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000100 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP unknown
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_24-b04
    Operating System SunOS - amd64 - 5.10
    REgards
    Mohan

    Hi mohan ,
      You can check these OSS notes for the issue  .
    1. 795699 - Customizing default error messages for HTTP
    2. 807000 - Http requests are not fully read after timeout
    3. 804124 - HTTP communication with XI Adapter Engine fails
    Regards,
    Lokesh

  • REP - 300 Error while executing report from Application

    Hi,
    I have report in Report Builder & for the same report form is there in Form Builder in which parameter page is designed. From application where I am calling report is internally calling form & in form Procedure Run Report is there which is calling report from Report Builder. Both report from builder & form form Builder are compiled . Also query is executing fine in Toad without error. Also all query fields are present in database.
    But when I am trying to excute report from Application it is giving error as "REP - 300 Invalid Identifier " & it displays whole query.
    Note - Report & it's Form are in ORACLE - 10g. Also the user through which I am executing report from application is ADMIN user , so it has executing permission.

    looks like error in parameters. check out the value of variable that you are passing through to report from form. Put a messages to see variable values before execute report.

  • I want to execute Thunderbird from Firefox toolbar

    I would like to be able to kick off the Thunderbird mail program from Firefox but cant seem to find out how to make a button on a toolbar to do so. I can execute Thunderbird from Start programs but would like to be able to do so while I am in Firefox. Want to read my emails.

    You can use the [http://webdesigns.ms11.net/getmail.html Get Mail] add-on to add a button to open Thunderbird.

  • How to enable private mode from commandline, with an URL. I am a software dev and I wish to have my application open links in Firefox. Using ShellExecute(), i c

    How to enable private mode from commandline, with an URL.
    I am a software dev and I wish to have my application open links in Firefox.
    Using ShellExecute(), i can do with with commandlines like:
    firefox.exe http://support.mozilla.org
    But I also want the option to open the link in private mode.
    I am able to start firefox in private mode by doing this:
    firefox.exe -private
    However, if I add a link to the command line
    firefox.exe -private http://support.mozilla.org
    I get strange results.
    If firefox is not running, it launches 2 copies of the application.
    One that opens in private mode and the other opens in normal mode and goes to the URL specified.
    If firefox is already running, it just opens the URL in a new tab.
    No private mode instance is launched.
    Am I using the command-line syntax incorrectly?

    It will never work if Firefox is already running as Firefox will use the already opened Firefox instance.<br />
    In that case only using a separate profile will work.
    You can try to specify the -url switch as well.
    *firefox.exe -private -url http://support.mozilla<i></i>.org
    You can also look at the -new-tab switch.
    *firefox.exe -private -new-tab http://support.mozilla<i></i>.org
    *https://developer.mozilla.org/en/Command_Line_Options

  • How to create windows executable file from a java file. Please help.

    Hi,
    For my project I developed the codes in Java. It is working well with java run time environment. But without that I can not run it. I need to create a exe file (windows executable file) from the java source code. If you have any idea please share it with me.
    Even if you know it very lightly, please help with what you know. That would be a big help for me.
    Thank you very much.

    Does anybody know how to read a manual?
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • Undeploying EARs from Netweaver 7.1 SP5

    Hi there,
    We are running into troubles here because we need to deploy an ear that was already deployed in the application server. Is there a (simple) was to completely undeploy an EAR in Netweaver 7.1 SP5.
    I come from a Glassfish/Jboss world where undeploying an app requires one click or simply deleting the ear from the auto-deploy folder and I'm sure such a feature exists in Netweaver 7.1 SP5.
    I checked the thread how do you deploy and undeploy a J2EE application to web App server but that does not really help since it talks about an older version of NW.
    Thanks a whole lot for your kind help,
    Dom

    Hi Marcel,
    Thanks for your reply however, this folder does not seem to exist anymore in Netweaver 7.1.
    I found a way to undeploy my applications using the admin console:
    1) Log onto the physical machine holding the AS.
    2) Navigate to: C:\usr\sap\SP5\J00\j2ee\console (or replace C: by anywhere you installed you stuff).
    3) Double click on the guiconsole.bat
    5) Now login with the credentials that you use for accessing the AS (e.g. Administrator, s... in the case of KA).
    6) With "man" you get a summary of all functionalities.
    7) Using LIST_APP you can list the apps deployed on the server.
    8) Use UNDEPLOY name=FULL_APP_NAME (e.g. SII_application_service_catalog).
    9) Wait a while and check using LIST_APP again to see whether it was undeployed.
    Hope that helps the next ones,
    Dom

  • Creating executable JAR from JDeveloper 11

    Hello
    Iv'e been using JDeveloper for developing my Java desktop app. It includes my classes and some additional external jar's. From within JDeveloper everything works fine, but now I want to deliver my app as a single JAR file (including the external jars).
    I searched and searched and couldn't find such an option. I tried creating deployment profiles and deploy my app but the resulting JAR was very small, did not include the utility jars and did not run in double clicking.
    I tried both Eclipse and NetBeans and they produced nice running executable jars of the sane application with only a few clicks. However, Im used to JDeveloper and would rather continue working with it. Is there a way to create a complete executable jar from JDeveloper (or maybe a plugin) ?
    If not than how do I do it manually so I can write my own generator ? (I know the basics, but how do I include the library jars ?)
    Thanks
    Guy Shilo

    Hi
    If you to want include external jars, don't keep those inside src folder but outside to that folder. Then only framework consider this as resources and will be packed while deploying. You can ensure it by creating a simple file using wizard. It will be displayed in application navigator under the folder 'Resources'
    See the related thread from How to read .txt file from adfLib jar at model layer using relative path . See what
    Frank Nimphius has replied. You may get some idea
    Edited by: Raguraman on Dec 13, 2011 10:12 PM

  • How to start an executable program from a java program ?

    Hi,
    does someone know how to start an executable program from a JAVA program ?
    Thanks, Fred.

    Take a look at the Runtime class.
    -S-

  • Help!! Undeployed async.ear from by mistake

    Hi everybody,
    I have installed 9iAS 9.0.2.0.1 and applied patch 9.0.2.6.0. I mistakenly undeloyed the async.ear from OC4J_Wireless. Can anybody send me the fiel to my email [email protected] Or advise How can I get it back? Thank you for your cooperation.
    Abdullah

    Abdullah,
    You have the following options:
    - File an iTAR on metalink. Oracle Support should be able to help you with this.
    - In wireless/j2ee/applications in your installation, there is the async.ear file. This file is also in the j2ee/OC4J_Wireless/applications directory. I presume you know how to re-deploy .ear files. Just make sure that your patches are being applied properly after re-deployment.
    /Ali

  • Execute query from report

    Hello,
    I would like to have a report wich contains a checkbox and a description. Depending on the checkboxes checked, the corresponding queries (stored in the same table, and for each description) should be executed and display the result on another page. The queries should be executed as from clicking a button.
    I have 2 question:
    1. how should I handle it for executing a query stored in a table? is it just report type sql query or something else...
    2. how can I know the exact lines (depending on the checked checkboxes when clicking the button?
    Thanks in advance!
    Regards,
    Sofie

    I'm first trying to count the checked boxes, to see if it is really doing the right thing.
    HTMLDB_APPLICATION.G_F01.COUNT counts the checked ones, right?
    so in my process i have:
    begin
    if HTMLDB_APPLICATION.G_F01.COUNT is not null then
    :P80_TEST := HTMLDB_APPLICATION.G_F01.COUNT;
    end if;
    end;
    but nothing is displayed in the field P80_TEST...
    what is wrong?
    Regards,
    Sofie
    PS: this seems to be a topic only for me :-)

Maybe you are looking for