The program starts to work, but an error is issued, and at the moment the process is looping when the protocol starts. Help finish the installation of tomcat.
Try to fix the context path. As you can notice in the log, there is a line that says: context path must start with /
. The URL of your application is http://localhost:8080SampleProject
. It has to be http://localhost:8080/SampleProject
or http://localhost:8080/
.
To do this, in the tomcat7-maven-plugin
in the pom.xml
, change the parameter path
value into '/SampleProject' instead of 'SampleProject'
Hope this helps.
In your pom.xml your tomcat path has to start with an /
.
Change <path>SampleProject</path>
to <path>/SampleProject</path>
and it will start under http://localhost:8080/SampleProject
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.