Deployed application Spring_Web_Maven_Project on Tomcat but i am getting resource not available on clicking http://localhost:8091/Spring_Web_Maven_Project/ | Spring Framework Training
20% Super Sale Discount Avail now

Spring Framework Training Forum

Deployed application Spring_Web_Maven_Project on Tomcat but i am getting resource not available on clicking http://localhost:8091/Spring_Web_Maven_Project/

P
Priya Post on 21/06/2019

Console logs


[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ Spring_Web_Maven_Project ---
[INFO] Running war on http://localhost:8091/Spring_Web_Maven_Project
[INFO] Using existing Tomcat server configuration at C:\workspace\Spring_Web_Maven_Project\target\tomcat
Jun 20, 2019 10:55:55 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Jun 20, 2019 10:55:56 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Jun 20, 2019 10:55:56 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'Dispatcher'
Jun 20, 2019 10:55:56 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'Dispatcher': initialization started
Jun 20, 2019 10:55:56 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'Dispatcher-servlet': startup date [Thu Jun 20 22:55:56 MDT 2019]; root of context hierarchy
Jun 20, 2019 10:55:56 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/Dispatcher-servlet.xml]
Jun 20, 2019 10:55:57 PM org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider registerDefaultFilters
INFO: JSR-330 'javax.inject.Named' annotation found and supported for component scanning
Jun 20, 2019 10:55:57 PM org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor <init>
INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
Jun 20, 2019 10:55:57 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@26a4551a: defining beans [springController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,/SpringMVCExample.htm,/HandlerMappingSucess.htm,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
Jun 20, 2019 10:55:57 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/SpringMVCExample.htm] onto handler '/SpringMVCExample.htm'
Jun 20, 2019 10:55:57 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/HandlerMappingSucess.htm] onto handler '/HandlerMappingSucess.htm'
Jun 20, 2019 10:55:57 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'Dispatcher': initialization completed in 712 ms
Jun 20, 2019 10:55:57 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8091
Jun 20, 2019 10:55:57 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8091

Y

Instructor

Yogesh Chawla Reply on 29/06/2019

Please follow the exact steps shown in the video to import the project and then execute it.

This kind of exception comes when the server could not able to locate the war file required to execute the project.
Once the project is imported properly, you will be able to see the project execution.

Or else follow the exact steps mentioned in the video and create the project in your own local environment and then execute it. It will run.