Package hierarchy depth limitation

Consider the following:
          Version of WebLogic Server and service pack: 5.1.0 SP5
          Operation system: Solaris 2.7
          JDK version: Solaris_JDK_1.2.2_05a
          I try to instantiate a bean in a JSP which is in a package more than two
          levels deep,
          e.g. in package inventa.clareon.netdaemon.entityBeans
          When I try this, I get the following error:
          Error 500--Internal Server Error
          From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
          10.5.1 500 Internal Server Error
          The server encountered an unexpected condition which prevented it from
          fulfilling the request.
          The same thing happens after if I move the class up to
          inventa.clareon.netdaemon, change the package declaration in the .java
          source to reflect the new package name, recompile and change the class
          spec in the jsp:useBean directive in the .jsp source to reflect the new
          location.
          However, if I change it to two levels deep (doing all of the above) to
          inventa.clareon, it works fine.
          It looks like there is a package hierarchy depth limitation with
          WebLogic 5.1.0 SP5. Has anyone else seen this problem or does anyone
          have any workarounds?
          

Right, but what I was wondering is if an object in a given package that is in a subdirectory (com.company.levelone.leveltwo) of another given package (com.company.levelone) is accessible from that package (com.company.levelone).
But, it was a lazy question, since I could have figured it out for myself, given some time to actually write up the files. Which I did. And for posterity, here is what I discovered:
Just because a package (com.company.levelone.leveltwo) is "within" another package (com.company.levelone), doesn't make those objects available to that package (com.company.levelone objects cannot just access objects in com.company.levelone.leveltwo). Each is technically a separate package even though they may share a directory hierarchy, and each must be imported into the other.
Of course, this all makes sense when you ask yourself -- do the package declarations at the top of the file match? If not, then they are not in the same package.
(PS: this is a self-observation, so if I'm wrong, please correct me!)

Similar Messages

  • Appl.  Hierarchy and Package Hierarchy - what is the Best practice ?

    Hi!
    We plan to create a Package Hierarchy in our system, but then come to think of the Application Hierachy is built the way we think of building the Package Hierarchy.  We planned to build a Main package called fex. HR and below a structure package called HR-PA and below that ordinary packages within that area. But should we rather create our own application hierarchy for this?
    Or should we assign the packages to Sap standard application Hierarchy in the HR area ?
    What is the Best practice in this area ? Have any tried to create their own hierarchies ?
    Regards, Tine

    Hi!
    You can create your own Application Hierarchy as well .
    From ABAP Workbench select Overview->Applic. hierarchy->SAP or Customer
    This is what SAP says about this :
    <i>The application component hierarchy is a method of splitting up the SAP System from a logical or <b>business</b> point of view. Packages are a method of modularizing the system from a <b>technical</b> point of view. This technical modularization can, but need not, match the logical division of the system. Assignments should be made however between these two views.</i>
    Regards, Tine

  • JDeveloper 10g CVS package hierarchy gone after check out?

    Hello!
    We are using JDeveloper 9.0.5.2 (Build 1618) together with WinCvs 1.3.17.2.
    We successfully imported with JDev a project structure as
    client/moduleA/ui;
    client/moduleA/db;
    client/moduleA/ctr;
    client/moduleB/ui;
    client/moduleB/db;
    client/moduleB/ctr;
    into my repository - connecting with a pserver.
    If an other pserver-User tries to check out the module CVSRoot, the package hierarchy - as described above - is gone.
    All files are mixed up in flat packages ,,Miscellaneous Packages'' and ,,Miscellaneous Files''.
    The created file structure is ok (the package hierarchy remained). But as mentioned, the Application Navigator just shows the flat Miscellaneous file structure.
    For check out with the ,,Check Out from CVS Wizard'', in step 4 of 4, the options
    ,,prune empty folders'' ,
    ,,checkout into Target Folder'' ,
    ,,Do Not Shorten Pathnames'',
    were checked.
    What do we have to do, to see in the Application navigator - after a check-out - the imported tree of packages, instead of a flat structure?
    Thank you in advance for your answer!

    Hi,
    Was the project imported to CVS at the same time as the package structure?
    Do the project source paths match the filesystem? For example, does the java source path match the root of the java source? Jdev normally puts files in a flat structure if the files are not in the right file system folder for their java package.
    If changing the project path does not fix this can you tell me what technologies your using, such as BC4J, struts, Tag libs, etc.. Then I can try and reproduce this here.
    Many thanks,
    Geoff
    JDev SCM Team
    -------------

  • How to structure my package hierarchy?

    As an inexperienced Java programmer, I am having a hard time understanding how to structure packages hierarchically.
    Let's say that I am developing a client/server AddressBook application. So automatically, the following package hierarchy comes to my mind:
    (company/org name is ACME for example)
    com.acme.addressbook
    com.acme.addressbook.protocol
    The above two packages form the reusable core of the AddressBook system and include classes such as AddressBook, AddressBookEntry, etc. and related helper classes. Additionally, the protocol sub-package contains classes that pertain to the C/S network protocol. And both of these two packages are packaged up in a jar: AcmeAddressbook.jar
    com.acme.addressbook.client
    The above is the package for the Client application: AcmeAddressBookClient.jar
    com.acme.addressbook.server
    The above is the package for the Server application: AcmeAddressBookServer.jar
    My questions are: does such a package structure and hierarchy make sense? Or are there any glaring mistakes that I have made?
    Is it acceptable to keep the client and server applications into their own separate packages?
    Also, is there any recommended limit for nested packages i.e. how deep should packages be nested within the top-level AddressBook package?
    I am struggling to understand good package design and package structuring conventions.
    Thanks any for any info, critique, advice, etc.

    Lets the two client and server packages are respectively :
    com.acme.addressbook.client
    com.acme.addressbook.server
    Yes, such a package structure and hierarchy make sense!
    If you are having common utility classes and many library jars inside the package addressbook.library, you can just refer in client as well as in the server package.
    If you are going to create separate project for client and for server, you want to maintain multiple copies, which further results in the problems due to redundant code. ie., whenever you changed any library files, you want to update in both places.
    You can create two jars as you mentioned as,
    AcmeAddressBookClient.jar
    AcmeAddressBookServer.jar
    Before building jars you just want to set the executable Main class appropriate for Client and Server before making the client and server jars respectively.
    There is no limit for the nested package, if you need to group meaningfully, you can make as many nested package as you want!
    For your reference :
    http://articles.techrepublic.com.com/5100-22-1046677.html

  • Including packages in package hierarchy

    Hi,
    What is the purpose of including packages in package hierarchy?
    How can I define use access for them? what is the use?
    Please help me out in this.
    Thanks and regards,
    Lakshmi Reghuvaran

    Hello Lakshmi
    The <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/f39de8ae6f11d596c000a0c94260a5/content.htm">SAP Online Help</a> says the following to this topic:
    <b>Goals of the Package Concept</b>
    When SAP created the package architecture in R/3 Enterprise, its goals were:
    To improve the structure of the software
    To encapsulate software functions more strictly
    To make well-defined interfaces available to all applications
    To clarify responsibilities
    The very same goals can be applied to your own packages, either if you are a professional software supplier for SAP or a customer.
    Regards
      Uwe

  • Problems with package hierarchy

    If i create a simple package hierarchy like this:
    -trial
    - trial.subTrial
    and if i put an abstract class on trial, i cannot extend it on package subTrial (a strange error occur, saying that i'm not overriding the abstract methods, when in fact i am) . But if i put everything on the same package it's no problem!!
    I don�t know if this is a problem of the IDE (i'm using netbeans), i tried with a very simple example, outside of the project, to see if it was a problem with my code, and the same errors occurred, or if it's some hierarchy concept i'm violating.
    Does anyone knows anything about this?

    Nop, that's not the case!! As i said, i made a project just to try this.
    This is the code of the only 2 classes of the project:
    package trial;
    public abstract class Trial {
    abstract void function1();
    abstract void function2();
    void function3(){
    System.out.println("BLA");
    } // End of Trial Class
    package trial.subTrial;
    import trial.Trial;
    public class SubTrial extends Trial{
    void function1(){}
    void function2(){}
    }// End of SubTrial Class

  • Bug: package hierarchy is displayed 'flat' in Jdeveloper navigator

    Hi,
    suppose I have the following package (in accordance with java's guidelines for package naming):
    package nl.ibuildings.myapp.submodule;
    If I add a UML Class Diagram to submodule, it's displayed correctly in the navigator:
    - nl
    - ibuildings
    - myapp
    + submodule
    But in the 'other' items in the navigator (where the object entities appear) the hierarchy is wrong:
    + nl (with no contents other then a bc4j.xcfg and a nl.xml file)
    + nl.ibuildings (same 2 files)
    + nl.ibuildings.myapp
    + nl.ibuildings.myapp.submodule
    Why isn't this structure in treeform?
    Greetings,
    Ivo

    Hi,
    Whether or not packages are shown hierarchically is an option in the navigator. Select the "Sources" node (or any node below it and use the navigator toolbar:
    The modelers section of the navigator currently does not support all the modes that the main part of the navigator does. This is being tracked as an ER.
    Thanks,
    Brian
    JDev Team

  • Business Package - Hierarchy pop up permissions

    Hi,
    I am using item details iview of standrad business package in portal to create/edit master record.
    When user with System Administrator role try to create/edit a master record, the pop up for selecting hierarchy field value displays the hierarchy in tree structure.
    But, other users who are assigned to this iview are not able to see the hierarchy in the pop up! it is showing a portal run time error.
    I have solved this problem once by modifying the permission of the item details iveiw. But now i forgot.!
    Can you please help me to fix this problem?
    Thanks and best regards,
    Arun prabhu S

    Hi Gaurav,
    Thanks for your quick response!
    Yes you are correct! it is due to permission
    "Access denied (Object(s): com.sap.portal.system/security/com.sap.pct.mdm.appl.masteriviews/low_safety)"
    How to set the permission for other users?
    Thanks and best regards,
    Arun prabhu S

  • Bt infinity package 2 usage limits?

    Hello
    a few weeks ago I got bt infinity package 2... I was just wondering is there any usage limits that come with it?  whats the max ammount of data I can download eacxh month?
    thank you

    BT Infinity 2 is unlimited. See http://www.productsandservices.bt.com/products/broadband/packages/?s_cid=con_FURL_packages
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • FS Repository Manager depth limits - crawling problems

    Ciao a tuti.
    I have some really strange results from my Crawler. Here is the story:
    After Crawling 50000 for indexing I have around 800 docs where I have the Error Type: crawler.
    The interesting thing is that these documents have nothing in common & even via PCD there are "there" but after clicking on it, the message says: the document does not exist.
    So where can I start with the research? Maybe out there has someone a good idea?!
    Originally I thought, that I have a problem with the depth of the file structure, cause the structure is reallly complex. On the other hand I could not found any limitations for the FS Repository Manager.
    Thanx in advance

    Sir or madam -
    First, you may be hitting a URL limit of 256 characters.  Are you using the /irj/go/km/docs path to access the documents, or are you using the old method?
    Second, if you create a CM repository with FSDB persistence, do you have the same issues?
    Third, how deep into the repository does it go before an error is thrown?  Have you tried creating a test index directly to the folder/document in question?
    Good luck!
    Kyle

  • BPS - Hierarchy variable: limitations in planning folders...

    Hi,
    We are using a variable of type hierachy for the selection of the cost centers within the planning folders across our cost center planning application.
    We are using a hierarchy with roundabout 5000 cost centers. The variable forces the user to expand the hierarchy to the desired level in order to select the cost center. There is no way to enter the cost
    center manually when using the hierarchy variable, and no search function is available to find a cost center in the hierarchy.
    Those are cumbersome limitations especially when users are used to the R/3 or BW hierarchy search.
    Is there any way BPS can allow for direct input (in addition to selection via the hierarchy) when using hierarchy variables, or a least a search function?
    Thanks!!
    Olivier

    I don't know if this will help in your situation but I have a similar variable based on Profit Centre.  Within the hierarchy the users are responsible for a small number of Profit Centre Groups (defined as hierarchy nodes in the tree).  I have set the variable as user specific and each user has the Profit Centre Groups assigned that they are responsible for.
    This variable is then linked to a variable selector, as a dropdown, within my web app and only allows the user to select Profit Centre Groups they are responsible for.  When an entry is chosen the Profit Centres below that part of the hierarchy are displayed in the layout.
    Regards,
    Mat

  • Advices & rules for package hierarchy

    Hi,
    I developing a new project and I'll use packages for the first time. (My company doesn't have rules for package)
    I would like to know the gereral rules for creating a good hierarchy.
    i'm thinking of something like:
    com.mycompany.myproject.form
    com.mycompany.myproject.dialog
    com.mycompany.myproject.sql
    com.mycompany.myproject.dataobjects
    com.mycompany.myproject.table
    com.mycompany.myproject.tree
    Should I use also packages like com.mycompany.table for generals stuff like table models that could be of use for others projects ?
    Is this a good idea ? Do you have any suggestions ?

    I am not aware of any hard and fast rules for packaging. There are some things I keep in mind when I setup hierarchies though:
    1) The "standard" (more common than standard) is your businesses internet address reversed. So for instance, if you are www.foo.com, your packages would start out with "com.foo". Some people leave off the "com" part as well, so you would have "foo". I don't like this however as more and more companies reserve "*.net" and "*.com" and "*.org" etc addresses. Leave the top level domain on there. This is mostly just for namespace sake, so you don't get two pieces of code from two different companies with the same name.
    2) Is this the only product your company produces? OR will this be the only product your company produces? If the answer is no, you may want to put the product name next, so now we have "com.foo.product1". This will allow you to build nice, clash safe hierarchies.
    3) Most products are broken down into a number of projects or modules. Sometimes its a good idea to divide the package structure with this information. So now we have "com.foo.product1.module1", "com.foo.product1.module2" etc.
    4) If its an enterprise application (multitiered, J2EE, etc), I personally like to divide the code into tiers. It makes building easier and packaging for deployment much more intuitive. You might have web tier code, database tier code, application tier code, code common to all tiers etc. So now we have "com.foo.product1.module1.app" and "com.foo.product1.module1.web", etc. If its not an enterprise multi-tiered application, skip this step.
    5) Now within the hierarchy we have built up, its pretty much up to you to logically divide your code.
    6) It is now possible to "push" code up to certain levels to make it available to other projects/products/tiers. If you develop a nice data structure that you think might be useful to other products your company is developing, move the data structure up to an appropriate level to make it available to all products. For instance, "com.foo.structures.AwesomeStructure", instead of "com.foo.product1.structures.AwesomeStructure".
    7) Products and projects should not import outside of their "scope". This prevents cross project dependency and cross product dependency. If another project or product needs to import something outside its scope then the code should be moved to a more common place to make it available.
    Some will call this overly anal, but it has worked well for me for a few years. Hopefully others can provide you with more tips.
    Hope this helps.

  • KM Repository- Restricting folder hierarchy depth creation

    Hi All,
    In KM Repository, the requirement  is user should be able to create for example say :Under root folder A, folder B and Under folder B new folder C.
    But He should not be allowed to create new folder under folder C.
    Can we restrict this?
    Please guide
    Regards,
    Ganga

    >
    vijayakumar kanniah mohan wrote:
    > Hi
    >
    > there is webdav protocol in KM which performs controls to resource access in km
    >
    > so u can try this out .
    >
    > http://help.sap.com/saphelp_nw70/helpdata/EN/95/c3744f7143426e8f99c362244e0b55/frameset.htm
    >
    > Let me know if u could able to achieve
    >
    > Regards,
    >
    > Vijay.
    What does this have to do with the original question?

  • Packaging process - Registration of Hierarchy  ?

    Hi Folks ,
    In Manufacturing Division , When packaging the products the hierarchical data needs to be send to SAP AII ? What this meant for ?
    1. How AII relates this hierarchy ?
           - It cannot relate with any document right ?
    2. What kind of message will go to SAP AII ?
    Please clarify the above  process.
    Thanks.,
    V.Rangarajan

    Hi ,
    Your are concerned with executing packing process using SAP AII without a valid delivery order , right ?
    If so, the questions is how to store packaging hierarchy into SAP AII and why ?.
    Q. How  ?
    Ans.Since SAP AII stores packaging information against some document like Oubound Delivery doc , Outbound Ext Delivery doc etc.In your case you are recieving the Finished Goods from production line and needs to do the packing . For this you can define your own custom document type , which would contain packaging hierarchy information , thats it.
    Q. Why
    Ans .Suppose you have done a packing with the hierarchy items->Cases->Pallet.
    When you get an Delivery Order , you can efficiently automate the outbound process by just scanning the Pallet rather than scanning the individual items or cases.
    Edited by: Sridhar Maheswar on Nov 12, 2008 12:57 PM
    Edited by: Sridhar Maheswar on Nov 12, 2008 12:58 PM

  • Drill in BW hierarchy level in webi based on input control selection

    Hello Experts,
    I have a requirement in Webi. The Webi report is based on BW hierarchy and it is using hierarhcy both in the report output block and also in the report prompts. We are are BI 4.0 SP5,Patch 6. The report has input controls in it based on the BW Hierarchy. When the report is first executed,the user can drill down the hierarchy by clicking on the "+" nodes to the max level as shown in the screenshot below.
    Now, when the user selects an input control, the data gets filtered but the hierarchy level automatically expands. In other words, when they select a data hierarchy  showed in the input control the hierarchy in table is shown expanded and they want to see the  hierarchy in the table close automatically.
    So ideally its like this when a value from input control is selected.
    Whereas the user wants it to be like this automatically on selecting a particular value from the input control and not in expanded form.
    I'm aware of the Hierarchy depth function but that only takes us to a particular node based on depth and then doesn't allow further drilling after that.
    Is there any setting in webi/bex about always keeping all sub nodes closed to prevent this expansion on selection of input control?
    Thanks and regards,
    Abhishek

    Just did some research on on this and the SAP best practice: The question itself is logically incorrect.
    A report/table filter where there is a hierarchy may remove rows without respecting the hierarchy structure. For this reason, a filter can remove a parent node currently expanded and keep leaves or
      nodes collapsed. To avoid returning an empty table in this case the system automatically expands the hierarchy in the block to shows the resulting members
    Thats why it automoatically expands the hierarchy.
    Closing this thread. Thanks.

Maybe you are looking for

  • PDF files showing some ascii characters when tried to open in adobe reader.

    Hi Good day. Please help. Our business counter part is sending pdf files. But when we tried to open it using adobe pdf reader x, there are some ascii charters that shown. Any suggestion is highly appreciated. Thanks, Daryll

  • Problem faced while opening the Manage tab of DSO

    Hi All, I am trying to open the manage tab of the DSO to activate the request to load the data, But it is throwing the ABAP error when ever I am trying to open the manage tab.   The error message is some thing like this "     Short text of error mess

  • Adobe air html/js - application act like a browser.

    I just started in Adobe air html/js . In the current application I want to do something like this . I want to open the urls/web pages in the application and application should act like a web-browser to them . But with that I want to modify the opened

  • Ghost contact group after syncing with Exchange?

    There seems to be bugs in syncing iPhone with Exchange. After I connected to an Exchange 2007 account, I have the following groups on the iPhone: - All contacts - (EmployessList) - Contacts - WORK - PERSONAL - TEMP I do have WORK, PERSONAL, and TEMP

  • Doubts in Email notification

    Hi, I have configured a email notification for user status : in process. mail to be sent to msg processor condition i hve given as &CRM Service Process.User Status&  = E0002SLFN0001  ie when the msg goes to in process mail shd be triggered to msg pro