The Javaweb project, which has been used to install the MAVEN package for spring, is packaged with MVN assembly:assembly, this time wrapping the non-web spring project, encountering many problems and recording the correct steps.1. Configure Pom.xmlThere is no need to assembly, because Assembly will only be in the packaging of the first encounter of the file into
1. Today, I open eclipse, ready to deploy a Java Web project to Tomcat,
Results pop-up prompts error window, as follows:
(1) Error details
Could not publish server configuration to Tomcat v7.0 server at localhost.
Multiple contexts have a path of "/fusionchart".
(2) screenshot below
2. Error reason
Deployment conflicts occur because the
Change the logback configuration file path in the java web project
My small Website: http://51kxd.com/welcome to visit when you are not happy, adjust the mood
Configuration in web. xml:
LogbackConfigLocation
File:/datum/Data/conf/config/logback. xml
LogbackConfigLocati
The reason is that the Tomcat runtime related classes are not being added to the Javaweb engineering class.The solution is as follows:Error file---->>build path---->>config build path---->>java Build path---->>libraries----> >add Library---->>server Runtime---->>tomcat7.0 finish is OK!Today this page appears again, this time the solution did not do tomcat loading, but the Pom added a jar of dependency:Problem Solving!
Today to build the environment eclipse, a simple JSP page appears with this error: The superclass Javax.servlet.http.HttpServlet is not found on theJava Build path
.The reason is that the Tomcat runtime related classes are not being added to the Javaweb engineering class.The solution is as follows:Error file---->>build path---->>config build path---->>java Build path---->>libraries----> >add Library---->>server Runtime---->>tomcat7.0 finish is OK!
Sometimes, because Nginx and F5 policy problem need to add a prefix in the access to the system to distinguish between the need to use the same project;For example: When accessing localhost:8080/webdemo/demo/shafei.jsp, another way of access is required: localhost:8080/sf/webdemo/demo/shafei.jsp;The use of SF logo to distinguish different places need to access the system;How to do it:This needs to be configured in Tomcat's server.xml to change the pro
Introduction to ehcache. xml in the java web project, webehcache. xml
Copy codeThe Code is as follows:Xsi: noNamespaceSchemaLocation = "ehcache. xsd" updateCheck = "false"Monitoring = "autodetect" dynamicConfig = "true">
OverflowToDisk = "true"MaxElementsOnDisk = "10000000" diskPersistent = "false"DiskExpiryThreadIntervalSeconds = "120" memoryStoreEvictionPolicy
Getting ready: Create your first javaweb projectStep3 to The guys who configured Tomcat for the first time. How to configure Tomcat 3.1 "Run"-"Edit configurations" 3.2 "Default" 3.4"Tomee server/local"-"Server"-"Configuration" 3.5 "1"-"2tomcat after decompression of the first level of the root directory is good, its next level has bin/conf, etc." 3.6 Configure the Tomcat directory is the sauce drip ~ ignore that warning~ 3.7 "Deployment"-"+" 3.8 Point "Artifact" 3.9 automatically a
changeString newtotalfilepath=dstpath1 + file.separator + randomuuid+extendf;File path (that is, file) before changingFile Totalactivityfile=new file (totalfilepath);//Gets the destination address of the stored fileFile path after the change (i.e. file)File Newtotalactivityfile=new file (newtotalfilepath);//Gets the destination address of the stored fileChange fileTotalactivityfile.renameto (Newtotalactivityfile);String Activityfilename=this.fileggfilename.get (i);/*userservice.upload (Filegg.g
Description Resource Path Location TypeOne or more constraints has not been satisfied. Wbh-adapter-h5 Line 1 Maven Java EE Configuration problemReport the above error;First out of the problem, report red words, look for markers window, see the wrong, try to solveThe final change to this is good:Java MVC Web Project The XML header was changed to a wrong SPRINGMVC
;$ ("#yincang"). attr ("value", address);})Then landing the page and then go to the Servlet 's loginjudge page, just my login With the form submission I can use the hidden field to transfer the address of the previous page to the loginjudge page, and then return to the original page with judgment. if (address!= "") {Response.sendredirect (address);Return}If there is no form validation, the way the servlet takes referrer is:String url= request.getheader ("Referer");System.out.println (URL);Strin
Error problem: Although the Find repository directory is a jar package, but the jar package is problematic (perhaps the download is incomplete), so change the mirror address to the domestic.Solution:1) Remove all jar packages under the error path (C:\Documents and settings\administrator\.m2\repository\org ... )。2) Change the image address, preferably into a domestic (Ali), and then re-Maven--->update projectResolves issues that occur after importing a Java
can see the project name when the server loads:info:org Path [/resources/**] onto handler ' org.springframework.web.servlet.resource.resourcehttprequesthandler#0' info:org . Springframework.web.servlet.dispatcherservlet-frameworkservlet ' Appservlet ': initialization completed in 480 04, 2015 5:33:34 pm org.apache.catalina.core. [/firstapp] is completed3, through the Pom.xml file viewIf the SPRINGMVC more familiar with the classmate, may not be so m
Web Project jar package problems, web project jarWeb Project jar package problems
JRE System Library mainly stores J2SE standard jar, which generally does not need to be adjusted.
Referenced Libraries stores third-party jar packages, that is, self-imported jar packages.
There is a small problem with doing your homework and importing MyEclipse Web project into eclipse development. When deploying to Tomcat, it was discovered that the project could not be published.Problem Analysis:MyEclipse Web Project is recognized for
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.