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.

Similar Messages

  • Create domain from command line failed in wls91

    Hi,
    I am trying to create a simple domain from command line for wls91. It even didn't ask me the password. How can I do it? Thanks
    C:\testdomain>java weblogic.Server
    <Feb 23, 2006 9:11:50 AM PST> <Info> <WebLogicServer> <BEA-000377> <Starting Web
    Logic Server with BEA JRockit(R) Version R26.0.0-189-53463-1.5.0_04-20051122-204
    1-win-ia32 from BEA Systems, Inc.>
    C:\testdomain\config\config.xml not found
    No config.xml was found.
    Would you like the server to create a default configuration and boot? (y/n): y
    <Feb 23, 2006 9:11:56 AM PST> <Info> <Management> <BEA-140013> <C:\testdomain\.\
    config\config.xml not found>
    <Feb 23, 2006 9:11:56 AM PST> <Info> <Security> <BEA-090065> <Getting boot ident
    ity from user.>
    Enter username to boot WebLogic server:weblogic
    <Feb 23, 2006 9:12:00 AM PST> <Error> <Security> <BEA-090782> <Server is Running
    in Production Mode and Native Library(terminalio) to read the password securely
    from commandline is not found.>
    <Feb 23, 2006 9:12:00 AM PST> <Notice> <WebLogicServer> <BEA-000388> <JVM called
    WLS shutdown hook. The server will force shutdown now>
    <Feb 23, 2006 9:12:00 AM PST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FORCE_SHUTTING_DOWN>
    C:\testdomain>

    Hi,
    If you are still having problems creating a domain from the command line, the official solution would be to use
    {proper_path}/bea/weblogic{proper_version}/common/bin/config.sh -mode=console
    This will guide you to the same steps as the visual version of the wizard, but using the command prompt.
    If you are using windows, the same works but with the command config.cmd, and mutatis mutandis.
    Regards,
    LG

  • 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?

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When running windows defrag using schedule or from command line, it does not work. The command that I am executing as administrator is
    C:\Windows\system32>defrag /c
    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.
    It displays the above message and exits back to the command prompt. However if I run the command defrag C: it does work. Defragmenting from the GUI works as well as long as both the disks (C: and System Reserved) are selected and when I click on
    Defragment disks, works fine.
    I am concerned about defrag running from the task scheduler with the command "defrag /c" (auto scheduled using Configure Schedule... from Disk Defragmenter) does not work and the system never gets defragmented automatically.
    This happens only with some of the windows 7 VM's that we have.
    There are no entries in Event Log that point to the defrag (using task scheduler). Any ideas what may be going on?

    Hi,
    Could you defrag as below method:
    1. Open Disk Defragmenter by clicking the Start button. In the search box, type
    Disk Defragmenter, and then, in the list of results, click
    Disk Defragmenter.
    2.Under Current status, select the disk you want to defragment.
    3.To determine if the disk needs to be defragmented or not, click Analyze disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Once Windows is finished analyzing the disk, you can check the percentage of fragmentation on the disk in the
    Last Run column. If the number is above 10%, you should defragment the disk.
    4.Click Defragment disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    For more information, please read this article:
    Ways to improve your computer's performance
    http://windows.microsoft.com/en-in/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7
    Meanwhile, read this article:
    Defrag from the Command-Line for More Complete
    Control
    http://technet.microsoft.com/en-us/magazine/ff458356.aspx
    Karen Hu
    TechNet Community Support

  • 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)

  • WebSphere ServerRepository.xml / Deployed WAR Works, LH Command Line Fails

    Anyone deploying to WebSphere that has gotten the LH Command Line tool to function with a ServerRepository.xml pointing to a DataSource within WebSphere?
    We created a ServerRepository.xml that utilizes the WebSphere DataSource as the Performance is significantly greater for the idm.war deployed to WAS. The idm.war file works & performs better using this.
    LH Command line fails with a ServerRepository.xml pointing to a WebSphere DataSource. I've been troubleshooting with SUN support & so far we have not made any progress to resolve this. LH fails trying to execute anything...see below for example & partial cut/pasted error message.
    **set WSHOME, JAVA_HOME, & WAS_HOME 1st
    $WSHOME/bin/lh -Djava.ext.dirs=$JAVA_HOME/jre/lib/ext:$WAS_HOME/lib:/ebiz/sim/dev/lib console -u configurator
    Error:
    com.waveset.util.InternalError:
    ==> com.waveset.util.ConfigurationError:
    ==> java.sql.SQLException: invalid arguments in callDSRA0010E: SQL State = null, Error Code = 17,433DSRA0010E: SQL State = null, Error Code = 17,433
    at com.waveset.repository.ServerRepository.initDataStore(ServerRepository.java:1527)
    at com.waveset.repository.ServerRepository.getPrimaryDataStore(ServerRepository.java:1343)
    at com.waveset.repository.ServerRepository.getPrimaryDataStore(ServerRepository.java:1309)
    at com.waveset.repository.ServerRepository.init(ServerRepository.java:717)
    at com.waveset.repository.ServerRepository.<init>(ServerRepository.java:693)
    at com.waveset.repository.ServerRepository.getRepository(ServerRepository.java:134)
    at com.waveset.server.Server.init(Server.java:251)
    at com.waveset.server.Server.start(Server.java:217)
    at com.waveset.server.Server.getServer(Server.java:807)
    at com.waveset.server.Server.getServer(Server.java:784)
    at com.waveset.session.SessionFactory.getLoginConfigInfo(SessionFactory.java:849)
    at com.waveset.session.SessionFactory.startupMode(SessionFactory.java:916)
    at com.waveset.session.SessionFactory.getLoginModGrp(SessionFactory.java:885)
    at com.waveset.session.SessionFactory.getSession(SessionFactory.java:170)
    at com.waveset.session.SessionFactory.getSession(SessionFactory.java:390)
    at com.waveset.session.SessionFactory.getSession(SessionFactory.java:456)
    at com.waveset.session.WavesetConsole.newSession(WavesetConsole.java:361)
    at com.waveset.session.WavesetConsole.start(WavesetConsole.java:331)
    at com.waveset.session.WavesetConsole.main(WavesetConsole.java:218)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
    at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
    at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.waveset.util.Command.main(Command.java:96)
    Wrapped exception:
    Architecture:
    IDM 7.0
    WebSphere 6.x
    Oracle THIN Driver ojdbc14.jar - 10.2.0.x
    AIX 5.3 ML3

    To get the WAR deployed within WebSphere to function, I found the IDM Doc (IDM 7.0 Installation - "Configuring a WebSphere DataSource for Identity Manager" - Pgs 117 - 134) to be pretty decent for creating the actual JDBC DataSource.
    My recommendation is to setup the DataSource at the Scope=Cell Level & use a WAS J2C Auth Entry for the DataSource so you do not need to use the -U or -P options in your setRepo command...this also helps ensure its truly connecting using WAS.
    Looking at what you had, try this modified...
    $WSHOME/bin/lh -Djava.ext.dirs=$JAVA_HOME/jre/lib/ext:$WAS_HOME/lib setRepo -n -tSQLServer -icom.ibm.websphere.naming.WsnInitialContextFactory -fjdbc/idm -uiiop://localhost:9810 -o"D:\apps\temp.xml"
    *Additional comments
    -n will bypass any checking and ignore any error message.
    -f must be identical to the WAS JDBC DataSource Name jdbc/idm
    **You do not need to redeploy after replacing the ServerRepository.xml; however, you do need to bounce the WAS AppServer & should monitor the AppServer SystemOut.log on startup to ensure the IDM WAR starts up successfully
    ***This is all assuming the DataSource you have within WAS is working (you can validate via the TestConnection)

  • 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

  • Work from command line but did not work from JSP call

    I have a test class that should perform Triple DES. When I run it from command line work ok, but when runs from JSP it give me an error:
    Exception:
    ======================================
    javax.crypto.IllegalBlockSizeException: Input length not multiple of 8 bytes
    put 3 check points inside the code, and run it from command line and here is the result:
    C:\Documents and Settings\salasadi\Desktop\DigitalMailer>java TDESStringEncrypto
    r 123456781234567812345678 "CID=103&A
    this is pass 3
    this is pass 1
    this is pass 2
    here is the class:
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.io.*;
    public class TDESStringEncryptor
    static final int DATA_STRING_LENGTH = 64;
    public static void main(String[] args)
    try
    TDESStringEncryptor enc = new TDESStringEncryptor();
    String value = enc.Encrypt(args[0], args[1]);
    System.err.println(value);
    catch (Exception ex)
    System.err.println(ex);
    public String Encrypt(String inkey, String data)
    throws Exception
    // convert key to byte array and get it into a key object
    byte[] rawkey = inkey.getBytes();
    DESedeKeySpec keyspec = new DESedeKeySpec(rawkey);
    SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede");
    SecretKey key = keyfactory.generateSecret(keyspec);
    Cipher cipher = Cipher.getInstance("DESede/ECB/NoPadding");
    cipher.init(Cipher.ENCRYPT_MODE, key);
    byte[] out = cipher.doFinal( padString(data).getBytes( ) );
    System.out.println("this is pass 1");
    return byteArrayToHexString( out );
    private String byteArrayToHexString(byte in[])
    byte ch = 0x00;
    int i = 0;
    if ( in == null || in.length <= 0 )
    return null;
    String pseudo[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8",
    "9", "A", "B", "C", "D", "E", "F"};
    StringBuffer out = new StringBuffer( in.length * 2 );
    while ( i < in.length )
    ch = (byte) ( in[i] & 0xF0 );
    ch = (byte) ( ch >>> 4 );
    ch = (byte) ( ch & 0x0F );
    out.append( pseudo[ (int) ch] );
    ch = (byte) ( in[i] & 0x0F );
    out.append( pseudo[ (int) ch] );
    i++;
    String rslt = new String( out );
    System.out.println("this is pass 2");
    return rslt;
    private String padString( String s )
    StringBuffer str = new StringBuffer( s );
    int strLength = str.length();
    for ( int i = 0; i <= DATA_STRING_LENGTH ; i ++ )
    if ( i > strLength ) str.append( ' ' );
    System.out.println("this is pass 3");
    return str.toString();
    And here is the JSP call:
    TDESStringEncryptor encryptz = new TDESStringEncryptor();
    String cryptodata1 = encryptz.Encrypt(Keyz,cryptodata);
    Thanks

    Please use [ code ] tags when posting code.
    Please indicate the line that causes the exception.
    Please indicate what Keyz and cryptodata is.

  • How can I deploy by command line on AS 10.1.3?

    I have used oracle AS 10.1.3.
    I have created ear file from command line.
    But I don't know how i can deploy by command line?
    However i can deploy from Web manage.
    So, Please tell me How i can deploy by command line when i want?
    Thx

    Hello,
    In OracleAS 10g R3 (10.1.3.x) you can deploy by command line using the admin_client.jar utility, that is exposed also as Apache Ant tasks. In 10.1.3.x you can use the same tool to deploy in a single stand alone OC4J instance to a multi-nodees cluster managed by OPMN.
    Here the documentation about this utility:
    - Deployment Guide
    - Deploying with the admin_client.jar Utility
    -Deploying with the OC4J Ant Tasks
    Regards
    Tugdual Grall

  • Running FlexUnit tests from command line

    Sorry if that has been posted before: I searched best I could and nothing came up.
    I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
    I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
    I looked into at least how to build something from the command line, I found this:
    http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
    Can't get past this error:
    Buildfile: /Users/dbanks/build_test.xml
    BUILD FAILED
    Target "FlexUnitApplication" does not exist in the project "null".
    Total time: 0 seconds
    Adobe Flash Builder 4:
    An error has occurred. See the log file
    /Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
    Plus, even if I got this going, I am just building the swf.  I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
    FWIW, the script/xml I am using to try to build:
    build_test.xml:
    <?xml version="1.0"?>
    <project default="main">
        <target name="main">
            <fb.exportReleaseBuild project="NightclubMogul" />
        </target>
    </project>
    execute_build_test.sh:
    WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
    # works with either FlashBuilder.app or Eclipse.app
    "/Applications/AdobeFlashBuilder4" \
        --launcher.suppressErrors   \
        -noSplash   \
        -application org.eclipse.ant.core.antRunner   \
        -data "$WORKSPACE"    \
        -file "/Users/dbanks/build_test.xml" FlexUnitApplication
    I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere.  I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
    Any help would be great: getting the tests to build from command line, then getting them to run.

    C:\>sqlplus @myscript
    That would be the easiest variation
    C:\>sqlplus user/passwd@tns_alias @myscript
    would be an often used variation
    And then there is of course the version with parameter passing:
    C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
    Dunno about MSBuild

  • Query runs from command line, but not from scheduler

    We use Control-M to schedule shell scripts to be run on a Solaris server. Some of the scripts have to access an Oracle database and in that case our security team will include the DB user and password in the script, then encrypt it and the sys admin team schedules the encrypted shell script with Control-M. That works fine, but we've been trying to have the DB user and password on a separate encrypted file so that we don't have to ask for file encryption every time it's necessary to modify a script (this is a test environment).
    We have the script at ~/system_name/scripts, the query at ~/system_name/sql and the encrypted file and key at ~/system_name/keys. The SQLPlus call in the script is:
    ${ORACLE_HOME}/bin/sqlplus "`decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system`"@instance_name <<EOF
    @${DIR_SQL}/TEST_QUERY.SQL
    quit
    EOF
    The security analyst has tested is successfully from command line, but when we schedule it with Control-M the job abends and we get the following in the sysout:
    + decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system
    decrypt: cannot open ./../keys/key.3des.system
    decrypt: invalid key.
    + /u00/app/oracle/product/11.1.0/db_1/bin/sqlplus @instance_name
    + 0<<
    @/sistemas/hmp/system_name/sql/TEST_QUERY.SQL
    quit
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 3 09:41:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SP2-0310: unable to open file "instance_name.sql"
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0000000080
    Any ideas?

    Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
    It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
    Is the database on the same server as the script?
    If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
    Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
    Edited by: LindaA on 05-May-2010 07:43

  • How to automatically generate a build file of the application from command-line

    Hi All
    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) ?
    Thanks

    User, which jdev version do you use?
    I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
    You can use ojdeploy to build the project.  This is the only method which will also make the necessary changes to the descriptors.
    Timo

  • Unable to build and run Javapetstore using  Sun SDK from Command Line

    Hi,
    Here is a problem I?ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    ?Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    ? BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK."
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples bring to same result.
    I will post more information if needed.
    Thank you in advance for help.

    If you are using Windows XP:
    1. Right click on my computer
    2. Select Properties from the popup dialog
    3. Click on the "Advanced" tab
    4. Click the button towards the bottom that says "Environment Variables"
    5. In the dialog that pops up, look in both the User variables and the System variables for a variable named CLASSPATH
    6. If its not there, you need to create it. If you want to make it available to all users of your computer, create it as a System variable. If you only want it to be available to the current user, add it as a User variable.
    7. If it is there, or if you just created it, it needs to contain the following values: the current directory (symbolically abbreviated as a period: "."), any class libraries you want to be available to the java compiler (javac) or the java interpreter (java). By default, jre/lib and jre/lib/ext are searched for classes, so you don't need to include anything located in one of these folders on the classpath.

  • Run test case from command line

    Hi  All,
    Working environment : VS 2013 professional 
    Project type : Unit test project for (Windows 8.1 and Windows phone 8.1)
    I have a set of unit test cases and want to run it on command line.I tried MSTest.ext and vstest.console.exe for running test case but not succeed.  
    command :  MSTest.exe /testcontainer:path of project dll
    command :  vstest.console.exe path of project dll
    Type of Error
    Error : Unit test case for windows store and windows phone app can't be run outside appcontainer. 
    Error : No tests to execute
    command :  MSTest.exe /testcontainer:path of appx
    command :  vstest.console.exe path of appx
    Error : root certificate error 
    I just want to run windows 8.1 and windows phone 8.1 run test cases from command line.
    Thanks in advance.

    Hi vicky2468,
    Based on your issue, as far as I know that if we want to run unit test for windows store and windows phone app using mstest.exe or vstest.console.exe in command line, you will need to execute the .appx instead of the dll in command line.
    In addition, I tried to run the appx for unit test in command line,
    but I found that I also get the same issue as yours. I could not execute the appx for unit test in command line successfully.  But if we run it with VS IDE in Test
    Explorer windows, it seems that it works fine.
    So I suggest you can submit a feedback for this issue, to get the issue confirmed and diagnose by product team, would you please create connect report for it? You will get email notification for update.
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx
    When you submit the connect, I suggest you can provide your project for product team so that product team will
    be better help you solve this issue.
    If you submit it, please share me the link here, I will help you vote it. I think we could get the latest information
    from the product team experts. Of course, if I get any latest useful information, I will update it here.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while running a Discoverer Workbook with parameter from command line

    I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
    dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
    Parameter value is entered in correct format(Jan-07).
    When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
    Did anybody come across this issue before?

    Hello,
    If you have a few minutes, Windows is also aborting for me:
    the differences are, my situation is:
    a) am running the command line from a .bat file
    b) am NOT running with parms, want the discoverer query to come up for the user
    c) am running a query from the database
    i am signing in as myself BUT running a query that was created by a generic user called SREG
    c) if i run the .bat file from Windows Explorer, the query opens fine
    d) if i execute the .bat file from within Microsoft Access using the shell command,
    the query opens and then aborts RIGHT BEFORE the parm screen would display
    e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
    from vb using SHELL command works
    Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
    this is what i posted yesterday, tx: Re: Running Discoverer command line
    tx, sandra

Maybe you are looking for

  • Power converter required for new iMac?

    I have taken my new iMac to Germany. The provided power cord does not have a converter like the Mac laptops have. Do I need to purchase a power converter that will step down the voltage when plugging into the outlets in Germany, or is there a control

  • Partial delivery indicator C1

    I have an issue with the following.  We have set the complete delivery to X and are using the partial del indicator set to C1.  The system behaves as expected in as much as -  insufficient stock = no delivery.  Sufficient stock =delivery However, whe

  • Performance issue: looping over queries with a query results set

    I have code that works, but I think I should be able to run the code faster. I could try a stored procedure but there are so many variables to set. I tried with wrapping cftransation around the code, but it didn't make a noticeable difference. I need

  • Formula for Cross-Tab Column

    Hi I am struggling with a particular issue related to cross-tab and I tried a lot, but couldn't managed to get the solution. Please help with this issue , it would be of great help to me. Thanks Aniket [CrossTab problem|http://www.forumtopics.com/bus

  • Outlook 2010 in an RDS farm

    Hi All I am just getting my head around how my applications and more importantly Outlook 2010 will behave in my farm environment. I have 2 Host Sessions in a farm and have the same applications installed across both (Office 2010). I want Outlook to h