MAVEN relies on a jar package in a local non-repositoryHttp://www.cnblogs.com/piaolingxue/archive/2011/10/12/2208871.htmlBlog Category:MavenToday, when using a MAVEN compilation to package a Web application, you encounter a problem:The project was developed with the introduction of a dependency jar package, placed in the Web-inf/lib directory, and the Web Libariary imported through BuildPath.There is no problem with developing in eclipse, but using MA
Web-inf is a secure directory for Java Web applications. The so-called security is the client cannot access, only the server can access the directory. If you want to access the files directly in the page, you must map the files you want to access through the Web. xml file to access them. Web-inf folder in addition to Web. XML, there is a classes folder, to place *.class files, these *.class files are writte
In a lot of business to get web-inf files.
There are a lot of people on the Internet asked this situation how to get files, there are many people suggest that the file in Src, personal feeling that this dude fart.
Provides a method here.
This is the way to use struts.
Properties Properties = new properties ();
try {
//Get current path
String url = This.getclass (). GetResource (""). GetPath ()
. ReplaceAll ("%20", "");
Get w
In the algorithmic race, we often need to use a "infinity" value, for me, most of the time I will be based on a specific question to take a 99999999 of the number (looks very unprofessional ah. )
When looking at other people's Code on the Internet, I often see that they set the INF as 0x7fffffff, wondering why a hexadecimal number is so strange that a check is known because this is the maximum value of 32-bit int. If this infinity is used only for gen
configuration file under Web-inf
Of course, when doing Java EE development, some people are accustomed to put the spring file in the Web-inf directory (although more people are accustomed to put under the classpath), or some spring configuration files are placed under the classpath, and some are placed in the
Web-inf directory below, as shown below.
At this po
In the development of Java Web Project with MyEclipse, the introduction of the external jar, are in the form of the library to the left of the Explore, debugging no problem, but after the deployment, often encounter a very headache problem is, These jars will not be copied to the Web-inf Lib directory, in the MyEclipse interface, the direct drag is not dragged in, can be used by the manual copy to Web-inf L
Original http://bbs.csdn.net/topics/360262492My Computer--property---Device Manager--Add outdated hardwareHowever, the 64-bit system escalated "The specified folder does not contain a compatible software driver for the device ... Make sure that it is designed for windows that is used for X64-based systems. ”You need to modify the INF file,Please refer to:Creating INF Files for multiple platforms and Operati
The applicationcontext cannot be found at the default location/WEB-INF/when the spring configuration file is loaded. XML file. Check the applicationcontext automatically generated by myeclipse. XML put in/WEB-INF/classes, below the web. make the following configurations in XML:
Contextconfiglocation/WEB-INF/classes/applicationcontext. xml
The trainer task assigned by the leader is not completed on time, so it is not a taste of it. It is actually done, but the problem still occurs in the project deployment and build path.
When you browse your own page:
[COM/gxlu/ngrm/application/Business/equipment/client/web/View/managedonumgr. view. XML] Not exists. at COM. bstek. dorado. common. fileloader. autofileloader. getrealfileloader (autofileloader. java: 70)
If the file exists in the project, an exception is thrown when the file c
Severe: allocate exception for servlet xfireservlet Java. Io. filenotfoundexception: Class path resource [META-INF/xfire/services. xml] cannot be opened because it does not exist At org. springframework. Core. Io. classpathresource. getinputstream (classpathresource. Java: 137) At org. springframework. Beans. Factory. xml. xmlbeandefinitionreader. loadbeandefinitions (xmlbeandefinitionreader. Java: 167)
Create a new WEB-
About WEB-INF
The WEB-INF folder under the Tomcat server is a very safe file, which cannot be accessed directly on the page, you must map the files to be accessed through the web. xml file to access.
WEB-INF folder except web. in addition to XML, there is also a classes folder for storing *. class file, these *. the class file is a class library written by webs
Web-inf folder Under normal circumstances, the system does not allow direct access to the outside world, access to the files there will be 404 errors, but the system can access itself, all to make the system to access the words need to use the interception controller to accept external commands, by the controller to forward access requests, This will put the Web page into the Web-inf can reduce the page inj
First look at the directory structure:Previously mentioned in the Web. XML configuration, but here admin_index.jsp still can't referenceOrThe path can be written by Ctrl + Left to open the corresponding file, but the style will not appear.After the https://www.cnblogs.com/x_wukong/p/3969114.html mentioned:The Web-inf layer directory can be ignored when a file accesses a resource file in the Web-inf director
The Web-inf folder is a protected folder and external access to files within this folder can only be accessed within the server.Important Server initialization core file Web. XML is in a folder.To achieve the purpose of server-side access, we can use the action to turn, we first request an action, and then by this action forwarded to the page under Web-inf, so that the client can accessThe importance of Web
A pure Flex project, packaged into a war, is deployed to the WebLogic to make an error.
Error message: [j2ee:160043]missing deployment descriptor ' web-inf/web.xml ' at ' D:\bea\mydomain\myserver\stage\TEST.war 'Reason: The war package is missing a web.xml file and is not recognized as a Web project.Workaround: Add web.xml files to the war package. In the root directory, create a new folder Web-inf, under
Java Spring
Problem: When you test with JUnit, you can't get the Applicationcontext.xml profile "The configuration file here is placed under Web-inf, and if it's underneath SRC, it's not going to be a mistake."
Writing: Classpathxmlapplicationcontext ac=new classpathxmlapplicationcontext ("/webroot/web-inf/applicationcontext.xml ");
Tangle: Always feel is the path of the fault, but tried a lot of, or a r
Original: http://blog.csdn.net/yirentianran/article/details/6429240
When standard WEB engineering uses the M2eclipse plug-in to add dependency management in Eclipse, the dependent jar packages are not automatically copied to/web-inf/lib during deployment.
Refer to some friends ' practices manual execution [Java] view plain copy mvn dependency:copy-dependencies-doutputdirectory=src/main/webapp/ Web-inf/l
In the case of non-spring MVC blocking "/":
Web-inf is protected and cannot be accessed directlyHere's how to fix it
First, there is no need for css/js/html to be placed under Web-inf. eventually these will be displayed intact on the client side, so access security is not a problem at all. The JSP is placed under Web-inf for the main reason that there are
Part of the jar package in the project is based on the Pom file dependency, part of the BuildPath into the Web-inf/lib directory, and finally when using MAVEN packaging, found unable to put the jar package Web-inf/lib under the war package, The class that introduced the jar in the Web-inf/lib directory could not be compiled with an error.
How to resolve:
Add th
Error Handling ing WAR: webxml attribute is required (or pre-existing WEB-INF/web. xml if executing in update mode), webxml
Mvn war: war Command error:
Cause:
The default webroot of the maven web project is in src \ main \ webapp. If web. xml cannot be found in this directory, the above exception is thrown.
Solution:
In the pom. xml file, the key is:
Problems with Maven packaging,
The web. xml configuration file is missing. It's not a WEB projec
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.