Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用基于Spring java的配置正确配置Spring Restful api,但tomcat未启动_Spring_Tomcat8 - Fatal编程技术网

使用基于Spring java的配置正确配置Spring Restful api,但tomcat未启动

使用基于Spring java的配置正确配置Spring Restful api,但tomcat未启动,spring,tomcat8,Spring,Tomcat8,请在下面找到tomcat跟踪,所有配置都正确,但tomcat没有启动,也没有正确显示任何错误 2017-07-13 06:30:20,607] Artifact hoprepositoryweb:war exploded: Artifact is being deployed, please wait... 13-Jul-2017 18:30:23.223 INFO [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.s

请在下面找到tomcat跟踪,所有配置都正确,但tomcat没有启动,也没有正确显示任何错误

        2017-07-13 06:30:20,607] Artifact hoprepositoryweb:war exploded: Artifact is being deployed, please wait...
    13-Jul-2017 18:30:23.223 INFO [RMI TCP Connection(3)-127.0.0.1] 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.
    151 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
    157 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.support.AnnotationConfigWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Thu Jul 13 18:30:23 PKT 2017]; root of context hierarchy
    276 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.support.AnnotationConfigWebApplicationContext - Registering annotated classes: [class com.hop.config.Application]
    1757 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'hoporbitsapp'
    13-Jul-2017 18:30:25.098 INFO [RMI TCP Connection(3)-127.0.0.1] org.hibernate.jpa.internal.util.LogHelper.logPersistenceUnitInformation HHH000204: Processing PersistenceUnitInfo [
        name: hoporbitsapp
        ...]
    13-Jul-2017 18:30:25.273 INFO [RMI TCP Connection(3)-127.0.0.1] org.hibernate.Version.logVersion HHH000412: Hibernate Core {5.2.10.Final}
    13-Jul-2017 18:30:25.279 INFO [RMI TCP Connection(3)-127.0.0.1] org.hibernate.cfg.Environment.<clinit> HHH000206: hibernate.properties not found
    13-Jul-2017 18:30:25.392 INFO [RMI TCP Connection(3)-127.0.0.1] org.hibernate.annotations.common.reflection.java.JavaReflectionManager.<clinit> HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
    13-Jul-2017 18:30:29.163 INFO [RMI TCP Connection(3)-127.0.0.1] org.hibernate.dialect.Dialect.<init> HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
    13-Jul-2017 18:30:29.242 INFO [RMI TCP Connection(3)-127.0.0.1] org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl.useContextualLobCreation HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
    6822 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'hoporbitsapp'
    13-Jul-2017 18:30:30.298 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\pers\Talha docs\work\Tomcat2\apache-tomcat-8.5.16\webapps\manager]
    13-Jul-2017 18:30:30.379 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\pers\Talha docs\work\Tomcat2\apache-tomcat-8.5.16\webapps\manager] has finished in [80] ms
    7679 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/]}" onto public java.lang.String com.hop.controller.IndexController.index()
    7684 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/user],methods=[POST]}" onto public java.lang.String com.hop.controller.UserController.register(com.hop.model.UserModel)
    8154 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Thu Jul 13 18:30:23 PKT 2017]; root of context hierarchy
    8499 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 8348 ms
    13-Jul-2017 18:30:31.819 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
    13-Jul-2017 18:30:31.821 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
    8516 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.support.AnnotationConfigWebApplicationContext - Closing Root WebApplicationContext: startup date [Thu Jul 13 18:30:23 PKT 2017]; root of context hierarchy
    13-Jul-2017 18:30:31.886 WARNING [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    [2017-07-13 06:30:31,909] Artifact hoprepositoryweb:war exploded: Error during artifact deployment. See server log for details.
2017-07-13 06:30:20607]神器hoprepositoryweb:战争爆发:神器正在部署,请稍候。。。
2017年7月13日18:30:23.223信息[RMI TCP连接(3)-127.0.0.1]org.apache.jasper.servlet.TldScanner.scanJars至少扫描了一个JAR以查找TLD,但未包含TLD。为此记录器启用调试日志记录以获取已扫描的JAR的完整列表,但未找到TLD。在扫描过程中跳过不需要的JAR可以缩短启动时间和JSP编译时间。
151[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.context.ContextLoader-根WebApplicationContext:初始化已开始
157[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.context.support.AnnotationConfigWebApplicationContext-刷新根WebApplicationContext:启动日期[2017年7月13日星期四18:30:23 PKT];上下文层次结构的根
276[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.context.support.AnnotationConfigWebApplicationContext-注册带注释的类:[class com.hop.config.Application]
1757[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean-为持久化单元“hoporbitsapp”构建jpa容器实体管理器工厂
2017年7月13日18:30:25.098信息[RMI TCP连接(3)-127.0.0.1]org.hibernate.jpa.internal.util.LogHelper.logPersistenceUnitInformation HHH000204:处理PersistenceUnitInfo[
姓名:霍普
...]
2017年7月13日18:30:25.273信息[RMI TCP连接(3)-127.0.0.1]org.hibernate.Version.logVersion HH000412:hibernate核心{5.2.10.Final}
2017年7月13日18:30:25.279信息[RMI TCP连接(3)-127.0.0.1]org.hibernate.cfg.Environment。HH000206:找不到hibernate.properties
2017年7月13日18:30:25.392信息[RMI TCP连接(3)-127.0.0.1]org.hibernate.annotations.common.reflection.java.JavaReflectionManager。HCANN000001:Hibernate Commons注释{5.0.1.Final}
2017年7月13日18:30:29.163信息[RMI TCP连接(3)-127.0.0.1]org.hibernate.dialen.dialen。HH000400:使用方言:org.hibernate.dialogue.mysql5dialogue
2017年7月13日18:30:29.242信息[RMI TCP连接(3)-127.0.0.1]org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl.UseContexturalAllobCreation HH000423:禁用上下文LOB创建,因为jdbc驱动程序报告的jdbc版本[3]小于4
6822[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean-已初始化持久化单元“hoporbitsapp”的jpa EntityManagerFactory
2017年7月13日18:30:30.298信息[localhost-startStop-1]org.apache.catalina.startup.HostConfig.deployDirectory部署web应用程序目录[C:\pers\Talha docs\work\Tomcat2\apache-tomcat-8.5.16\webapps\manager]
2017年7月13日18:30:30.379信息[localhost-startStop-1]org.apache.catalina.startup.HostConfig.deployDirectory web应用程序目录[C:\pers\Talha docs\work\Tomcat2\apache-tomcat-8.5.16\webapps\manager]的部署在[80]毫秒内完成
7679[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping-将“{[/]}”映射到公共java.lang.String com.hop.controller.IndexController.index()上
7684[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping-将“{[/user],methods=[POST]}”映射到公共java.lang.String com.hop.controller.UserController.register(com.hop.model.UserModel)上
8154[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter-寻找@ControllerAdvice:Root WebApplicationContext:启动日期[2017年7月13日星期四18:30:23 PKT];上下文层次结构的根
8499[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.context.ContextLoader-根WebApplicationContext:初始化在8348毫秒内完成
2017年7月13日18:30:31.819严重[RMI TCP连接(3)-127.0.0.1]org.apache.catalina.core.StandardContext.startInternal一个或多个筛选器无法启动。完整的详细信息将在相应的容器日志文件中找到
2017年7月13日18:30:31.821严重[RMI TCP连接(3)-127.0.0.1]org.apache.catalina.core.StandardContext.startInternal Context[]由于以前的错误,启动失败
8516[RMI TCP连接(3)-127.0.0.1]INFO org.springframework.web.context.support.AnnotationConfigWebApplicationContext-关闭根WebApplicationContext:启动日期[2017年7月13日星期四18:30:23 PKT];上下文层次结构的根
2017年7月13日18:30:31.886警告[RMI TCP连接(3)-127.0.0.1]org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc web应用程序[ROOT]注册了JDBC驱动程序[com.mysql.JDBC.driver],但在web应用程序停止时无法注销。为了防止内存泄漏,JDBC驱动程序已被强制注销。
[2017-07-13 06:30:31909]工件hoprepositoryweb:战争爆发:工件部署过程中出错。有关详细信息,请参阅服务器日志。

检查此项:可能存在的重复项请格式化日志输出以使问题更易于阅读。您确定错误日志文件中没有其他错误吗?问题已解决,我有安全配置类,但没有在主配置类中导入它。谢谢