Explain about JAR,EAR and WAR files
Explain :what is JAR,EAR and WAR files and how is useful in creating archive files in java with more example?
Please look up this type of information on your own.
http://java.sun.com/reference/glossary/index.html
Similar Messages
-
hi ,
can anyone tell me how to make the ear and war file ??/
Regards,
Shruti.hello shruti
to make war file enter the following command through command prompt
jar -cvf filename.war give one space then .(dot)
bye -
I have created and loaded WAR files for Web Applications on my Tomcat 4.1.27 web container.
I have also heard about EAR files and was wondering if I have the correct definition. On one of my Google searches it says: EAR files contain JAR files and WAR files.
I assume an EAR file can contain many JAR and WAR files wrapped into one file (EAR)? Another way of looking at it is if I have for example 3 WAR files, I can put all 3 in an EAR file?All the archive files used in Java apps are basically ZIP files with the extension changed.
JARs are used to package classes.
WARs are used to package web applications ( the complete directory structure are mandated by J2EE specs ) and may contain JARs
EARs are used to package a J2EE application ( think web app + EJBs in general ) and may consist of many web modules packaged as WARs.
Take a look at this too: http://searchwebservices.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_gci837938,00.html
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
---------------------------------------------------------------- -
hi,
Does anyone have information on how to use the EARASSEMBLER
tool for creating ear files and war files?????
thanksHi Cheenai,
EARASSEMBLER is an Orion tool and it is not supported in the
current release of Oracle9iAS Containers for J2EE (even though
it's bundled with the installation).
You may download Oracle9i JDeveloper Release Candidate as the
integrated development tool to build, assemble, package and
deploy any J2EE applications (EJB-JAR, WAR, EAR files etc.):
http://otn.oracle.com/software/products/jdev/content.html
You may also download the "ant" command line tool to build and
package J2EE files:
http://jakarta.apache.org/ant/ -
Creating ear and war file from deploy file programatically
Hi All,
Is there any API available in oc4j to create an ear or war file from a .deploy file...........??
Thanx in advance.There isn't a public API that let's you hook up to the deploy file in JDeveloper.
You might be able to achieve this with the JDeveloper Ant task:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/anttasks/index.html -
Description of EAR and WAR files
Does anybody know or has a link with the description of the files/directory's that are standard in EAR/WAR files.
Example: what is the functionality of the web.xml.
Thnx.http://java.sun.com/webservices/docs/ea2/tutorial/doc/WebApp3.html
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC3.html#64295
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html
http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/000101.html
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html#63061 -
How to deploy ear file with jar file and war file with different names
Hi,
As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
<EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
<WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my application.
Please provide the content I should place in the config.xml so that everything works fine correctly.
Any help is appreciated.Hi,
As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
<EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
<WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my application.
Please provide the content I should place in the config.xml so that everything works fine correctly.
Any help is appreciated. -
Hi,
i need to know about .ear and .war,what exactly do in atg. why we use.
thanks.They are the standard file formats for storing and distributing JEE applications. A War file groups JSPs, servlets and all related files to create web applications, and a Ear file groups all the various War and Jar files required to create an 'enterprise' application.
Hope this helps. -
About the MDF and log_LDF file in the SQL server
Hai Experts ,
I need known the , What is MDF and log_ldf file .
In our BPC server there are MDF and Log_LDF file in the MSSQLSERVER folder under the E drive.
The both file have huge database size .
Can u explain what is MDF and Log_LDF file , why its created ....
Regards
Daya......................Hi Daya
Those files are the actual SQL database files, in SQL Server management console, you have a logical view of the database with all of the objects within the database. The *.MDF and *.LDF files are the actual physical files which makes up the database in SQL Server. (Where the actual data is stored...)
The MDF file is the actual data file
The LDF file is the transaction log file, SQL Server uses this file in order maintain ACID compliance. It uses transactions to ensure that the database will always revert to a known consistent state on failure.
More Info:
[http://en.wikipedia.org/wiki/Microsoft_SQL_Server]
You don't provide much information regarding the environment, i.e (DEV, QA, PROD, etc), but your *.LDF file should not be bigger that your *.MDF file, and if it is quite large, then you will need your DBA to shrink your Transaction Log file.
[http://databases.about.com/od/sqlserver/a/truncate_shrink.htm]
[http://www.sql-server-performance.com/forum/threads/transaction-log-file-will-not-shrink.15877/]
[http://4rapiddev.com/sql-server/delete-shrink-eliminate-transaction-log-ldf-file/]
Hope this helps
Kind Regards
Daniel -
Explain about sales organization and its functionalities
Explain about sales organization and its functionalities
Hi Suresh,
<b>
Definition: </b>The sales organization is an organizational unit within logistics, that structures the company according to its sales requirements.
<b>Use: </b>A sales organization is responsible for the sale and distribution of goods and services.
It represents the selling unit as a legal entity. It is responsible for product guarantees and other rights to recourse, for example. Regional subdividing of the market can also be carried out with the help of sales organizations. Each business transaction is processed within a sales organization.
The sales organization must be specified in all sales documents. It is therefore available for all basic functions of SD (such as pricing, availability, etc.).
<b>Structure: </b>A sales organization can be subdivided into several distribution chains which determine the responsibility for a distribution channel.
Several divisions can be assigned to a sales organization which is responsible for the materials or services provided.
A sales area determines which distribution channel can be used to sell the products from one division in a sales organization.
<b>Integration:</b> Each sales organization is assigned exactly one company code for which you enter all accounting details of the sales organization.
A distribution chain can be active for several plants and the plants can be assigned to different company codes. If the sales organization and plant are assigned to different company codes, an internal billing document is sent between the company codes before the sales transactions are entered for accounting purposes.
Thanks,
Vinay -
Could you please explain about the chain and end chain and module
hi experts
could you please explain about the chain and end chain and module keywords?Hi Naresh,
Conditions for Multiple Screen Fields
To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:
CHAIN.
ENDCHAIN.
All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1> ON CHAIN-INPUT|CHAIN-REQUEST.
FIELD: <g1>, <g 2>,...
MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
ENDCHAIN.
The additions ON CHAIN-INPUT and ON CHAIN-REQUEST work like the additions ON INPUT and ON REQUEST that you use for individual fields. The exception is that the module is called whenever at least one of the fields listed in a preceding FIELD statement within the chain meets the condition. So <mod1> is called when one of the fields <fi> meets the condition. <mod2> is called when one of the fields <f i> or <g i> meets the condition.
Within a processing chain, you can combine individual FIELD statements with a MODULE statement to set a condition for a single field within the chain:
CHAIN.
FIELD: <f1>, <f 2>,...
FIELD <f> MODULE <mod1> ON INPUT|REQUEST|*-INPUT
|CHAIN-INPUT|CHAIN-REQUEST.
MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
ENDCHAIN.
The module <mod1> is called when screen field <f> meets the specified condition for individual fields. <mod2> is called when one of the fields <fi> or <f> meets the condition. If you use the addition ON CHAIN-INPUT or ON CHAIN-REQUEST with FIELD <f>, the condition also applies to the entire chain and module <mod1> and <mod2> are both called.
In cases where you apply conditions to various combinations of screen fields, it is worth setting up a separate processing chain for each combination and calling different modules from within it.
The functions of the FIELD statement for controlling data transport also apply when you use processing chains. Within a processing chain, screen fields are not transported until the FIELD statement. Processing chains also have another function for the FIELDS statements that they contain. This is described in the section on validity checks.
Ex:
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
CHAIN.
FIELD: INPUT1, INPUT2.
MODULE MODULE_1 ON CHAIN-INPUT.
FIELD INPUT3 MODULE MODULE_* ON *-INPUT.
MODULE MODULE_2 ON CHAIN-REQUEST.
ENDCHAIN.
FIELD INPUT1 MODULE C1 AT CURSOR-SELECTION.
CHAIN.
FIELD: INPUT2, INPUT3.
MODULE C2 AT CURSOR-SELECTION.
ENDCHAIN.
MODULE CURSOR AT CURSOR-SELECTION.
Regards,
Sunil -
Reading Ear file and inner ear or war file
Actually My problem is to read and store the all java files and its path from a Ear file or War file. If a archive contains inner archive as well then the process will be the same for inner jar.
pls give me a sample code so that i can develop my solution
Thanksreply me soon
-
WLS 6.1 ( SP2) , NT 5.0
I have an exploded EAR outside the weblogic home as mentioned in the
tutorial. I can deploy
the app fine, when I start the server. However when I change a servlet or
EJB bean and touch
the REDPLOY file within the META-INF folder, the application does not seem
to pick up
the changes. I am running the server as an administrative server.
I have to restart the server for the changes to take effect. Please advise.All the archive files used in Java apps are basically ZIP files with the extension changed.
JARs are used to package classes.
WARs are used to package web applications ( the complete directory structure are mandated by J2EE specs ) and may contain JARs
EARs are used to package a J2EE application ( think web app + EJBs in general ) and may consist of many web modules packaged as WARs.
Take a look at this too: http://searchwebservices.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_gci837938,00.html
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
---------------------------------------------------------------- -
Problems with properties files and war files in weblogic 5.1
I work with WebLogic 5.1 and I'm trying to deploy a web application which gets
a properties file. If I deploy it as an expanded directory hierarchy (with the
properties files into WEB-INF/classes) I have no problems. While deploying it
by a .war file I get this message: "en_GB java.util.MissingResourceException:
Can't find resource for base name Agent, locale en " (the getBundle() method is
trying to get an english property file). What could I do? Is it really a weblogic
5.1 bug?
Thanks,
David
This issue comes up repeatably. It's a real bug.
I believe this problem was fixed in a 5.1 service pack, but I'm trying to
find out the exact disposition of the issue. Noone seems to be complaining
about this under 6.x, so a fix seems to have been made, the only question is
whether or not it got back-ported to a 5.1 service pack.
Gary
david <[email protected]> wrote in message
news:3ac4a39a$[email protected]..
>
> I work with WebLogic 5.1 and I'm trying to deploy a web application which
gets
> a properties file. If I deploy it as an expanded directory hierarchy (with
the
> properties files into WEB-INF/classes) I have no problems. While deploying
it
> by a .war file I get this message: "en_GB
java.util.MissingResourceException:
> Can't find resource for base name Agent, locale en " (the getBundle()
method is
> trying to get an english property file). What could I do? Is it really a
weblogic
> 5.1 bug?
> Thanks,
> David
-
Xsl:include and WAR Files
We are trying to deploy our application using WAR file approach. We are using
Weblogic 6.0 SP2 All our JSP and servlets are working fine.
We have our reports generated based on XSL files. XSL files are put into the war
file.
In my transformation servlet, I am loading the original xsl file by calling getResourceAsStream(xslFileName);
During the xsl transformation if we have any includes for another xsl file, I
am getting an exception
java.net.MalformedURLException: no protocol: myIncluded.xsl
Basically in my original XSL file I have the following line
<xsl:include href="myIncluded.xsl" />
Could somebody tell me what I should doing to get rid off this exception.
Thanks in advance
SK
The href attribute needs a protocal to determin what kind of uri it is dealing with file,http, etc..
try changing this
<xsl:include href="myIncluded.xsl" />to this
<xsl:include href="file://./myIncluded.xsl" />
or this
<xsl:include href="file://myIncluded.xsl" />
I'm not sure how this plays out seeing how your using the getResourceAsStream method. I dont know if getting a resource this way will allow the xsl processor to resolve the url correctly or not. You may have to use a jar protocal or something like that to get it to work. You may even need to specify the absolute url to the include file.
Maybe you are looking for
-
Server rebooting due to JAVA error.
Hi I am sukrut and I have been experiencing some problem on my Fire V880 system.Actually from last day's my server is rebooting auotomatically and when I am trying to investigate the error I am getting following output. BAD TRAP: type=31 rp=2a1026247
-
State Sales Tax setup documentation
Hi All, Is there any documentation on the subject for release 11i and up? Thanks in advance A/A
-
SAP Business Workflow / Organizational Plan
Hi, This is not specific to SRM, but is specific to SAP Business Workflow within ECC, relating to Organizational Management: We have more than one instance of SAP, where one instance is used to run all of our business, except SAP HR (let's call this
-
Limiting Zone memory consumption
So in a blurb about the 8/2007 (Update 4) Solaris 10 release I saw the following: "Users will now be able to define how much memory and how many processors should be assigned to a particular application or container." Memory limits could be a big dea
-
I deleted my facebook password from firefox, now firefox won't save my new password.
I have the box checked to save all passwords by firefox, but it isn't saving them.