Why do we need to have  a war or jar file

Can someone please explain me what is the need of creating these 2 archives

Why do we have doc, xls, exe, com, bat, sh, odt? Lets all just work with a plaintext flat file! It would make life so much simpler! :)

Similar Messages

  • Are JDev autogenerated paths needed to create ear, war and jar files ?

    Hi
    We want to create ear, war and jar files from Ant build script generated from JDeveloper 11.1.1.7.
    We also like to use ojdeploy with it.
    In the process of creating build.xml files from projects, we see these paths.
    We also have standalone Weblogic installed with ADF runtime 11.1.1.7
    Questions:
    1- Do we need these path ids to generate ear, jar, war files properly and then deploy the ear to our standalone Weblogic so that our webapp can run ok ?
    2- Why are they generated, if they are not needed
    From research, it appears that we don't need these paths except to keep ant targets of init, compile, exec etc with ojdeploy.
    3- Is that true ?
    We are afraid that because no paths are listed in the build.xml, then when we deploy the ear app, it cant use the ADF runtime on the standalone WLS.
    Thanks in advance for answering.
    Sincerely
    eg of paths generated below:
      <path id="library.SOA.Designtime"/>
      <path id="library.SOA.Runtime"/>
      <path id="library.BPEL.Runtime"/>
      <path id="library.Mediator.Runtime"/>
      <path id="library.MDS.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
      </path>
      <path id="library.BC4J.Service.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/commonj.sdo_2.1.0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.web-common_11.1.1.jar"/>
      </path>
      <path id="library.TopLink">
        <pathelement location="{oracle.middleware}/modules/com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/modules/com.bea.core.antlr.runtime_2.7.7.jar"/>
        <pathelement location="{oracle.middleware}/modules/javax.persistence_1.0.0.0_2-0-0.jar"/>
      </path>
      <path id="library.Oracle.Rules"/>
      <path id="classpath">
        <path refid="library.SOA.Designtime"/>
        <path refid="library.SOA.Runtime"/>
        <path refid="library.BPEL.Runtime"/>
        <path refid="library.Mediator.Runtime"/>
        <path refid="library.MDS.Runtime"/>
        <path refid="library.BC4J.Service.Runtime"/>
        <path refid="library.TopLink"/>
        <path refid="library.Oracle.Rules"/>
      </path>

    There are two different things here. Using ant to build the class files and then building an ear from the class files and other resources.
    The building part needs the libraries if you use javac as compiler. Building an ear file only needs the path to the jar files which are packed into the ear.
    In this sense you need the pages you see in the build.xml.
    Then Jdev offers another way: ojdeploy. This tool is a Jdev without a gui.
    You can use this tool and build the classes for each project of a workspace and to build build war and ear file. This is just like you click the rebuild button for each project and then the deploy the projects and application. If you use this approach you don't need the generated path ids as the whole build process is done inside Jdev as it's done on your developer pc.
    Timo

  • Why do we need to have a observer run on the different computer

    Hello team,
    Why do we need to have a observer run on the different computer and how to install & confgure it on that different computer.?pls help
    5.5.6 Managing the Observer
    The observer is integrated in the DGMGRL client-side component and runs on a different computer from the primary or standby databases and from the computer where you manage the broker configuration. The observer continuously monitors the fast-start failover environment to ensure the primary database is available (described in Section 5.5.2.1). The observer's main purpose is to enhance high availability and lights out computing by reducing the human intervention required by the manual failover process that can add minutes or hours to downtime.
    Thanks

    854393 wrote:
    Thanks Aman,
    Do we need a same db binary & OS version for starting the observer on the different computer ?? here the primary & standby are liunx.
    Thanks in advance..
    Regards,it does not have to be on the same platform or operating system on which the databases reside, and it does not need Oracle EE and an instance (which means no extra license).
    To configure check this.
    http://gjilevski.wordpress.com/2010/03/06/configuring-10g-data-guard-broker-and-observer-for-failover-and-switchover/

  • Why do we need to have payment info if we already have money on iTunes?

    why do we need to have payment info if we already have money on iTunes?

    There is no *%#!%^  none option in payment review.
    wonder why they are not trashing this useless help thread in FAQ's ??
    Create an iTunes App Store account without a credit card

  • How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.

    How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.  The folders are using Microsoft programmes as this is compatiable with 90% of my colleagues, therefore I can't use the Icloud service.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • Dreamweaver cs4 or mx2004 may built .war or .jar files for deployment in a jsp server (Tomcat) ? If no, and use Dreamweaver  how do these files ?

    Dreamweaver cs4 or mx2004 may built .war or .jar files for deployment in a jsp server (Tomcat) ? If no, and use Dreamweaver  how do these files ?

    if I use Eclipse IDE for compilation[make *.war & *.jar files from *.java like claimBeans.java], I must use also Eclipse for upload/deploy ? Or for upload ONLY I may use and dreamweaver ? The jsp section of dreamweaver, is for app not require compilation, like from Code from:JSP STANDARD TAG LIBRARY , only ?
    Basically whatever I may do with "JavaBeans", "Servlets" etc (*.java files) needed to get compiled, I may also do it with JSP STANDARD TAG LIBRARY etc NOT NEEDED Compilation, so if I do not understand how to compile&deploy *.war & *.jar files , I may use instead the latter way ?

  • Why do we need to have rmi daemon rmid???

    can anyone explain me the reason for using java RMI daemon: rmid
    rmid -j-Djava.security.policy=rmid.policy
    why do we need Daemon here?? Please explain me very clearly? If u can please explain the behind the scene?
    thanks

    can anyone explain me the reason for using java RMI
    daemon: rmid
    rmid -j-Djava.security.policy=rmid.policy
    why do we need Daemon here?? Please explain me very
    clearly? If u can please explain the behind the
    scene?
    thanksUmmm...why did you post this twice? Now there are two different, useful answers in the same exact forum under different posts... I wonder if the authors of this forum software could figure out a way to have the admins able to 'merge' posts that were the same by the same author into one uber-post, with all of the replies being trickled in...
    ~Dave

  • Why does Bridge Need Illustrator to Save as PDF compatible file?

    1. Why does Bridge need Illustrator files to be saved as PDF files? "PDF Compatible File" ticked in the save menu.
    2. Why does saving with this info take so long, even on decent fast modern systems?
    3. Why does Bridge not consistently render the Illustrator files in FULL RESOLUTIONS, seemingly shooting for half resolution much of the time, and simply stopping at that?
    4. Why does "clicking" on the preview inside Bridge bring up the full resolution?
    5. How do I shortcut this process so that every file is previewed in Full RESOLUTION, instantly?
    What is the point of Bridge?  What's its reason for existence?
    First time user of Bridge.

    Since someone is bound to say that this should be asked in the Bridge section... it already is.  And has been referenced back over here.
    You can find it here:
    http://forums.adobe.com/message/5655632#5655632
    Answer wherever you see fit, if you're up to the task of dealing with someone attempting to have a broader view, perhaps also suffering from somewhat objective analysis that sometimes contains direct criticism of the way Adobe does things.

  • Why is WLS 7.0 trying to ejbc my jar file?

    I have an application (server.ear) that contains four EJB jars
    (entities.jar, managers.jar, services.jar, commands.jar). I'm using a
    single ant (1.5.2) ejbjar task to generate the jar files and an ear
    task to create the application. This has been working fine for some
    time, but just yesterday WLS (7.0sp2) started giving me an exception
    when I try to deploy -- the exception is appended to this post with
    ellipsis added by me.
    It appears that the EJBComplianceChecker is being run on this jar
    file. I understand that this only happens when you try to deploy a
    "raw" jar file that hasn't been ejbc'ed. It makes sense in this case
    that the ServerVO.class would not be found since it doesn't appear in
    WLS's system classpath. That class is actually in the jar file itself.
    How does WLS determine that it needs to ejbc a jar file? Why would it
    decide to ejbc this one? I've checked the jar file by hand and it
    contains the ejbc-generated classes as well as a WLGENERATED entry.
    I've also taken the ant-generated generic jar file and run ejbc on it
    myself and I get the same results.
    -- Les Walker
    Unable to deploy EJB: SubmissionServiceMDBean from services.jar:
    Class not found: com/.../common/data/ServerVO
    java.lang.NoClassDefFoundError: Class not found:
    com/.../common/data/ServerVO
    at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:283)
    at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:228)
    at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfo(EJBDeployer.java:992)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1273)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1062)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)

    That was it. I have some startup classes that are in a jar file in the
    server's classpath. I bet that one of the EJB's was referencing a
    class contained in that jar which in turn referenced ServerVO which
    was not available outside the EJB's jar file. That's the only way I
    can figure that it got picked up by the EJB verifier.
    Thanks for the help,
    -- Les Walker
    Rob Woollen <[email protected]> wrote in message news:<[email protected]>...
    WLS will ejbc on the server if you have not ejbc'd the jar or the WLS
    version which compiled the jar doesn't match the server's version.
    These have to be exact versions (ie if you compiled with SP1 and deploy
    to SP2, it'll recompile on the server.)
    As for the NoClassDefFoundError, I suspect something in the server's
    $CLASSPATH references the ServerVO class. You can refer to classes in
    your parent classloader, but cannot have parent--->child dependencies.
    -- Rob
    Les Walker wrote:
    I have an application (server.ear) that contains four EJB jars
    (entities.jar, managers.jar, services.jar, commands.jar). I'm using a
    single ant (1.5.2) ejbjar task to generate the jar files and an ear
    task to create the application. This has been working fine for some
    time, but just yesterday WLS (7.0sp2) started giving me an exception
    when I try to deploy -- the exception is appended to this post with
    ellipsis added by me.
    It appears that the EJBComplianceChecker is being run on this jar
    file. I understand that this only happens when you try to deploy a
    "raw" jar file that hasn't been ejbc'ed. It makes sense in this case
    that the ServerVO.class would not be found since it doesn't appear in
    WLS's system classpath. That class is actually in the jar file itself.
    How does WLS determine that it needs to ejbc a jar file? Why would it
    decide to ejbc this one? I've checked the jar file by hand and it
    contains the ejbc-generated classes as well as a WLGENERATED entry.
    I've also taken the ant-generated generic jar file and run ejbc on it
    myself and I get the same results.
    -- Les Walker
    Unable to deploy EJB: SubmissionServiceMDBean from services.jar:
    Class not found: com/.../common/data/ServerVO
    java.lang.NoClassDefFoundError: Class not found:
    com/.../common/data/ServerVO
    at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:283)
    at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:228)
    at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfo(EJBDeployer.java:992)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1273)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1062)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)

  • Creating War , not Jar file.

    I am trying to create my EJB and i created my web project. The problem seems that my JBoss will not recognize and deploy my table perhaps due to the structure of the war file.
    My entities are working perfectly as they work, and have already been tested.
    ANyway, what i want is some help into getting my build.xml into making a jar file and sending that one instead of the the war file..
    Can someone please let me a link of where i should look ? Or what i should include in the xml file in order to create the file
    sTevoo.
    P.s - I am using netbeans 6
    Ps - I wasnt sure if i had to post here or in the Deploying - Java Archive (JAR) Files

      <property name="jboss.deploy.dir" value="/home/stevoo/jboss-4.2.2.GA/server/default/deploy"/>
        <property name="librarydir" value="${basedir}/lib"/>
        <property name="src.dir" value="src"/>
        <property name="build.dir" value="build"/>
        <property name="dist.dir" value="dist"/>
        <property name="bin.dir" value="bin"/>
        <target name="prepare">
            <delete dir="${bin.dir}"/>
            <mkdir dir="${bin.dir}"/> 
            <mkdir dir="${bin.dir}/META-INF"/>
        </target>
        <!--Set Libs-->
        <path id="libraries">
            <fileset dir="${librarydir}">
                <include name="*.jar"/>
                <include name="*.zip"/>
            </fileset>
        </path>
        <target name="compile1" depends="prepare">
            <javac srcdir="${src.dir}" destdir="${bin.dir}">
                <classpath refid="libraries"/>
            </javac>
            <echo message="Compile ...." />
        </target>
        <target name="compile" depends="compile1">
            <copy file="${src.dir}/conf/log4j.properties" todir="${bin.dir}/META-INF/"/>
            <copy file="${src.dir}/conf/MANIFEST.MF" todir="${bin.dir}/META-INF/"/> 
            <copy file="${src.dir}/conf/persistence.xml" todir="${bin.dir}/META-INF/"/>
            <jar basedir="${bin.dir}" destfile="${dist.dir}/test.jar"/>
            <echo message="Build...." />
        </target>
        <target name="run" depends="compile">
            <copy file="${dist.dir}/test.jar" todir="${jboss.deploy.dir}"/> 
            <echo message="Run ... ${jboss.deploy.dir}"/>
        </target>
        After a whole day of changing and tweaking and all .... this sort of works.
    Some more tweakong and done.
    Just in case any one else wants this,,,

  • Have to list all *.jar files one by one as classpath?

    I use some third party jar files, and it seems that I have to list all the jar files one by one for the classpath. For example, this will work:
    javac -classpath .\temp;C:\path\lib\log4j-1.2.9.jar;.\temp;C:\path\lib\jdom.jar -d .\temp -sourcepath @javalist.txtthis won't work:
    javac -classpath .\temp;C:\path\lib\*.jar -d .\temp -sourcepath @javalist.txtIt is not a problem when I have a few of them, but what if I have 10 of them? Any better way to do it with the DOS Prompt? Thanks.

    Thank you for your replay.
    The problem is that I dont' really know what are the *.jar files I need to use at compile time. I have to get the list of *.jar files at runtime. My java program needs to compile any other given java project at runntime, and those projects will have certain project structures, such
    project_root
    |---src
    |---lib
    I need to consturcture the right classpath string and pass it to the exec method of the Runtime class. I have already successfully compiled a sample project by listing all the jar files one after one, but still want to know if there is a better way to do it.

  • Why do I need to have and use a keychain if I am the only person to every use my Mac?

    Is netflix the best for movies?

    Netflix is a great service to use, and works well on AppleTV, any IOS device and your computers. Netflix is great for TV shows by season, and usually get the latest movies 30 days of their release.
    Keychain is also there for security against applications accessing passwords, not just users.
    The keychain service found on Mac OS X is significant for two major reasons. First, it uses strong cryptography. Over time, many applications have provided the capability to store passwords but have failed to do so in a way that can be trusted or considered safe from compromise. Second, the storage and retrieval of all passwords is handled by a single service, not individual applications. After you have decided to trust this service, any time you are asked to store a password you don’t have to worry about the means by which it is protected. What you do need to be careful of, though, is what applications you allow to make use of your keychain(s). When you unlock a keychain and allow an application to access a password, you open the door for that application to slip up and compromise the security of that password (more on this later). Although the keychain provides strong secure storage for passwords, any application can make use of the keychain API. Thus, be mindful of the applications for which you grant access to your keychain(s)
    NOTE: You are in the AppleTV section, but the question was about a MAC. To get more coverage on your question, please post related questions into their designated field.

  • Why do I need to use MOLGA?

    I know that this is a very basic question, but I have been asked why do we need to have a new MOLGA for every country; what I know of is:
    1.     Is the standard method of supporting multi-country (Global) HCM.  MOLGA is central to the SAP HCM solution.
    2.     The correct screens are shown in PA30 to maintain the personnel data in the correct formats for social security or equivalent number, form of address, addresses, bank details and so on.
    3.     The correct infotypes can be made available by MOLGA, where there are particular pieces of information required on a country by country basis u2013 therefore reducing the risk of non compliance
    4.     Correct ESS screens are available
    5.     Payroll available by country.  For example the payroll program is run per country using the MOLGA PC00_Mxx_calc, where xx is the country code, therefore for GB it is PC00_M08_calc.
    But apparently this is not a compelling enough reason - can anyone help with more good reasons?

    Hi Marina
    hope you are doing good.
    Globalized firms need Integrated systems with Independent County Legal, Labor, Taxation ,Currency , Language requirements.
    So a Global ERP System will help to achieve this without compromising the local requirements.
    I shared my experience , hope it sound sane.
    Regards
    Rohit.S

  • Why do we need 2 JNDI while congifuring DB or OA Adapters

    Hi,
    i have a question why do we need to have 2 JNDI's while configuring DB or OA adapters. I mean first we create a JDBC connection and specify a JNDI , and again in Deployments -> DBadapter/OAadapter-> we go and configure a JNDI with JDBC name .
    Why is it so ?
    - Thanks
    Shirish

    the first one you mentioned is used when creating the jdbc datasource, the jndi is at that moment the identifier which you can use for a lookup of the datasource.
    this jndi identifier you then use in the database adapter so it can lookup the datasource information based on the jndi value
    so the first one physically creates it and in all the other steps you 'use' the jndi lookup for retrieving it's information
    see : http://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interface

  • Why do we need schema groups ?

    Respected gurus!!
    While customizing the price calculation techniques we are supposed to form a "schema group" before we assign a pricing procedure to either a vendor or a purchasing organization.
    My query is, why do we need to have a schema group in the first place?
    We assign the schema group to vendors in either xk02/purchasing organization data or mk02/purchasing organization data screens and to the purchasing organization in customizing.
    Why can't we assign the pricing procedures directly, without forming any schema group??
    I seek clarification in this regard.
    Jaideep

    >
    Priyanka Paltanwale wrote:
    > hi,
    >
    > Yes we provide such attachment because:
    >
    > 1. SAP makes searching while there are n numbre of calculation schema's available in the system containing diff. conditions...
    >
    > 2. For this SAP used Schema group in which we group (or better say system auto group) all those schema's which are assigned to same vendor or purchase org or for the combination of Porg./vendor...
    >
    > 3. So, that when your schema is called system search on the all these levels one by one and if find one, stops n provides the req. data immediatly...
    >
    > SAP has used this same tech. many places like for eg: account determination where account cata. reference is used for assignments and grouping b/w valuation class and material type...
    > Or for message determination...check it out..
    >
    > Regards
    > Priyanka.P
    Respected Mam,
    Let me get this straight.
    We mean that for effective searching of the calculation schema, SAP has used groups? If this be the case, then the system is still searching for the schema, how is the forming of group is helping SAP?
    Once again, I thank you very much for your efforts.
    Seeking clarification,
    Jaideep

Maybe you are looking for