Regarding directory structure

hi every one,
any one plz help me to let me know the reason why we need to create the directory strucutre like the doucument root under which the WEB-INF under which the classes and lib directories.I am a beginner in J2EE,so plz let me know why we need to follow this kind of directory structure.
krishna gopal.

Hi,
The files inside WEB-INF is protected and they cannot be accessed without proper request. Thats the main reason.
Publicaly accessible files such as html, jsp, gif files can be placed inside the document root. No need to place these files in the WEB-INF.
All jar files must be placed in the Lib directory, loose class files must be placed in the classes directory.
I hope, it will help you to start your j2ee from scratch
all da best
bye for now
sat

Similar Messages

  • Guidelines regarding directory structure for multiple Oracle homes on Unix!

    Hi All,
    Are there any guidelines published regarding directory structures that should be defined while using multiple Oracle homes on Unix/Linux box?
    I am looking for guidelines regarding admin and oradata folders so that we dont accidentally mess up with the DB contents with a wrong Oracle home.
    Its a development server with 8i and 10g. 11g might also get loaded on the same server in future.
    Thanks in advance...
    Regards

    Thanks Maran.
    I have already checked many installation guides before posting here. All of them mention about creating folders like /admin or /oradata on various mount points but none of the naming conventions really indicate whether it is a 8i database or a 10g database.
    This is required when you are having multiple Oracle installations under /opt and databases are running from different mount points.
    Regards,

  • A question regarding Directory Structure

    hi....
    can ne one tell me how to display a directory structures using JTree....
    how can i get or retrieve a directory information from a disk
    BYE

    Take a look at this. This is a complete example.
    http://manning.com/sbe/files/uts2/Chapter17html/Chapter17.htm
    You can even download the book for free. http://manning.com/sbe

  • Regarding directory structure in sap

    At OS level in which directory oracle alerts are stored?

    Hi Praveen,
    just some additional information for your question.
    The most important information is written to the alert_<SID>.log. In an SAP environment you usually place this log under %SAPDATA_HOME%\saptrace\background (Windows), $SAPDATA_HOME/saptrace/background for Linux/Unix.
    If you cannot find it there then you are not using the default location for the alert_<SID>.log. In this case you need to check the value of the oracle parameter background_dump_dest  - the value of this parameter tells you where the alert_<SID>.log is written to. You can check this by logging on to the database and showing the parameter:
    sqlplus "/as sysdba"
    show parameter background_dump_dest
    If an error occurs that requires additional logs to be written then you can find them under %SAPDATA_HOME%\saptrace\background or %SAPDATA_HOME%\saptrace\usertrace
    But if Oracle writes some traces to the last 2 directories mentioned, you will see an explicit information about this in the alert_<SID>.log,  e.g.
    Tue Sep 27 08:34:58 2005                                             
    Errors in file /oracle/Q72/saptrace/usertrace/q72_ora_27044.trc:     
    ORA-00600: internal error code, arguments: [stsRelSlot_1], [], [], [],
    Regards,
    beate

  • Data guard directory structure query

    my OS IS WINDOWS2003
    ORACLE VERSION 10GR1
    i have a query regarding directory structure.What i did is i kept exactly the same directory structure on both primary and standby..please clear me on that
    Its what i did
    Primary SID- PROD
    Directory--- D:\oracle\product\10.2.0\PROD\abc.dbf(all datafiles,redo,control are in this directory)
    Archive location on Primary D:\PROD\ARCHIVE\.arc(all archives)
    Now what i did on standby.i created different sid--PROD2
    But i have kept exactly the same directory structure on standby too as
    datafiles in D:\oracle\product\10.2.0\PROD\abc.dbf(all datafiles)
    Archive location on standby D:\PROD\ARCHIVE\.arc(all archives).
    As i kept the same directory structure so i didnot set parameters db_file_name_convert and log_file _name_convert
    Please clear me on this before i move forward to check for archive shipping because i get confused that may be i followed wrong and i should have kept as
    Standby datafiles = d:\oracle\product\10.2.0\prod2\.dbf
    standby archives = d:\prod2\archive
    please tell.i really need your reply urgently
    can this approach of same directory structure affect the primary in bad way or is that fine

    please clear me on my above note
    i have taken the same directory structure as it was on primary even the sid name in directory is same.
    PRIMARY SID= PROD
    STANDBY SID =PROD2
    but datafiles,redo,control and archive location i have kept the same sid as of primary.
    D:\oracle\product\10.2.0\PROD\.dbf
    D:\oracle\product\10.2.0\PROD\.ctl
    D:\oracle\product\10.2.0\PROD\.redo
    i just changed control file with standby and also i did not created standby redo's as i read in document its needed for switchover.so i thought i 'll create later on.
    i am getting error in trace file of standby
    0ra-19527 physical standby redo log must be renamed
    ora-00312 online log 1 thread 1: D:\oracle\product\10.2.0\oradata\prod\reo01.log
    error 19527 creating /clearing online redo logfile 1

  • Jaxb+classpath+directory structure

    I have generated the files using xjc by giving xjc -b work\ItemList.xjs -dtd work\itemList.dtd -p test.jxml -d work from bin directory...
    When i try to compile the generated java files....
    " com.sun.xml.bind"...cannot find...like this its giving for all....Think classpath is not properly set or some problem with directory strcture.can someone help me...
    my cp is
    set JAVA_HOME=C:\j2sdk1.4.2_03
    set JWSDP_HOME=C:\jwsdp-1.4
    set JAXB_HOME=%JWSDP_HOME%\jaxb
    set JAXB_LIBS=%JAXB_HOME%\lib
    set JAXP_LIBS=%JWSDP_HOME%\jaxp\lib
    set JWSDP_LIBS=%JWSDP_HOME%\jwsdp-shared\lib
    set PATH=%JAXB_HOME%\bin;%JWSDP_HOME%\jwsdp-shared\bin;%PATH%
    set CLASSPATH=%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    According to me classpath i think its ok....Problem regarding directory structure.Pls xplain.
    Thanks in advance

    Right ... I just realized that %JAXP_LIBS%\jaxb-api.jar doesn't exist.
    Run any of the examples with "ant -v" to see what the classpath should be.
    -- Ed

  • I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder

    I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder but my new photo's are all in iPhoto.  I want to use directories for storing and iPhoto for viewing.  Is this possible or do I need to have all my photo's in iPhoto??
    Mitch

    iPhoto is not a Photo Viewer. It's a Photo Manager and designed for looking after the files while you organise the Photos. It really works much better if you let it manage those files. If you use iPhoto you never go near those files because iPhoto is your start point for anything you want to do with your Photos - the point of the pplication.
    You can run iPhoto in Referenced mode, where it does not copy the files to the Library, but I caution you that you are making life a lot more difficult for yourself by doing that.
    How to, and some comments on why you shouldn't, are in this thread
    https://discussions.apple.com/thread/3062728?tstart=0
    Regards
    TD

  • Export images to a directory structure based on a collection tree?

    A question:
    Will lightroom have the capability to export images to a directory structure which mirrors a collections logical structure?
    The reason I ask this is that when I create websites using third party tools (eg, Jalbum) I typically generate a flash or HTML based site with an menu structure for navigating the images.
    So, the image interface is not simply a "flat-file" display as per the templates in Lightroom beta.
    To do this, with previous image management tools (eg, iMatch) I create a hierarchy of images based on the categories (or collections) that the images are assigned to, export the images in a folder tree reflecting their categories (or collection), then use, say, Jalbum, to generate the website with the menu tree reflecting the folders/images.
    This is extremely useful for more complicated image websites with categories and a large no of images.
    If this function was built into Lightroom I guess it would be in the export function such that the "write to folder" box could take an argument {collection name} which would create a folder tree reflecting the collections logical tree which is being exported.
    Apologies if this topic has been raised previously. But this function is extremely useful if you are using third party html tools or simply building websites by hand.
    Regards
    Alistair

    I started simmilar thread in Lightroom Feature Requests few months ago, but can't find it anymore since new forum version...
    What I can suggest as a new feature is export to directory structure from collections or second option from keywords. Probably more usable and easier to implement would be from collections.
    What I need it to export many photos to different directories pretty often, and this would be great help since I could arrange them in collections and collection sets. Then select collection set and export it in a manner that collection set would be main export directory, and each collection within the set would be exported to its own folder within main collection set export folder.
    This would be much appreciated feature in near future
    Thank you for great product by the way

  • Directory Structure ?s for an Exploded Web Application

    We have an application that consists only of JSPs and Servlets, no
    EJBs. I am researching whether or not it's worthwhile to start using
    EJBs. We're also migrating from Weblogic 5 to 6.1. I've managed to
    migrate our application fine and have it up and running on WLS 6.1.
    I'm confused about the exploded directory structure, the
    application.xml file, where to put the EJBs and whether or not I have
    to jar them. Here's our current directory structure:
    DefaultWebApp/               JSPs here
    DefaultWebApp/WEB-INF          web.xml and weblogic.xml here
    DefaultWebApp/WEB-INF/classes     Servlets and other classes here
    DefaultWebApp/WEB-INF/lib     do my un-jar-ed EJBs go here?
    I've been reading a lot of BEA's documentation, particularly
    ‘Deploying an Exploded J2EE Application' and a ‘Web Application PDF',
    and looking for relevant threads on the weblogic.developer.interest
    groups. It looks like the application.xml should go in a new
    DefaultWebApp/META-INF directory. But where do the EJBs go?
    I also see some directory structures with another /web directory
    that's confusing me.
    Oh, I've also managed to compile and jar up a trial Stateless Session
    EJB. Then I think I ‘auto-deployed' it into the /applications
    directory, and Weblogic seems to recognize it. But when I tried to
    reference it in a JSP, I got an error message ‘class x is public,
    should be declared in a file named x.java'. I'm assuming this is
    related to the application.xml, where I need to define the ejb
    directory.
    Thanks.

    To deploy your web app together with your EJBs, you need to create
    an "EAR" structure. Both your webapp and your EJB jars will be within
    this new structure, at the same level. You may jar up your EJBs, or you
    may explode their structure, it's up to you.
    The resulting structure should look something like below:
    EnterpriseApp/ <-- new top level
    EnterpriseApp/META-INF/
    EnterpriseApp/META-INF/application.xml
    EnterpriseApp/lib/ <-- shared libraries (if any)
    EnterpriseApp/EJB/ <-- ejbs go here
    EnterpriseApp/EJB/META-INF/ejb-jar.xml
    EnterpriseApp/EJB/META-INF/weblogic-ejb-jar.xml
    EnterpriseApp/EJB/com/your/ejb/classes/here
    EnterpriseApp/WebApp/ <-- move your current app here
    EnterpriseApp/WebApp/index.jsp <-- JSPs goes here
    EnterpriseApp/WebApp/other.jsp
    EnterpriseApp/WebApp/WEB-INF/web.xml
    EnterpriseApp/WebApp/WEB-INF/weblogic.xml
    EnterpriseApp/WebApp/WEB-INF/lib <-- ui libraries go here
    EnterpriseApp/WebApp/WEB-INF/classes <-- servlets go here
    The above structure is identical to the structure to an EAR file, only "exploded"
    as actual files and directories instead of being "jarred" into a single EAR file.
    Your application.xml in this case would specify something like:
    <application>
    <display-name>EnterpriseApp</display-name>
    <description>My Enterprise Application</display-name>
    <module>
    <ejb>EJB</ejb>
    </module>
    <module>
    <web>
    <web-uri>WebApp</web-uri>
    <context-root>/yourAppRoot</context-root>
    </web>
    </module>
    </application>
    And in config.xml you would have an entry similar to:
    <Application Deployed="true" Name="EnterpriseApp"
    Path=".\config\mydomain\applications\EnterpriseApp">
    <WebAppComponent Name="ui" Targets="myserver" URI="WebApp"/>
    <EJBComponent Name="ejb" Targets="myserver" URI="EJB"/>
    </Application>
    regards,
    -Ade

  • Standby Redo Log Files and Directory Structure in Standby Site

    Hi Guru's
    I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile
    on primary site:
    DB_CONVERT_DATAFILE='standby','primary'
    LOG_CONVERT_DATAFILE='standby','primary'
    On secondary Site:
    DB_CONVERT_DATAFILE='primary','standby'
    LOG_CONVERT_DATAFILE='primary','standby'
    But i want to confirm this wheather i need to issue the complete path of the directory in both the above paramtere:
    like:
    DB_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    LOG_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    Thanks in advance for your help

    Hello,
    Regarding your 1st question, you need to provide the complete path and not just the directory name.
    On the standby:
    db_file_name_convert='<Full path of the datafiles on primary server>','<full path of the datafiles to be stored on the standby server>';
    log_file_name_convert='<Full path of the redo logfiles on primary server>','<full path of the redo logfiles on the standby server>';
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    How are you creating the standby database ? Using RMAN duplicate or through the restore/recovery options ?
    You can create the standby redo logs later.
    Regards,
    Shivananda

  • Changing file name and directory structure for use outside of iPhoto

    Hi,
    I was wondering if its possible to get iPhoto to name the files from my library to reflect the names that I've given the files in iPhoto. I'm thinking along the lines of iTunes, where its possible to chose in the preferences how the files are named, and there is some logical directory structure, such as "Artist/Album/01 - Track 1.mp3". These file names are updated to reflect any changes made in iTunes.
    I've heard the argument that I shouldn't ever want to do anything with the files themselves because iPhoto can do everything I would ever want to do, but I want to organize the files so that not all of my organizational work is lost if I decide to stop using iPhoto and transition to a different system. Any suggestions would be appreciated.
    Thanks,
    Adrian

    Adrian
    No it's not possible.
    You can rename the files before bringing them into iPhoto, you can rename them with the titles on Export (Use the File -> Export command, it gives you the option to use the title and filename) but when it's inside iPhoto you cannot rename the files.
    However, all is not entirely lost. Using Film Rolls (View -> Film Rolls) you can move pics between rolls, name rolls, create rolls and so on, as long as you do this in the iPhoto Window, and these changes will be reflected in the iPhoto Library Folder.
    If at some point you decide to chuck iPhoto then (if the new app won't read iPhoto database files) you can simply export each album you've created to a Folder (using the File -> Export command as I suggest above), this, along with exporting slideshows will preserve your organisational efforts.
    The iTunes database has a rather simple job to do: track a file and it's assorted metadata. iPhoto, on the other hand, tracks a file and it's assorted metadata, plus a Modified version, plus a thumbnail. If you consider what happens when you edit a pic, for instance - Copy Original, perform edit, save modified version, remove Original Thumbnail and then create new one - you can see it's a rather more complex job.
    Finally, the standard warning: It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss. Any changes you make must be made in the iPhoto Window.
    Need more info? by all means post again.
    Regards
    TD

  • Package and Directory Structure

    Hello --
    I work in a group that supports 3 web sites. (b2b, b2c, b2e)
    We're just beginning to develop Java in-house and
    currently using Solaris and JDK 1.2.x.
    I need to propose a package and directory structure strategy.
    The "reverse the domain name" guideline makes sense to me.
    My first thoughts are: ("classes" dir could be created anywhere)
    classes/com/ppco/b2X/ <--- for .java and .class files (development)
    lib/ <--- for b2X JAR files (ready for test or production)
    util/ <--- for our utility classes like DBAccessor
    lib/ <--- for our JAR files
    sun/ <--- for classes like com.sun.mail pkg
    lib/ <--- for JAR files like mail.jar
    org/ <--- for classes in org.omg.CORBA pkg
    lib/ <--- for JAR files
    We need to handle 3rd party classes.
    Development would be done in the b2X tree and JAR files would
    be installed the lib/ dir for testing and release to production.
    Does anyone have recommendations or experiences to share ?
    Are there some things to avoid ?
    Thanks !
    Al

    Hello Al,
    you are on the right track. A typical convention I follow is:
    <project>
          bin - for startup scripts, etc. to run your application
          build - for build scripts (not necessary if you build using your IDE. See below.)
          classes - for my compiled classes
          lib - for my 3rd party libraries
          src - for my source code
          test - for my test code (see http://junit.org/ )
    That's the project hierarchy. The src (i.e. the package heirarchy) structure is another story.
    As you say, you start with the reverse domain name. This is to give your packages a unique namespace. After that, your best guide is practice. Packages can be larger or smaller, depending on your coding practices. Usually you would have these (exact names may differ), plus others:
          com/ppco/client
          com/ppco/server
          com/ppco/common
          com/ppco/db
    I think your break down of sun, org, etc. is a bit too much. If you would like to do so, however, I recommend you do the separation under /lib. This way, the top level project directory is not polluted by the different types of libraries in use.
    Regards,
    Manuel Amago.
    From build above: I would suggest you always build your release distribution directly with the JDK, not using any IDE compiler. This is because Sun's JDK is the reference implementation, thus, any compatibility issues are not yours.
    An easy way to achieve this is by using ANT (see http://jakarta.apache.ort/ant/ ).

  • Import already existing directory structure into DFS namespace?

    Hi all,
    I'm planning to migrate three file servers to a single DFS namespace and after reading the official docs and numerous blog posts I'm still unsure about the right way to do it.
    The "main" server already has a share with a complex directory structure, called \\server1\team, and that share shall become the root of the new DFS namespace, lets call it  \\domain.local\team.
    Part of that already existing directory structure is this folder: \\server1\team\admin\communication\archive. The folder "archive" contains thousands of files in numerous folders and shall become a dfs link to another share \\server2\archive. But
    before I can create the folder "archive" as a dfs link I have to create the folder "admin" in the dfs hierarchy of course, then below that the folder "communication"
    Question: When I try to create a folder "admin" in the dfs namespace, I get the error message "the folder cannot be created in the namespace. The file exists."
    Ok, the folder "admin" indeed exists, but how can I "import" this branch of the existing directory hierarchy into the dfs namespace?
    Do I have to rename the existing folder "admin" to e.g. "admin2", then create the dfs folder "admin" and move the complete directory structure below "admin2" to "admin"? Or can I simply make the existing folder
    "admin" a dfs folder?
    Thanks in advance!
    Regards
    Christoph

    Mandy, thanks for your feedback!
    I have to describe my problem more precisely: creating the root of the new DFS namespace is *not* the problem. This worked for me exactly as you expained it. The problem appears when I try to create a folder below that root in the DFS namespace. If that
    folder already exists in the share you cannot choose how to handle security settings but you get an error message, and that's it.
    This may be helpfull to explain what I want to achieve:
    Old structure:
    \\server1\team - folder admin - subfolder "archive" - lots of subfolders and files
    Now I want to move all files and folders from "archive" to \\server2\archive and link this share into the new DFS namespace, so that our users don't notice any change when they access that archive folder.
    new structure:
    1. Create DFS namespace root: \\domain.local\team  -> \\server1\team   (works!)
                |
    2. Create folder admin  (problem!)
                |
    3. Create subfolder "archive" -> \\server2\archive (not possible becaues "admin" couldn't be created)
    I could perhaps create a DFS namespace with the root \\server1\team\admin\archive and link that to \\server2\archive, but I would like to avoid creating a new namespace for each share which from \\server2 which I mount into some subfolder of \\server1\team...
    Thanks for reading.
    Regards
    Christoph

  • Creating the directory structure in Planning

    <p>Hi</p><p>can anyone tell me how to the directory structure inPlanning.</p><p>thanks and regards,</p><p>Balu</p>

    Hi Sham,
    Thanks for your help,
    I ended up using:
    dialog.success = function(form, response) {
            CQ.Ext.getCmp(window.CQ_SiteAdmin_id).reloadCurrentTreeNode();
            var loc = response.result.Location;
            loc = loc.replace("/content/", "/cf#/content/") + ".html";
            CQ.shared.Util.open(loc);
    Now, this launches a new page for the editor, when the page is successfully created...
    Ideally, I wanted to use some other function instead of CQ.Ext.getCmp(window.CQ_SiteAdmin_id).reloadCurrentTreeNode(); -> CQ.Ext.getCmp(window.CQ_SiteAdmin_id).reloadCurrentTreeNodeAndNavigateToPath(path).  Is there a function that does this in CQ ?
    Peter

  • OVM 3.0.1 - directory structure & adding resources

    Afternoon everyone,
    I've got OVM 3.0.1 up and running, so far so good.
    I had a question about the repository directory structure. If this has been addressed already, my apologies.
    In OVM 2.x, it was possible to copy over a variety of data (.iso's, .img's, templates, etc.) directly into the seed, iso and running pools on OVS and then register them through OVM. Is there a way to do this in OVM/OVS 3.0.1? Is it a matter of getting the correct syntax in the 'download location' dialog box that refers to the OVS 3.0.1 box? Or do you need a remote staging resource set up in order to import data?
    Best regards,
    J.

    861743 wrote:
    In OVM 2.x, it was possible to copy over a variety of data (.iso's, .img's, templates, etc.) directly into the seed, iso and running pools on OVS and then register them through OVM. Is there a way to do this in OVM/OVS 3.0.1? Is it a matter of getting the correct syntax in the 'download location' dialog box that refers to the OVS 3.0.1 box? Or do you need a remote staging resource set up in order to import data?You need a remote server to import data. This can be the Oracle VM Manager machine itself, as long as you can access it via http/https from the Oracle VM Servers (as the import happens on the Oracle VM Server machines). Just install Apache on your VM Manager machine and stash your templates/assemblies in /var/www/html.

Maybe you are looking for

  • Hard Drive (Internal) no longer accessible, icon no longer on desktop!

    I was in the process of switching startup disks, which I have done on occasion previously without incident, then the drive was stuck on the startup screen, I pressed the restart button on the front of the computer and have not been able to access the

  • Does anyone know if the Samsung T22A350 will be supported by Lion?

    Hi, bought a Samsung T22A350 because I needed a mixture of TV and PC monitor. works so far fine under XP and Samsung include XP drivers. However, there doesn't seem to be a driver for Mac OS X. Would either use it via mini display port to HDMI or VGA

  • Variance categories and COPA

    Hi, I have already configured the different variance categories e.g. input price variance, input qty variance, etc..  Currently, its posting to one GL account - Production Variances.   But client's reqt is to classify to material price variance, mate

  • Upgrading pcre to 8.34 causes errors in mediawiki

    A breaking change in pcre-8.34 causes a bug in mediawiki where many of the pages show up blank (with no content), because of a PHP error happening under the covers. The bug has been reported and fixed upstream. This won't be fixed in the Arch package

  • Free download of transparent gateway for SQL Server

    Can anyone give me the URL where I can download the transparent gateway for SQL Server.. I searched OTN but couldn't find it. I just want to try it out.. Thanks.