.WAR files-what r they?

I came across .war file during the first day of servlets. I downloaded bookstore appl. from sun site and it contains a single .war file. How do i view the files & also what is a .jar file. Why are these exetnsions used?

The java _AR files (.jar, .war, .ear, .rar) are just an ARchive file (as mentioned).  They use the same algorithim as WinZIP.
The difference lies as to what is stored in each (implied by first letter of extension) and what/if the directory structure of the interal files is.
A Java ARchive is a general purpose archive. APIs (J2EE.jar) or drivers (JDBC drivers such as Sybase's jconn2.jar) usually contain many classes in their package defined directory structure.
A Web ARchive is an archive of one specific Web Application. Certain items must be in certain locations in the .war (/WEB-INF/web.xml MUST exist). The location and requirements for this type of archive are specific to a Web Application. The advantage of this is that you can take a .war file and deploy it in any J2EE compliant web server (Tomcat, WebLogic, WebSphere). As long as you have not used any vendor specific code, deployment should be easy as the structure of the .war is a standard.
An Enterprise ARchive is an archive of one specific application that consist of many components, themselves other ARchives. Usually, an .ear will consist of a .jar (the Enterprise Java Bean classes) and a .war (A web application). The Web App will utilize the EJBs in the .jar, however the EJBs in the .jar do not know about the .war and can most likely be accessed by apps outside of the container (they are EJBs afterall).
A Resource ARchive is an archive of classes used to implement the Connection Archetecture. I have not used this myself, so cannot really comment on anything other than it's purpose.
In either case, the tool jar can be used to create, extract or view any of the ARchives listed above. It can also be used to extract a .zip file (and WinZIP can be used to extract/view a ARchive). The jar executable should be in the same directory as the java and javac executables. If your environment is configured correctly, typing jar at the command prompt will list the options available to you.

Similar Messages

  • Today, I randomly happened to have less than 1GB of hard drive space left. I found very large "frame" files, what are they?

    I found very large "frame" files, what are they & can I delete them? (See screenshot). I'm a (17 today)-year-old film-maker and can't edit in FCP X anymore because I "don't have enough space". Every time I try to delete one, another identical file creates itself...
    If that can help: I just upgraded to FCP 10.0.4 and every time I launch it it asks to convert my current projects (I know it would do it at least once) and I accept, but everytime I have to get it done AGAIN. My computer is slower than ever and I have a deadline this friday
    I also just upgraded to Mac OS X 10.7.4, and the problem hasn't been here for long, so it may be linked...
    Please help me!
    Alex

    The first thing you should do is to back up your personal data. It is possible that your hard drive is failing. If you are using Time Machine, that part is already done.
    Then, I think it would be easiest to reformat the drive and restore. If you ARE using Time Machine, you can start up from your Leopard installation disc. At the first Installer screen, go up to the menu bar, and from the Utilities menu, first select to run Disk Utility. Completely erase the internal drive using the Erase tab; make sure you have the internal DRIVE (not the volume) selected in the sidebar, and make sure you are NOT erasing your Time Machine drive by mistake. After erasing, quit Disk Utility, and select the command to restore from backup from the same Utilities menu. Using that Time Machine volume restore utility, you can restore it to a time and date immediately before you went on vacation, when things were working.
    If you are not using Time Machine, you can erase and reinstall the OS (after you have backed up your personal data). After restarting from the new installation and installing all the updates using Software Update, you can restore your personal data from the backup you just made.

  • Two questions; ejb tmp jar files what are they? and web deployment procedur

    after the deployment of my ejb in the directory there are two files, tmp 4762 and tmp 4759 jar files. The deployment was successfull however i could not run niether the web nor the client modueles.
    what are these tmp.... files?
    could someone expalin this for me.
    second.
    I am a bit confused about the deployment of WAR files or web application for ejbs.
    Well, in the tutoral there are not much ejb examples with web applications. the only example is the converter with one index.jsp. And there is the Duke banks.
    In the converter as far as i understand to deploy the converter war file we only need to specify the context root
    but when deploying the duk bank WAR file there a alot of stuff to be done alias, context parameter, url patterns and so on
    would someone explain to me what are the main steps for a web application deployment?
    i appreciate your assistance
    thanks

    what are these tmp.... files?These temp files are created by the App Server. Not sure why they are there...
    would someone explain to me what are the main steps
    for a web application deployment? Refer to your other post... I gave all the steps I can remember.
    Regards,
    Carol.

  • .pk and .pkf files (aka peak files) - What are they?

    Peak files - ones with .pk and .pkf extensions - are files that Audition creates upon first opening an audio file, and they contain information about the way it's displayed on the screen. After you've worked on a file, saving the peak data as well as the file means that the next time Audition opens it, it can do so a lot faster - simply because it doesn't have to create all that visual data again.
    By default, Audition saves peak files automatically for wav files, but it can't create them for other types. The reason for this is that it doesn't need them for those file types, as they can't be opened natively in Audition anyway; they have to be decoded into wav files first.
    The difference between older .pk files and newer .pkf files (the ones that Audition CS5.5 uses) is that the .pkf ones contain Floating Point data. This means that unlike .pk files, they can display information about files where the signal exceeds 0dB. This means that if you do a mixdown where the levels are rather hot, you can display the levels correctly in Edit View by zooming the vertical display out. If you replay the file at this level though, it will distort, so you still have to normalize your resulting file so that the peaks don't exceed 0dB before making, say, a CD from it, a 16-bit integer copy, or any sort of compressed file.
    Because of this fundamental difference though, .pk files and .pkf files aren't interchangable. So a .pkf file created with Audition CS5.5 won't work with any previous version. What will happen if you open one of these files in, say Audition 3 is that a new .pk file will be created, and stored alongside the .pkf one. And similarly, a .pk file from a previous version will be ignored if an older file is opened in Audition CS5.5 - it will create a new .pkf file for it.
    Both .pk and .pkf files are normally hidden file types, so you won't see them in your files folder unless you've set it to display hidden files. It doesn't matter in the slightest if one gets deleted accidentally - which ever version of Audition you are using will recreate the appropriate one automatically. The only difference you will notice is that it takes longer to open the file. Not much of a problem with a very short one, but if your file is an hour long, the difference is significant.

    In the light of a few recent posts about this, I should also add that you shouldn't try to open .pk or .pkf files on their own. By default, the file extensions aren't associated with Audition as far as the OS is concerned - they don't need to be, because Audition will look for the peak file associated with a wav file when it opens it, and the OS doesn't get involved in the organisation of this. And, on top of that, Audition doesn't regard the mere existence of a .pk or .pkf file as an excuse for opening. Why should it? It knows  that there's no audio in it!
    So basically - You Can't Open .pk or .pkf Files.

  • Desktop null files - What are they?

    I have recently starting getting a file in my home folder repeatly.  The file name is
    Desktop-1.(null)
    and the next one will be the same, but 2, 3, etc.  What are they?  I throw them out and later more get created.
    Thanks
    I'm on OS X 10.8.2

    I've had them too. They are PDF files that I downloaded from the internet (and perhaps they failed or something?). Anyway, check it out: change their extension from .(null) to .pdf and you'll be able to read them and decide what to do with them.

  • Adjunct files - what are they?

    what are the automatically created files iPhotolock.data, iPhoto.ipspot, and iPhoto.db?
    what do they do? if i delete them while trying to reconstruct the nonfunctioning iPhotolibrary associated with them, will I cause trouble?

    j in seattle
    These are all part of the iPhoto Library installation. 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
    If you're trying to reconstruct a non functioning library for v5 of iPhoto see this article:
    http://docs.info.apple.com/article.html?artnum=107947
    Regards
    TD

  • "recovered"files. what are they?

    I have 25,000 photos in a library. Also there are thousands of photos in a folder called "Recovered Folder" of which they show as ALBUMS. I have checked many of them, and they seem to be duplicates of the photos in PROJECTS.  I have tried to find out what they are, and why they are present, but only find a relationship to Vaults, which I do not use.
    a)what are they and where did they come from?
    b) can I get rid f them withut loosing any of my photos?
    Thank you
    Asuch

    a) A "recovered" folder is akind of "Lost & Found" place.  When you repair an Aperure library, upgrade it, or rebuild it, Aperture will place there any items found in the Aperture library, that are no longer tied to versions in your projects. 
    b) That is hard to tell, without seeing your library. Frequently these items are just items that should have been trashed, but the Trash did not empty properly. Then you can trash them. But sometimes versions are losing there connection to the originals, but you may not notice it immediately, until you try to edit the version or to export it. And then you will need the recovered item. The safest cause of action would be to create a backup copy of your library as it is now.   Then look at your recovered items and try to identify the original in its project, If you are sure, that you have a working copy of the recovered item, delete it.

  • $1.class files - what are they?

    This is probably a really dumb question, but here
    goes....
    Having written an applet, I used the deployment wizard to create
    a jar file, and moved this on to a web-server. When I open a
    HTML document which attempts to call the applet, I get a
    ClassNotFoundException, the class in question being my applet
    class name, but with a "$1" suffix on the name. I noticed that a
    file of this name has been created in my JDeveloper "myclasses"
    directory, and has also been deployed in the jar file. Does
    anyone know what this is for, and how to get round this
    problem? Any help would be much appreciated.
    Thanks, Rich
    null

    JDeveloper Team (guest) wrote:
    : Hi Rich,
    : I haven't seen this one before. I asked around in QA and they
    : weren't aware of it either. Could you provide some more info
    : that might help us track down the source of this problem:
    : What is the name of the file as it appears in your project?
    (the
    : .java file), and what exactly is the name of the .class file
    that
    : is being generated (<filename>.class$1?)
    : Thanks for the additional information.
    : -L
    : Rich (guest) wrote:
    : : This is probably a really dumb question, but here
    : : goes....
    : : Having written an applet, I used the deployment wizard to
    : create
    : : a jar file, and moved this on to a web-server. When I open a
    : : HTML document which attempts to call the applet, I get a
    : : ClassNotFoundException, the class in question being my applet
    : : class name, but with a "$1" suffix on the name. I noticed
    that
    : a
    : : file of this name has been created in my JDeveloper
    "myclasses"
    : : directory, and has also been deployed in the jar file. Does
    : : anyone know what this is for, and how to get round this
    : : problem? Any help would be much appreciated.
    : : Thanks, Rich
    They are the files with the inner classes of main class, i
    think..... if you have a "pp.java" with a inner class ( such a
    event listener or something like this), you obtain to files
    "pp.class" and "pp$1.class", hope this helps...
    Regards, Ignacio Ortega
    null

  • Optional Install in Snow Leopard -- "Pod Support" files -- What are they?

    I posted the below in the Snow Leopard Installation forum but got no answer. (see http://discussions.apple.com/thread.jspa?messageID=10710170#10710170 ). It was suggested that I post the same question here:
    In Snow Leopard, one of the optional files you can install are simply called "iPod Support" files.
    iTunes supports iPods etc.
    What are these optional "iPod Support" files?
    Why would someone install them?
    P.S. I don't think the "iPod Support" files have anything to do with syncing. If you choose NOT to install the "iPod Support" files during install, you still can sync your iPod with iTunes.
    These files are a mystery to me. Does anyone have an answer?

    Well I thought this was the right forum to ask the question. My question relates to an OPTION available when you install Snow Leopard.
    I don't think the "iPod Support" files have anything to do with syncing. If you choose NOT to install the "iPod Support" files during install, you still can sync your iPod with iTunes.
    These files are a mystery to me. I will try the iPod forums.... Maybe someone there knows...

  • "exec" files;  what are they?

    When batch re-naming a folder, which I've done successfully millions of times, Bridge suddenly switched all the images to "exec" files (a grey icon with "exec" above in green), and they are unopenable. A whole session was ruined. Are they retrievable? Tom

    Email communications to address technical issues are strongly discouraged as being contrary to the essence and spirit of the forums. Please come back to the forum to look for replies.
    Email responses would defeat the purpose of the forum, which is for everybody to benefit from all questions and answers, not just the original poster.
    Additionally, we are all users just like you, just trying to help each other out. You are not addressing Adobe here.
    = = =
    As for the "exec" files, by omitting the extension, you fooled the OS into thinking they were UNIX executable files.

  • How to package a .war file for multiple locations...

    Sorry if this is in the wrong section, but I wasn't sure where to place it.
    We have a webapp (.war) that we would like to package to distribute to multiple remote locations. We have to assume that the people installing this webapp have no Java/J2EE experience and will not have the technical know-how to be able to handle packaging the .war file themselves.
    They do, however, need to be able to make configuration changes to the JDBC settings in the web.xml, the logging settings in log4j.xml, and configuration changes in the context.xml.
    Since these files reside inside the .war, what is the best way to package this application so they can make changes to those files and package it to deploy on their application servers?
    Thanks!

    Well, the best way is to move that configuration out of those XML files and manage them directly from you application.
    Then you can use the Java Preferences API to actually maintain the configuration data, and that data is stored outside of your application completely in some JRE dependent way (Registry on Windows, and the users home directory on Unix for Sun's JRE).
    You can also modify your webapp to manage the configuration directly and have it rewrite the XML files itself. The Java Preferences API is better just because the config changes will survive if you happen to update the WAR file with a new version. Of course, you can still leverage the Preference API, get your "defaults" from the supplied XML files in the WAR, and then if your application detects a version change (the one in the Preferences is different from the one in the WAR), the app can update the XML files, and pop up a page telling the user to restart the application to see the new changes.
    Finally, you can also write a Swing app that presents the few options that the user might need, and then it has the smarts to update the WAR file for them (it's simply a ZIP file and Java can read/write those). That way you have a simple wizard they can play with.
    Also, for things like log4j, you can bundle that seperate from the WAR, and let them place it either on the CLASSPATH of their container, or in one of their shared directories (like shared/classes on Tomcat for example).
    I'm fond of the Preferences technique with a Webapp configuration, as you can make your WAR almost plug and play. They plop in the war, app fires up, they hit the URL and there's a config page staring at them.
    But all of these options require work outside of your application.
    You can also perhaps get one of those Installer programs, and right an installer for them. You can explode the WAR in to any directory, and then have the container deploy it from there.

  • Deploying war file in weblogic SIP server 2.2

    Hi,
    I trying to deploy a "sar" file in weblogic SIP server,but it is not allowing me to do that.So one of my collegue told me to change the "sar" to "war" and try to deploy.
    When i am trying to deploy that it is saying that unable to find deployment descripter WEB-INF/web.xml in the war file.Actually it is there.But i don't know why it is giving that error.
    Actually i need to deploy "sar" file and i changed that file into "war" file
    What are all the trail and error to solve this problem
    (1)I made the "war" file from file folders.
    suppose my application directory name is "myapp"
    then i am going into the "myapp" folder and from there i am trying to make war file and it is having all the related class files , sip.xml file , web.xml file.
    Then i tryed to deploy that file from weblogic SIP server 2.2.console.
    (2) Next I included the weblogic.xml file also into the war file.
    (3)The "sar" file working fine in SDS 3.1,but not in we blogic SIP server.
    (4)The SDS3.1 is working with JRE 5 so i changed that JRE from 1.5 to jre 1.4. and again prepared the sar file and changed that SAR file to WAR file.
    I created a domain in SIP server which was created in "user_projects."
    For e.g., the domain name is "mydomain" and
    the directory structure is
    mydomain
    |
    |
    |----------applications(dir)
    |
    |----------myserver(dir)
    |
    |----------rmfilestore(dir)
    |
    |----------sipserver(dir)
    |
    |-----------boot (file)
    |
    |-----------config.xml
    |
    |-----------startWeblogic
    |
    |-----------stopWebLogic
    |
    |----------upload-------xxxxmanager----META-INF---WEB-INF----log4j.properties
    --------------sip.xml
    -----------------web.xml
    -------------weblogic.xml
    web.xml, sip.xml,log4j.properties are under WEB-INF folder
    Do i need to change any path setting in startWebLogic.cmd file.I didn't change any thing in the startWeblogic.cmd.
    Since my war file is having all the related files like all the related "jar" files in that.
    Any body's help will be appriciated.
    Thanks
    vish

    Can any body please reply for above question.
    Hi BEA support please flash some light on my above question
    vkviswanadh

  • Importing WAR file into Web Module Project

    Hi,
    I am brand new to SAP and i'm trying to help out with a proof of concept for our SAP rollout.  I am trying to import a J2EE application that currently runs on WebSphere 5.1 and was developed using WSAD.  I found a blog on the SAP site and it gave a simple run down of how to Migrate from WebSphere application server to SAP Application Server.
    Here is the link: /people/community.user/blog/2007/03/06/migrating-application-from-websphere-application-server-to-sap-was
    The steps seem simple enough yet I am having issues trying to import my WAR file into my Web Module Project in Netweaver.
    Step 4 gives the following instructions: Create a WEB Module Project and import the WAR file.
    Unfortunately, they do not give more detail besides Import the WAR file.  When I try importing my WAR file, it adds the WAR file in my Web Content folder.  I was expecting it to extract all my java classes and my jsp files but this is not the case.  To do this, I right clicked on my Web Module Project while in the J2EE Explorer view and selected import file and selected my WAR.  I'm assuming this is not correct.
    Any help would be appreciated.
    Thanks,
    Phil

    Hi Phil!
    You don't need to create previously a web module to import the war then.
    I'm assuming you're using NWDS (Netweaver Developer Studio). Try this. In NWDS: File -> Import... ->
    then, select "WAR file". After that, you need to inform the path of you WAR file and automatically it will fill in the name of your project, that you can change if you desire. After that, click in Finish and it's all.

  • I just purchased to songs to put on my child's Leappad 2 MP3 player and I can see the songs under my music files but cannot save them because they were not downloaded as a MP3 file What can I do?

    I just purchased two songs to put on my child's Leappad 2 MP3 player and I can see the songs under my music files but cannot save them because they were not downloaded as a MP3 file What can I do?

    iTunes: How to convert a song to a different file format

  • I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them?

    I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them without causing a problem?

    Here is one thing I found googling for WebEx:
    http://www.webex.com/why-webex/overview.html
    (The x64 would most likely mean 64 bit). It may be a Windows based application/plugin, but since I had never heard of either, I'm only guessing there. If you do a search systemwide for it and don't find it plus don't know why it's there, I'd say throw it in the trash (don't empty it yet - make a note of the file path just in case you do have something installed that needs it so you can move it back).
    Glad to hear it's not a torrent; some people use those not realizing that quite often there is a price to pay for downloading stuff for free that costs money elsewhere - the software packages quite often include little "add-ons" = malware which you really don't want.

Maybe you are looking for

  • Internal airport card ID

    I have a G5 imac 3 1/2 years old and where do I find what card is installed from the factory? 802 n or 802 g or what the card is. Thank You Dcik

  • Grouping mode

    What is grouping mode.can u give some details regarding this???

  • Picking Some Info Through FMS

    Hi All, I need to pick a field to the Sr. No window while entereing a GRPO from a Purchase Order. I did so but the problem is in case of multi row entries. In case I have a PO for 4 items and all four items have a specific/unique value in the field I

  • ERROR: invalid backup file version. Exception: Error while unzipping invalid wcs 7.x export file

    Hi, I'm having a serious issue with your brend new Cisco Prime Network Control System (NCS) and i would appreciate if someone could give me good answers. After a background backup task failure, the database was entirelly corrupted and the oracle serv

  • PROBLEM WITH iMOVIE PROJECT CONVERSION TO QT

    I occasionally have strange things happen when converting iMovie (DV) projects to 'full quality' QT.dv files. Example: footage transferred from a visually pulsating image (originated on a 1920s 30 line mechanical TV scanner invented by J L Baird) has