New springMVC encountered problems and solutions

In the construction of springMVC project, we encountered some problems, analyze the causes and solutions to this problem under.

First, after tomcat execution startup.bat, still inaccessible to the tomcat home page.

When I start tomcat, tomcat startup window fleeting, this fact shows that tomcat does not start successfully. If the tomcat successfully launched, the start window does not close automatically, it will always be there. If we do close the window, the tomcat will be closed.

We should know, tomcat is used to run the project.

We visit tomcat home, not in order to verify their tomcat whether the installation was successful. Because tomcat has always been a compressed package, we only need to unpack it, did not involve things installed. We visit tomcat tomcat and jdk is to determine whether the association was successful. We should know, tomcat is used to run the project, and the jdk jre provides a runtime environment, so that tomcat and jdk must associate.

 

Second, the project will be deployed to the tomcat, reported that "there are no resources that can be added or removed from this server."

I reported this information, because tomcat does not recognize for the deployment of the project. Here are the specific reasons for Dynamic Web Module version and the version of tomcat project do not match. Dynamic Web Module version 2.3 project, can only match tomcat7, and I use the tomcat9. After the tomcat9 into tomcat7, you can deploy the project.

 

Third, the console can not find classLoaderListener class newspaper.

When the project started, the console can not find classLoaderListener class newspaper. springMVC related jar package (ie, directory Maven Dependency) did not join the build path, so can not be found. Add library can be.

 

Fourth, the success of the project started, but can not access through a browser.

When I used to build springMVC project idea, when accessed through a browser, the URL is no need to add the name of the project. But this time I was set up with the eclipse of the project, the project name plus URL can access to.

Guess you like

Origin www.cnblogs.com/jxdr/p/11584301.html