Error while creating jar from source folder

Hi,
i have source folder and i added log4j.properties
i try to build for creating jar (sourcecode.jar) by ant build (build.xml)
it is throwing error and saying that "package org.apache.log4j does not exist"
i spend more time to resolve this error , but i could not find any solution.
what is the error on this.. below the build.xml code which i try to build jar
<project name="MyProject" default="dist" basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>
  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>
     <path id="classpath">
             <fileset dir="${src.dir}">
             <include name="log4j-1.2.16.jar"/>
             </fileset>
     </path>
     <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>
  </target>
  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/lib/EscapeIncontra.jar" basedir="${build}"/>
  </target>
  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>
</project>i am using log4j.properties inside source folder also added in eclipse class path..
Thanks
Rosina

user13836688 wrote:
     <path id="classpath">
             <fileset dir="${src.dir}">
             <include name="log4j-1.2.16.jar"/>
             </fileset>
     </path>
maybe you ment<path id="classpath">
             <fileset dir="${src.dir}">
             </fileset>
             <pathelenemt path="${your_lib_folder_path}/log4j-1.2.16.jar"/>
     </path>bye
TPD

Similar Messages

  • Xmlbean Error while creating  jar from XSD

    Hi all,
    I am using xmlbean technology while preparing jar from xsd i am getting the following error
    "error: Could not load resource "http://dataservices.citigroup.net:8080/documentEngine/GMA/technology_area/CMM/Commons/1.0/Core-schema.xsd" (network downloads disabled)."
    Please help me

    Hi All,
    I got the solution.
    we have to add -dl in the script as args

  • Error while creating DTP from DS to Infoobject

    Dear All,
    I am getting one error while creating DTP from Datasource to Info object can any one give some suggetion regarding this issue.
    Issue:Enter a valid value
    Msg No:00002
    Procedure: Display the allowed values withF4 and correct your entry,
    Regards,
    Satya

    Hi Satya,
    Trying logging off the system and log in again and try to activate Data source Infoobject and transformation again and try creating DTP by selecting Selecting the source system by pressing F4. I hope it should work.
    I don't find any specific problem or any patch problem with the error you are getting.
    Hope it helps !
    Regards,
    Rose.

  • Error while creating subsite from site template

    Hi,
    I am getting below error while creating subsite from existing site template .
    Sachin Bhosale

    There must be a duplicate Email field created in any list/library. The cause can be identified by renaming the site template to sitename.cab > extact the cab file > open the manifest file search for email and see where it is associated. Refer
    to the following blog post for more information
    http://sharepointserved.blogspot.com/2012/11/a-duplicate-name-was-found.html
    http://sharepoint.stackexchange.com/questions/11944/error-when-creating-a-site-from-custom-template-a-duplicate-field-name-name
    Cheers,

  • Password Violation error while creating users from Admin interface

    Guys,
    The Sun Identity Manager system throws policy violation error while creating users from Sun Identity Manager Admin interface.
    Current System:
    1. I have configured TAM Pass-Thru authentication for End User Login Application.
    2. I have an admin user 'testsjimadmin1' who has admin capabilities. testsjimadmin1 user has default SJIM password policy.
    3. I have custom password policies configured for different orgainizatoions
    Problem:
    1. The Sun Identity Manager throws a password policy violation error when 'testsjimadmin1' tries to create an user with valid or invalid password from Sun Identity Manager Admin interface.
    2. If TAM Pass-thru authentication is removed for 'End User Login Application' and Sun Identity Manager default authentication is configured for 'End User Login Application' then testsjimadmin1 was able to create user successfully without any errors.
    Please let me know if any configurations are required to be made on Sun Identity Manager for TAM Pass-Thru authentication so that admin users can create users successfully from admin interface.
    Appreciate your help!!!
    Thanks
    Vijay

    Guys,
    The Sun Identity Manager system throws policy violation error while creating users from Sun Identity Manager Admin interface.
    Current System:
    1. I have configured TAM Pass-Thru authentication for End User Login Application.
    2. I have an admin user 'testsjimadmin1' who has admin capabilities. testsjimadmin1 user has default SJIM password policy.
    3. I have custom password policies configured for different orgainizatoions
    Problem:
    1. The Sun Identity Manager throws a password policy violation error when 'testsjimadmin1' tries to create an user with valid or invalid password from Sun Identity Manager Admin interface.
    2. If TAM Pass-thru authentication is removed for 'End User Login Application' and Sun Identity Manager default authentication is configured for 'End User Login Application' then testsjimadmin1 was able to create user successfully without any errors.
    Please let me know if any configurations are required to be made on Sun Identity Manager for TAM Pass-Thru authentication so that admin users can create users successfully from admin interface.
    Appreciate your help!!!
    Thanks
    Vijay

  • ORA-12571 error while creating packages from Windows clients

    Hello,
    We are facing the ORA-12571 error while creating / replacing packages from Windows Clients connected to a 8.1.7.2.0 db on a Solaris server.
    However, there are
    1. no errors in connecting and creating transactions from a Sql session
    2. no errors in creating / replacing unwrapped/wrapped small (few lines) packages
    3. no errors in connecting from a Unix session (remote telnet sessions inclusive).
    This happens only when creating wrapped/unwrapped packages, source code of which is greater than 500 kb approx.
    Can somebody help me resolve this issue. Any Help would be greatly appreciated.
    Regards.
    Lakshmanan, K

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • Error while creating datasource from table MBEWH

    Hi all,
    I am facing an error message while creating datasource from table MBEWH
    "Invalid extract structure template MBEWH of DataSource "; This operation failed, because the template structure quantity fields or currency fields, for example, field LBKUM refer to a different table.
    Can anyone help me that why system is not allowing me to generate generic datasource for table MBEWH to transfer my month wise inventory data.
    thanks and regards.

    Hi Zakir,
          This was comming for classification data... when ever you want to extract some classification related data then we can't create generic datasources  directly.. for that you need  to go with CTBW  ( tcode )  and   create  one datasource...
       so, you need to check that   related table also.. for that  MBEWH table..
        ALL THE CLASSIFICATION RELATED DATASOURCES WE CAN'T CREATE DIRECTLY... JUST LIKE  AUSP table also.. liek this..
    regards
    @jay

  • Error while Creating PO from Purchase Requistion in Third Party  Sales

    Dear Team,
                          While Creating the Purchase Order from Purchase Requistion in Third Party Sales. When I am saving the PO I am getting the Error in GL Account Cannot be Used. I have disabled the field G/L Account in settings of Account Assignment Category of Third Party. Still I am facing that Error while Creating Purchase Order.  Can you guide me where we do this Assignment of G/L Account so that I can change the G/L Account.
    Thanks,
    Farhan.

    Dear Farhan,
    1. Go to T. Code: FS00 and enter GL number and Company Code and go to Tab: Create/bank/interest, write down the field status group.
    2. Go to T. Code: OBC4 and Select your Field Status Variant and Double Click: Field Status Group (From Left-hand Dialog Structure)
    Double-Click on to Field Status Group (as noted down from in Step 1).
    From Select group, Select Additional account assignments and make Earmarked Funds, as optional.
    Best Regards,
    Amit

  • Error while creating datasource from view ZBSIS_VIEW

    Hi all,
    I could not create  the datasource on the database table BSIS as it said "Invalid extract structure template BSIS of Datasource". I had suggestions that I should create a view and then create the Datasource on it. So I created the view and tried. But still I am facing an error message while creating datasource from custom Database View ZBSIS_VIEW.
    "Invalid extract structure template ZBSIS_VIEW of DataSource"
    Can anyone help on this regard.
    thanks.

    Hi,
    Yes. You need a create a view on tables BSIS, BKPF and T001 as the currency/quantity fields in BSIS have reference fields from the other 2 tables.
    In BSIS, in the currency/quantity fields tab, you have some ref tables and fields. You would need to include these tables and join in the view. You would also need to include the ref fields like WAERS, HWAE2, HWAE3, etc in the view. Then you would be able to create the datasource.

  • Getting error while creating table from one database to other.

    Hi,
    We are getting below error while creating the table from one database to other.
    SQL> create table fnd_lobs parallel compress as select * from [email protected];
    create table fnd_lobs parallel compress as select * from [email protected]
    ERROR at line 1:
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    Regards,
    Bhatia

    hi
    what are the apps version local and remote database???
    Snapshot too old errors occur because Oracle can 't reconstruct a consistent
    image of a block for the purposes of a consistent read.
    I feel at remote database, you are using UNDO, it will be rather easy to iincrease the undo retention time or increase the undo tablespace size.. if you are dealing with roll back segments, you may have rollback segments whose optimal values are too small...
    increase roll back segments size and select again then
    the following metalink notes might be helpful
    ORA-01555 "Snapshot too old" - Detailed Explanation Doc ID: 40689.1
    How To Avoid ORA-01555: Snapshot Too Old When Running PAAPIMP Doc ID: 603259.1
    OERR: ORA 1555 "snapshot too old (rollback segment too small)" Doc ID: 18954.1

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Error while creating table from csv file

    I am getting an error while creating a table using 'Import Data' button for a csv file containing 22 columns and 8 rows. For primary key, I am using an existing column 'Line' and 'Not generated' options.
    ORA-20001: Excel load run ddl error: drop table "RESTORE" ORA-00942: table or view does not exist ORA-20001: Excel load run ddl error: create table "RESTORE" ( "LINE" NUMBER, "PHASE" VARCHAR2(30), "RDC_MEDIA_ID" VARCHAR2(30), "CLIENT_MEDIA_LABEL" VARCHAR2(30), "MEDIA_TYPE" VARCHAR2(30), "SIZE_GB" NUMBER, "RDC_IMG_HD_A" NUMBER, "START_TECH" VARCHAR2(30), "CREATE_DATE" VARCHAR2(30), "RDC_MEDIA_DEST" VARCHAR2(30), "POD" NUMBER, "TAPE" NUMBER, "ERRORS_YN" VA
    Any idea?

    I am getting an error while creating a table using 'Import Data' button for a csv file containing 22 columns and 8 rows. For primary key, I am using an existing column 'Line' and 'Not generated' options.
    ORA-20001: Excel load run ddl error: drop table "RESTORE" ORA-00942: table or view does not exist ORA-20001: Excel load run ddl error: create table "RESTORE" ( "LINE" NUMBER, "PHASE" VARCHAR2(30), "RDC_MEDIA_ID" VARCHAR2(30), "CLIENT_MEDIA_LABEL" VARCHAR2(30), "MEDIA_TYPE" VARCHAR2(30), "SIZE_GB" NUMBER, "RDC_IMG_HD_A" NUMBER, "START_TECH" VARCHAR2(30), "CREATE_DATE" VARCHAR2(30), "RDC_MEDIA_DEST" VARCHAR2(30), "POD" NUMBER, "TAPE" NUMBER, "ERRORS_YN" VA
    Any idea?

  • Error while creating order from notification

    Dear Experts,
    I am getting error (No material number transferred(Message no. M3752))  when creating order from R3 notification. the material number not copied from screen to VIQMEL. This is only in few times, not all times. when i debug this, in VIQMEL-FEKNZ = X(Error Records Exist).
    This is only for R3 notification. Also not in all times.
    What is the problem?

    Thanks, I am creating notification thru IW21. form IW22 i am creating order. while creating is gives above error. in this case MATNR not saving in QMEL. even when i am saving in IW22 it's not saving. when i am creating order from IW22 it gives above ror. but it gives error some times only, not all the times. for the same equipment i created so many. some four times only i am getting this.

  • Error while creating PO from bid inviation?

    Hello Experts,
    1) We are using SRM 5.0 version. I accepted the bid after that i have clicked on "Generate Pucrchase order". we are getting error "   3700000340 E MEPO 028 No movement type can be usd for this item 4643513A094741B6000000000A402D38R12329Z ECPO " .
    2) Create SC with sourcing cockpit indicator. Now SC will appear in work list. In carry out sourcing work list convert SC to PO by assgining vendor.
    While creating PO in backend we got error " Shopping cart 3000363214 (PO 2100004803): MEPO 028 No movement type can be usd for this item".
    If any one knows about these error please help me
    please let me know..

    Venkatesh,
    Are you using an item with Split Valuation ?
    You are getting error because BAPI_PO_CREATE1 is looking for Valuation Type . And offcourse SRM doesn't supply that .
    Try with a free text item.
    Rgds, AJ

  • Error while creating transformation from DSO to InfoCube

    Hi Gurus,
       When i am creating tranformation from DSO to InfoCube getting an error,        " The unit/currency 'Source Currency 0CURRENCY ' with the value 'space' is  assigned to the key figure 'Source Key Fig. ZAMT_PLC ' with the value   
    '8.50 ' "
    ZAMT_PLC is created with 0CURRENCY.
    On checking we found that there is no value stored for Currency field in table level itself. Now in this case how do we avoid this error.
    I want to know why is this we need to have value for 0Currency field???
    Thanks & Regards,
    Anup

    Hello Anup,
    If you load a key figure which has a unit assigned to it,
    then for every records where the key figure has a valid value
    (value 0) the corresponding unit has to be delivered as well.
    Additionally please check note 1366474 regarding the RSTRAN 312
    error message:
    "The corrections contained in Note 1165168 are incomplete.
    Depending on the sequence during loading, the system may not issue error
    message RSTRAN 312 even though data regarding the assigned unit or
    currency "space" is incorrect."
    This means actually, that the system should have issued the RSTRAN312
    error message even before the upgrade, but for some reason this
    check found no issues in some constellations. This means furthermore
    that your system behaved incorrectly in the past, that this
    error message was not triggered if you loaded key figures without
    any unit.
    I'm sorry to tell you, but the system behaves and works as designed
    as it should be even before the correction from note 1366474.
    Please change your transformations for key figures which
    have a unit assigned, that the unit field is filled correctly.
    with the corresponding units, otherwise the system will abort
    the processing of the data with the above mentioned error
    message.
    Best Regards,
    Des

Maybe you are looking for