使用maven部署tomcat失败问题

1.首先当webApps目下没有war包的时候,我是可以部署成功的
2.当我部署过一次后,这时在webApps目录下出现一个war包和一个被解压的项目文件
3.然后我再使用maven部署的时候,虽然显示成功,但是项目文件根本就没有改变,说明根本就没有部署成功

这时候我做了尝试
我删除掉了war包,再次部署,发现可以成功了!
我的问题是怎么可是不删除war包就可以部署成功,或者tomcat在部署成功后删掉war的相关配置
首次提问,希望得到大家的回答!

3个回答

问题已经解决:
tomcat/conf/context.xml的context 标签上 添加 “antiJARLocking”, “antiResourceLocking” 属性,并都设置为 true,即可!
'''xml

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->

<!-- Uncomment this to enable Comet connection tacking (provides events
     on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->


'''

上面的有错 重新贴一下

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->

<!-- Uncomment this to enable Comet connection tacking (provides events
     on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->

我去 关键的代码贴不上去 再试一次

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
IDEA中maven工程无法部署到tomcat的问题

![图片说明](https://img-ask.csdn.net/upload/201703/09/1489026513_933777.png)网上类似这样的教程很多,什么maven部署Tomcat的,这样那样的,应有尽有 ,对照着试了试,可还是发现有这样的问题,问项目经理后,项目经理有十年的开发经验,说,这个项目存在的问题就是没法再本地启动,必须要有专门的服务器来搭建这个项目,我听的不是很懂。希望有大神来详细的教教我。![图片说明](https://img-ask.csdn.net/upload/201703/09/1489026525_171701.png)

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 ```

关于maven远程部署多模块web项目到tomcat失败问题

主模块: ``` <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>DeployTest</groupId> <artifactId>DeployTest</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <modules> <module>web2</module> <module>service</module> </modules> <build> <finalName>DeployTest</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> </project> ``` service模块: ``` <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>DeployTest</artifactId> <groupId>DeployTest</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>service</artifactId> <groupId>service</groupId> <version>1.0</version> </project> ``` web2模块: ``` <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <artifactId>DeployTest</artifactId> <groupId>DeployTest</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>web2</artifactId> <packaging>war</packaging> <name>web2 Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>service</groupId> <artifactId>service</artifactId> <version>1.0</version> </dependency> </dependencies> <build> <finalName>web2</finalName> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <url>http://192.168.1.109:8080/manager/text</url> <username>admin</username> <password>admin</password> <server>tomcat</server> <path>/DeployTest</path> </configuration> </plugin> </plugins> </build> </project> ``` 运行tomcat7:redeploy时抛出异常,有关tomcat7-maven-plugin插件都会抛出异常,这里写的很明白是因为没找到service的jar,但是问题是他是子模块,我不需要这个子模块跑到本地仓库或者远程仓库啊,我只需要他在WEB-INF下的lib里就可以了,他现在是在的。求解决: ``` [ERROR] Failed to execute goal on project web2: Could not resolve dependencies for project DeployTest:web2:war:1.0-SNAPSHOT: Failure to find service:service:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project web2: Could not resolve dependencies for project DeployTest:web2:war:1.0-SNAPSHOT: Failure to find service:service:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project DeployTest:web2:war:1.0-SNAPSHOT: Failure to find service:service:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 32 more ``` 运行tomcat7:redeploy时抛出异常,有关tomcat7-maven-plugin插件都会抛出异常,这里写的很明白是因为没找到service的jar,但是问题是他是子模块,我不需要这个子模块跑到本地仓库或者远程仓库啊,我只需要他在WEB-INF下的lib里就可以了,他现在是在的。求解决

tomcat启动无法加载部署的maven?

tomcat: ![图片说明](https://img-ask.csdn.net/upload/201708/28/1503907113_67123.png) 然后启动的时候只用了810ms,很明显项目没加进来。为什么加载不了?

求解答,IDEA Maven项目Tomcat运行后404问题?

### 学校作业,第一堂课,让我们运行出一个Maven程序。 <br><br> **一开始是这个问题,** <br><br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570483_381095.png) <br><br> **而同学的有,** <br><br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570368_230122.png) <br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570388_323593.png) <br><br> **后来我解决了一下,但是添加进来的名字不一样(我也不知道这是不是正确的**)<br><br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570271_172788.png) <br> <br> **之后运行就是404问题**<br> <br> **以下是日志文件** <br><br> ``` C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\catalina.bat run [2020-04-22 11:24:34,227] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4" Using CATALINA_HOME: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24" Using CATALINA_TMPDIR: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_231" Using CLASSPATH: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\bootstrap.jar;C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tomcat-juli.jar" 22-Apr-2020 23:24:35.550 警告 [main] org.apache.catalina.core.AprLifecycleListener.init 基于APR的本地库加载失败.错误报告为[C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform] java.lang.UnsatisfiedLinkError: C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at org.apache.tomcat.jni.Library.<init>(Library.java:42) at org.apache.tomcat.jni.Library.initialize(Library.java:206) at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:198) at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:107) at org.apache.catalina.connector.Connector.<init>(Connector.java:80) at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:64) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1173) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1431) at org.apache.catalina.startup.Catalina.load(Catalina.java:566) at org.apache.catalina.startup.Catalina.load(Catalina.java:607) 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.apache.catalina.startup.Bootstrap.load(Bootstrap.java:304) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474) 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.24 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.构建: Aug 14 2019 21:16:42 UTC 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.24.0 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 结.造: amd64 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: C:\Program Files\Java\jdk1.8.0_231\jre 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本: 1.8.0_231-b11 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4\conf\logging.properties 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4\jmxremote.password 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4\jmxremote.access 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\temp 22-Apr-2020 23:24:35.892 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 22-Apr-2020 23:24:35.910 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["ajp-nio-8009"] 22-Apr-2020 23:24:35.918 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[470]毫秒内初始化 22-Apr-2020 23:24:35.942 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 22-Apr-2020 23:24:35.942 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.24] 22-Apr-2020 23:24:35.953 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 22-Apr-2020 23:24:35.962 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["ajp-nio-8009"] 22-Apr-2020 23:24:35.964 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in [45] milliseconds Connected to server [2020-04-22 11:24:36,299] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Artifact is being deployed, please wait... 23:24:42,173 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 23:24:42,174 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 23:24:42,177 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/logback.xml] 23:24:42,386 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 23:24:42,400 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 23:24:42,419 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 23:24:42,552 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG 23:24:42,552 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 23:24:42,554 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 23:24:42,556 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@46cec746 - Registering current configuration as safe fallback point 23:24:42,102 |-INFO in ch.qos.logback.classic.servlet.LogbackServletContainerInitializer@306ac233 - Adding an instance of class ch.qos.logback.classic.servlet.LogbackServletContextListener to the current web-app 22-Apr-2020 23:24:42.774 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 22-Apr-2020 23:24:43.305 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization started 22-Apr-2020 23:24:43.385 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 22-Apr-2020 23:24:43.532 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\StudentManager_SSM2_1_0_SNAPSHOT_war\WEB-INF\classes\spring-mvc.xml] 22-Apr-2020 23:24:44.085 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\StudentManager_SSM2_1_0_SNAPSHOT_war\WEB-INF\classes\spring-mybatis.xml] 22-Apr-2020 23:24:44.741 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.context.support.PropertySourcesPlaceholderConfigurer.loadProperties Loading properties file from class path resource [jdbc.properties] 22-Apr-2020 23:24:44.760 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.<init> JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 23:24:45.001 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter. 23:24:45.156 [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - Reading VM config for path list /com/mchange/v2/log/default-mchange-log.properties, /mchange-commons.properties, /c3p0.properties, hocon:/reference,/application,/c3p0,/, /mchange-log.properties, / 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier '/mchange-commons.properties' could not be found. Skipping. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier '/c3p0.properties' could not be found. Skipping. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier 'hocon:/reference,/application,/c3p0,/' could not be found. Skipping. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier '/mchange-log.properties' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier '/mchange-commons.properties' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier '/mchange-log.properties' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier 'hocon:/reference,/application,/c3p0,/' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier '/c3p0.properties' could not be found. Skipping. 23:24:45.307 [RMI TCP Connection(5)-127.0.0.1] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] 23:24:45.359 [RMI TCP Connection(5)-127.0.0.1] DEBUG c.m.v.c.m.DynamicPooledDataSourceManagerMBean - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yua91932x55kb71fk|32540122,name=1hge0yua91932x55kb71fk|32540122 registered. 23:24:45.389 [RMI TCP Connection(5)-127.0.0.1] DEBUG c.m.v.c.m.DynamicPooledDataSourceManagerMBean - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yua91932x55kb71fk|32540122,name=1hge0yua91932x55kb71fk|32540122 unregistered, in order to be reregistered after update. 23:24:45.390 [RMI TCP Connection(5)-127.0.0.1] DEBUG c.m.v.c.m.DynamicPooledDataSourceManagerMBean - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yua91932x55kb71fk|32540122,name=1hge0yua91932x55kb71fk|32540122 registered. 23:24:45.560 [RMI TCP Connection(5)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration 23:24:45.758 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VFS 23:24:45.758 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.JBoss6VFS - JBoss 6 VFS API is not available in this environment. 23:24:45.762 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VirtualFile 23:24:45.764 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment. 23:24:45.764 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Using VFS adapter org.apache.ibatis.io.DefaultVFS 23:24:45.768 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/ 23:24:45.768 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/ 23:24:45.789 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: Student.class 23:24:45.791 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Listing file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/ 23:24:45.791 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/Student.class 23:24:45.791 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/Student.class 23:24:45.792 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: 漱壕 1 7 23:24:45.793 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class cn.wmyskxz.entity.Student matches criteria [is assignable to Object] 23:24:45.796 [RMI TCP Connection(5)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Scanned package: 'cn.wmyskxz.entity' for aliases 22-Apr-2020 23:24:45.959 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\manager] 22-Apr-2020 23:24:46.043 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\manager] has finished in [85] ms 23:24:46.101 [RMI TCP Connection(5)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\StudentManager_SSM2_1_0_SNAPSHOT_war\WEB-INF\classes\mapper\StudengDao.xml]' 22-Apr-2020 23:24:46.641 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/addStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.addStudent(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 22-Apr-2020 23:24:46.644 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/editStudent]}" onto public org.springframework.web.servlet.ModelAndView cn.wmyskxz.controller.StudentController.editStudent(int) 22-Apr-2020 23:24:46.644 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/updateStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.updateStudent(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 22-Apr-2020 23:24:46.645 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/listStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.listStudent(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 22-Apr-2020 23:24:46.646 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/deleteStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.deleteStudent(int) 22-Apr-2020 23:24:47.659 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 22-Apr-2020 23:24:47.822 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 22-Apr-2020 23:24:47.961 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0' 22-Apr-2020 23:24:48.284 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization completed in 4979 ms [2020-04-22 11:24:48,347] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Artifact is deployed successfully [2020-04-22 11:24:48,347] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Deploy took 12,048 milliseconds C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\catalina.bat stop Using CATALINA_BASE: "C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4" Using CATALINA_HOME: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24" Using CATALINA_TMPDIR: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_231" Using CLASSPATH: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\bootstrap.jar;C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tomcat-juli.jar" 22-Apr-2020 23:24:57.369 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance. 22-Apr-2020 23:24:57.369 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 22-Apr-2020 23:24:57.968 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 22-Apr-2020 23:24:58.569 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 22-Apr-2020 23:24:58.573 信息 [main] org.springframework.web.context.support.XmlWebApplicationContext.doClose Closing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 23:24:58,576 |-INFO in ch.qos.logback.classic.servlet.LogbackServletContextListener@7334b984 - About to stop ch.qos.logback.classic.LoggerContext [default] 22-Apr-2020 23:24:58.598 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 22-Apr-2020 23:24:58.599 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] 22-Apr-2020 23:24:58.600 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["http-nio-8080"] 22-Apr-2020 23:24:58.600 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["ajp-nio-8009"] Disconnected from server ```

eclipse上导入maven项目在tomcat8上运行,报错

![图片说明](https://img-ask.csdn.net/upload/201706/30/1498800672_650933.png)

SVN导入Maven项目,Tomcat启动报错

![图片说明](https://img-ask.csdn.net/upload/201612/14/1481690572_682210.png) 别的人导入都可以,我怎么弄都不行。。。。

maven 仓库下载本地失败问题

![图片说明](https://img-ask.csdn.net/upload/201701/05/1483583584_848569.png)如图,从gitlab上checkout下的公司项目,下载maven仓库包依赖时一直出错,重新删除项目和本地仓库,改变了项目路径和本地仓库路径后下载还是不行。尝试拷贝其他机器已下载可以用的包到我本地、重新安装配置java、maven均未解决,总觉得是某个小地方的失误,但一直没有发现:-( 求赐教!

maven聚合ssm框架启动Tomcat不报错

ssm 用maven做的聚合项目为啥编译不了controller,进入不了jsp(除了index)

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项目刚用tomcat运行就出现错误,求解决!

这是错误 ![图片说明](https://img-ask.csdn.net/upload/201711/21/1511252118_326737.png) ![图片说明](https://img-ask.csdn.net/upload/201711/21/1511252145_219742.png) ![图片说明](https://img-ask.csdn.net/upload/201711/21/1511252164_502437.png) 这是我的maven项目 ![图片说明](https://img-ask.csdn.net/upload/201711/21/1511252320_343864.png) 这是我按照网友说的在pom中增加的配置,但是没有用 ![图片说明](https://img-ask.csdn.net/upload/201711/21/1511252361_537492.png)

关于Eclipse创建Maven项目失败的问题!!!

![图片说明](https://img-ask.csdn.net/upload/201901/08/1546958015_975636.png)![图片说明](https://img-ask.csdn.net/upload/201901/08/1546958030_777052.png) 创建Maven项目就这样,Setting里面刚配的阿里云!求教

idea中配置的tomcat有问题

项目是javaEE项目,用的SSM框架,使用maven做jar包管理,在eclipse中使用tomcat所有都正常没有报错 在idea中配置tomcat后启动没有任何报错,访问初始页面也都正常,但一但访问需要和数据库交互的页面,也就是代码走到mybatis相关的代码就会抛出如下异常 ``` at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:625) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:498) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1372) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) ``` 一直找不到错误原因,后来发现就算我数据库服务没有起,项目启动依旧是正常的,不会报错,于是我就将idea中该项目下target下编译的war包考了出来,放在了本地的tomcat中,开启数据库服务,启动本地tomcat,项目的所有功能都是正常的,感觉上去好像是idea中tomcat配置出了问题,下面是idea中tomcat实例的配置,各位大佬帮我找找是不是哪有问题 ![图片说明](https://img-ask.csdn.net/upload/201904/12/1555058831_618532.png)![图片说明](https://img-ask.csdn.net/upload/201904/12/1555058836_436065.png)

maven项目打包发布到本地tomcat 启动报错

[ERROR] [2017-12-28 14:42:39][org.springframework.web.context.ContextLoader]Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hotelDao' defined in file [C:\apache-tomcat-7.0.52\webapps\4G\WEB-INF\classes\spring-dao.xml]: Cannot resolve reference to bean 'datastore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datastore' defined in file [C:\apache-tomcat-7.0.52\webapps\4G\WEB-INF\classes\spring-morphia.xml]: Cannot resolve reference to bean 'morphia' while setting bean property 'morphia'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'morphia' defined in file [C:\apache-tomcat-7.0.52\webapps\4G\WEB-INF\classes\spring-morphia.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class

求助大佬们,springMVC运行启动Tomcat失败报错“子容器启动失败”怎么解决?

相应的版本是Tomcat9.0,jdk10.0,spring5.0。 jar包检查过应该都下载完毕了, 截取部分异常如下 ``` 严重: 子容器启动失败 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 初始化组件[org.apache.catalina.webresources.JarResourceSet@35beb15e]失败。 Caused by: org.apache.catalina.LifecycleException: 初始化组件[org.apache.catalina.webresources.JarResourceSet@35beb15e]失败。 Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature) Caused by: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature) WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/D:/apache-tomcat-9.0.27/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release ``` web.xml文件中 ``` <url-pattern>/</url-pattern> ``` 求助大神们帮忙,非常感谢!!!

maven第一次创建项目失败

![图片说明](https://img-ask.csdn.net/upload/202002/11/1581417808_582762.png) maven第一次创建项目,仓库是我创建的新文件夹,并且在setting.xml中配置了,但是当我创建项目时就会报错Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1这是什么原因 我上网搜报这种错误是因为配置位置写错,当我已经仔细检查过了,好像没问题, 我是根据黑马程序员的javaweb教程一步一步配的,不知道哪里出了问题 求各位大佬帮帮忙!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

idea远程部署Tomcat问题

![图片说明](https://img-ask.csdn.net/upload/201908/18/1566128382_779769.png) 工程在本对tomcat能运行, 启动原程部署时idea日志信息为: ``` Artifact wxproject:war exploded: Waiting for server connection to start artifact deployment... Artifact wxproject:war exploded: Artifact is being deployed, please wait... Connected to server Artifact wxproject:war exploded: Error during artifact deployment. See server log for details. ``` Tomcat报错为: ``` org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method createStandardContext java.lang.NullPointerException at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:471) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405) 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) 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) ``` 注:点击run按钮后,工程文件上传完成后服务器加载时tomcat报错,关闭tomcat重新启动tomcat就不会报错

Maven配置tomcat失败pom不加载任何东西

我明明都设置了 但是在pom里面写tomcat有关的东西一个也不出来 ![图片说明](https://img-ask.csdn.net/upload/202002/12/1581484529_630593.png)我本地仓库有这个包 但是pom里面就是死活不出来 照着百度的复制了 也导入不进来 想问问大佬们到底是咋回事 而且导入servlet-api那些也特别慢 ![图片说明](https://img-ask.csdn.net/upload/202002/12/1581484561_559269.png) ![图片说明](https://img-ask.csdn.net/upload/202002/12/1581484570_5813.png)![图片说明](https://img-ask.csdn.net/upload/202002/12/1581484577_256870.png) ![图片说明](https://img-ask.csdn.net/upload/202002/12/1581484593_807380.png)

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

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Linux面试题(2020最新版)

文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...

Linux命令学习神器!命令看不懂直接给你解释!

大家都知道,Linux 系统有非常多的命令,而且每个命令又有非常多的用法,想要全部记住所有命令的所有用法,恐怕是一件不可能完成的任务。 一般情况下,我们学习一个命令时,要么直接百度去搜索它的用法,要么就直接用 man 命令去查看守冗长的帮助手册。这两个都可以实现我们的目标,但有没有更简便的方式呢? 答案是必须有的!今天给大家推荐一款有趣而实用学习神器 — kmdr,让你解锁 Linux 学习新姿势...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

史上最全的 python 基础知识汇总篇,没有比这再全面的了,建议收藏

网友们有福了,小编终于把基础篇的内容全部涉略了一遍,这是一篇关于基础知识的汇总的文章,请朋友们收下,不用客气,不过文章篇幅肯能会有点长,耐心阅读吧爬虫(七十)多进程multiproces...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

85后蒋凡:28岁实现财务自由、34岁成为阿里万亿电商帝国双掌门,他的人生底层逻辑是什么?...

蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

新一代神器STM32CubeMonitor介绍、下载、安装和使用教程

关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

大学一路走来,学习互联网全靠这几个网站,最终拿下了一把offer

大佬原来都是这样炼成的

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

什么时候跳槽,为什么离职,你想好了么?

都是出来打工的,多为自己着想

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你期望月薪4万,出门右拐,不送,这几个点,你也就是个初级的水平

先来看几个问题通过注解的方式注入依赖对象,介绍一下你知道的几种方式@Autowired和@Resource有何区别说一下@Autowired查找候选者的...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

立即提问
相关内容推荐