Several ways to package Web applications as war files:
(1) using the jar command at the command line
Suppose you have a Web application: C:/myhome
myhome/web-inf/...Myhome/files/...myhome/image/...myhome/src/...myhome/index.jsp
Under the Command Line window, execute the following command:
C:/>CD myhome
C:/myhome/>jar cvf Myhome.war *.*/.
Explanation:jar CVF [A->war package name].
The principle is the jar package +war package,
The war package is the original war package, and the jar package is the package that invokes jetty.
Determine the location of the current war in the package through (Jar package) code, and then invoke the Jetty method to run the war
---restore content starts---Play "Little war" friends know that the small war is actually a feature of the game Chess hand tour, today want to share with you is a small war novice skills.Small war mainly through the control of a soldier to the landing-type amphibious combat, the game map scene is a variety of, the key
A dependency reference between two Web projects. The Web project is referenced by the way the war package is used. For example, there are two projects, Puzzle-web and Puzzle-web-demo, and two are Web projects, and Puzzle-web-demo depends on Puzzle-web, which is configured as follows.(1) Puzzle-web Configuration of package in Project Pom.xmlA, compile the plug-in version to use 2.4, otherwise, you can appear in the
Java packaging is an issue. It is inevitable to create a war package or jar package. In general, there are two methods to directly use the JDK command and ant. Let's sort out these two methods today.
1.1 million war packages
1.1 Use commands
> Jar CVF project_name.war // expand jar xvf project_name.war
1.2 ant
View code
1
XML version = "1.0" encoding = "UTF-8"
?>
2
Projec
The hero of World War II is a game I like very much. Although it was a bit old in years, I always took it out for a long time.
There is no repair box in the reward task "tank attack". It is a pity to watch the damaged tanks. some people say that they want to use mod, but they haven't found the legendary tank repair mod for a long time and finally found a method to modify the archive. share it! Although programmers do not like this, I recommend that yo
dispatching troops.
Qi zhenggong said to Guan Zhong, "the two countries have farmland and rich grass (a cash crop used for dyes). What should they do if they have a strong national strength ?" Guan Zhong has been opposed to solving the problem by force for a long time. This time, he suggested a commercial war with Qi Gong. He said, "The two countries are rich in grass, while China is rich in copper, the Lord, you can send people to make a lot of copp
1. First of all, tools like eclipse are handy.2. With tools such as WinRAR, the Web-info directory, as well as all the directories and files with it, packaged into a zip file, and then change the extension to war!3 jar Command:Suppose you have a Web application: C:/myhomemyhome/web-inf/...Myhome/files/...myhome/image/...myhome/src/...myhome/index.jspUnder the Command Line window, execute the following command:C:/GT;CD MyHomeC:/myhome/>jar CVF Myhome.w
preparation before using ant script
1, download an ant installation package. such as: Apache-ant-1.8.4-bin.zip. Extract to E disk.
2, configure environment variables. Added Ant_home:e:\apache-ant-1.8.4;path added: E:\apache-ant-1.8.4\bin.
3, check ant is configured to complete. Run->cmd input: ant-version. See if you want to print an ant version number. the essence of packing build the essence of a jar package
1, compile the Project src folder under the Java file, generate the corresponding cla
One: Hit Jar bagAdd the following dependencies in the Pom.xml of the project Our current project is using the packaging method of the jar package command, jar package. we went into this directory to open this jar package with compression software , where we found a folder called lib , open Lib Folder Discovery This folder is full of project-dependent jar packages, and even Tomcat. This jar package contains a jar package , which we call the Fatjar ( fat jar Package )since Fatjar itself
Preparation before using Ant script1, download an ant installation package. such as: Apache-ant-1.8.4-bin.zip. Extract to E disk.
2, configure environment variables. Added Ant_home:e:\apache-ant-1.8.4;path added: E:\apache-ant-1.8.4\bin.
3, check ant is configured to complete. Run->cmd input: ant-version. See if you want to print an ant version number.
The essence of packing Build the essence of a jar package
1, compile the Project src folder under the Java file, generate the corresponding c
Qq tribe Guard war fog hunting 25-2 customs clearance how? How should we arrange each game? The following small series will teach you! Let's take a look! This is because the middle road has been closed, and only the next road can be used. Start: then upgrade tracing to send this wave of fire Hugo breakpoint. Then fill in the magic tower. Before the Air Force came, they upgraded the flying ax and the net axes to deal with the last batch of Hao. This is
Today, the Java Web Project-ADJUSTSOLR is packaged as a war with the apache-ant-1.9.4 version and published to Tomcat (be aware that the JDK version of the development is consistent with the JDK version in Tomcat, otherwise unsupport VERSION51 error)Code to paste the Build.xml filePlace the war package under the build file under tomcat6.5-jdk1.7 or other Tomcat:Local Access connection: http://localhost:8082
In the face of earthquakes, we don't need a war of words-when donations become forms-if you are still rational
In the face of so many pictures of the dead, the hearts of the people throughout the country are all together. The unity of Chinese people is really touching. Foreign media are also praising the rapid response of the Chinese people. When there are not so many donations. When the Intern
D-the war
Time limit:2000 ms
Memory limit:65536kb
64bit Io format:% LLD % llusubmit status
Description
A war had broken out because a sheep from your kingdom ate some grasses which belong to your neighboring kingdom. The counselor of your kingdom had to get prepared for this war. There areN(1 M(1 W(1 MinwiAndMaxwi(1
Input
There multiple test cases. the first
Step 1 create a web application: expolded and select the current project
2. Create a web application: Archive and select the newly created expoded "'............'"
After selection, select the war package output path. The default path is the out file in the current project (project name/out/artifacts/war package name)
3. On the idea page, find build, select Build artifacts, and select the resource to
War
Time Limit: 8000/5000 MS (Java/others) memory limit: 32768/32768 K (Java/Others)Total submission (s): 98 accepted submission (s): 28Special Judge
Problem descriptionlong long ago there are two countrys in the universe. each country haves its own manor in 3-dimension space. country A's manor occupys x ^ 2 + y ^ 2 + Z ^ 2 We calculate the probability as follow steps.
1. VC = Volume of insection manor of A and B.
2. vu = Volume of Union manor of A a
seriously. No benefit, no action, no confidence in victory, no soldiers, no war at critical moments. The monarch cannot launch a war with anger at the moment, and the generals cannot fight with anger at the moment. If troops are used only in the national interest, they will stop if they are not in the national interest. Anger can be changed to Joy again, and anger can be changed to happiness again. However
Configure Pom. XML in Maven packaged as a war package
(1) complete configuration: This is the complete configuration of servlet, similar to others.
(2) When an error is reported in the project:Web. XML is missing and You need to add the following configuration in POM. xml:
(3) In the project, specify the JDK version in POM. xml. By default, the JDK version in Maven is 1.5, which does not meet the requirements. In case of any errors, You need to m
Ralph (Ben Affleck) and Danny (Josh Hartnett adorn) is a small friend who grew up together, two people are very interested in flying since childhood. After growing up, time is two times in the World War, two people joined the United States flying troops together. On December 7, 1941, Rafe suddenly appeared in the Pearl Harbor where Evelyn and Danny were stationed. When the three people do not know how to face this problem, the Japanese also quietly pr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.