Behaviour differences between  war file and exploded directory

Hi,
I'm baffled by differences in how my web app behaves when deploy in a war file and when deployed in exploded directory.
Firstly when I deploy in exploded directory format (using wldeploy in ant) - the jsps do not precompile. However, when I deploy the war file - again using ant and wldeploy - precompile works just fine - and general performance seems better.
Secondly - the webapp has a pdf file - which is used as a template to dynamically produce a document. When deployed
in exploded format - the webapp works fine and is able to read the pdf. However, when I deploy in war file, the pdf cannot be read.
Surely the behaviour should be the same whether we deploy as a war or exploded.
Someone please help
Tariq

Some behaviors will be different between a WAR file deployment and an exploded WAR deployment.
With respect to JSP precompile, you just say "they do not precompile", so I can't tell anything about that.
When you read files from an exploded WAR, you can reference them in two ways: as a resource, or as an absolute file path. When you read files from a WAR file, you can only read files as a resource, and not as an absolute file path. You're not giving any information about how you're reading the file, so I can't tell about that either.
You'd have to provide more detail to get better answers.

Similar Messages

  • Difference between .war file and .ear file

    Hi,
    what is the difference between .war file and .ear file ?
    Please let me know with appropriate explanation.

    War file means web application archive. It is archived file having a collection of JSP, servlets and static pages that together costitute a web application. It contains one WEB-INF directory which will have a file named web.xml which defines the structure of the web application.
    On the other side EAR file is Enterprise application archive. It is file having packaged content of one or more modules into a single archive so that the deployment of all the modules can be done simultaneously on the application server. It also contains XML files called deployment descriptors which gives the details of the deployment method. This deployment descriptor will be present in the folder META-INF folder.
    So the main difference betwwen the two is that Ear file is having collection of various modules to be deployed on the application server while the WAR file is used to deploy the web applications.

  • Differences between SunONE, iPlanet and Netscape Directory Server

    What are the differences between SunONE, iPlanet and Netscape Directory Server?
    When I go to docs.sun.com - Products Categories, I saw that they've documentation regarding with SunONE, iPlanet, Netscape Directory Server listed under Directory Server.
    I know that they're all different directory server, but is it one newer than other? If I'm not wrong, I assumed that Netscape transformed into iPlanet, and then from iPlanet, it transformed to SunONE. If that is the case, is that mean that all of it's console and how it works should be very similar?
    Thanks!

    That is exactly what I thought.
    so when people refer SunONE Directory Server 5.1, then that's mean iPlanet Directory Server 5.1, right?
    Because I'm looking at Solaris 9's specification and it mentioned that it bundled with SunONE Directory Server 5.1.
    Thanks for answering my question! :)

  • Difference between jar file and package?

    What is difference between a package and jar?
    Is a jar a package? or is package jar?
    If I say
    package pink;
    does it mean pink is folder or jar?
    what if I say import pink.rose;
    does it import jar file with the rose class inside it?

    These two concepts are unrelated. A jar file is nothing more than a zip file of class files and other related resources, which you can use to 'bundle' your application for ease of deployment. Th use of zip files is not mandatory.
    Packages on the other hand, are a means of 'packaging' parts of an application or library in their own namespace, generally for reasons program structure, and to avoid naming collisions. A bunch of classes in a package will be compiled into a bunch of class files, on a one-to-onwe basis (one file per class).
    You may chose to 'bundle' those and other classes into a jar file.

  • Difference between importing files and adding files/folders to liabrary?

    When I want to bring in new music into my liabrary from my my music folder, I don't know the difference between importing them and adding a file. They both seem to bring up the my music folder and seem to give me the same options?

    To quote from the following link:
    "When you add something to the library, essentially you are taking existing audio or movie files and adding an entry for each to your iTunes Library index. iTunes adds entries in your iTunes library for the selected files, and copies the files to your iTunes Music folder (if you have that option selected in the Advanced pane of iTunes preferences)."
    "The Import menu item allows you to import playlists and other data files into iTunes."
    For more see this page: About the Add to Library, Import and Convert functions

  • Difference between page file and swap space

    Hello friends
    What is difference between swap space and page file???
    I set the page file to 0 MB(No page file) but when I use Everest Software it show 1023 MB swap Space.Is there difference between them?

    Swapping meaning data in and out from memory ie. primary to secondary. Paging is also the same thing, but its mostly used nowadays as virtual memory is based on pages. So, its like pages in and out. Swap space the memory used for swapping entire processes
    from system memory into the swapfile. Where as paging transfers the pages to page file when the memory is almost full.
    Regarding Everest, I think you should check with the supplier.
    Arnav Sharma | Facebook |
    Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
    reading the thread.

  • Difference between .mov files and .dv files?

    I am normally a FCP 4.5 user but I just got the new Macbook Pro and need to capture some footage this weekend using iMovie. Is there any difference between the .mov files we capture with FCP and the .dv files captured with iMovie as far as compression or quality?
    I've looked and looked but can't find the answer. Thanks!
    MacBook Pro   Mac OS X (10.4.5)  

    Hi there. can you explain this a bit more ?
    "you can scrub audio over a .dv clip in a sequence"
    and explain why the .dv video is so doggy in fcp hd?
    so,you CAN NOT convert .dv to fcp - right? or .mov to fcp?- right
    Here is my experience with iMovie, .dv files and
    FCP.
    iMovie can be useful, because it breaks DV clips up,
    and handles time code breaks - by ignoring them!
    I had canon camera, which if I captured with FCP, the
    audio would drift over the hour capture - it was over
    a second out by the end of the tape, so I used iMovie
    instead.
    Dropping .dv files into DV FCP sequences does not
    require a video render or transcode - the original
    image quality is maintained, but will require an
    audio render to stop the audio 'beeping' during play
    back - it seems an arbitrary limitation to me, you
    can scrub audio over a .dv clip in a sequence, and
    you can play audio when the .dv file is in the
    viewer, but not from a sequence.
    Then - it gets more annoying - every edit you do,
    typically requires a re-render of the audio, if you
    don't want the beeping, but there are two tricks
    that can help: 1) make a sequence for each .dv clip,
    unedited, render the audio in that sequence, then
    edit that into the master sequence, or 2) use
    'extract audio' in iMovie, then find the .aiff in the
    Media folder, and replace the .dv sourced audio with
    that in the FCP timeline.
    There is no re-capture, as Shane says, you have to
    stay on disc forever, or risk having to tweak and
    re-trim your project, if you hope iMovie will create
    the same files on a future capture - I have never
    tested that, my guess would be no.
    Most of the folks on the board will dismiss such a
    workflow - and with good cause - but its not totally
    useless, in certain circumstances.
    I have not tried this with the iMovie in iLife '06 -
    so your mileage may vary. Ideally, the beeping audio
    from .dv would be fixed in FCP - I understand it is
    harder to extract and play from a .dv file, but we
    have fairly powerful machines, these days, and,
    iMovie seems to manage just fine
    Good luck!
    iMovie was what got me into Macs in the first place,
    and after my first 'home movie editing appliance'
    (also known as an iMac G3) I started to do less and
    less on PC's, and have not tried to edit video on one
    since.

  • Difference between bad file and discard  file

    Hello everyone, My oracle database is 10g.
    Can any one tell me the difference between badfile and discardfile.(SQL Loader Concepts)

    The Bad File
    The bad file contains records that were rejected, either by SQL*Loader or by the Oracle database. If you do not specify a bad file and there are rejected records, then SQL*Loader automatically creates one. It will have the same name as the data file, with a.bad extension. Some of the possible reasons for rejection are discussed in the next sections.
    The Discard File
    As SQL*Loader executes, it may create a file called the discard file. This file is created only when it is needed, and only if you have specified that a discard file should be enabled. The discard file contains records that were filtered out of the load because they did not match any record-selection criteria specified in the control file.
    The discard file therefore contains records that were not inserted into any table in the database. You can specify the maximum number of such records that the discard file can accept. Data written to any database table is not written to the discard file.

  • Difference between image file and .bin file

    I want to know whats the difference between img and bin file and which is better

    Functionally and generically, they are the same thing for devices like routers and switches and firewalls ...
    Some "images" consist of more than one binary file ... like code for specific blades or modules (like a radio module on an AP).
    In most cases, it's just a naming convention and they are the same.
    For some systems, like computers, a binary file is an executable ... it gets loaded into some flavor of memory, usually RAM, and the instructions are executed. During the initial load, some code is typically executed to initialize the various sub-systems. All of this initialization takes time (think about booting a desktop or laptop computer from power-on to "ready-to-go").
    One way to speed things up a little is to save the initialized environment as an "image" or snapshot of the "ready-to-go" state of the device.
    Once the snapshot is saved, it can be loaded directly into a block of memory without the need of all of the initialization code or interpretation of the binary code. This tends to make things "boot" faster. As long as the system's hardware configuration hasn't changed since the snapshot / image was taken, it should be exactly as if the device was never turned off. Some desktop and laptops have a "hibernate" mode .. everything is powered down, but it boots up as fast as the snapshot image can be pushed into the memory from the hard drive.
    If you have a specific example, post it up.
    Good Luck
    Scott

  • What is difference between UNIX file and DOS file for SAX parser?

    i have the following XML file:
    <?xml version='1.0' encoding='utf-8'?>
    <root>
    <strTask><![CDATA[some
    data on
    multiple lines]]></strTask>
    </root>
    If i save it as Unix file, than SAX parser works correctly and characters() function works only once per strTask tag.
    But if i save the file in DOS mode, then SAX calls characters() function every time new line is encountered during the same strTask tag.
    what can be a clue?

    i have the following XML file:
    <?xml version='1.0' encoding='utf-8'?>
    <root>
    <strTask><![CDATA[some
    data on
    multiple lines]]></strTask>
    </root>
    If i save it as Unix file, than SAX parser works
    correctly and characters() function works only once
    per strTask tag.
    But if i save the file in DOS mode, then SAX calls
    characters() function every time new line is
    encountered during the same strTask tag.
    what can be a clue?

  • Difference between *.as file and *.fla

    I saw some actionscripts file ended with *.fla and others with *.as. Are they the same?
    The *.fla files have imports, such as fl.transitions.*, that are not part of Flex.

    Hi again Glen, this tutorial shows you how to import fl.transitions and use this package inside a Flex application
    http://www.flexer.info/2008/06/19/how-to-use-five3d-and-tweening-in-flex/.
    Basically what you need to do is import those clases that belong to Flash so you can use them in Flex.

  • Difference between source file and source structure

    Hello,
    I have a source file with around 60 fields. But I need to upload only 5 fields. I defined a source structure in LSMW with 5 fields and specified the file with 60 fields as the source file. But when the data is read, only 2 out of 5 fields are read. What should I do?
    Thank you

    Hi !!
        In case you are selecting only limited fields form a file with more fields in LSMW . Please apply following consideration :
    1. Add a dummy field in your source structure to make the whole structure size equal to the  total width of all fields in the source file. This is because in LSMW the file is read for the length of the SOURCE STRUCTURE width only . So if i want to read only field3 in following example i still need toa dda dummy field to ensure LSMW reads a total width of source file as the FIELD3 is at absolute end of the source file from length 40 to 60 only .
    For example :
    if my source file ahs following firve fields : FIELD1 (10) , FIELD2(30),FIELD3 (20) .
    Declare your source structure as : FIELD3 (20),FIELD_DUMMY (40) .
    2. When you deifne the source file in LSMW step 7  take care to notify whether you have field names at start of file or the field order is same as
    source structure .
    This should close your issue or get in touch for more here buddy

  • Diff between Log files and Trace files

    hi
    What is the exact differences between Log Files and Trace Files.
    And the relevant informative URL/reference materils would be highly appriciated.
    Thanks
    Sekhar

    Hi,
    Go through these,
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/7b1e40777cdd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0bf8c890-0201-0010-8b8c-fc93fa1f4795
    Hope it clarifies
    Regards
    Srinivasan T

  • What is the difference between httpd.pid and httpd.lock files?

    What is the difference between httpd.pid and httpd.lock files?

    Hi;
    Apache httpd saves the process id of the parent httpd process to the file logs/httpd.pid .
    LockFile
    Sets the path to the lockfile used when Oracle HTTP Server is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or USE_FLOCK_SERIALIZED_ACCEPT. It is recommended that default value be used. The main reason for changing it is if the logs directory is NFS mounted, since the lockfile must be stored on a local disk.
    For example: LockFile /oracle/Apache/Apache/logs/httpd.lock"
    Please see:
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14007/fileloc.htm#sthref254
    Regard
    Helios

  • Differences between .profile,oraenv and dbhome files

    can anyone tell me the differences between .profile,oraenv and dbhome.
    database version is 10.2.0 and OS is solaris 10.
    I have set up the environment variables using .profile
    is the functionality of oraenva and dbhome same like .profile?

    Hello,
    oraenv and oracle home_
    The oraenv and coraenv utilities both aid in setting the Oracle environment on UNIX systems (other utilities exist on Windows platform that enable the Oracle Home to be set.) The coraenv utility is appropriate for the UNIX C Shell; oraenv should be used with either the Bourne or Korn shells.
    Database operations require the ORACLE_HOME to be set before the user may access the database. If ORACLE_HOME is not set, commands such as sqlplus, exp, or any other utility for that matter, will not be found.
    Both utilities are shell scripts that do the same thing in the different UNIX shells. They will prompt for a SID of the database unless ORAENV_ASK is set to N. The utility will also append the ORACLE_HOME value to the path, marking the location of the utility.
    The oraenv command will prompt for the SID of the database that you wish $ORACLE_HOME to access.
    $ . oraenv
    ORACLE_SID = [] ? ASG920
    The dbhome utility can now be used to verify that $ORACLE_HOME is correct.
    $ dbhome
    /usr/oracle/9.2.0
    The “dot space” part of the command is required to make the environment change with the parent shell, as opposed to entering a command without it which would only affect the subshell running that process.
    These commands can be used to avoid specifying the network service name when issuing commands. For instance, without using oraenv, a sqlplus command would look like:
    $ sqlplus system/manager@nameofservice as sysdba
    whereas after oraenv has been executed, the following command would work:
    $ sqlplus system/manager as sysdb
    The profile:_*
    The Profile file in your home directory is a collection of Korn shell commands that are executed whenever you login. Commonly, the Profile file is used to set environment variables and shell options. You can also put command aliases in your Profile file, but it's better to put them in a separate file -- commonly called .env (which is pronounced: dot-e-n-v)-- that you define and execute in your Profile (which is pronounced: dot-profile).
    This document briefly introduces environment variables, shell options, and aliases, and gives sample Profile and .env files.
    The commands in this document assume that you're using Korn shell, which is the default login shell on all the ACCC UNIX machines. Shell variables (like $PRINTER and $ENV, which are introduced below) are defined slightly differently in C shell. For example, to select the U-Print system as your default printer in csh you'd use the printer named uprint:
    PRINTER uprint
    setenv PRINTER

Maybe you are looking for

  • Future buyer of W530 with questions on screen type and GPU.

    Hey guys, I'm contemplating buying a W530 laptop to replace my aged Acer Aspire 5517. Anyway, I have some questions regarding screen type and graphics cards. One, my current Acer has a 16x9 HD screen that works perfectly fine for me, unless I go outs

  • What Format Is Used for eprint Emails?

    I'm interested in generating eprint jobs from a Linux machine, so I'm wondering what format is used, and how you cope with email gateways which can accomodate messages of limited size. Can somebody assist please? Regards ..

  • I am having trouble viewing PDF's with Adobe Reader XI

    I  am having trouble viewing PDF's with Adobe Reader XI

  • IDVD won't take projects from FC

    Hi I'm working with iDVD 7 but after upgrading to 7.0.4 it doesn't take any video format. I normally used to drag FCP movies and drope it into iDVD without any problems, but now it won't take any videos or whatsoever. I've tried to convert videos usi

  • Delete a user record from oracle db

    Hi, Can anybody share me a custom workflow which deletes a user record from the oracle db.The user does exist in SUN IDM. Please help me. Thanks in advance.