在ECLIPSE里调试SPRING BOOT程序TOMCAT始终启动不了,求指教 [问题点数:50分,结帖人ilearn]

一键查看最优答案

确认一键查看最优答案?
本功能为VIP专享,开通VIP获取答案速率将提升10倍哦!
Bbs1
本版专家分:0
结帖率 99.09%
Bbs7
本版专家分:27071
Blank
黄花 2017年11月 Java大版内专家分月排行榜第二
2017年9月 Java大版内专家分月排行榜第二
Blank
蓝花 2019年8月 Java大版内专家分月排行榜第三
2017年8月 Java大版内专家分月排行榜第三
2017年4月 Java大版内专家分月排行榜第三
2016年3月 Java大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:50
解决:The Tomcat connector configured to listen on port 8080 failed to start.
报错: The Tomcat connector configured to listen on port 9001 failed to start. The port may already be in use or the connector may be misconfigured. 出现这个问题主要是因为端口被占用,在网上找到一个很简单快速解决此问题的方法: ...
关于idea运行springboot项目问题
有一个很奇怪的问题, springboot项目, idea正常run可以运行, 但是在java -jar下无法运行, 提示找不到配置文件. 我的maven配置是一致的, 请各位大神给我讲讲idea的run项目和 java -jar 有什么区别?
springboot项目在Tomcat(eclipse)下运行
一、遇到问题         新建springboot项目,用SpringBootApplication和Maven Build方式均可以正常<em>启动</em>访问。但移植到Tomcat后不能访问,报log4j2的jar包找不到。         开发环境:         JDK 1.7         apache-tomcat-7.0.88         springboot:v1.5.4.R...
SpringBoot项目添加到Eclipse的Tomcat中运行
123
The Tomcat connector configured to listen on port 8080 failed to start
学习spring boot时发现此错误,原来是8080端口被占用了 cmd查看一下占用端口的进程: netstat -aon|findstr 8080 可以看出占用端口的是 PID 为 8220 的进程,终止这个进程即可 taskkill /f /t /im 8220 如果还是不行,可以修改一下spring boot 的默认端口号: 编辑配置文件 applica...
解决本地端口占用问题
近几天<em>启动</em>本地服务器老是提示端口被占用问题,如下所示:Description:The Tomcat connector configured to listen on port 8082 failed to start. The port may already be in use or the connector may be misconfigured.Action:Verify the co...
端口被占用问题:The Tomcat connector configured to listen on port 8081 failed to start.
记最近在学springboot,STS(spring tool suite)报错 度了一下整理了三个方法 先上报错 2019-04-29 13:51:14,976 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] - [INFO] Starting Applica...
部署项目时,8080端口已经出现问题
*************************** APPLICATION FAILED TO STARTDescription:The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be miscon...
SpringBoot深入(一)--SpringBoot内置web容器及配置
版权声明:作者原创,转载请注明出处。 本系列文章目录地址:http://blog.csdn.net/u011961421/article/details/79416510 前言 在学会基本运用SpringBoot同时,想必搭过SSH、SSM等开发框架的小伙伴都有疑惑,SpringBoot在spring的基础上做了些什么,使得使用SpringBoot搭建开发框架能如此简单,便捷,快...
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. <em>启动</em>spring boot时发现此错误,原来是8080端口被占用了 cmd查看一下占用端口的进程: netstat -aon|findstr 8080 可以看出占用端口的是PID为5260的进程,终止这个进程即可 taskkill /f /t /im 526...
報錯The Tomcat connector configured to listen on port 135 failed to start如何解決?
初學spring boot,按照網上教程,用eclipse +maven+spring boot 創建了一個項目,運行後,雖然我多次更改端口,總是報錯如下。 Description: The Tomcat connector configured to listen on port 135 failed to start. The port may already be in use or the connector may be misconfigured. 我再查了查端口,狀態是“listening”,請問問題在哪? ***********問題補充3/7/2019*********** 首先謝謝各位回復,可是我改了“8080”(其實之前我已試過不同的端口),還是報錯如下: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.1.RELEASE) 2019-07-03 04:04:11.952 INFO 16132 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication on LAPTOP-FAS0SHLM with PID 16132 (C:\Users\yueho\eclipse-workspace\demo\target\classes started by yueho in C:\Users\yueho\eclipse-workspace\demo) 2019-07-03 04:04:11.962 INFO 16132 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default 2019-07-03 04:04:15.019 INFO 16132 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 17500 (http) 2019-07-03 04:04:15.082 INFO 16132 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-07-03 04:04:15.089 INFO 16132 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.13 2019-07-03 04:04:15.106 INFO 16132 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_92\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_92/bin/server;C:/Program Files/Java/jre1.8.0_92/bin;C:/Program Files/Java/jre1.8.0_92/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_92\bin;C:\Program Files\Java\jdk1.8.0_92\jre\bin;C:\Users\yueho\AppData\Local\Microsoft\WindowsApps;;C:\Users\yueho\OneDrive\Desktop;;.] 2019-07-03 04:04:15.371 INFO 16132 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-07-03 04:04:15.372 INFO 16132 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3260 ms 2019-07-03 04:04:15.828 INFO 16132 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2019-07-03 04:04:16.256 ERROR 16132 --- [ main] org.apache.catalina.util.LifecycleBase : Failed to start component [Connector[HTTP/1.1-17500]] org.apache.catalina.LifecycleException: Protocol handler start failed at org.apache.catalina.connector.Connector.startInternal(Connector.java:1001) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225) [tomcat-embed-core-9.0.13.jar:9.0.13] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:259) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:197) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:311) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:164) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at com.example.demo.DemoApplication.main(DemoApplication.java:10) [classes/:na] Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_92] at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_92] at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_92] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_92] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.8.0_92] at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:236) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1067) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1149) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:561) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.catalina.connector.Connector.startInternal(Connector.java:998) ~[tomcat-embed-core-9.0.13.jar:9.0.13] ... 14 common frames omitted 2019-07-03 04:04:16.287 INFO 16132 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-07-03 04:04:16.345 INFO 16132 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-07-03 04:04:16.348 ERROR 16132 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 17500 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 17500, or configure this application to listen on another port. 2019-07-03 04:04:16.367 INFO 16132 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 再查了一下端口,狀態是“listening”。 ***********問題補充4/7/2019*********** 謝謝,不過沒有找到server.xml和web.xml。 我是用maven自帶tomcat+springboot ***********問題補充5/7/2019*********** 我發現
eclipse的springboot一直无法访问controller
eclipse 的springboot项目的hello显示,tomcat访问404,先说明端口未被占用,因为空项目可以访问tomcat的localhost。 百度了很久,说法最多的一种就是controller等子包要和主<em>程序</em>application.java同列,但我这个问题不存在,就是是访问<em>不了</em>controller 项目: 主<em>程序</em>: ```@SpringBootApplication //@ComponentScan(basePackages= {"com.example.demo.controller"}) public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } } ``` controller: ``` @Controller @EnableAutoConfiguration public class TestController { @ResponseBody @RequestMapping("/hello") public String hello() { return "Hello Spring Boot"; } } ``` pom.xml: ``` 4.0.0 org.springframework.boot spring-boot-starter-parent 2.1.4.RELEASE com.example demo 0.0.1-SNAPSHOT demo Demo project for Spring Boot 11 org.springframework.boot spring-boot-starter-web mysql mysql-connector-java runtime org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-maven-plugin ``` tomcat访问名我设置了/ 然后百度localhost:8080/hello 无论如何就是出不来
idea运行报错[RMI TCP Connection(2)-127.0.0.1]
![图片说明](https://img-ask.csdn.net/upload/201904/24/1556082880_69766.png) 这是报错信息,下面提示有个对象注入错误,目测和依赖有关!但是考核项目是一样的别人都能够运行,不存在我的代码有问题,应该是其他问题,<em>求</em>大佬指点一下。给个解决方案? [RMI TCP Connection(2)-127.0.0.1] WARN org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'approveDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.activiti.engine.TaskService com.kayak.web.act.dao.ApproveDao.taskService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
spring boot项目在eclipse中的web的启动方式
说明 最近开始写spring boot框架, 而spring boot自带Servlet容器, 发现除了使用 java方式运行Application.java的方式运行项目,使用像平常的web项目的<em>启动</em>方式,部署到了spring boot的内置tomcat中,若要把spring-boot项目按照平常的web项目一样发布到tomcat下的方式在eclipse中<em>启动</em>,需要加以下配置。具体步骤
eclipse springboot项目(springboot2.1) debug启动跳断点,跳至 SilentExitException
刚开始接触springboot,学习记录(且分享)! 问题场景: main方法debug<em>启动</em>时,每次都会进入断点如下图: 解决方式: 菜单栏 Window-&gt;Preference-&gt;Java-&gt;Debug 去除勾选"Suspend execution on uncaught exceptions"(如下图) ...
The Tomcat connector configured to listen on port 8080 failed to start.
在使用springboot时,因为spring-boot有一个内置的tomcat容器,所以在进行run-as时,可能和本地的tomcat的端口号产生冲突,下面时运行项目时产生的错误: *************************** APPLICATION FAILED TO START *************************** Description: Th...
tomcat启动的时候报错,大神解答!!!
tomcat<em>启动</em>的时候报错,<em>求</em>大神解答!!!
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u
主要去查看一下是哪一个占用了8080端口,如果被占用直接删除,我的一半都是java.exe 如何去掉被占用的端口请查看我的博客: https://blog.csdn.net/chehec2010/article/details/84888879...
【tomcat 启动报错】The Tomcat connector configured to listen on port 8080 failed to start问题解决
Window<em>启动</em>Tomcat报错 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. Action: Verify the conne...
SpringBoot项目在Spring Tool Suite中更改默认发布目录为Tomcat
SpringBoot项目在Spring Tool Suite中更改默认发布目录为Tomcat方法如下: 1、点击查看Servers视图 2、双击 Tomcat v9.0 Server at localhost 之后就可以看下如下视图: 当设置是灰色是:要移除Tom<em>里</em>面的项目,重启STS,在双击server进入该视图:就可以选择Tom的部署目录的了。 3、如果部署好后,运行时出现:“proj
Tomcat启动时一直停留在一个应用的发布的解决办法
Tomcat在<em>启动</em>时一直停留在某一个应用无法<em>启动</em>或者需要很长时间才能<em>启动</em>,提示Deploying web application directory [/home/dev/tomcat/apache-tomcat-9.0.0.M26/webapps/ROOT,可以通过如下配置来加速<em>启动</em> 配置修改${JAVA_HOME}/jre/lib/security/java.security文件修改secure
eclipse中正常启动项目可以,Debug启动不起来
转自:https://ask.csdn.net/questions/687676 https://blog.csdn.net/XUELEI001/article/details/70050838 取消所有断点,然后在debug<em>启动</em>,<em>启动</em>完成后再打断点
uestWrapper.getSession(HttpServletRequestWrapper.java:241) ~[tomcat-embed-core-9.0.13.jar:9.0.13]
uestWrapper.getSession(HttpServletRequestWrapper.java:241) ~[tomcat-embed-core-9.0.13.jar:9.0.13] at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:564) ~[tomc...
eclipse debug模式运行老是被URLClassLoader这个类拦截到 解决方法
最近项目不知道咋回事,以前好好的,现在只要是Debug运行,都会莫名其妙的进到URLClassLoader这个类<em>里</em>面来,可能是我手贱动过jdk吧;解决方法如下:如上图所示,breakpoint小窗口的位置,在去掉之前是有一个“caught and uncaught”一栏的,只需要将前面的对勾去掉就好了。...
SpringBoot Eclipse部署到tomcat
SpringBoot本身就是一个web项目,所有部署和其他web项目一样,add deploy到tomcat即可,但是部署成功后运行正常,发现tomcat指定的部署目录没有东西。如何修改下面说一下: 默认情况SpringBoot部署位置为当前工作空间内,就是tomcat会使用编译到target内的class,不会将class文件copy一份到tomcat部署目录内,具体双击servers-> t
The Tomcat connector configured to listen on port 8000 failed to start. The port may already
The Tomcat connector configured to listen on port 8000 failed to start. The port may already be in use or the connector may be misconfigured. cmd打开命令提示符,输入如下命令 netstat -aon|findstr 8080 taskkil...
springboot 启动找不到主类的问题
利用eclipse的maven插件,清理了了一下springboot的项目,结果再<em>启动</em>就找报找不到主类的错误了。 原因是你清理了编译好的class文件。解决办法是:使用maven插件的命令 package 进行编译就好了。就是在输入jetty:run 那<em>里</em>换成 package
springBoot启动时找不到或无法加载主类解决办法
1.jar包错误 第一步:首先鼠标键右击你的项目,点击run as——》maven clean 第二步:鼠标键右击你的项目,run as---&amp;gt;maven install;在eclipse控制台你可以看见报错的jar包; 第三步:去maven仓库删除对应的jar,右击你的项目,maven--&amp;gt;update project(重新下载jar包); 第四步:重复一,二步骤,找到你的启...
eclipse运行springboot项目,找不到主类
解决办法尝试了很多种,下载sts压缩包行不通。最后解决办法如图: help---&gt;Eclipse Marketplace---&gt;Popular---&gt;找到Spring Tools 3----&gt;Installed。
springboot---->错误: 找不到或无法加载主类
刚开始是往上面箭头指出的方向去找问题的原因,但是试了各种方法后问题还是没有解决,于是乎我把焦点转去查看eclipsede控制台处: 主要的错误提示如下: Archive for required library: 'D:/SoftInstall/maven_repo/org/apache/tomcat/embed/tomcat-embed-core/8.5.4/tomcat-embed-c...
报错:The Tomcat connector configured to listen on port 8080 failed to start. The port may already be
报错: org.apache.catalina.LifecycleException: Protocol handler start failed at org.apache.catalina.connector.Connector.startInternal(Connector.java:1008) ~[tomcat-embed-core-9.0.19.jar:9.0.19] at org.ap...
SpringBoot手动部署到Tomcat和自动化热部署
前言: 在Eclipse中使用springboot项目,运行只需要直接右键默认的<em>启动</em>类DemoApplication.java ,Run As --&gt;Spring Boot App即可。 但是我们想把项目的war包部署到服务器的tomcat中,那么就必须做一些修改 部署到tomcat 环境: 本地:Eclipse、SpringBoot2.1.2、Maven 服务器:C...
使用idea启动spring boot项目时遇到The Tomcat connector configured to listen on port 8080 failed to start
最近开始学习springboot,而第一步运行就遇到了bug如下图所示 rg.apache.catalina.LifecycleException: Protocol handler start failed at org.apache.catalina.connector.Connector.startInternal(Connector.java:1008) ~[tomcat-emb...
解决关于The Tomcat connector configured to listen on port 9100 failed to start.
The Tomcat connector configured to listen on port 9100 failed to start. The port may already be in use or the connector may be misconfigured.在springcloud学习编译经常会出现的问题。 错误提示: Description: The Tomcat ...
springboot配置tomcat启动报错org.apache.catalina.LifecycleException: Failed to start
用main方法<em>启动</em>就可以<em>启动</em>成功,但是在idea配置了本地tomcat<em>启动</em>就报以下错误,网上找了很多方法都不管用,<em>求</em>救啊: 06-Jul-2018 15:28:46.646 严重 org.apache
Debug调试:debug启动不起来 正常启动却可以
Debug<em>调试</em>:debug<em>启动</em>不起来 正常<em>启动</em>却可以 解决方法:取消所有断点,然后在debug<em>启动</em>,<em>启动</em>完成后再打断点 当问题出现时,我们可以换一种思路,达到同样的效果。
The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use
The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use 配置为侦听端口80的Tomcat连接器无法<em>启动</em>。 端口可能已在使用中,或者连接器可能配置错误。 1.查找被占用的端口 netstat-tln|grep8080 netstat...
eclipse 运行springboot项目
一:当在eclipse<em>启动</em>spring boot项目时出现问题: 错误: 找不到或无法加载主类 com.example.demo.DemoApplication     解决办法: 1,通过cmd命令行,进入项目目录进行,mvn clean install 进行编译   项目install后,再到eclipse 上选中项目按F5刷新项目。再运行即可问题解决。   2,在e...
springboot项目启动后,控制台只出现了spring图标,并没有日志的解决办法
当我<em>启动</em>项目的<em>启动</em>类是,控制台情况如下 它并没有具体的日志信息,都不知道是否<em>启动</em>成功了。 解决办法: 点击 在VM options那一栏加上-Dspring.profiles.active=local 再次<em>启动</em><em>启动</em>类就有详细的日志信息了 ...
STS eclipse console控制台 启动spring boot 乱码中文不乱码
卸载eclipse重装无用,应该是项目问题 代码copy出来到新建项目成功
Tomcat源码阅读之Connector设计与实现
先暂时跳过Service的分析,先来看看connector部分。。。。 好像在tomcat8这个版本中,只有Nio的Connector可以用了。。。 我们来看看在server.xml中一个connector的定义: 这<em>里</em>的参数应该很好理解,首先是端口,将会创建acceptor监听该端口,然后是协议的类型,接着是链接超时,然后是
idea 启动Tomcat报错,指导下
24-Oct-2018 16:49:10.085 严重 org.springframework.web.context.ContextLoader.initWebApplicationContext
SpringBoot基本操作(二)——使用IDEA打war包发布及测试
SpringBoot2.0笔记 (一)SpringBoot基本操作——环境搭建及项目创建(有demo) (二)SpringBoot基本操作——使用IDEA打war包发布及测试 (三)SpringBoot基本操作——SpringBoot整合SpringDataJpa(有demo) (四)SpringBoot基本操作——SpringBoot使用RedisTemplate整合Redis(有dem...
Struts2启动报错
请问这是怎么回事啊? 严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/apache-tomcat-6.0.26/webapps/s2/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 a...
Springboot打包放入tomcat中运行
pom.xml调整 1.1 打包方式修改 &amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt; 变更为 &amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;gt; 1.2. 添加依赖 重点:scope是provided &amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.springframework.b...
网卡启动报错
Centos6<em>启动</em>网卡时报错: 报错信息: Error: Connection activation failed: Device not managed by NetworkManager 解决方法: service NetworkManager stop chkconfig NetworkManager off service network restart ...
springboot项目 打包放入tomcat 启动成功了 但是访问不了springboot项目
在eclipse<em>里</em>面 创建的maven springboot项目 是可以正常运行 访问的 但是打了war包之后 放入 Tomcat中运行 起来 就不能访问了。 是按照正常的 步骤来的啊 第一:<pac
超级奇葩的问题Spring Boot项目启动跑到一半就卡在那不动了,也没报错...
昨天早上还跑的好好的,昨天下午更新了别人提交的代码,然后项目重启,就死活起不来了。。。 控制台日志一直卡在 红色框起来的那<em>里</em>,就一直不动了,如图: 什么mvn clean,mvn compile,打包拿到控制台运行等等办法都没有用===== 把application.yml<em>里</em>hibernate的ddl配置改成update还是不行 就死活卡在那不往下运行,在网上查了半天也没有合适的解决办...
Springboot, Tomcat 9, Eclipse tomcat 9 配置https
1、生成tomcat.keystore 中间要填不少信息,自己看着填,密码全写123qwe root&amp;gt; keytool -genkeypair -alias &quot;tomcat&quot; -keyalg &quot;RSA&quot; -keystore &quot;tomcat.keystore&quot; 2、spring boot 2.1 a、修改application.yml: http: port: 5892 ser...
tomcat启动成功,但是eclipse报错??
环境:mac java9, eclipse-oxygen-1a, tomcat7. localhost:8080 能成功访问,eclipse报错如下: 严重: Failed to trigger cr
springboot 添加了jpa配置类 启动总是报错,去掉就能启动正常
![图片说明](https://img-ask.csdn.net/upload/201905/06/1557155946_451269.png) ![图片说明](https://img-ask.csdn.net/upload/201905/06/1557155952_880014.png) Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-05-06 23:19:40.169 ERROR 11948 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean' defined in class path resource [com/jordan/xunwuproject/config/JPAConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactoryBean' threw exception; nested exception is java.lang.IllegalStateException: @Bean method JPAConfig.dataSource called as bean reference for type [javax.activation.DataSource] but overridden by non-compatible bean instance of type [com.zaxxer.hikari.HikariDataSource]. Overriding bean of same name declared in: class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1305) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1144) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at com.jordan.xunwuproject.XunwuProjectApplication.main(XunwuProjectApplication.java:10) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162] at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.1.3.RELEASE.jar:2.1.3.RELEASE] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactoryBean' threw exception; nested exception is java.lang.IllegalStateException: @Bean method JPAConfig.dataSource called as bean reference for type [javax.activation.DataSource] but overridden by non-compatible bean instance of type [com.zaxxer.hikari.HikariDataSource]. Overriding bean of same name declared in: class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 24 common frames omitted Caused by: java.lang.IllegalStateException: @Bean method JPAConfig.dataSource called as bean reference for type [javax.activation.DataSource] but overridden by non-compatible bean instance of type [com.zaxxer.hikari.HikariDataSource]. Overriding bean of same name declared in: class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:418) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at com.jordan.xunwuproject.config.JPAConfig$$EnhancerBySpringCGLIB$$6c882e7f.dataSource() ~[classes/:na] at com.jordan.xunwuproject.config.JPAConfig.entityManagerFactoryBean(JPAConfig.java:37) ~[classes/:na] at com.jordan.xunwuproject.config.JPAConfig$$EnhancerBySpringCGLIB$$6c882e7f.CGLIB$entityManagerFactoryBean$2() ~[classes/:na] at com.jordan.xunwuproject.config.JPAConfig$$EnhancerBySpringCGLIB$$6c882e7f$$FastClassBySpringCGLIB$$50c56f90.invoke() ~[classes/:na] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at com.jordan.xunwuproject.config.JPAConfig$$EnhancerBySpringCGLIB$$6c882e7f.entityManagerFactoryBean() ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 25 common frames omitted
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u...
springboot 8080端口被占用报错: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 cmd打开命令提示符,输入如下命令 netstat ...
SpringBoot踩过的坑
一直听说SpringBoot开发多快捷多么好是一个小型的分布式框架,不像Spring那样要写繁多的配置文件, 心血来潮本着玩一玩的心态,写下了第一个SpringBoot<em>程序</em>,按照网上的资料看起来很简单嘛,信心满满的就开始干,却没曾想到问题一个一个接踵而来现在来重现下我遇到的几个问题。 首先创建一个maven project 结构如下: pom.xml http:
Spring Boot自带的Tomcat配置SSL证书失败
申请的是阿<em>里</em>云的免费SSL证书,配置好后一直报错,排除了端口占用,密码不对等情况,非常郁闷 配置信息如下: ``` server: port: 443 max-http-header-size: 10240 ssl: key-store: classpath:./2831383_service.masterchinese.cn.pfx enabled: true key-store-type: PKCS12 key-store-password: RP1qV252 ``` 报错信息如下: ``` 2019-09-19 21:16:42.003 ERROR 14420 --- [ restartedMain] org.apache.catalina.util.LifecycleBase : Failed to start component [Connector[HTTP/1.1-443]] org.apache.catalina.LifecycleException: Protocol handler start failed at org.apache.catalina.connector.Connector.startInternal(Connector.java:1001) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225) at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:259) at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:197) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:311) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:164) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) at cn.stylefeng.guns.GunsApplication.main(GunsApplication.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) Caused by: java.lang.IllegalArgumentException: DerInputStream.getLength(): lengthTag=111, too big. at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:114) at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:85) at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:224) at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1067) at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1149) at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:561) at org.apache.catalina.connector.Connector.startInternal(Connector.java:998) ... 19 common frames omitted Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=111, too big. at sun.security.util.DerInputStream.getLength(DerInputStream.java:599) at sun.security.util.DerValue.init(DerValue.java:391) at sun.security.util.DerValue.(DerValue.java:332) at sun.security.util.DerValue.(DerValue.java:345) at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1938) at java.security.KeyStore.load(KeyStore.java:1445) at org.apache.tomcat.util.net.SSLUtilBase.getStore(SSLUtilBase.java:179) at org.apache.tomcat.util.net.SSLHostConfigCertificate.getCertificateKeystore(SSLHostConfigCertificate.java:204) at org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:203) at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:112) ... 25 common frames omitted 2019-09-19 21:16:42.009 INFO 14420 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-09-19 21:16:42.020 INFO 14420 --- [ restartedMain] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-09-19 21:16:42.026 ERROR 14420 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 443 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 443, or configure this application to listen on another port. 2019-09-19 21:16:42.031 INFO 14420 --- [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2019-09-19 21:16:42.042 INFO 14420 --- [ restartedMain] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 2019-09-19 21:16:42.044 INFO 14420 --- [ restartedMain] o.s.c.ehcache.EhCacheManagerFactoryBean : Shutting down EhCache CacheManager Process finished with exit code 0 ```
springBoot启动报错:Address already in use: bind
错误如下: springBoot<em>启动</em>时报错
Embed Tomcat8简单示例
一:项目依赖 org.apache.tomcat.embed tomcat-embed-core 8.5.5 org.apache.tomcat.embed tomcat-embed-el 8.5.5 org.apache.tomcat.embed tomcat-embed-jasper 8.5.5 二:示例代码 servlet package c
微服务 引入feign 远程调用服务接口报错feign.FeignException: status 406 reading xxx#xxxx()
2019-03-29 17:32:11.075 ERROR 22168 --- [io-41001-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.FeignException: status 406 reading TaskInterface#test()] with root cause feign.FeignException: status 406 reading TaskInterface#test() at feign.FeignException.errorStatus(FeignException.java:62) ~[feign-core-9.5.1.jar:na] at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:91) ~[feign-core-9.5.1.jar:na] at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:138) ~[feign-core-9.5.1.jar:na] at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76) ~[feign-core-9.5.1.jar:na] at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103) ~[feign-core-9.5.1.jar:na] at com.sun.proxy.$Proxy86.test(Unknown Source) ~[na:na] at com.shiyunxin.feign.TaskController.test(TaskController.java:23) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_91] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) ~[spring-webmvc-5.0.6.RELEASE.jar:5.0.6.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) ~[tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.31.jar:8.5.31] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_91] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.31.jar:8.5.31] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91]
SpringBoot:默认tomcat版本启动失败解决
本文介绍使用是springboot时由于默认配置的tomcat版本问题导致<em>启动</em>失败的两个报错: - Unable to start embedded Tomcat - java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory 的解决方法。也是更改springboot默认tomcat版本的方法。 ...
springboot启动嵌入式tomcat报错找不到jar包,关键字:FileNotFoundException,derbyLocale_cs.jar,StandardJarScanner.scan...
异常: java.io.FileNotFoundException: /Users/lanhuajian/.m2/repository/org/apache/derby/derby/10.13.1.1/derbyLocale_cs.jar (No such file or directory) at java.util.zip.ZipFile.open(Native Method...
新手助:Server Tomcat v8.0 Server at localhost failed to start.
自我感觉应该是tomcat在Eclipse中部署的问题,但是新学不知道到底是哪的错,
Tomcat启动报错 Failed to initialize connector [Connector[HTTP/1.1-8080]]
清早上班,开机后运行服务,我的tomcat服务的端口是8080,结果服务报错! 2016-5-17 10:27:14 org.apache.coyote.http11.Http11AprProtocol init 严重: Error initializing endpoint java.lang.Exception: Socket bind failed: [730013] ????????
23.1 SpringApplication spring boot 启动
springApplication  提供<em>启动</em>类的main方法,在许多情况下,您可以将其委托给静态spring应用<em>程序</em>。运行方法: public static void main(String[] args) throws Exception { //设置 热<em>启动</em>不生效 也可以在 资源文件中配置spring.devtools.restart.enabled // Syst
SpringBoot处理事务
SpringBoot-Mybatis处理事务
eclipse中tomcat无法加载spring boot
最近自己搭建一套spring boot框架,作为 application <em>启动</em>项目OK, 但将 spring boot web放入 自己配置的tomcat容器中,出现不加载spring boot,直接<em>启动</em>成功。 这可能是因为项目引用 spring-web 失败。解决方案 1.首先检查项目的环境时候有问题(eg:build path/ java compiler/ project facets 
Eclipse中创建新的Spring Boot项目
简单几步,在Eclipse中创建一个新的Spring Boot项目: 1、Eclipse中安装STS插件: Help -> Eclipse Marketplace... Search或选择“Popular”标签,选择Spring Tool Suite (STS) for Eclipse插件,安装: 2、New -> Project... 找到Spring目录,选择
把spring-boot项目部署到tomcat容器中
把spring-boot项目按照平常的web项目一样发布到tomcat容器下 一、修改打包形式 在pom.xml<em>里</em>设置 war 二、移除嵌入式tomcat插件 在pom.xml<em>里</em>找到spring-boot-starter-web依赖节点,在其中添加如下代码, org.springframewor
spring-boot项目的创建以及部署到外部tomcat的方法
直接从官网下载一个入门例子,地址:http://spring.io/guides/gs/spring-boot/ 因为我用的maven构建项目,所以删除了其他无用的文件和文件夹,只保留gs-spring-boot目录(该目录下有src和pom.xml);下面是正文: 命令行进入项目目录(gs-spring-boot),执行”mvn clean” 接着执行”mvn compile” 最后执行”mvn
通过eclipse把spring boot项目打包成war包并部署到tomcat服务器上的步骤
由于需要把写的spring boot后台<em>程序</em>放到云服务上,所以今天研究了一下如何把spring boot项目部署到安装的tomcat服务器上,现在整理下打包—&amp;gt;部署—&amp;gt;访问这个整个步骤以及遇到的问题,供大家参考和以后的回顾:1、打包修改打包形式在pom.xml<em>里</em>设置 packaging&amp;gt;war&amp;lt;/packaging&amp;gt;除嵌入式tomcat插件在pom.xml<em>里</em>找到spring-boot-starter
Spring Boot项目部署到Eclipse下的tomcat
把SpringBoot项目像普通web项目一样部署到tomcat下,需要注意几点: JDK1.7以上 tomcat7以上 不能带web.xml 项目结构: pom.xml配置: 入口<em>启动</em>类:@SpringBootApplication public class SpringBootStartApplication extends SpringBootServletInitializer {
springboot:修改内置tomcat版本
1. 要不要使用最新版本的 spring boot 以及 tomcat; 2. 如何知道当前使用的 tomcat 版本; 3.如何修改使用的 tomcat 版本;
错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
<em>启动</em>Tomcat服务器报错:Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need t
Spring boot 项目发布war 本地调试jar 方法
大部分的SSH2或SSM的java开发人员习惯在之前的开发框架中直接将应用打包为war形式,而在使用Spring boot框架开发的过程中,默认是将应用发布为jar,但大部分开发者即 希望项目在本地使用Jar<em>调试</em>又可轻松地将应用打为war包在服务容器中发布与测试,特将经验进行一些总结,望能起到作用。 1. IDE:IntelliJ IDEA 2016 2. 新建Spring boot对
SpringBoot 打War问题
SpringBoot 打War问题 关于SpringBoot Maven相关介绍可参考:官方介绍及事例文档 https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/maven-plugin/usage.html SpringBoot默认情况使用jar方式进行打包,并通过jar的方式来<em>启动</em>一个服务。 可以这样<em>启动</em>是因为Spring Boo...
使用idea对springboot项目打war包及遇到的问题总结
使用maven创建的springboot项目的默认打包方式是jar包,而且springboot是自带Tomcat的。部署项目时需要打包成对应的war包,并将项目部署到服务器的Tomcat下,所以项目打包时就需要修改一些配置。 主要修改pom.xml文件中的一些配置 1、修改打包方式,将jar修改为war &amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;gt; 2、在...
端口占用问题的解决办法
早上到公司<em>启动</em>项目时候发现端口被占用  报错如下: *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 8080 faile
springboot配置ssl出现问题
springboot配置文件: .pfx文件和密码来自阿<em>里</em>云,正规 但是,<em>启动</em>springboot的时候,报错。希望大神能够来指点一下啊,怎么解决。查了资料,有说发现maven打包的时候,没把文件打包
Spring in action--Part2-Spring On The Web
Chapter5.Building Spring web applicationsState management, workflow, and validation are all important features a java web developer needs to be addressed. None of these is made any easier given the HT
spring boot开发教程:使用@RestController 、@Controller注解 构造http get、http post请
spring boot使用 @Controller注解控制构造常见http get 、post请<em>求</em>案例 项目结构如下: pom.xml 配置 具体作用看代码注释。 &amp;amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;amp;gt; &amp;amp;lt;project xmlns=&amp;quot;http://maven.apache.org/P
Unable to establish loopback connection异常解决
先上异常: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImplInitializer.run(PipeImpl.java:125) [na:1.7.013]atsun.nio.ch.PipeImplInitializer.run(PipeImpl.java:
Spring Boot启动时抛出“Cannot assign requested address: bind”
Spring Boot<em>启动</em>时抛出“Cannot assign requested address: bind” 一、异常信息 2017-11-26 11:48:23.717 ERROR 4736 --- [ main] o.a.coyote.http11.Http11NioProtocol : Failed to start end point assoc
spring boot 源码解析7-SpringApplication#run第7步
前言SpringApplication#run第7步 只是实例化了一个FailureAnalyzers.主要是用来当出现异常时做一些分析处理.接下来我们就来分析一下分析 实例化FailureAnalyzers时将之前实例化的AnnotationConfigEmbeddedWebApplicationContext 传递给了构造器.代码如下:analyzers = new FailureAnalyze
tomcat启动报java.net.BindException: Address already in use: bind错误解决方案
继续学习Spring Boot,我新建了一个Spring Boot的项目 ,建好项目之后,进行测试时,出现了如下错误: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_77] at sun.nio.ch.Net.bind(Net.jav
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
Error starting ApplicationContext. Todisplay the conditions report re-run your application with 'debug' enabled.2018-05-13 08:31:45.031 ERROR 8756 ---[           main]o.s.b.d.LoggingFailureAnalysisRep...
Spring boot启动遇到问题
  本主出现<em>启动</em>错误查找到博客解决问题,纯属笔记,原文出处:Spring Boot几种<em>启动</em>问题的解决方案,致谢。 1.<em>启动</em>Spring报错:s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext Q:新...
Oracle 11g 新特性 – ACFS 说明
Oracle 官网对ACFS 的说明如下: Introduction to Oracle ACFS http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmfilesystem.htm 本文译自如下3篇blog: http://www.rampant-books.com/t_hunter_using_oracle_acfs_on_l...
eureka client 启动失败
今天在学习eureka时,<em>启动</em>eureka client一直失败,多次百度也没有找到正确的解决方发,最后发现日志中的报错清楚地说明了问题。。。 日志 : 2018-09-07 15:13:38.522 ERROR 17896 — [ main] o.apache.catalina.core.StandardService : Failed to start ...
Spring boot运行异常:org.apache.catalina.LifecycleException: Failed to start component
运行环境 JAVA: 可以在cmd中输入Java -version 查看自己的jdk版本,我这<em>里</em>使用的是 JDK 10 MAVEN: 可以在cmd中输入mvn -version 查看自己的maven版本,我这<em>里</em>使用的是 maven 3.5.3 运行环境确认过没问题,我们现在来看异常。 2018-10-11 11:21:44.005 ERROR 15340 --- [ res...
springboot 修改默认端口及application.properties常用配置
Spring boot 默认端口是8080,如果想要进行更改的话,只需要修改applicatoin.properties文件,在配置文件中加入: server.port=9090 其他常用配置: (一)、server配置 server.address #指定server绑定的地址 server.compression.enabled #是否开启压缩,默认为false. server.co...
SpringBoot + mybatis + mysql应用过程中问题记录-问题1(端口被占用)
问题: org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8082]]      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ~[tomcat-embed-core-8.5....
Spring Boot项目端口8080被占用的解决方法
错误提示: 2018-11-12 21:25:58.422 ERROR 15916 — [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : APPLICATION FAILED TO START Description: The Tomcat connector configured to listen on port 80...
Linux下 启动sh文件 运行spring boot
[size=medium] [color=red]仅为 自己工作中的笔记[/color] 1.chmod 空格&quot;+x&quot; 空格 你的sh文件名 (+x是一个整体,不要拆开) 2.输入&quot;./你的sh文件名&quot; 即可执行 举例: 1 chmod +x helloworld.sh 2 ./helloworld.sh (不行就在后面加上 start,stop,status,info) ...
spring boot 启动报错org.apache.catalina.LifecycleException: Protocol handler start failed
  . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\_...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这<em>里</em>暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
一个文件极小的迅雷软件下载
一个占用资源小,很实用的迅雷下载软件,好用方便操作,占用cpu小。。。 相关下载链接:[url=//download.csdn.net/download/ommo11/2838107?utm_source=bbsseo]//download.csdn.net/download/ommo11/2838107?utm_source=bbsseo[/url]
单片机仿真实现PID算法.pdf下载
单片机仿真实现PID算法.pdf 相关下载链接:[url=//download.csdn.net/download/taoshengjiu/4138547?utm_source=bbsseo]//download.csdn.net/download/taoshengjiu/4138547?utm_source=bbsseo[/url]
网盘搜索神器下载
### Ver:2014-03-06 ### [资源配置] 资源名称=%目录名称% 运行程序=play.exe 预先执行= 起始目录= 窗口模式=1 绝对路径=1 导注册表= [安装组件] DirectX=0 VC2005=1 VC2008=0 VC2010=0 物理驱动=0 NET11=0 NET20=0 NET35=0 NET40=0 XLive=0 AppLocale=0 [程序配置] 调试模式=0 窗口模式=2 [组件1] 组件简称=VC2005 组件名称=Microsoft Visual C++ 2005 组件版本=SP1 所需时间=15 文件1=%ProgramFiles% 相关下载链接:[url=//download.csdn.net/download/qq_16996029/7563193?utm_source=bbsseo]//download.csdn.net/download/qq_16996029/7563193?utm_source=bbsseo[/url]
相关热词 c# singleton c#中类的默认值是 c#各种进制之间的转换 c# 正则表达式保留汉字 c#后台跨域 c#基础代码大全 c#指定combox选择 c#关系 mono c# 相差毫秒 用c#做一个简易计算器
我们是很有底线的