Creating a Hierarchy of Tables

Hello everyone,
I've started building a GUI application in Java, and I was looking for a way to display expandable, nested tables.
What I mean is having an option to click certain squares, causing sub tables to be displayed in the row below, moving the lower rows of the original tables down in order to maintain visibility of the whole table (I don't want the new table to cover and hide parts of the original table).
This is my first project involving tables. I assumed this subject would be a part of Swing as it's an advanced Widget, but I'm open to suggestions of other, better packages if necessary.
If my request was not worded clearly enough, I will gladly elaborate.
Thanks!

Thank you very much for both replies.
Walter, unfortunately I'm not willing to pay for this project, so I'm afraid Jide is probably off reach. Thanks for the offer though.
splungebob, I've tried the example and as a matter of fact I did not quite get the "nesting" part- it seemed rather irrelvant to the subject of hierarchy. Perhaps I just did not get it, but it didn't seem like the kind of widget I'm looking for.
So, my original request still stands. I imagine it is possible to work with an ArrayList of JTables, but I'm worried the code will get messy pretty quickly, and am looking for an elegant solution.

Similar Messages

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

  • How to create an Hierarchy from 2 tables in Essbase

    Hi,
    Currently We have 5 dimension tables and one fact table in Star Schema Model.We have requirement to create an hierarchy which pulls from multiple tables
    For Eg:
    Table:1 P1 P2
    Table:2 Q1 Q2
    Expected Hierarchy :
    P1
    Q1
    While we try to implement it shows inconsistent results.Can some one let me know the alterante solution to fulfill this requirement.
    Thanks,
    SatyaB

    Your JOIN doesn't work?
    You'd have to post what the tables look like, what you're joining on, etc., etc. You aren't supplying enough information.
    I am (to put it kindly) a SQL hack. I have found that if I go to a company's dba with my childlike SQL and ask, "Can you improve this?" almost 100% of the time they take pity on me and improve my code to no end. I know that's not what a dba is really for, but they tend to like well formed SQL touching their databases. Failing that, is there someone at your firm that is good with SQL who can help? You're on an Essbase board, not a SQL board, so you are likely not going to get the help you need here.
    Regards,
    Cameron Lackpour

  • Creating a hierarchy based on a remote database link

    I am trying to create a hierarchy based on a synonym for a remote database table. The hierarchy wizard works correctly, and the table columns do appear as choices in the drop boxes. However, when I try to run the application, I get the error "No data found. This data does not exist or you do not have privileges to view it". Does anyone know how to resolve this error? Or how to work around this?
    I can successfully create and query a form based on the remote table. And, I am able to create a hierarchy from other tables (which do not use a database link) without a problem.
    Thanks for your help!

    This is the query which I am using to build a report
    SELECT
    rollup_timestamp "Date",
    max(decode(target_guid,'199F0B201A3D71A63040BADFAA4F9E90',average,0)) host1,
    max(decode(target_guid,'3FB1329F59339C07E11304B69DC4E594',average,0)) host2
    FROM "sysman.MGMT$METRIC_DAILY"
    WHERE
    (target_guid='199F0B201A3D71A63040BADFAA4F9E90'
    or
    target_guid='3FB1329F59339C07E11304B69DC4E594')
    AND
    metric_name='Load'
    AND
    metric_column='memUsedPct'
    AND
    rollup_timestamp >= to_date('01-10-2009','dd-mm-yyyy') and rollup_timestamp <= sysdate
    GROUP BY rollup_timestamp
    ORDER BY "Date"
    And for your previous question I couldn't even create a page.
    Regards
    Balaji
    Edited by: user7290747 on 6/01/2010 16:17

  • Creating sets using a table data

    Hi,
    I have a table  TVBVK which is for sales and not related to FI data. I am trying to create sets so that the sales office would be the parent node and the sales group would be the child. I am using GS01 and it seems that it would not work because the parent which is the sales office value that is different from the child value that is the sales group. 
    How would I create an hierarchy using sets by reading from this table? Would it be possible? Could I create sets so that the field names are different?
    Thanks

    Hi,
    How woull that be? Would you elaborate why?
    Thanks
    Will

  • How to create a hierarchy Tree

    Oracle Forms 6i
    Hai All
    Could Any Tell me the steps to create a hierarchy tree in oracle forms
    My table is employee_master and fields are
    Empcode number ,
    Empname varchar,
    deptcode number,
    gradecode number and etc
    Here i need to create a tree with Deptcode in that every employees are seperated by grade code
    Thanks In Advance
    Srikkanth.M

    Dear,
    If you get any problem while creating tree, will help you step by step.....
    Thank you,

  • Create a Hierarchy

    I am having a sql which has invoice date and has a index on it. I need to put parameter on this column but the user wants to enter only period name.
    So if you create a hierarchy on this date column I know that performance will be really bad.
    I read that if we create a dimension table and attach this to that the performance retains. Can any body explain how to create dimension folder and create a hierarchy on that, how to attach that to complex folder and make a parameter on that.
    thanks in advance.
    thanks
    kiran

    Hi Kiran
    I have been waiting to answer this one so that I have some time to devote to the answer, not because I don't know what to do but because the answer will be time consuming.
    Basically, the steps involved are:
    1. Determine what your fiscal periods are
    2. Determine what time components you want to report on
    3. Build a table that would store those components
    4. Populate the table using a script to fill in the appropriate fiscal components
    5. Build a primary key on the date or some other user-defined unique key
    6. Build a series of non-unique keys on the components required within your hierarchies - typically fiscal month, fiscal quarter and fiscal year
    7. Import this table into Discoverer as your master time folder
    8. Create lists of values on all of the indexed items
    9. Copy the folder, using CTRL-C, once per transaction date, and paste it using CTRL-V into the appropriate business area
    10. Move the new folder up under its designated transaction folder
    11. Rename the folder and the items within it to reflect the date that it is going to manage - E.g. for a ship date the folder could be called SO Ship Date, with the main items being called Ship Date, Fiscal Shipped Month, Fiscal Shipped Quarter and Fiscal Shipped Year
    12. Create a Discoverer hierarchy on Ship Date, Fiscal Shipped Month, Fiscal Shipped Quarter and Fiscal Shipped Year and name it Ship Date Hierarchy
    13. Build a 1:N join from the calendar date in the copied folder to the transaction date - you probably also want the date in the underlying transaction table to be indexed for maximum performance
    14. Hide the date in the transaction folder
    Ok, now that the basic workflow has been outlined let's talk about some of the steps. Step 1 asks you to determine your fiscal periods. What this means is that you need to know the start and end date for your organization's fiscal year, and all of the fiscal periods in between.
    If you are using Oracle E-Business Suite you can use the GL_PERIODS table to get this information. This table stores information about the accounting periods you define using the Accounting Calendar form in Apps. In other words, GL_PERIODS is the Apps table that contains your organization’s fiscal calendar. However, because you can have recursive joins between the elements of this table, report performance can be seriously impacted. Each row includes the start date and end date of the period, the period type, the fiscal year, the period number, and other information. There is also a one–to–many relationship between a row in the GL_PERIOD_SETS table and rows GL_PERIODS.
    You can now write a simple script that will pull out the fiscal period information. Then, after you are certain that your algorithms are working, you should create a materialized view of your GL_PERIODS date hierarchy. After you have created the materialized view, you should place a unique index on the calendar date, with non-unique indexes on the months, quarters, and years. After you do this, inside your view you can now join your transaction date to the date in the materialized view and read off the hierarchy.
    Most DBAs are rightly concerned about adding materialized views to E-Business Suite. In this case, because GL_PERIODS is only updated only once a year, you have a perfect candidate for a materialized view. You just need to make sure that you refresh the materialized view after you add the dates for the next year.
    Now, GL_PERIODS only has information concerning fiscal periods, or months. You have to get the individual dates in there as well. Once again, if you are using Apps and you are using BOM (Bills of Material) you may well be using a table called BOM_CALENDAR_DATES. This table contains one row per date within your year. In order to join this table to GL_PERIODS you need to be able to determine which fiscal period a certain date falls in to. Having worked that one out you now join to the previous script adding a clause such as DATE >= GL.PERIODS.START_DATE and DATE <= GL_PERIODS.END_DATE where the PERIOD_TYPE is 'Month'.
    Here is a script that might give you the basics:
    SELECT DISTINCT
    gl_mth.period_name month,
    gl_mth.period_set_name set_name,
    gl_mth.start_date mth_start_date,
    gl_mth.end_date mth_end_date,
    gl_mth.period_num mth_number,
    gl_mth.last_update_date mth_last_update_date,
    (gl_mth.end_date -
    gl_mth.start_date) +1 mth_timespan,
    gl_qtr.period_name quarter,
    gl_qtr.start_date qtr_start_date,
    gl_qtr.end_date qtr_end_date,
    gl_qtr.quarter_num qtr_number,
    gl_qtr.last_update_date qtr_last_update_date,
    (gl_qtr.end_date -
    gl_qtr.start_date) + 1 qtr_timespan,
    gl_yr.period_name year,
    gl_yr.start_date yr_start_date,
    gl_yr.end_date yr_end_date,
    (gl_yr.end_date -
    gl_yr.start_date) + 1 yr_timespan,
    gl_yr.last_update_date yr_last_update_date,
    gl_yr.period_year period_year,
    gl_qtr.entered_period_name actual_qtr
    FROM
    apps.gl_periods gl_mth,
    apps.gl_periods gl_qtr,
    apps.gl_periods gl_yr
    WHERE
    gl_mth.PERIOD_SET_NAME = 'your data set name'
    AND gl_mth.period_type = 'Month'
    AND gl_mth.start_date >= '01-OCT-1998'
    AND gl_qtr.quarter_num = gl_mth.quarter_num
    AND gl_qtr.period_year = gl_mth.period_year
    AND gl_qtr.period_type = 'Quarter'
    AND gl_yr.period_year = gl_mth.period_year
    AND gl_yr.period_type = 'Year';
    Does this help understand the logic behind creating fiscal date folder?
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • Create different hierarchy based on Dimension values

    I have a dimension called period. This dimension is having 4 different types of periods. The period table looks as below. I need to create 4 different hierarchies for these 4 types of periods based on l1 to l5 values. But all these values are in the same
    table. Is it possible in SSAS? If so please let me know how can I do it. 

    If i understand it correctly, you want one hierarchy for one row, then you need to flat the table in the view and then you can create those hierarchy. But it is no different from having one hierarchy with the table you have. your hierarchy is going to look
    like "Priod5"  <- "Priod4" <- "Priod3" <- "Priod2" <- "Priod1". this hierarchy will have all the values. Don't forget to use the composite key for each attribute except key attribute.
    hope this is helpful.
    prajwal kumar potula

  • Create Customize Hierarchy in BW

    Hi All,
    As per my requirement i have to create a customize hierarchy in SAP BW system, could one please suggest me how to create customize hierarchy in BW system.
    I know that in R/3 by using BW07 and BW10 we can create the Hierarchy by using Z or on standard table we can create, but my requirement is to create in BW.
    A big please to everyone to respond ASAP with possibilities.
    thanks,
    p

    Hi Prashanth,
    To create hierachy in BW/BI , First of all you need to make the characterstic 'With hierarchies'
    Right click on the characterstic(Z_SREP, for example) --> Change
    Go to Hierarchy Tab ---> check 'With hierarchies' check box
    activate the characterstic
    then right click on the same characterstic and say Create Hierarchy
    Enter a name and a description, and then click continue
    Right-click charactersctic or the right hand side area , and then select Insert characteristic node--> Insert info object ( Z_SREP) u2026. and so on...
    Let me know if you want to know more in detail,
    Hope this helps.
    Sukhi

  • Create product hierarchy & category in CRM

    Hello experts,
    I need to write a program that create product hierarchy & category in CRM 5 from flat file.
    As anyone know how to do it?
    I couldn't find any bapi, and when i tried to debug the program that transfer this data between R3 to CRM i got to dead end.
    I realy dont know how to attack this...
    regards,
    Ronen.

    USE LSMW. Even i am working on a similar thing though i need to create products in CRM from excel file. Category and hierarchy ar supplied to me. Actually there are a couple of options.
    Basically do research in SE37  with search term COMCATEGORYCREATE*    and similarly for COMCATEGORYsav*   for category  and for hierarchy replace category with 'hier' . You can then shortlist which FM is good for you and try to construct structure in your program that u can pass to the FM to get desired output.
    Thing to remember is that you first create   and then do save.
    1. Use following if input is from a *.txt  or any tab delimited file.
    INCLUDE com_product_const001.
    INCLUDE com_product_const003.
    *Excel data into Internal table
    PARAMETERS: p_infile  LIKE rlgrap-filename.
    DATA: gd_file type string.
    DATA:  prod type N.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
    productid TYPE COMT_PRODUCT_ID,
    product_desc TYPE COMT_PRSHTEXTX,
    proudct_type TYPE COMT_PRODUCT_TYPE,
    prod_categoryid TYPE COMT_CATEGORY_ID,
    prod_obj_family TYPE COMT_PRODUCT_OBJECT_FAMILY,
    prod_hierarchyid TYPE COMT_HIERARCHY_ID,
    maintenance_language TYPE SY-LANGU,
    prod_base_uom TYPE COMT_BASE_UNIT,
    sales org1
    sales org2
    item category
    END OF t_record.
    TYPES : Begin of struc_mat,
            HEADER  TYPE COMT_PRODUCT_MAINTAIN_API,
            DATA    TYPE COMT_PROD_MAT_MAINTAIN_API,
            INTERLINKAGES TYPE COMT_PRODUCT_IL_API,
            CONDITIONS TYPE COM_PRODUCT_CND_API,
            DOCUMENTS TYPE COMT_PRODUCT_DOCUMENTS_API,
          END of struc_mat.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
    wa_record TYPE t_record,
    ls_record TYPE t_record.
    **For Unicode check active in program attributes then need to declare constants as follows:
    **class cl_abap_char_utilities definition load.
    **constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_INFILE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_infile.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          DEF_FILENAME     = 'p_infile'
          DEF_PATH         = ' '
          MASK             = '*.txt'
          MODE             = '0'
          TITLE            = 'UPLOAD TAB DELIMITED FILE'(078)
        IMPORTING
          FILENAME         = p_infile
        RC               =
        EXCEPTIONS
          INV_WINSYS       = 1
          NO_BATCH         = 2
          SELECTION_CANCEL = 3
          SELECTION_ERROR  = 4
          OTHERS           = 5.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *START-OF-SELECTION
    START-OF-SELECTION.
      gd_file = p_infile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                    = gd_file
      FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR         = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          DATA_TAB                   = it_record
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        write: 'Error' , sy-subrc .
        skip.
      ENDIF.
    END-OF-SELECTION.
    *!!! Text data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
    LOOP AT it_record INTO wa_record.
       WRITE:/     sy-vline,
       (10) wa_record-productid, sy-vline,
       (10)  wa_record-product_desc, sy-vline.
       (10) wa_record-age, sy-vline.
    ENDLOOP.
    *The field data in structure for MAT & FIN are very different . Loop at retreived data and based on product
    *type fill in the respective structure and proceed.
    *PARAMETERS: g_matnr1 TYPE comt_product_id.
    *PARAMETERS: gv_guid  AS CHECKBOX DEFAULT on.
      DATA :  gv_save  TYPE BOOLEAN VALUE 'X'.
      LOOP AT it_record INTO wa_record.
        IF wa_record-proudct_type EQ '01'.
          PERFORM init.
          PERFORM create USING wa_record.
          PERFORM save   USING gv_save.
        ELSE.
        ENDIF.
      ENDLOOP.
    2. Use excel file and use LSMW

  • Creating a hierarchy to drill-in from fiscal years to fiscal months

    Hi All,
    TRYING TO IMPLEMENT:-
    Creating a hierarchy to drill-in from fiscal years to fiscal months
    METHOD THAT I FOLLOWED:- (It worked for Calendar Years)
    I have a table fiscal years which has the columns
    fiscal_year,fiscal_months.....
    I have created a Logical Table"Time" which has the columns fiscal_year,months
    I am trying to create a hierarchy(Time Dimension) so that I will be able to drill-in from the fiscal years to fiscal months.
    While checking the global consistency , it throws me the following error:-
    ERRORS:
    BUSINESS MODEL LEDGER_PROD:
    [nQSError: 15001] Could not load navigation space for subject area LEDGER_PROD.
    [nQSError: 15019] Table TIME is functionally dependent upon level FY, but a more detailed child level has associated columns from that same table or a more detailed table.
    Could anyone please assist me in resolving this issue or implementing this hierarchy would be really helpful!
    Thanks,

    Check your PK of the dimension table. Also check the dimensional keys.
    Also, I'm not sure if you're doing a separate hierarchy, or combined one with calendar year. If you're making a combined one, make sure that the child level is the same (usually Calendar Day or raw time key ).

  • How to write abap code to create manual hierarchy

    Hi,
    This is urgent got to write abap code to create manual hierarchy.
    Thanks

    Hi Adam
    Thanks for replying.
    In my scenario i have one custom zinfoobject which have lots of attributes.
    So, i have to create hierarchy for this zinfoobject with three nodes. one node/charateristic is present in this zinfoobject as attribute. which will be the first node of hierarchy.
    Then second custom infoobject is external not present in attribute list. which will be the second node of hierarchy.
    Third node will be for which i am creating hierarchy.
    So basically need solution for this first.
    some one will load hierarchy info in some table and then will create view on top of that then i have to create datasource on top of that and write a program to load the data from that view in this hierarchy.
    Need solution for this abap program also.
    Thanks
    SAPBW

  • New specific hierarchy using table SETCLST, SETHEADER and SETNODE

    Hi expert,
    I want to know if they are any customizing point to configure a new specific hiearchy using standard table SETCLST, SETHEADER and SETNODE?
    Thanks for your help.
    Regards
    Jonathan
    Edited by: Jonathan on Aug 2, 2011 3:36 PM

    We have a specific request to implement a specific hierarchy with specific data. The table with the specific data exist but now our user want to create a hierarchy with it. I know SAP use this standard table to create hiearchy with standard data.
    My question is I want to know if they are any transaction to customise this tables to create the hiearchy?
    Thanks for your help

  • Creating Vendor Hierarchy?

    Dear BWers,
    I need to create a Hierarchy in BW for Vendor that is based on table LFMH. Can anybody please guide me through the steps of creating the datasource in R/3 for a hierarchy. Also is 0VENDOR_LKLS_HIER based on LFMH? How do i find that? Thanks for all the help.
    Raj
    Message was edited by: Raj Singh

    Dinesh,
    The second link seems to be right for me for creating a custom datasource for a hierarchy in R/3 for 0VENDOR. Can you please describe this procedure for doing this in R/3? Also can i customize the available datasource 0VENDOR_LKLS_HIER so that it takes data from table LFMH which is the vendor hierarchy table in R/3.
    The procedure suggested in the second link by you:
    Sice you do not have any hierarchies available you would need to build the hierarchy using a function module extractor. In the extractor you need to populate the parent nodes, child nodes, intervals, etc from any table/view. You would use the Type Group "RSAP" for creating the hierarchy.
    Thanks
    Raj
    Message was edited by: Raj Singh

  • Can't see newly created WBS Hierarchy

    When using info object 0WBS_ELEMT_WBSH_HIER we are not able to see a new wbs group/hierarchy created in our r/3 system. But for cost center hierarchy we see everything the users create. Is there a setting on 0WBS_ELEMT_WBSH_HIER that we missed to allow multiples?
    on the cost center hierarchy object it allows "intervals". Thats the only difference I see.
    Thanks
    Richard

    Yes, It works perfect if you just write a quick abap program.
    Here are the statements we used.
    declare the hierarchy catalog table
    tables roohiecat .
    write / '*******************' .
    Write / 'Before Table Update' .
    write / '*******************' .
      clear roohiecat .
      Select single * from roohiecat
       where oltpsource = '4R_PS_POSID_0000_HIER' and
              objvers = 'A'.
      Write: / roohiecat-OLTPSOURCE ,roohiecat-OBJVERS ,
              roohiecat-TYPEHC .
    this table holds the Hierarchy class code.
    after creating the generic hierarchy with class code 0000
    the update statement below will run and change the class code
    to 0110 which represents WBS group.
    You must then replicate the datasource to use it in BW.
    Clear sy-subrc.
    Update roohiecat
       set typehc = '0110'
        where oltpsource = '4R_PS_POSID_0000_HIER' and
              objvers = 'A'.
    if sy-subrc = 0 .
      write / '*******************' .
      Write / 'After Table Update' .
      write / '*******************' .
      clear roohiecat .
      Select single * from roohiecat
       where oltpsource = '4R_PS_POSID_0000_HIER' and
              objvers = 'A'.
    Write: / roohiecat-OLTPSOURCE ,roohiecat-OBJVERS ,
              roohiecat-TYPEHC .
    endif .

Maybe you are looking for

  • ITunes won't sync music to my iphone.

         A little context. I've always shared an itunes account with my cousin and all our songs would be the same. But to make this possible i would have to meet him and sync my iphone on his computer. But i have my own computer now with alot of differe

  • Can't connect and get access to my iTunes account & not able to purchase

    For some reason I am not able to get connection or get access to my iTunes account and I am not able to make a App Purchase through the iTunes Store, the MessageI get is: " We could not Complete your iTunes store request. A Secure Network connection

  • Regarding performance issue in time dependent hierarchie.

    hai we are loading time dependent hierarchies from flatfile to bw,it is weekely load,we have nearly one million records loaded,we got an issues regarding change of these hierarchies timely.when ever there occurs a change in hierarchy a new row is add

  • Purchased songs not showing up in "purchased music" after computer migratio

    I recently had an imac stolen that had a dozen or so songs on it that I had purchased through the iTunes store. Since then, I've obtained a replacement imac (now running 10.5.1 cf. 10.4.11 before), deauthorized the old imac, authorized the new one an

  • EAR Packaging with utility jars

    In my application , the EJB's as well as servlets user log4j.jar ( logging utility). I have included the log4j.jar in WEB-INF/classes folder of the war file. Do I have to include the log4j.jar in the ejb-jar file also ? Do I have to explode the log4j