Spring mvc环境搭建出错,没有错误提示,控制台只有警告

须知秋叶春花促 2018-06-19 09:21:29
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/9.0.8
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Apr 27 2018 19:32:00 UTC
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 9.0.8.0
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Mac OS X
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.12.6
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86_64
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 9.0.4+11
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: /Users/barbed/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: /Library/apache-tomcat-9.0.8 2
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=/Users/barbed/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=/Library/apache-tomcat-9.0.8 2
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=/Users/barbed/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps
6月 19, 2018 9:08:46 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
6月 19, 2018 9:08:46 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/barbed/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
6月 19, 2018 9:08:46 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
6月 19, 2018 9:08:47 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
6月 19, 2018 9:08:47 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
6月 19, 2018 9:08:47 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
6月 19, 2018 9:08:47 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1697 ms
6月 19, 2018 9:08:47 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
6月 19, 2018 9:08:47 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/9.0.8
6月 19, 2018 9:08:48 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
6月 19, 2018 9:08:48 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying deployment descriptor [/Users/barbed/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/SpringMVC04.xml]
6月 19, 2018 9:08:48 上午 org.apache.catalina.startup.HostConfig deployDescriptor
警告: The path attribute with value [/SpringMVC04] in deployment descriptor [/Users/barbed/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/SpringMVC04.xml] has been ignored
6月 19, 2018 9:08:48 上午 org.apache.catalina.startup.SetContextPropertiesRule begin
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringMVC04' did not find a matching property.
6月 19, 2018 9:08:49 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
6月 19, 2018 9:08:49 上午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
6月 19, 2018 9:08:50 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'springmvc'
6月 19, 2018 9:08:50 上午 org.springframework.web.servlet.FrameworkServlet initServletBean
信息: FrameworkServlet 'springmvc': initialization started
6月 19, 2018 9:08:50 上午 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing WebApplicationContext for namespace 'springmvc-servlet': startup date [Tue Jun 19 09:08:50 CST 2018]; root of context hierarchy
6月 19, 2018 9:08:50 上午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
6月 19, 2018 9:08:50 上午 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@79b18230: defining beans [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,hellocontroller,org.springframework.web.servlet.view.InternalResourceViewResolver#0]; root of factory hierarchy
6月 19, 2018 9:08:51 上午 org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
信息: Mapped URL path [/hello.do] onto handler 'hellocontroller'
6月 19, 2018 9:08:51 上午 org.springframework.web.servlet.FrameworkServlet initServletBean
信息: FrameworkServlet 'springmvc': initialization completed in 988 ms
6月 19, 2018 9:08:51 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deployment of deployment descriptor [/Users/barbed/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/conf/Catalina/localhost/SpringMVC04.xml] has finished in [3,049] ms
6月 19, 2018 9:08:51 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
6月 19, 2018 9:08:51 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
6月 19, 2018 9:08:51 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4371 ms
...全文
890 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
引用 2 楼 stacksoverflow 的回复:
[quote=引用 2 楼 qq_41910367 的回复:] 打不开啊哥!!!!!
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out. First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context. This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace. Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.[/quote] 我设置了Publish module contents to separate XML files之后,报的一模一样的错误,请问要怎么解决呀,页面无法访问
  • 打赏
  • 举报
回复
回复一下,是我的java版本太高了,换成了1.7之后ok了(原来是9),所以,谢谢大家的帮助!再次感谢!
幽饮烛 2018-06-21
  • 打赏
  • 举报
回复
从日志上看,服务器是正常启动了。
得先说明错在哪,如果是访问不了,应该先检查url配置。
  • 打赏
  • 举报
回复
引用 12 楼 QWERT4745 的回复:
警告信息可以忽略。程序运行有没有问题?
有,前台404,后台没有报错信息
mote33 2018-06-20
  • 打赏
  • 举报
回复
老哥,你的web.xml文件没问题吧
mote33 2018-06-20
  • 打赏
  • 举报
回复
老哥,你的web.xml文件没问题吧
mote33 2018-06-20
  • 打赏
  • 举报
回复
老哥,你的web.xml文件没问题吧
stacksoverflow 2018-06-20
  • 打赏
  • 举报
回复
引用 13 楼 qq_41910367 的回复:
[quote=引用 12 楼 QWERT4745 的回复:] 警告信息可以忽略。程序运行有没有问题?
有,前台404,后台没有报错信息 [/quote] 404的话一般是服务器没有正常启动或请求路径不对。 查一下请求路径,或者把图贴上来。
QWERT4745 2018-06-19
  • 打赏
  • 举报
回复
警告信息可以忽略。程序运行有没有问题?
stacksoverflow 2018-06-19
  • 打赏
  • 举报
回复
引用 10 楼 qq_41910367 的回复:
[quote=引用 8 楼 stacksoverflow 的回复:] 没遇到过你的问题,帮你查查资料。复制过来给你让你自己看看能否帮助你解决问题,如果对你没帮助就忽略好了。 我没有好多时间去研究所有的问题。 环境搭建出错的话,有什么别的现象没有,服务器启动后能否正常访问,如果不能正常访问,错误是什么。
我有重新试了一遍,没有别的现象,只是控制台输出上面的信息啊, 哥,你有没有这样的源代码我参考一下行不,拜托了![/quote] 能正常启动,不影响你使用就说明配置成功了。 这个警告看看有没有高手能帮你解答。 我在公司,不能把源代码往外发!!!
  • 打赏
  • 举报
回复
引用 8 楼 stacksoverflow 的回复:
没遇到过你的问题,帮你查查资料。复制过来给你让你自己看看能否帮助你解决问题,如果对你没帮助就忽略好了。 我没有好多时间去研究所有的问题。 环境搭建出错的话,有什么别的现象没有,服务器启动后能否正常访问,如果不能正常访问,错误是什么。
我有重新试了一遍,没有别的现象,只是控制台输出上面的信息啊, 哥,你有没有这样的源代码我参考一下行不,拜托了!
stacksoverflow 2018-06-19
  • 打赏
  • 举报
回复
springmvc网上例子有好多,不知道你卡在哪了
stacksoverflow 2018-06-19
  • 打赏
  • 举报
回复
没遇到过你的问题,帮你查查资料。复制过来给你让你自己看看能否帮助你解决问题,如果对你没帮助就忽略好了。 我没有好多时间去研究所有的问题。 环境搭建出错的话,有什么别的现象没有,服务器启动后能否正常访问,如果不能正常访问,错误是什么。
  • 打赏
  • 举报
回复
引用 4 楼 stacksoverflow 的回复:
[quote=引用 2 楼 qq_41910367 的回复:] 打不开啊哥!!!!!
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out. First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context. This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace. Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.[/quote] 啊呸 是springmvc的配置,
  • 打赏
  • 举报
回复
引用 4 楼 stacksoverflow 的回复:
[quote=引用 2 楼 qq_41910367 的回复:] 打不开啊哥!!!!!
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out. First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context. This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace. Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.[/quote] 尽管这个问题很老,我还是不得不处理一个类似的警告,并想要分享我的发现。 首先,这是一个警告,而不是一个错误。所以不用太担心。基本上,这意味着Tomcat不知道如何从上下文处理源属性。 这个源属性由Eclipse(或者更具体地说,是Eclipse Web工具平台)设置到服务器。Tomcat的xml文件,用于将正在运行的应用程序与工作空间中的项目匹配。 Tomcat为服务器中的每个未知标记生成警告。xml(即源属性),这是警告的来源。你完全可以忽略它。 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 哥,你会搭建spring女厕开发环境吗?麻烦指导一下吧!两天了都真的再不成功就崩溃了
  • 打赏
  • 举报
回复
引用 4 楼 stacksoverflow 的回复:
[quote=引用 2 楼 qq_41910367 的回复:] 打不开啊哥!!!!!
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out. First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context. This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace. Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.[/quote]
引用 4 楼 stacksoverflow 的回复:
[quote=引用 2 楼 qq_41910367 的回复:] 打不开啊哥!!!!!
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out. First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context. This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace. Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.[/quote] 哥,你还是说中文吧。。。看不懂啊
stacksoverflow 2018-06-19
  • 打赏
  • 举报
回复
引用 2 楼 qq_41910367 的回复:
打不开啊哥!!!!!
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out. First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context. This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace. Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.
  • 打赏
  • 举报
回复
要不你加我微信吧,指导一下我我给你发红包!!!sir981026
  • 打赏
  • 举报
回复
打不开啊哥!!!!!
stacksoverflow 2018-06-19
  • 打赏
  • 举报
回复
参考 https://stackoverflow.com/questions/4278009/warning-setting-property-source-to-org-eclipse-jst-jee-serverappname-did-n

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧