maven deploy Tomcat失败

maven 远程部署Tomcat失败。


 [INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package @ hui-web <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ hui-web ---
[INFO] Deploying war to http://192.168.182.128:8081/myhui
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2078/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2102/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2062/33441 KB
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
[INFO] Retrying request
Uploading: http://192.168.182.128:8081/manager/html/deploy?path=%2Fmyhui
2072/33441 KB
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.202 s
[INFO] Finished at: 2016-08-01T09:59:39+08:00
[INFO] Final Memory: 32M/433M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project hui-web: Cannot invoke Tomcat manager: Connection reset by peer: socket write error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


4个回答

有可能是pom中依赖的资源 下载较慢 或者 就下载不下来

改成mvn tomcat7:redeploy 试试,mvn tomcat7:deploy只适用于第一次部署

u012043557
慧强杨 我就是第一次的,换了命令结果是一样的,是断传了,不知道有没有好的解决方案
3 年多之前 回复

tomcat-user.xml配置正确了么?需要配置manager-script角色



<user username="tomcat" password="tomcat" roles="manager-gui"/>
<user username="admin" password="admin" roles=" manager-script, manager-jmx, manager-status"/>

楼主后来解决了吗,我也遇到一样问题了,求解决方法

liaoranxi
小熊猫丶 真是世事无常,我已经解决了。是在tomcat的user-role配置时出的问题,后面从tomcat7里面复制过去,就可以了。
大约 2 年之前 回复
liaoranxi
小熊猫丶 我也遇到这个问题了,等我找到问题了,我就告诉你哈。
大约 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
maven 热部署远程tomcat 发布出错
本地的maven工程,想要热部署到远程tomcat服务器上,我按照网上的说法,首先在服务器端tomcat安装目录下修改conf / tomcat-user.xml文件,增加用户权限: ![图片说明](https://img-ask.csdn.net/upload/201611/29/1480403146_660407.png) 然后在本地maven库以及maven安装目录下的settings.xml文件中增加: ![图片说明](https://img-ask.csdn.net/upload/201611/29/1480403217_553579.png) 接着在pom.xml中配置插件 ![图片说明](https://img-ask.csdn.net/upload/201611/29/1480403092_39143.jpg) 网上说因为是第三方的插件,为了防止找不到库,还需要加上如下配置: ![图片说明](https://img-ask.csdn.net/upload/201611/29/1480403309_840518.jpg) 最后我使用package tomcat:deploy、package tomcat:redeploy命令,都提示如下错误 ![图片说明](https://img-ask.csdn.net/upload/201611/29/1480403188_250387.jpg) 不知是哪里出了问题
MAVEN求解No plugin found for prefix 'tomcat'
[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.jeecgframework:jeecg:war:3.5.2 [WARNING] 'dependencies.dependency.systemPath' for com.baidu.ueditor:ueditor:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/ueditor-1.1.1.jar will be unresolvable by dependent projects @ line 837, column 16 [WARNING] 'dependencies.dependency.systemPath' for com.baidu.ueditor:json:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/json.jar will be unresolvable by dependent projects @ line 844, column 16 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [WARNING] The POM for org.apache.tomcat.maven:tomcat6-maven-plugin:jar:2.2 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.tomcat.maven:tomcat6-maven-plugin:2.2: Plugin org.apache.tomcat.maven:tomcat6-maven-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.tomcat.maven:tomcat6-maven-plugin:jar:2.2 [WARNING] The POM for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 [WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.0: Plugin org.apache.maven.plugins:maven-site-plugin:3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.0 [WARNING] The POM for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 [WARNING] The POM for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 [WARNING] The POM for org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.1: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 [WARNING] The POM for org.apache.maven.plugins:maven-release-plugin:jar:2.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.0: Plugin org.apache.maven.plugins:maven-release-plugin:2.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-release-plugin:jar:2.0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.231s [INFO] Finished at: Wed Jul 01 11:04:21 CST 2015 [INFO] Final Memory: 2M/15M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix 'tomcat' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (E:\repo), apache.snapshots (http://repository.apache.org/content/groups/snapshots-group/), central (http://repo.maven.apache.org/maven2)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
maven tomct7 deploy 报错 配置都检查了没错呀
ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project myproject: Cannot invoke Tomcat manager: Software caused connection abort: socket write error -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project educloud-web: Cannot invoke Tomcat manager at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) 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:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) 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:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot invoke Tomcat manager at org.apache.tomcat.maven.plugin.tomcat7.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:141) at org.apache.tomcat.maven.plugin.tomcat7.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:68) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 25 more Caused by: java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:181) at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:115) at org.apache.tomcat.maven.common.deployer.TomcatManager$RequestEntityImplementation.writeTo(TomcatManager.java:880) at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:89) at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108) at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:117) at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:265) at org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:203) at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:236) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:682) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.tomcat.maven.common.deployer.TomcatManager.invoke(TomcatManager.java:742) at org.apache.tomcat.maven.common.deployer.TomcatManager.deployImpl(TomcatManager.java:705) at org.apache.tomcat.maven.common.deployer.TomcatManager.deploy(TomcatManager.java:388) at org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployWarMojo.deployWar(AbstractDeployWarMojo.java:85) at org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployMojo.invokeManager(AbstractDeployMojo.java:82) at org.apache.tomcat.maven.plugin.tomcat7.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:132) ... 28 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
maven自动部署项目到tomcat总是403 Access Denied
试了很多权限都不行,如 <user username="test" password="123" roles="admin-gui,manager-gui,admin,manager,manager-script,tomcat" /> 目前的情况是可以登录tomcat的manger页面,但是maven部署的链接是 http://localhost:8080/manager/html/deploy?path=%2Fmyweb 对于http://localhost:8080/manager/html/deploy这个链接的访问就会报403 错误。 请问该怎么设置呢?先谢谢了。 弄了一天了,我想哭。。。
winxp下maven 部署项目到tomcat下出现的问题?
我的开发环境是windowsxp +eclipse3.4+tomcat+maven2.0, 我在pom.xml配置好了tomcat的插件,启动tomcat后,运行mvn tomcat:deploy可以进行正常的部署,当时我修改了java代码或者配置文件,想重新部署到tomcat下时,遇到如下问题, Cannot invoke Tomcat manager: FAIL - Application already exists at path / 我再查看tomcat下的webapp目录,发现mvn tomcat:undeploy后项目的目录还存在,项目目录下只留下了 WEB-INF文件夹,WEB-INF文件夹下只存在lib文件夹, 这个文件夹不能被undeploy掉,导致不能重新部署,不知道大家有遇到这个问题的吗? 如果没有遇到此问题,麻烦能告诉我如何在用maven进行热部署吗? 感激不尽
maven使用cargo插件自动部署到tomcat8报错
[INFO] Installing /Users/lixiuming/project/MarkFriends/pom.xml to /Users/lixiuming/Documents/repository/com/atguigu/maven/MarkFriends/0.0.1-SNAPSHOT/MarkFriends-0.0.1-SNAPSHOT.pom [INFO] [INFO] --- cargo-maven2-plugin:1.4.13:run (cargo-run) @ MarkFriends --- [INFO] No container defined, using a default [jetty7x, installed] container [INFO] [en2.ContainerRunMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-jetty:jar:1.4.13 for container jetty7x [INFO] [talledLocalContainer] Jetty 7.6.16.v20140903 starting... [INFO] [stalledLocalDeployer] The undeployment phase of the redeploy action has failed: org.codehaus.cargo.container.ContainerException: Not supported [WARNING] [talledLocalContainer] org.codehaus.cargo.container.ContainerException: Failed to create a Jetty 7.6.16.v20140903 existing configuration [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.772 s [INFO] Finished at: 2018-01-06T16:48:32+08:00 [INFO] Final Memory: 15M/174M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.13:run (cargo-run) on project MarkFriends: Execution cargo-run of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.13:run failed: Failed to create a Jetty 7.6.16.v20140903 existing configuration: Failed to deploy [/Users/lixiuming/project/MarkFriends/target/AtgtuiguWeb.war] to [/Users/lixiuming/Downloads/apache-tomcat-8.0.38/webapps]: Failed to create file [/Users/lixiuming/Downloads/apache-tomcat-8.0.38/contexts/AtgtuiguWeb.xml]: No such file or directory -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
maven项目无法打包成jar包被Tomcat发布到wtpwebapps目录下对应项目的lib目录中
我有三个Maven模块项目A、B、C,B引用了A,C引用了B,C是web项目,当我把C项目add到Tomcat中并启动Tomcat后,项目报错,原因是A没有被打成jar包发布到项目的lib目录下,导致C找不到A的文件。可是当我把A Close Project之后,再次运行服务器,就成功了,项目A也成功打成jar包发布到lib中。请问有人遇到过这种问题吗?该如何解决? (PS.右击我的项目C点击Properties,查看Deployment Assembly,里面已经指明了项目B和项目A的Deploy Path是/WEB-INF/lib下的 B.jar 和 A.jar)
有知道这个问题怎么解决的吗?一直没有解决
[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.sikiedu:MavenSSM2:war:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.tomcat.maven:tomcat7-maven-plugin @ line 309, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] -----------------------< com.sikiedu:MavenSSM2 >------------------------ [INFO] Building MavenSSM2 0.0.1-SNAPSHOT [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MavenSSM2 --- [INFO] Deleting C:\Users\Mr.Li\Desktop\工作室\作业\Java\HelloMaven\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:deploy (default-cli) > package @ MavenSSM2 >>> [WARNING] The POM for cn.easyproject:ojdbc7:jar:12.1.0.2.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for javax.servlet:jstl:jar:1.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for commons-fileupload:commons-fileupload:jar:1.3.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MavenSSM2 --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ MavenSSM2 --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 8 source files to C:\Users\Mr.Li\Desktop\工作室\作业\Java\HelloMaven\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ MavenSSM2 --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ MavenSSM2 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ MavenSSM2 --- [INFO] [INFO] --- maven-war-plugin:2.2:war (default-war) @ MavenSSM2 --- [INFO] Packaging webapp [INFO] Assembling webapp [MavenSSM2] in [C:\Users\Mr.Li\Desktop\工作室\作业\Java\HelloMaven\target\MavenSSM2-0.0.1-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [C:\Users\Mr.Li\Desktop\工作室\作业\Java\HelloMaven\src\main\webapp] [INFO] Webapp assembled in [216 msecs] [INFO] Building war: C:\Users\Mr.Li\Desktop\工作室\作业\Java\HelloMaven\target\MavenSSM2-0.0.1-SNAPSHOT.war [INFO] WEB-INF\web.xml already added, skipping [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package @ MavenSSM2 <<< [INFO] [INFO] [INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ MavenSSM2 --- [INFO] Deploying war to http://localhost:8080/MavenSSM2 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.940 s [INFO] Finished at: 2019-07-29T15:56:55+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project MavenSSM2: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Idea启动tomcat发布项目失败
"D:\Program Files\apache-tomcat-7.0.0\bin\catalina.bat" run [2015-10-16 12:41:39,170] Artifact itcast-springmvc:war exploded: Server is not connected. Deploy is not available. Using CATALINA_BASE: "C:\Users\.IntelliJIdea12\system\tomcat\Unnamed_IdeaJworkspace" Using CATALINA_HOME: "D:\Program Files\apache-tomcat-7.0.0" Using CATALINA_TMPDIR: "D:\Program Files\apache-tomcat-7.0.0\temp" Using JRE_HOME: "D:\java\jdk1.7.0_51" Using CLASSPATH: "D:\Program Files\apache-tomcat-7.0.0\bin\bootstrap.jar;D:\Program Files\apache-tomcat-7.0.0\bin\tomcat-juli.jar" Listening for transport dt_socket at address: 9998 十月 16, 2015 12:41:40 上午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\jdk1.7.0_51\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;D:\IntelliJ IDEA 12.1.7\bin\..\.\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\VC6.0\Tools\WinNT;D:\VC6.0\MSDev98\Bin;D:\VC6.0\Tools;D:\VC98\bin;C:\Program Files (x86)\DBank\ClickUp;D:\java\jdk1.7.0_51\bin;D:\OracleInstantClient\instantclient_12_1;%MAVEN_HOME%\bin;%JAVA_HOME/bin%;%CXF_HOME%/bin;D:\carlibre\;D:\CRT\;D:\TortoiseSVN\bin;%MYSQL_HOME%;D:\Program Files\apache-tomcat-7.0.0;D:\VC6.0\Tools\WinNT;D:\VC6.0\MSDev98\Bin;D:\VC6.0\Tools;D:\VC98\bin;C:\Program Files (x86)\DBank\ClickUp;D:\java\jdk1.7.0_51\bin;D:\OracleInstantClient\instantclient_12_1;D:\Program Files\Maven\apache-maven-3.2.3\bin;%JAVA_HOME/bin%;D:\apache-cxf-3.0.2/bin;D:\Program Files\apache-tomcat-7.0.0/bin;D:\Redis;D:\Program Files\MySql Server\bin;;d:\intellij idea 12.1.7\jre\jre\bin;. 十月 16, 2015 12:41:40 上午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 885 ms 十月 16, 2015 12:41:40 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 十月 16, 2015 12:41:40 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.0 十月 16, 2015 12:41:40 上午 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-80 十月 16, 2015 12:41:40 上午 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-80 十月 16, 2015 12:41:40 上午 org.apache.coyote.ajp.AjpProtocol init 信息: Initializing Coyote AJP/1.3 on ajp-8009 十月 16, 2015 12:41:40 上午 org.apache.coyote.ajp.AjpProtocol start 信息: Starting Coyote AJP/1.3 on ajp-8009 十月 16, 2015 12:41:40 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 77 ms 十月 16, 2015 12:41:50 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory docs 十月 16, 2015 12:41:51 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory examples 十月 16, 2015 12:41:51 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory host-manager 十月 16, 2015 12:41:51 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory manager 十月 16, 2015 12:41:51 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory ROOT
遇到了这个问题,好几天了,,求大神解决
------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.753 s [INFO] Finished at: 2019-07-19T15:44:20+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project MavenSSM2: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
spring项目 tomcat一直404 status report 疑难杂症求助
![图片说明](https://img-ask.csdn.net/upload/201909/18/1568774997_389252.png) ![图片说明](https://img-ask.csdn.net/upload/201909/18/1568775004_510870.png) 完整日记 * E:\JAVA\apache-tomcat-7.0.90\bin\catalina.bat run * [2019-09-18 10:47:32,581] Artifact SSMExample: Waiting for server connection to start artifact deployment... * Using CATALINA_BASE: "C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_41_SSMExample" * Using CATALINA_HOME: "E:\JAVA\apache-tomcat-7.0.90" * Using CATALINA_TMPDIR: "E:\JAVA\apache-tomcat-7.0.90\temp" * Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0" * Using CLASSPATH: "E:\JAVA\apache-tomcat-7.0.90\bin\bootstrap.jar;E:\JAVA\apache-tomcat-7.0.90\bin\tomcat-juli.jar" * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Server version: Apache Tomcat/7.0.90 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Server built: Jul 2 2018 17:05:37 UTC * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Server number: 7.0.90.0 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: OS Name: Windows 8.1 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: OS Version: 6.3 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Architecture: amd64 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Java Home: C:\Program Files\Java\jdk1.8.0\jre * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: JVM Version: 1.8.0-b132 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: JVM Vendor: Oracle Corporation * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: CATALINA_BASE: C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_41_SSMExample * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: CATALINA_HOME: E:\JAVA\apache-tomcat-7.0.90 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_41_SSMExample\conf\logging.properties * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcom.sun.management.jmxremote= * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_41_SSMExample\jmxremote.password * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_41_SSMExample\jmxremote.access * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dignore.endorsed.dirs= * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_41_SSMExample * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Dcatalina.home=E:\JAVA\apache-tomcat-7.0.90 * 九月 18, 2019 10:47:38 上午 org.apache.catalina.startup.VersionLoggerListener log * 信息: Command line argument: -Djava.io.tmpdir=E:\JAVA\apache-tomcat-7.0.90\temp * 九月 18, 2019 10:47:38 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent * 信息: Loaded APR based Apache Tomcat Native library 1.2.17 using APR version 1.6.3. * 九月 18, 2019 10:47:38 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent * 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. * 九月 18, 2019 10:47:39 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL * 信息: OpenSSL successfully initialized (OpenSSL 1.0.2o 27 Mar 2018) * 九月 18, 2019 10:47:39 上午 org.apache.coyote.AbstractProtocol init * 信息: Initializing ProtocolHandler ["http-apr-8081"] * 九月 18, 2019 10:47:39 上午 org.apache.coyote.AbstractProtocol init * 信息: Initializing ProtocolHandler ["ajp-apr-8009"] * 九月 18, 2019 10:47:39 上午 org.apache.catalina.startup.Catalina load * 信息: Initialization processed in 1745 ms * 九月 18, 2019 10:47:40 上午 org.apache.catalina.core.StandardService startInternal * 信息: Starting service Catalina * 九月 18, 2019 10:47:40 上午 org.apache.catalina.core.StandardEngine startInternal * 信息: Starting Servlet Engine: Apache Tomcat/7.0.90 * 九月 18, 2019 10:47:40 上午 org.apache.coyote.AbstractProtocol start * 信息: Starting ProtocolHandler ["http-apr-8081"] * 九月 18, 2019 10:47:40 上午 org.apache.coyote.AbstractProtocol start * 信息: Starting ProtocolHandler ["ajp-apr-8009"] * 九月 18, 2019 10:47:40 上午 org.apache.catalina.startup.Catalina start * 信息: Server startup in 119 ms * Connected to server * [2019-09-18 10:47:40,237] Artifact SSMExample: Artifact is being deployed, please wait... * [2019-09-18 10:47:40,638] Artifact SSMExample: Artifact is deployed successfully * [2019-09-18 10:47:40,639] Artifact SSMExample: Deploy took 402 milliseconds * 九月 18, 2019 10:47:50 上午 org.apache.catalina.startup.HostConfig deployDirectory * 信息: Deploying web application directory E:\JAVA\apache-tomcat-7.0.90\webapps\manager * 九月 18, 2019 10:47:50 上午 org.apache.catalina.startup.HostConfig deployDirectory * 信息: Deployment of web application directory E:\JAVA\apache-tomcat-7.0.90\webapps\manager has finished in 119 ms 主要是后面几项高亮了 求助各位大神,谢谢
使用jenkins进行自动化部署到tomcat deploy-to 插件,未打印任务后续操作日志?
![图片说明](https://img-ask.csdn.net/upload/201901/03/1546503413_43859.png)我已经配置了构建后操作,但问题是我的日志? ![图片说明](https://img-ask.csdn.net/upload/201901/03/1546503524_603795.png) 直接就没有任何构建后操作,然后就结束了...这是什么情况?没搞明白。 插件是deploy-to tomcat 是8 有配置7 和8都不行。 现在我感觉就是插件有问题,因为构建后操作都未打印,如果有报错这个还好说,哪里配置出错,先行就是直接提示成功,但未做我想要做的事情。求jenkins高手指点一下。
运行报错,大佬们帮忙看看什么原因java.util.concurrent.ExecutionException
"C:\Program Files\Java\jdk1.8.0_201\bin\java" "-Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\Desktop\travel - 副本" -Dfile.encoding=gb2312 "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\lib\idea_rt.jar=51249:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\bin" -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.6 tomcat7:run [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for cn.itcast:travel:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 131, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building travel 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) > process-classes @ travel >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ travel --- [WARNING] Using platform encoding (gb2312 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ travel --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 40 source files to C:\Users\Administrator\Desktop\travel - 副本\target\classes [WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 某些输入文件使用了未经检查或不安全的操作。 [WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) < process-classes @ travel <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ travel --- [INFO] Running war on http://localhost:80/travel [INFO] Using existing Tomcat server configuration at C:\Users\Administrator\Desktop\travel - 副本\target\tomcat [INFO] create webapp with contextPath: /travel 七月 21, 2019 5:00:20 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-80"] 七月 21, 2019 5:00:20 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Tomcat 七月 21, 2019 5:00:20 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.37 七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/travel]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/travel]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 6 more Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> #write/* in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3223) at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3198) at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1366) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1353) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more 七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:335) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1091) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:512) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.989 s [INFO] Finished at: 2019-07-21T17:00:21+08:00 [INFO] Final Memory: 32M/279M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:run (default-cli) on project travel: Could not start Tomcat: Failed to start component [StandardServer[-1]]: Failed to start component [StandardService[Tomcat]]: Failed to start component [StandardEngine[Tomcat]]: A child container failed during start -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Process finished with exit code 1
eclipse下的tomcat部署
为什么eclipse用tomcat一直部署不了项目 而tomcat目录下的webapps却有这项目 三月 23, 2015 9:16:21 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:homework' did not find a matching property. 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version: Apache Tomcat/8.0.20 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server built: Feb 15 2015 18:10:42 UTC 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server number: 8.0.20.0 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows 8.1 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Version: 6.3 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Architecture: amd64 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Java Home: C:\Program Files\java\jre1.8.0_31 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Version: 1.8.0_31-b13 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Vendor: Oracle Corporation 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dwtp.deploy=E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\endorsed 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dfile.encoding=GBK 三月 23, 2015 9:16:21 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\java\jre1.8.0_31\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files/Java/jre1.8.0_31/bin/server;C:/Program Files/Java/jre1.8.0_31/bin;C:/Program Files/Java/jre1.8.0_31/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.8.0_40\bin;D:\maven\maven\apache-maven-3.1.0\bin;.;;E:\eclipse luna\eclipse-jee-luna-SR2-win32-x86_64\eclipse;;.;;. 三月 23, 2015 9:16:21 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-nio-8080"] 三月 23, 2015 9:16:21 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 信息: Using a shared selector for servlet write/read 三月 23, 2015 9:16:21 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-nio-8009"] 三月 23, 2015 9:16:21 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 信息: Using a shared selector for servlet write/read 三月 23, 2015 9:16:21 上午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1080 ms 三月 23, 2015 9:16:21 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 三月 23, 2015 9:16:21 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.0.20 三月 23, 2015 9:16:22 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom 信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [172] milliseconds. 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\docs 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\docs has finished in 47 ms 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\examples 三月 23, 2015 9:16:22 上午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 三月 23, 2015 9:16:22 上午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\examples has finished in 520 ms 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\host-manager 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\host-manager has finished in 62 ms 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\manager 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\manager has finished in 125 ms 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\ROOT 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\tomcat8 eclipse\apache-tomcat-8.0.20-windows-x64\apache-tomcat-8.0.20\webapps\ROOT has finished in 32 ms 三月 23, 2015 9:16:22 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-nio-8080"] 三月 23, 2015 9:16:22 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-nio-8009"] 三月 23, 2015 9:16:22 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 1367 ms 不会加载项目homework。 ![图片说明](https://img-ask.csdn.net/upload/201503/23/1427073742_47902.png) 但是在tomcat目录下的webapps却有这个项目
maven错误:Could not find goal 'compile' in plugin
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.258s [INFO] Finished at: Sun Aug 27 20:30:18 CST 2017 [INFO] Final Memory: 6M/16M [INFO] ------------------------------------------------------------------------ [ERROR] Could not find goal 'compile' in plugin org.codehaus.mojo:tomcat-maven-plugin:1.1 among available goals run-war-only, redeploy, roles, run-war, deploy-only, help, sessions, deploy, run, start, exploded, stop, inplace, reload, resources, shutdown, list, undeploy, info -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
自学MVC做的JAVAEE网站,遇到404求救
![图片说明](https://img-ask.csdn.net/upload/201911/22/1574424804_499937.png) ![图片说明](https://img-ask.csdn.net/upload/201911/22/1574424813_768240.png) 不知道如何解决 很绝望 ![图片说明](https://img-ask.csdn.net/upload/201911/22/1574424869_990973.png) 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version: Apache Tomcat/8.5.41 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server built: May 4 2019 09:17:16 UTC 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server number: 8.5.41.0 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows 8.1 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Version: 6.3 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Architecture: amd64 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Java Home: C:\Program Files\Java\jdk1.8.0\jre 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Version: 1.8.0-b132 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Vendor: Oracle Corporation 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: D:\JAVA others\apache-tomcat-8.5.41 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: D:\JAVA others\apache-tomcat-8.5.41 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=D:\JAVA others\apache-tomcat-8.5.41 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=D:\JAVA others\apache-tomcat-8.5.41 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dwtp.deploy=D:\JAVA others\apache-tomcat-8.5.41\webapps 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=D:\JAVA others\apache-tomcat-8.5.41\endorsed 十一月 22, 2019 8:08:04 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dfile.encoding=GBK 十一月 22, 2019 8:08:04 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.8.0/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0/bin/../jre/lib/amd64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\JAVA others\apache-maven-3.6.1\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm;E:\Mysql\mysql-5.7.27-winx64\\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Autodesk\Backburner\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm;C:\Users\Administrator\Desktop;;.] 十一月 22, 2019 8:08:04 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-nio-8080"] 十一月 22, 2019 8:08:04 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 信息: Using a shared selector for servlet write/read 十一月 22, 2019 8:08:05 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-nio-8009"] 十一月 22, 2019 8:08:05 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 信息: Using a shared selector for servlet write/read 十一月 22, 2019 8:08:05 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 686 ms 十一月 22, 2019 8:08:05 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Catalina] 十一月 22, 2019 8:08:05 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.5.41 十一月 22, 2019 8:08:05 下午 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. 十一月 22, 2019 8:08:10 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom 警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5,002] milliseconds. 十一月 22, 2019 8:08:10 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\docs] 十一月 22, 2019 8:08:10 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\docs] has finished in [19] ms 十一月 22, 2019 8:08:10 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\examples] 十一月 22, 2019 8:08:10 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 十一月 22, 2019 8:08:10 下午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 十一月 22, 2019 8:08:10 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@1a91efec') 十一月 22, 2019 8:08:10 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\examples] has finished in [306] ms 十一月 22, 2019 8:08:10 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\host-manager] 十一月 22, 2019 8:08:11 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\host-manager] has finished in [26] ms 十一月 22, 2019 8:08:11 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\manager] 十一月 22, 2019 8:08:11 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\manager] has finished in [31] ms 十一月 22, 2019 8:08:11 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\ROOT] 十一月 22, 2019 8:08:11 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\JAVA others\apache-tomcat-8.5.41\webapps\ROOT] has finished in [19] ms 十一月 22, 2019 8:08:11 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-nio-8080"] 十一月 22, 2019 8:08:11 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-nio-8009"] 十一月 22, 2019 8:08:11 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 6062 ms ![图片说明](https://img-ask.csdn.net/upload/201911/22/1574424946_347972.png)![图片说明](https://img-ask.csdn.net/upload/201911/22/1574424951_857846.png)
eclipse中启动Tomcat无法访问我自己的JSP文件
我在eclipse中启动Tomcat8.5之后,运行maven-webapp项目下的JSP文件,总是报404错误,但是访问http://localhost:8080/地址却可以正常访问,请问是怎么回事啊? 补充:server中的server locations已经改成了 use Tomcat installation deploy path 里面也改成了 webspps
Jenkins 2.73.3 版本自动部署到Tomcat报错
这是我的配置:![图片说明](https://img-ask.csdn.net/upload/201711/13/1510557566_437248.png) 这是tomcat-users.xml配置: <role rolename="manager"/> <role rolename="manager-script"/> <role rolename="manager-gui"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="admin" roles="manager,manager-gui,manager-script,manager-jmx,manager-status"/> 以下是报错信息: Deploying C:\Users\Administrator\.jenkins\workspace\demo\target\dfs.war to container Tomcat 8.x Remote with context ERROR: Build step failed with exception org.codehaus.cargo.container.ContainerException: The [cargo.remote.username] and [cargo.remote.password] properties are mandatory and need to be defined in your configuration. at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.createManager(AbstractTomcatManagerDeployer.java:318) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.getTomcatManager(AbstractTomcatManagerDeployer.java:83) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:173) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:147) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:117) at hudson.FilePath.act(FilePath.java:998) at hudson.FilePath.act(FilePath.java:976) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627) at hudson.model.Run.execute(Run.java:1762) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421) Build step 'Deploy war/ear to a container' marked build as failure Finished: FAILURE
maven构建的webapp如何发布到tomcat上进行测试和开发
原来用eclipse默认的ant构建,在tomcat的conf/caiteria/localhost/...xml中指定了该项目的WebRoot即可,这样源代码做一点改动的话服务器也会随之改动,很方便做测试和开发。 但是现在用了ant构建,再按原来的模式会提示找不到指定的类文件,其实也的确如此,classpath下的lib都是空的,那我就搞不明白了这样的maven项目测试开发岂不很麻烦了,每次都要打包成war发布,或者用eclipse的deploy。 我想各位高手肯定有好的解决方案的,所以请教一下
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、PDF搜索网站推荐 对于大部
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入  假设现有4个人
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
写在前面: 我是 扬帆向海,这个昵称来源于我的名字以及女朋友的名字。我热爱技术、热爱开源、热爱编程。技术是开源的、知识是共享的。 这博客是对自己学习的一点点总结及记录,如果您对 Java、算法 感兴趣,可以关注我的动态,我们一起学习。 用知识改变命运,让我们的家人过上更好的生活。 目录一、杨辉三角的介绍二、杨辉三角的算法思想三、代码实现1.第一种写法2.第二种写法 一、杨辉三角的介绍 百度
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
SQL-小白最佳入门sql查询一
一 说明 如果是初学者,建议去网上寻找安装Mysql的文章安装,以及使用navicat连接数据库,以后的示例基本是使用mysql数据库管理系统; 二 准备前提 需要建立一张学生表,列分别是id,名称,年龄,学生信息;本示例中文章篇幅原因SQL注释略; 建表语句: CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // dosho
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方
致 Python 初学者
文章目录1. 前言2. 明确学习目标,不急于求成,不好高骛远3. 在开始学习 Python 之前,你需要做一些准备2.1 Python 的各种发行版2.2 安装 Python2.3 选择一款趁手的开发工具3. 习惯使用IDLE,这是学习python最好的方式4. 严格遵从编码规范5. 代码的运行、调试5. 模块管理5.1 同时安装了py2/py35.2 使用Anaconda,或者通过IDE来安装模
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,
程序员:我终于知道post和get的区别
IT界知名的程序员曾说:对于那些月薪三万以下,自称IT工程师的码农们,其实我们从来没有把他们归为我们IT工程师的队伍。他们虽然总是以IT工程师自居,但只是他们一厢情愿罢了。 此话一出,不知激起了多少(码农)程序员的愤怒,却又无可奈何,于是码农问程序员。 码农:你知道get和post请求到底有什么区别? 程序员:你看这篇就知道了。 码农:你月薪三万了? 程序员:嗯。 码农:你是怎么做到的? 程序员:
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
      11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI 算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下
日均350000亿接入量,腾讯TubeMQ性能超过Kafka
整理 | 夕颜出品 | AI科技大本营(ID:rgznai100) 【导读】近日,腾讯开源动作不断,相继开源了分布式消息中间件TubeMQ,基于最主流的 OpenJDK8开发的
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车? 某胡同口的煎饼摊一年能卖出多少个煎饼? 深圳有多少个产品经理? 一辆公交车里能装下多少个乒乓球? 一
相关热词 c#处理浮点数 c# 生成字母数字随机数 c# 动态曲线 控件 c# oracle 开发 c#选择字体大小的控件 c# usb 批量传输 c#10进制转8进制 c#转base64 c# 科学计算 c#下拉列表获取串口
立即提问