Error executing batch file within web application

Hi all,
I am trying to execute a batch file from within my web application (struts 1.2).
The batch file is being kept inside the 'src' folder. The batch file contains only one command to open NOTEPAD.
The code inside my Action class is:
URL url = getClass().getResource("/test.bat");
java.io.File file = new java.io.File(url.getPath()) ;
String path = file.getCanonicalPath();
r.exec(path);
I have deployed this on tomcat and get an error like this:
java.io.IOException: Cannot run program "C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\CIGTAFAPP\WEB-INF\classes\test.bat": CreateProcess error=2, The system cannot find the file specified
The problem is not with the batch file because when I try to execute the file directly from the classes folder, it opens up the notepad editor.
I have a specific requirement where I need to create/read this batch file from within the project structure.
Can someone please help me with this?
Regards

The entire content of the file is as below:
set javaTestProjectPath=D:\projects\CIGTAF\LRTestCases
C:
cd %javaTestProjectPath%
set path=C:\Program Files\Java\jdk1.6.0_21\bin
set classpath=%javaTestProjectPath%\bin;%javaTestProjectPath%\lib\selenium-server-standalone-2.20.0.jar;%javaTestProjectPath%\lib\testng-6.4.jar;%javaTestProjectPath%\lib\junit-4.10.jar;%javaTestProjectPath%\lib\poi-3.6-20091214.jar;%javaTestProjectPath%\lib\mail.jar
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\Mailsetup.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\MailAuthenticator.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\ReadData.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\ReadWriteExcelResults.java -d %javaTestProjectPath%\bin
javac -verbose %javaTestProjectPath%\src\com\core\testscripts\SeleniumFramework.java -d %javaTestProjectPath%\bin
java org.testng.TestNG %javaTestProjectPath%\SelXD-Config.xml -d %javaTestProjectPath%\test-output
none of these are getting executed.
regards
Edited by: 887789 on May 4, 2012 1:46 AM

Similar Messages

  • Run remote batch file from Web Application Server

    Hello,
    I've developyed a Java program and deployed it on WAS v7.1.
    My java program tries to run a remote batch file which is located on remote Windows file system (and not on the WAS file system itself).
    The batch file was launched on the remote server (I saw it on the Task Manager of the remote server), but the remote batch file actually wasn't run (it was stuck).
    In order to run the remote batch file from my java program that is deployed on the WAS I've created a batch file on the WAS file system which its contnet is:
    cd c:\jobs
    psexec.exe 
    iltlvt40 -u SAPServiceCE1 -p a2i2000! c:\automation\DiskSpace\runDiskSpace.bat
    The jobs folder contains the psexec.exe file (you can find more details about the psexec on this link: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx).
    iltlvt40 is the remote server.
    SAPServiceCE1/a2i2000! is a user/password on the remote server which has a full permissions.
    My java program calls this batch file using the Runtime.exec() java method in order to run the remote batch file.
    Please guide me how to solve this problem?
    Best regards,
    Ahmad

    Hi,
    To which batch file you have meant to add some commands: for the local one or remote?
    I've added to the local one some different commands and it's works.
    I think there is a permission problem when we are trying to go out of the WAS file system.
    Best regards,
    Ahmad

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to avoid  specified is out of bounds error in flex 4 mxml web application

    how to avoid  specified is out of bounds error in flex 4 mxml web application
    hi raghs,
    i  want to add records in cloud.bt while adding the records if we enter  existing record details and try to save again na it wont allow to that  record.
    that time the alert box  should show this msg "This record is already existing record in cloud database.
    ex:  one company name called mobile. i am adding a employee name called raja  now i save this record,its data saved in     cloud DTO
      again try to add same employee name raja under the same compny means it should through error.
    I am give my code here please if any suggession tel.
    CODE:
    private function saveRecord():void
                refreshRecords();
                model.employeeDetailsReq=new EMPLOYEEDETAILS_DTO();
                    var lengthindex:uint=model.employeeDetailsReqRecordsList.length;
                    var i:int;
                    for (i = 0; i < lengthindex; i++)
                    if((model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employ ee name==customerdet.selectedItem.employeename)&&
                          (model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employeeN    umber==customerdet.selectedItem.employeeID)){
                        Alert.show("you cannot Add Same CustomerName and Invoiceno again");
    (when this line come the error through like this: Index '8' specified is out of bounds.
    else
    var dp:Object=employeedet.dataProvider;           
    var cursor:IViewCursor=dp.createCursor();
    var employeename:String = employeename.text;
             model.employeeDetailsReq.employename = employeename;
    model.employeeDetailsReq.employeeNumber=cursor.current.employeeID;
    var sendRecordToLocID:QuickBaseEventStoreRecord = new
                        QuickBaseEventStoreRecord(model.employeeDetailsReq, new
                            KingussieEventCallBack(refreshList))
                    sendRecordToLocID.dispatch();
    <mx:Button   id="btnAdd" x="33" y="419" enabled="false" label="Add" width="65"   fontFamily="Georgia" fontSize="12" click="saveRecord()"/>
    employeename and employeeID are datafields of datagrid. datagrid id=customerdet
    employeeDetailsReqRecordsList---recordlist of save records
    Thanks,
    B.venkatesan

    I do not know for sure as to how to do this, but I found this on Adobe Cookbook
    http://cookbooks.adobe.com/post_Import_Export_data_in_out_of_a_Datagrid_in_Flex-17223.html
    http://code.google.com/p/as3xls/
    http://stackoverflow.com/questions/1660172/how-to-export-a-datagrid-to-excel-file-in-flex
    http://wiredwizard.blogspot.com/2009/04/nice-flex-export-to-excel-actionscript.html
    This has a demo that works
    http://code.google.com/p/flexspreadsheet/

  • Execute batch file having gmake command

    Hi,  I am executing batch file having gmake command in it, when i run batch file directly it works correctly,
    but when i try to execute it from LabVIEW using system Exec.vi  
    i got following error,  
    process_easy: DuplicateHandle(In) failed (e=6)
    process_easy() failed to launch process (e=6)  
    Thanks in advance

    What OS?
    How are you calling it in LV?
    What is in the batch file?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Internal error raised trying to instantiate web-application

    Hello,
    I have an application recently deployed with success in a dedicated OC4J, if you test everything seems working fine(the root jsp file is shown), however when i set datasource pool connections on data-sources.xml plus restart OC4J i get everytime an html 404 error code, if you restore the default data-sources.xml plus restart of the OC4J the jsp is shown again,
    I tested the pools with the enterprise manager tool and it is working fine, when i get a look to log.xml i can see the error
    Internal error raised tyring to instantiate web-application: xxxxxxxxx-xxxxx-0.0.1-XXXXXXXX defined in web site OC4J 10g (10.1.3) Default Web Site. null
    anyone have some idea?
    thanks in advance

    Ric,
    Top sections are those libs existed in the original project, the bottom part are those new added libs
    //Lib existed in the original project
    JSP Run time
    ADF Faces Databinding Runtime
    ADF Controller Runtime
    MDS Runtime
    JSF 1.2
    JSTL 1.2
    ADF Faces Runtime 11
    ADF Common Runtime
    BC4J Tester
    ADF Page Flow Runtime
    MDS Runtime Dependencies
    DVT Faces Runtime
    DVT Faces Databinding Runtime
    Servlet Runtime
    Commons Beanutils v1.6.1
    Commons logging 1.0.3
    Oracle JEWT
    JSTL 1.2 Tags
    Oracle XML Parser v2
    JDeveloper Runtime
    SQLJ Runtime
    ADF Model Runtime
    BC4J Runtime
    Oracle JDBC
    Connection Manager
    BC4J Oracle Domains
    //Following is new added, whick are not included in original project
    Deploy
    Oracle ADF DataTag library Tag Libraries
    Oracle BC4J DataTag library Tag Libraries
    Trinidad Runtime 11
    OC4J API
    ADF Toplink Runtim
    BC4J HTML
    BC4JBC Runtime
    Obsolete JDeveloper Extension SDK
    BC4J Client
    BC4J Service Client
    BC4J Generic Domains
    BC4J Extension
    BC4J EJB Client
    OJSP Tags
    ADF Portlet Runtime
    Portlet Runtime CLient
    Port Runtime Dependenicis
    Portlet Runtime Client WSRP Stubs
    Customizable Components
    ADF Faces Cache

  • Executing batch file from Java stored procedure hang

    Dears,
    I'm using the following code to execute batch file from Java Stored procedure, which is working fine from Java IDE JDeveloper 10.1.3.4.
    public static String runFile(String drive)
    String result = "";
    String content = "echo off\n" + "vol " + drive + ": | find /i \"Serial Number is\"";
    try {
    File directory = new File(drive + ":");
    File file = File.createTempFile("bb1", ".bat", directory);
    file.deleteOnExit();
    FileWriter fw = new java.io.FileWriter(file);
    fw.write(content);
    fw.close();
    // The next line is the command causing the problem
    Process p = Runtime.getRuntime().exec("cmd.exe /c " + file.getPath());
    BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line;
    while ((line = input.readLine()) != null)
    result += line;
    input.close();
    file.delete();
    result = result.substring( result.lastIndexOf( ' ' )).trim();
    } catch (Exception e) {
    e.printStackTrace();
    result = e.getClass().getName() + " : " + e.getMessage();
    return result;
    The above code is used in getting the volume of a drive on windows, something like "80EC-C230"
    I gave the SYSTEM schema the required privilege to execute the code.
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'java.io.FilePermission', '&lt;&lt;ALL FILES&gt;&gt;', 'read ,write, execute, delete');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    GRANT JAVAUSERPRIV TO SYSTEM;
    I have used the following to load the class in Oracle 9ir2 DB:
    loadjava -u [system/******@orcl|mailto:system/******@orcl] -v -resolve C:\Server\src\net\dev\Util.java
    CREATE FUNCTION A1(drive IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'net.dev.Util.a1(java.lang.String) return java.lang.String';
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    The problem that it hangs when I execute the call to the function (I have indicated the line causing the problem in a comment in the code).
    I have seen similar problems on other forums, but no solution posted
    [http://oracle.ittoolbox.com/groups/technical-functional/oracle-jdeveloper-l/run-an-exe-file-using-oracle-database-trigger-1567662]
    I have posted this in JDeveloper forum ([t-853821]) but suggested to post for forum in DB.
    Can anyne help?

    Dear Peter,
    You are totally right, I got this as mistake copy paste. I'm just having a Java utility for running external files outside Oracle DB, this is the method runFile()
    I'm passing it the content of script and names of file to be created on the fly and executed then deleted, sorry for the mistake in creating caller function.
    The main point, how I claim that the line in code where creating external process is the problem. I have tried the code with commenting this line and it was working ok, I made this to make sure of the permission required that I need to give to the schema passing security permission problems.
    The function script is running perfect if I'm executing vbs script outside Oracle using something like "cscript //NoLogo aaa1.vbs", but when I use the command line the call just never returns to me "cmd.exe /c bb1.bat".
    where content of bb1.bat as follows:
    echo off
    vol C: | find /i "Serial Number is"
    The above batch file just get the serial number of hard drive assigned when windows formatted HD.
    Same code runs outside Oracle just fine, but inside Oracle doesn't return if I exectued the following:
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    Never returns
    Thanks for tracing teh issue to that details ;) hope you coul help.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • Run batch file to install application

    Is there a way to run a batch file as an Application? We have a few batch files that actually install applications. I was hoping to point to these batch files to install the application instead of having to rewrite a whole lot of scripts. Also has any one
    had any success with installing HP Security Manager and HP Drive Encryption as an application?
    Thanks.

    I'm having issues with a few of my batch files. Here is the first batch file, it just calls a registry setting for import:
    regedit.exe /s \\SERVER\software$\WinSCP\Lansweeper.reg
    The next one installs an application for faxing in our environment:
    cls
    @echo ******************************************
    @echo ***  Please do not close this window!  ***
    @echo ******************************************
    @echo Updating RightFax Client...
    @echo OFF
    REM Determine the architecture of the machine
    IF "%PROCESSOR_ARCHITECTURE%" == "x86" (    
        SET PROGFILES=%programfiles%
    ) ELSE (
        SET PROGFILES=%systemdrive%\Program Files (X86^)
        msiexec.exe /i "\\SERVER\software$\RightFax\Client\RightFax\Setup\RightFax Print Processor x64.msi" /qn
    \\SERVER\software$\RightFax\Client\Prereqs\vcredist_x86.exe /q
    msiexec.exe /i "\\SERVER\software$\RightFax\Client\RightFax Product Suite - Client.msi" /qn REBOOT=Suppress RUNBYRIGHTFAXSETUP=2 CONFIGUREFAXCTRL=1 ADDLOCAL="FaxUtil,FaxCtrl" INSTALLDIR="%PROGFILES%\RightFax" RFSERVERNAME="RIGHTFAX"
    They both work outside of MDT, even if I run them after it is imaged. Thanks!
    Problem with this I belive is authentication. You try to run files from share \\server\Software$ and I would guess that the batch files is on
    \\MDTServer\Deploymentshare$ or somwhere else. On the client. Logon as local admin and run the batch file and see what happens.

  • How to execute batch file from JSP

    hi frens !
    i wanna know how to execute batch file from my JSP.i am using exec() method to get call the batch file. but its not working ....plz help
    here mine code:-
    File F = new File("C:/var.bat");
         try{
          if (F.exists())
            Runtime rt = Runtime.getRuntime();
            String url=F.getAbsolutePath();
             Process proc = rt.exec(url);
            proc.waitFor();
            proc.destroy();
            catch(Exception IOEx){
           System.out.println(IOEx);
      }Thanks and Regards
    Allwyn

    You might improve your chances of getting help if you do two things:
    1) Explain what "not working" means.
    2) ChangeSystem.out.println(IOEx); to IOEx.printStackTrace(); (in the eventhat is in fact related to "not working").

  • Executing Batch files from Runtime.getRuntime().exec

    Can we execute batch files from Runtime.getRuntime().exec() method.
    Regards,
    Nalini

    hi,
    import java.io.IOException;
    class BatchFileTest{
         public static void main(String args[]){
              try{
              Runtime r = Runtime.getRuntime();
              Process p = r.exec("startcmd.bat");
              catch(IOException en){
                   en.printStackTrace();
    -Regards
    Manikantan

  • Execute Batch Files, DOS Commands etc. from my Java Application

    Can someone show me how it works?
    I dont need any return values, just execute a Batch File or a Command
    Thx, Guardian

    Hi Luke,
    Just wanna add 2 things to what you've written. (your sample code)
    Point 1pro.waitFor(); should be called before attempting the read anything from the process' InputStream if you don't want to lose anything your process might print out. When Runtime.getRuntime.exec("your_command") is executed, the resulting process is just another runaway thread unless you tell you calling thread to wait for this process to end before proceeding further. This is where waitFor() comes in.
    Point 2Runtime.getRuntime().exec("C:\\command.com /C mybat.bat"); works but it is pretty platform dependent. If you need to write platform independent stuff, you could just drop the command.com stuff and go right to the batch file or the command you need to execute. I've managed to just survive with Runtime.getRuntime().exec("mybat.bat");Regards,
    Noel

  • Database connection error | created a new datasource | web application

    Hi,
    I am trying to deploy a J2EE web application on SAP Netweaver 7.0. I have to connect to a Oracle database schema (Not the default schema used by SAP). I am using Java and JDBC to make connections to the database.
    In order to accomplish this, I created a new data source in Visual Admin. Referenced this in the web.xml and deployed the application. The application is deployed successfully, without any errors or warnings.
    However, when ever the Java program connects and executes a prepared statement, I get this error in the database logs
    bc.direct.DirectPreparedStatement#Java#com.sap.sql_0003#com.sap.sql.log.OpenSQLResourceBundle#SQL error occurred on connection xxxx111:xxx:xxx: code=942, state="42000", message="ORA-00942: table or view does not exist
    SQL statement is "SELECT "XMLVALUE" FROM "BC_DDDBTABLERT" WHERE "NAME" = ?".#5#942#42000#ORA-00942: table or view does not exist
    #solad011:pidb:PIUSER#SELECT "XMLVALUE" FROM "BC_DDDBTABLERT" WHERE "NAME" = ?#
    In java code, there are no references to this table "BC_DDDBTABLERT". I am trying to execute a SQL select for entirely different table. Why I am I getting this error?

    Hi,
    System copy NW 70 - Error in "export from java database" phase
    I am doing system copy of BI7.0 (Abap+Java) stack, I am getting error in
    "export from java database" phase as mentioned below.
    When I tried to run the query mentioned in SAP Note 1120872: ,
    SQL> DELETE FROM BC_DDDBTABLERT WHERE NAME = 'CAF_GP_R3USRMPGCFG';
    DELETE FROM BC_DDDBTABLERT WHERE NAME = 'CAF_GP_R3USRMPGCFG'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> DELETE FROM BC_DDDBTABLERT WHERE NAME = 'CAF_GP_IF_CONTEXT';
    DELETE FROM BC_DDDBTABLERT WHERE NAME = 'CAF_GP_IF_CONTEXT'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    I tried your Native_SQL also, but same error.
    Kindly help me on this.
    Regards,
    Sampath.
    SAP INST error log:
    ERROR 2010-10-15 10:32:35
    CJS-30049 Execution of JLoad tool '/usr/java/j2sdk1.4.2_12/bin/java
    -classpath /usr/sap/BD1/SYS/global/sltools/sharedlib/launcher. jar
    -showversion -Xmx512m com.sap.engine.offline.OfflineToolStart
    com.sap.inst.jload.Jload
    /usr/sap/BD1/SYS/global/security/lib/tools/iaik_jce .jar:/usr/sap/BD1/SYS/global/security/lib/tools/ia ik_jsse.jar:/usr/sap/BD1/SYS/global/security/lib/tools/ia ik_smime.jar:/usr/sap/BD1/SYS/global/security/lib/tools/ia ik_ssl.jar:/usr/sap/BD1/SYS/global/security/lib/tools/w3 c_http.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/jlo ad.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/ant lr.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/exc eption.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/jdd i.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/log ging.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/off lineconfiguration.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/ope nsqlsta.jar:/usr/sap/BD1/SYS/global/sltools/sharedlib/tc_ sec_secstorefs.jar:/oracle/client/10x_32/instantclient/ojdbc14.j ar
    -sec
    BD1,jdbc/pool/BD1,/usr/sap/BD1/SYS/global/security /data/SecStore.properties,/usr/sap/BD1/SYS/global/ security/data/SecStore.key
    -dataDir /oracle/expocopy/JAVA/JDMP -remove_trailing_blanks
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/removeTrailingBlanks.txt
    -convert_empty_LOBs
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/convertEmptyLobs.txt
    -convert_empty_strings
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/convertEmptyStrings.txt
    -convert_empty_binary
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/convertEmptyBinary.txt'
    aborts with return code 1.<br>SOLUTION: Check 'jload.log' and
    '/tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/jload.java.log'
    for more information.
    Log details for jload.java.log:
    java version "1.4.2_12"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
    Oct 15, 2010 10:32:33 AM com.sap.inst.jload.Jload main
    INFO: Jload -sec
    BD1,jdbc/pool/BD1,/usr/sap/BD1/SYS/global/security /data/SecStore.properties,/usr/sap/BD1/SYS/global/ security/data/SecStore.key
    -dataDir /oracle/expocopy/JAVA/JDMP -remove_trailing_blanks
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/removeTrailingBlanks.txt
    -convert_empty_LOBs
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/convertEmptyLobs.txt
    -convert_empty_strings
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/convertEmptyStrings.txt
    -convert_empty_binary
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/convertEmptyBinary.txt
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.db.DBConnection
    connectViaSecureStore
    INFO: connected to BD1 on jdbc/pool/BD1
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.db.ExcludedObjects addObjects
    INFO: excluded objects (type TB): [EP_ATTR_HEADERS, EP_ATTR_VALUES,
    J2EE_CONFIGENTRY]
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.db.ExcludedObjects addObjects
    INFO: excluded objects (type EL): [EP_ATTR_HEADERS, KMC_DBRM_CONTENT,
    EP_ATTR_VALUES, J2EE_CONFIGENTRY]
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.db.ExcludedObjects addObjects
    INFO: excluded objects (type ES): [EP_ATTR_HEADERS, KMC_DBRM_CONTENT,
    BC_SCVERSION, J2EE_CONFIGENTRY]
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.db.ExcludedObjects addObjects
    INFO: excluded objects (type EB): [KMC_DBRM_CONTENT, J2EE_CONFIGENTRY]
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.JobStatus readStatus
    INFO: trying to read status file
    /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/ AS/EXP/EXPORT.sta
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.JobStatus readStatus
    INFO: commencing restart
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.Jload dbExport
    SEVERE: DB Error during export of CAF_GP_IF_CONTEXT
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: Message: ORA-00942: table or view does not exist
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: SQLState: 42000
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: ErrorCode: 942
    Oct 15, 2010 10:32:35 AM com.sap.inst.jload.db.DBConnection disconnect
    INFO: disconnected

  • Problem executing prinln statement in web application

    Following code works fine in web application but print statements are not being executed. If I run the program as standalone, print statements do execute correctly.I don't know what is the problem.
    import java.sql.*;
    import java.util.Properties;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Adaptor extends Object {
    private final String driverPrefixURL = "jdbc:oracle:oci8:@";
    private final String driver = "oracle.jdbc.driver.OracleDriver";
    private static String ds ="jdbc.datasource";
    private static String username;
    private static String password;
    private static String dataSource;
    private static Adaptor instance = null;
    /** Creates new Adaptor */
    public Adaptor() {
    try
    InputStream is = ClassLoader.getSystemResourceAsStream (ds);
    Properties p = new Properties();
    p.load (is);
    dataSource = p.getProperty("datasource.dbname");
    if (dataSource == null)
    throw new Exception ("Datasource name in null");
    username = p.getProperty("datasource.username");
    password = p.getProperty("datasource.password");
    int vendor = DriverUtilities.ORACLE;
    try
    Class.forName(driver);
    catch(Exception sqle)
    System.err.println("Error making pool: " + sqle);
    catch (Exception e)
    System.out.println(e + " Unable to read resource to get data source");
    // return;
    public synchronized Connection getConnection() throws java.sql.SQLException
    Connection c = null;
    System.out.println("DbAdaptor.getConnection()");
    // logWriter.log("DbAdaptor.getConnection()", LogWriter.INFO);
    try{
    c = DriverManager.getConnection(driverPrefixURL+dataSource, username, password);
    catch(SQLException ex)
    System.out.println ("\n*** SQLException caught in db.free***\n");
    while (ex != null) {
    System.out.println ("SQLState: " +
    ex.getSQLState ());
    System.out.println ("Message: " +
    ex.getMessage ());
    System.out.println ("Vendor: " +
    ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    return c;
    public String getconnectionInfo()
    return null;
    synchronized public static Adaptor getInstance()
    if (instance == null)
    instance=new Adaptor();
    System.out.println("sending instance on " + new java.util.Date());
    return instance;
    protected void finalize() throws Throwable
    super.finalize();

    System.out.println() statements print to the console of the web server. If you want to print them to the browser, you should use out.println("Some debug info here..."); An alternative is use the log("Some debug info here...") to log the errors etc.,. to the web application log file.
    http://java.sun.com/webservices/docs/1.1/api/javax/servlet/GenericServlet.html#log(java.lang.String)
    http://java.sun.com/webservices/docs/1.1/api/javax/servlet/GenericServlet.html#log(java.lang.String, java.lang.Throwable)

Maybe you are looking for

  • MRP strange behavior

    We are running MRP with 3 different MRP types: V1, PD, ND on the Material Master. Since our schedule lines only allow u201CCNu201D category, I updated the combinations for sales item document, MRP type and Schedule Line on transaction VOV5: TAN     V

  • Installing Windows 7 64-bit - DVD won't boot

    I recently downloaded the 64-bit version of Windows 7 from my school's MSDNAA page and burnt the ISO to a DVD. I had XP on a dual-boot setup to actually get the download, so I deleted the partition and decided to start fresh for Windows 7. When I wen

  • Financial statement by group account number

    Hi, I need a financial statement version list by the group account number. I thinking of creating a chart group of account and assign it in the operational chart of account. Then, I thinking of enter the group account number in the master account dat

  • Lost Chinese Language After Update

    G'day, I recently bought a 7230 while living in China and downloaded and installed the Ovi program for my PC.  On running Ovi, with my phone connected via USB, I saw that there was an update available for the phone so I went through the update proces

  • Marketing Campaign Email Message - accessing additional merge fields?

    Hi, Does anyone know if it's possible to include the contact OWNER's phone number & job title in the email? Right now, the only MERGE fields available are the contact OWNER's email, name, external unique id, & integration id. would it be something li