is removed and can be compiled by re-import. But what causes it is not clear.
7. Remove all the packages from the build path. Then add Jars,add libraries the need to add in, incredibly began to compile ...
8.project->properties->java Build PATH->SOURCE->.../WEB-INF/SRC output folder do not default, edit let it point to ... /web-inf/classes
Then click the Build project again to automatically compile.
When the project was loaded today, the Tomcat report was suddenly discovered:
2010-7-1 12:11:38 Org.apache.catalina.loader.WebappClassLoader Validatejarfile
Information: Validatejarfile (C:\Program files\apache software foundation\tomcat 6.0\web
Apps\accountant\web-inf\lib\j2ee.jar)-jar not loaded. See Servlet Spec 2.3, SE
Ction 9.7.2. Offending Class:javax/servlet/servlet.class
It says J2ee.jar not loaded, what's going on.
The reason may be multipl
Recently in the company project to modify some code, appeared title errors, and later various Google, finally found a solution.Error Environment: TOMCAT7 + Eclipse + Maven + Spring + SPRINGMVC + MybatisError Description: Error resolution steps:1. Find the Project menu for Eclipse Select Clean ... Options 2. Select the clean all projects or clean projects SELECTD Blow (Select this option to tick the wrong item) 3. Wait for the build in the progress view to complete, and you will find t
After Windows is configured to above, the page displays 404The reason for this is: slash problem causesSwitchTomat The Welcome page is set in the Web-inf directory, the problem is not displayed
resource file Myfile.xmlThen, you should have the following code:Test.class.getResourceAsStream ("/com/demo/file/myfile.xml");To summarize, maybe it's just two ways of writingFirst: There is "/" in front"/" represents the root of the project, such as the project name MyProject, "/" represents the MyProjectTest.class.getResourceAsStream ("/com/demo/file/myfile.xml");Second: There is no "/" in front of the directory that represents the current class (the current path can also be represented by ".
Knowledge Point Analysis:
Digital signature, is Microsoft for the Windows system more stable, got a digital signature, of course, the good side, but to participate in digital signatures for money, many companies did not join, so that some of the individual hardware drivers are not signed, installation prompts: The Third-party inf does not contain digital signature information, but does not mean that it can not be used, In order to be compatible wit
During project development, using the automatic prompt function of myeclipse sometimes imports unused jar packages, and forcibly deletes unused packages (for example, in the resource manager, deleting In the lib directory will cause the problem that the class package in the WEB-INF cannot be re-compiled (that is, after the class folder is deleted, it cannot be re-compiled ). The error message is displayed, indicating that the jar import path has an er
Beginner, this problem has been bothering for 1 days. Just beginning to think that the code or configuration file where the wrong, carefully examined several times to determine the code is not wrong, there is no way, ready to post for help. Just in my time, suddenly found my @action in a bit awkward, even if he did not error.It turns out that the first of the paths in my location is "/" added.Is such a simple question. Troubled for 1 days. Embarrassment has been committed.Struts2 action jumps to
The error code is as follows:Quote Symbol expected: quote symbol is the quotation mark, expected is expecting to connect is my code less write quotation marks;The correct code is as follows:HTTP Status-/web-inf/pages/backend/userlist.jsp (line:100, column:20) quote symbol expected
Therefore: in Maven, the configuration file should read the following two parts of the red word, indispensable.Not a MAVEN project, you can never write ... Maven Could not open ServletContext resource [/web-inf/applicationcontext.xml]
information, the jar file specifies a specific directory to hold the tag information: the Meta-inf directory, Here we look at the MANIFEST.MF file in this directory, he is the jar's manifest file, he contains the contents of the jar file description, and at run time to the JVM to provide information about the application, most of the jar file contains a default generated manifest file, Execute the JAR command or use the zip tool to generate itIf it i
U disk installation XP system error prompted INF file Txtsetup.sif how to do?
1, WinSetupFromUSB v2.1.6 is green software, download method is relatively simple. Run the software click the Refresh button, select the U disk you want to use;
2, set the Way to guide: click RMPrepUSB;
3. Select Xp/bartpe Bootable[ntldr in the 3 bootoption column, select NTFS and boot as HDD in 4 filesystem and overrides, then click 6 Prepare Driv
Scenario: When it comes to MAVEN web development, the dependency jar is not placed under Src/main/webapp/web-inf/lib, which is not the same as when we used the Eclipse development tool to do web development, How to be able to compile at the time can only rely on the jar package copy to the corresponding Lib directory. Technical keywords: How to perform the corresponding goal at a certain stage of the corresponding life cycle
1. Execute the maven-depe
One, error message: Assembling War:webxml attribute is required (or pre-existing web-inf/web.xml if executing in update mode)
Second, error analysis:
According to the error message, the deployment descriptor Web. XML is not found, typically the MAVEN project's site root is "WebApp", the directory structure is App-web\src\main\webapp,
But I used the IntelliJ idea to build the project so the root directory is "Web".
Third, the solution
1, the Pro
Scenario: When you do maven Web development, the dependency jar is not put under Src/main/webapp/web-inf/lib, which is not the same as when we use Eclipse development tools for Web development. How can you only copy the dependent jar package to the corresponding Lib directory at compile time? Technical keywords: How to perform the corresponding goal at some stage of the corresponding life cycle
1. Execute the maven-dependency-plugin:copy-dependencies
Error-parsing Error processing resource Path/web-inf/struts-config.xml java.net.UnknownHostException: struts.apache.org
At Java.net.PlainSocketImpl.connect (Unknown Source) .......
Solution One:
Struts-config.xml is configured as follows:
It's like you can't surf the internet.
Error [Actionservlet] Parsing Error processing resource path java.net.UnknownHostException:struts.apache.org
And then I changed my head.
You can do it.
Solution Two:
This is b
Today, the project built by eclipse3.2 is migrated to eclipse3.5, and the Classes folder is not visible in the Web-inf directory, but it is in workspace and is hidden in eclipse.
Some of the online said that only in the resources view will show, I changed to Resource view, still not, and some say with navigator view, when I select Resource View,
And then in the menu Window-show view-Find the Navigator views but can not find.
I first switched to
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.