MAVEN development under Tomcat Deployment War package, there is no error but can not access the site any resources and interfaces.

Source: Internet
Author: User


Just keep loading this, without any reaction, the console also does not report any errors. Troubled for a long time, Baidu no fruit. You can only take a step at a time to find the root of the problem.

First, you will be able to access the site after you remove the SPRINGMVC front-end controller configuration. But not configuring the front-end controller means that no request can be entered.

Helpless can only open SPRINGMVC configuration file to see, in the end what is wrong.

The start is to configure the scan package as an annotation to declare the object, trying to declare the object with the <bean> tag in the XML configuration file. Shocked.... That's how it's miraculously done.


However, after accessing the interface and the service layer object appears null pointer exception, toss for a long time. It was not until last night that the quake ran down the 17 floor that it had not solved the problem. But it is the root of the problem, and the use of Dubbo has arisen. The final problem is that the Linux virtual machine firewall is not turned off and the port is inaccessible. Everything is fine when it's turned off.


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.