only one error: No Spring WebApplicationInitializer types detected on classpath

前端 未结 3 1036
攒了一身酷
攒了一身酷 2020-12-22 01:44
May 21, 2013 3:44:07 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
May 21         


        
相关标签:
3条回答
  • 2020-12-22 02:08

    In Eclipse you may get more info on errors in a Problems view tab. Windows -> Show View -> Problems. You'll see a list of actual errors. I used to get the same message "INFO: No Spring WebApplicationInitializer types detected on classpath" when importing the existing Spring project into STS IDE. In my case there were the hibernate-3.2.1.ga.jar corrupted in lib folder. Replacing it have solved all compile problems.

    0 讨论(0)
  • 2020-12-22 02:11

    Seems strange to me that URL http://localhost:8080/appRoot/page.jsp produces Directory Listing. Can you try your Tomcat server with another application which is working. The Spring WebApplicationInitializer should deal with web.xml file, where Spring is not initialized properly.

    0 讨论(0)
  • 2020-12-22 02:25

    I added WebROOT file directory to the default directory, problems solved.

    properties->MyEclipse->Deployment Assembly->Add

    0 讨论(0)
提交回复
热议问题