springboot项目在tomcat启动报错,求解 5C

2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Starting beans in phase 2147483647
2017/12/28-21:18:13 [localhost-startStop-1] INFO com.ch.tri.SpringBootStartApplication- Started SpringBootStartApplication in 6.201 seconds (JVM running for 9.985)
28-Dec-2017 21:18:13.166 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Dec-2017 21:18:13.173 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/WebIThings-0.0.1-SNAPSHOT] startup failed due to previous errors
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext- Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@221ff7bd: startup date [Thu Dec 28 21:18:07 CST 2017]; root of context hierarchy
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 2147483647
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 1073741823
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.integration.mqtt.inbound.MqttPahoMessageDrivenChannelAdapter- stopped inbound
2017/12/28-21:18:13 [localhost-startStop-1] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 0

5个回答

就这么多报错信息? 啥都看不出来啊,报错信息贴多一点吧

caopengzh
caopengzh clean project 一下试试
一年多之前 回复
hanfengfuxiao12
彼将自然 报错信息就在两个严重那,日志没有显示更多
一年多之前 回复

tomcat 在启动你的应用/WebIThings-0.0.1-SNAPSHOT 时,有个listener没起来,具体原因在log(localhost.log 和 catalina.log/catalina.out)里找找看

clean下tomcat

试一下clean tomcat哦

是不是应用打成war包的时候,没有加这个依赖

   <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>

加上试试

hanfengfuxiao12
彼将自然 有这个
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
springboot tomcat单独启动报错
29-Apr-2019 19:55:20.493 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.40 29-Apr-2019 19:55:20.497 淇℃伅 [main] org.apache.catalina.startup.Ve...
idea新建springBoot项目,tomcat启动报错
An incompatible version [1.2.10] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]初次使用IDEA新建springBoot项目 初次使用IDEA新建springBoot项目 tomcat运行时出现以下错误: 解决方法:...
Tomcat 启动报错求解
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)rnERROR: transport error 202: unable to create socket: winsock error 87rnERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)rnJDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
tomcat启动报错??求解
2012-6-26 22:30:11 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.6.0_20\bin;D:\Tomcat 6.0\binrn2012-6-26 22:30:11 org.apache.coyote.http11.Http11Protocol initrn严重: Error initializing endpointrnjava.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at java.net.ServerSocket.(ServerSocket.java:141)rn at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)rn at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:530)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:550)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2012-6-26 22:30:11 org.apache.catalina.startup.Catalina loadrn严重: Catalina.startrnLifecycleException: Protocol handler initialization failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:530)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:550)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2012-6-26 22:30:11 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 494 msrn2012-6-26 22:30:11 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-6-26 22:30:11 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2012-6-26 22:30:12 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2012-6-26 22:30:12 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2012-6-26 22:30:12 org.apache.coyote.http11.Http11Protocol startrn严重: Error starting endpointrnjava.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at java.net.ServerSocket.(ServerSocket.java:141)rn at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)rn at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)rn at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)rn at org.apache.catalina.connector.Connector.start(Connector.java:1131)rn at org.apache.catalina.core.StandardService.start(StandardService.java:531)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-6-26 22:30:12 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnLifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at org.apache.catalina.connector.Connector.start(Connector.java:1138)rn at org.apache.catalina.core.StandardService.start(StandardService.java:531)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-6-26 22:30:12 org.apache.catalina.startup.Catalina startrn信息: Server startup in 824 msrn2012-6-26 22:30:12 org.apache.catalina.core.StandardServer awaitrn严重: StandardServer.await: create[8005]: rnjava.net.BindException: Address already in use: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:642)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:602)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
springboot项目启动报错
报错:新建的springboot项目,单击启动类报如下错误 原因: 这是因为添加了数据库组件,所以autoconfig会去读取数据源配置,而新建的项目还没有配置数据源,所以会导致异常出现。 解决办法: 第一种:去掉数据库依赖 第二种:在启动类上添加注解排除此依赖 在启动类的@SpringBootApplication中添加exclude= {DataSourceAutoCon...
springboot项目第一次启动报错
最近,看了一下spring-boot,做了一个demo的工程,启动时居然报错,报错信息:Unregistering JMX-exposed beans on shutdown。 原来是新版本的spring-boot工程在建立的时,改变了依赖的jar包: 原来的依赖 org.springframework.boot spring-boot-starter-web
tomcat启动报错。求解
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerrntomcat启动就包这错,昨天还可以正常使用的,。这是什么情况,百度了一下说是什么缺少spring包,之后倒入了也还是没有用。再者我新建一个项目,之前的项目全部关闭,他还是报错。谁有经验或办法的分享下,另外刚刚去tomcat的workApp目录下,把项目删了,只留了一个,启动又包项目不存在的错了,这怎么解决。
Springboot 项目启动报错
新建Springboot后,启动报错   java.lang.IllegalArgumentException: Not a managed type: class com.example.demo.myproject.domain.Entity.User 报错信息如下 Caused by: java.lang.IllegalArgumentException: Not a managed...
springboot 项目首次启动报错
rnError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.rn[16:20:12.783] ERROR org.springframework.boot.SpringApplication 858 reportFailure - Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1762) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]rn at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]rn at com.chn.frameweb.FrameWebApplication.main(FrameWebApplication.java:33) [classes/:?]rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77]rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77]rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77]rn at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77]rn at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.1.3.RELEASE.jar:2.1.3.RELEASE]rnCaused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1092) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1065) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:865) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:340) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration$EnableRedisKeyspaceNotificationsInitializer.afterPropertiesSet(RedisHttpSessionConfiguration.java:302) ~[spring-session-data-redis-2.1.4.RELEASE.jar:2.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1821) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1758) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn ... 21 morernCaused by: io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379rn at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78) ~[lettuce-core-5.1.4.RELEASE.jar:?]rn at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56) ~[lettuce-core-5.1.4.RELEASE.jar:?]rn at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:234) ~[lettuce-core-5.1.4.RELEASE.jar:?]rn at io.lettuce.core.RedisClient.connect(RedisClient.java:204) ~[lettuce-core-5.1.4.RELEASE.jar:?]rn at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:113) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at java.util.Optional.orElseGet(Optional.java:267) ~[?:1.8.0_77]rn at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:113) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1085) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1065) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:865) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:340) ~[spring-data-redis-2.1.5.RELEASE.jar:2.1.5.RELEASE]rn at org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration$EnableRedisKeyspaceNotificationsInitializer.afterPropertiesSet(RedisHttpSessionConfiguration.java:302) ~[spring-session-data-redis-2.1.4.RELEASE.jar:2.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1821) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1758) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]rn ... 21 morernCaused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/127.0.0.1:6379rn at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.8.0_77]rn at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:1.8.0_77]rn at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:665) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905) ~[netty-common-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.33.Final.jar:4.1.33.Final]rn at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_77]rnCaused by: java.net.ConnectException: Connection refused: no further informationrn at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.8.0_77]rn at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:1.8.0_77]rn at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) ~[netty-transport-4.1.33.Final.jar:4.1.33.Final]rn at io.netty.channel.nio.NioEventLoop.processSelect
新建springboot项目启动报错
新建springboot项目启动报错如下 Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. 2018-09-13 15:43:37.061 ERROR 3056 — [ main] o.s.b.d....
SSM项目Tomcat启动报错
[code=text] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LoginDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'LoginMapper' is definedrn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:748)rnCaused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'LoginMapper' is definedrn at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1159)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:282)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:446)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:420)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:545)rn at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155)rn at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:305)rn ... 22 more[/code]rn这是dao实现类rn[code=java]rn@Repository("LoginDao")rnpublic class LoginDaoImpl implements LoginDao rn rn @Resource(name = "LoginMapper")rn private LoginMapper LoginMapper;rnrn public LoginMapper getLoginMapper() rn return LoginMapper;rn rnrn public void setLoginMapper(LoginMapper loginMapper) rn LoginMapper = loginMapper;rn [/code]rn这是service实现类rn[code=java]@Service("LoginService")rnpublic class LoginServiceImpl implements LoginService rn rn @Resourcern private LoginDao LoginDao;rn[/code]rn配置文件rn[code=text]rnrn rn rn rn rn rn classpath:database.propertiesrn rn rn rn rn rn rn rn rn rn rn $mysql.driver_classrn rn rn rn $mysql.connection.urlrn rn rn rn $mysql.connection.usernamern rn rn rn $mysql.connection.passwordrn rn rn rn 30rn rn rn rn 2rn rn rn rn 2rn rn rn rn 10rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn classpath:entity/config/*.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn[/code]rnspringmvc配置文件rn[code=text]rnrn rn rn rn rn rn rn rn rn text/html;charset=UTF-8 rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrn rn rn rn rn rnrn[/code]
ssm项目tomcat启动报错
今天在做完项目一个模块进行打包测试,启动tomca的时候出现如下错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'suHandlerServiceImpl': Injection of resource dependencies failed; nested exce...
Linux下Tomcat项目启动报错
Linux下Tomcat项目启动报错org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.bw.yun.service.impl.UserServiceImpl] for bean wi...
eclipse项目启动报错tomcat
解决办法: (1)双击你的项目server (2)设置timeouts的值更大 (3)点击保存,重新启动项目就oK
Tomcat启动报错项目
原因:原来tomcat在E盘,我直接复制到了D盘,需要删除Eclipse中的tomcat,重新配置一次
tomcat 项目启动报错的解决方案
如果tomcat项目启动的时候报错,或者是启动不起来,那么目前我使用的解决方案是: 将工作空间的metedata文件删掉
关于tomcat启动报错,求解啊
rg.springframework.beans.factory.BeanDefinitionStoreException: [color=#FF0000]IOException parsing XML document from ServletContext resource [/classPath:conf/springContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/classPath:conf/springContext.xml][/color] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.io.FileNotFoundException: Could not open ServletContext resource [/classPath:conf/springContext.xml]rn at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)rn ... 36 morern这是错误信息rn
SpringBoot使用JdbcTemplate 项目启动报错:
报错详情:rnrnError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.rn2019-03-13 15:31:51.932 ERROR 31060 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : rnrn***************************rnAPPLICATION FAILED TO STARTrn***************************rnrnDescription:rnrnField jdbcTemplate in com.lmy.demo.service.UserService required a bean of type 'org.springframework.jdbc.core.JdbcTemplate' that could not be found.rnrnThe injection point has the following annotations:rn - @org.springframework.beans.factory.annotation.Autowired(required=true)rnrnrnAction:rnrnConsider defining a bean of type 'org.springframework.jdbc.core.JdbcTemplate' in your configuration.
sts搭建springboot项目,springBoot启动报错
1.If you want an embedded database please put a supported one on the classpath. 2.springCloud com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect ...
springboot 项目tomcat中失败,求解
2017/12/28-21:13:32 [localhost-startStop-2] INFO org.springframework.integration.mqtt.inbound.MqttPahoMessageDrivenChannelAdapter- started inboundrn2017/12/28-21:13:32 [localhost-startStop-2] INFO org.springframework.context.support.DefaultLifecycleProcessor- Starting beans in phase 2147483647rn2017/12/28-21:13:32 [localhost-startStop-2] INFO com.ch.tri.SpringBootStartApplication- Started SpringBootStartApplication in 7.451 seconds (JVM running for 740.505)rn28-Dec-2017 21:13:32.471 严重 [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log filern28-Dec-2017 21:13:32.473 严重 [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal Context [/WebIThings-0.0.1-SNAPSHOT] startup failed due to previous errorsrn2017/12/28-21:13:32 [localhost-startStop-2] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext- Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7c05e2f1: startup date [Thu Dec 28 21:13:25 CST 2017]; root of context hierarchyrn2017/12/28-21:13:32 [localhost-startStop-2] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 2147483647rn2017/12/28-21:13:32 [localhost-startStop-2] INFO org.springframework.context.support.DefaultLifecycleProcessor- Stopping beans in phase 1073741823rn2017/12/28-21:13:33 [localhost-startStop-2] INFO org.springframework.integration.mqtt.inbound.MqttPahoMessageDrivenChannelAdapter- stopped inboundrn
tomcat项目启动报错的一些记录
1.spring使用了quartz导致tomcat启动失败问题   由于项目中使用了定时器quartz,之前一直都挺正常的,前几天突然启动报错了,查了资料发现是由于tomcat服务停了之后,定时器的进程没能及时关闭,只要在项目中加一个listenner,手动关闭定时器即可。
ssh项目整合tomcat启动报错
万能的CSDN啊,大神们给我看看错!我不知道怎么回事儿,如图~![img=https://img-bbs.csdn.net/upload/201405/20/1400591255_192616.jpg][/img]
SpringBoot启动报错
SpringBoot启动报错 “C:\Program Files\Java\jdk1.8.0_162\bin\java.exe” -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.por...
springboot启动报错
首先贴出报错信息: 然后我在网上百度了一大堆问题,说是Controller包必须在Application包里才能被扫描到,说我的Controller包和启动类处于平行位置 ,导致Controller包没有被启动类扫描到,但是我检查发现我的启动类和controller并不是处在同一层级上,后来看到底部报错信息说我没有加入数据库驱动,才知道原来springboot在启动时会自动注入数据源和配置jpa...
springboot多数据源管理(atomikos)之多项目在同一Tomcat启动报错的解决方案
如果两个或多个springboot项目,都通过atomikos配置了多数据源,且放在同一Tomcat下运行,报错: com.atomikos.recovery.LogException: Log already in use? tmlog in D:\eclipse\transaction-logs\ 出错原因: atomikos默认日志打印:tomcat\transaction-lo...
Springboot项目打成WAR包部署到Tomcat启动报错的问题
自己创建的一个springboot项目需要打成war包部署到tomcat(打成war包的步骤有很多,这里不写了),在我启动tomcat的时候查看日志发现启动报错,日志显示错误原因是spring容器无法加载到加了@Service注解的类,所以这里需要考虑哪里会扫描到这个类并且加入到spring容器,而springboot项目加载@Service注解的配置就是启动类上面的注解@SpringBootAp...
springboot 启动报错
利用课余时间自学springboot的时候,启动的时候就遇到了问题,各种网上类似问题都搜遍了,也都试了一遍,都不行,结果在启动类上加上一行@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})就可以了说是有maven依赖包冲突,有重复的依赖。搭建springboot项目,两次都是这样解决的,记录下!!!!...
Springboot启动报错
SpringBoot启动的时候报错: java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) 开始的时候有点纳闷为什么会报这个异常,其实我已经配置了的,后来发现...
Spring boot 启动报错 Failed to auto-configure a DataSource
在使用spring boot做项目时出现错误:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-04-15 22:49:12.724 ERROR 15472 --- [           main] o.s.b....
springboot 启动报错
启动异常 *************************** APPLICATION FAILED TO START ***************************   Description:   Failed to configure a DataSource: no embedded datasource could be configured.   Reaso...
SpringBoot导出war包在tomcat下启动报错
我照着Spring官网的教程把我的项目导出成war包,放到tomcat下部署,启动的时候报错java.lang.ClassNotFoundException: org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader at java.net.URLClassLoader.findClass(URLCla...
多个springboot项目发布到服务器上的tomcat启动报错
原来服务器tomcat上有个springboot项目,把另一个springboot项目打包war放到tomcat上启动报错: 解决办法,在第二个项目(不能正常启动的项目)的application.properties文件上加上: spring.jmx.enabled=false 就可以正常启动了。...
springboot学习系列问题:Tomcat启动报错
eclipse中SpringBoot访问页面报错Description:The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.问题描述controller代码片段appli...
tomcat启动报错
tomcat启动报错,启动超时,找不到类文件四渡赤水打成不是的
Tomcat启动报错
出现本错误java.lang.UnsatisfiedLinkError: E:\Program Files\MyEclipse10\apache-tomcat-7.0.23\bin\tcnative-1.dll: Can't load IA 32-bit.dll on a AMD 64-bit platform 这句话意思是Tomcat的tcnative-1.dll文件是32位的不能在6
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件