maven项目发布到tomcat上之后访问就是404,但是一起发布的web项目就可以访问 5C

查了百度上的修改maven项目下的Deployment这个选项,好像都是正确的,但是还是解决不了访问404的问题,求解答图片说明
这个是tomcat的配置,可以在这个文件夹找到里面的项目,但是不能正常访问图片说明

这是项目启动时发布到控制台的数据
十二月 04, 2018 4:08:35 下午 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: C:\Java\jdk1.8.0_151\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Java/jdk1.8.0_151/bin/../jre/bin/server;C:/Java/jdk1.8.0_151/bin/../jre/bin;C:/Java/jdk1.8.0_151/bin/../jre/lib/amd64;D:\orasuc\product\11.2.0\client_1\bin;D:\orasuc\product\11.2.0\dbhome_1\bin;D:\oracle\product\11.2.0\client_1;D:\orado\product\11.2.0\client_1\bin;C:\Java\jdk1.8.0_151\bin;C:\Java\jdk1.8.0_151\jre\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Program Files (x86)\Subversion\bin;C:\Program Files\TortoiseSVN\bin;D:\javatools\apache-maven-3.3.9\bin;D:\Program Files (x86)\Microsoft Visual Studio\Common\Tools\WinNT;D:\Program Files (x86)\Microsoft Visual Studio\Common\MSDev98\Bin;D:\Program Files (x86)\Microsoft Visual Studio\Common\Tools;D:\Program Files (x86)\Microsoft Visual Studio\VC98\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;D:\javatools\eclipse;;.
十二月 04, 2018 4:08:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:crm_28' did not find a matching property.
十二月 04, 2018 4:08:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jk28_web' did not find a matching property.
十二月 04, 2018 4:08:36 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-80"]
十二月 04, 2018 4:08:36 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
十二月 04, 2018 4:08:36 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 847 ms
十二月 04, 2018 4:08:36 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 04, 2018 4:08:36 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
十二月 04, 2018 4:08:41 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [616] milliseconds.
十二月 04, 2018 4:08:47 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十二月 04, 2018 4:08:47 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
16:08:47,814 INFO ContextLoader:307 - Root WebApplicationContext: initialization started
16:08:47,947 INFO XmlWebApplicationContext:578 - Refreshing Root WebApplicationContext: startup date [Tue Dec 04 16:08:47 CST 2018]; root of context hierarchy
16:08:48,009 INFO XmlBeanDefinitionReader:317 - Loading XML bean definitions from class path resource [applicationContext.xml]
16:08:48,363 INFO MLog:92 - MLog clients using log4j logging.
16:08:48,519 INFO C3P0Registry:216 - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
16:08:50,853 INFO AbstractPoolBackedDataSource:522 - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgeuip9zxd9njtopu5x|5f9c0127, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgeuip9zxd9njtopu5x|5f9c0127, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:///crm_28, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
16:08:52,388 INFO HibernateTransactionManager:357 - Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgeuip9zxd9njtopu5x|5f9c0127, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgeuip9zxd9njtopu5x|5f9c0127, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:///crm_28, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
16:08:52,489 INFO ContextLoader:347 - Root WebApplicationContext: initialization completed in 4672 ms
16:08:52,749 INFO XmlConfigurationProvider:46 - Parsing configuration file [struts-default.xml]
16:08:52,838 INFO XmlConfigurationProvider:46 - Parsing configuration file [struts-plugin.xml]
16:08:52,855 INFO XmlConfigurationProvider:46 - Parsing configuration file [struts.xml]
16:08:52,858 INFO AbstractBeanSelectionProvider:46 - Choosing bean (spring) for (com.opensymphony.xwork2.ObjectFactory)
16:08:52,858 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory)
16:08:52,858 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory)
16:08:52,859 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory)
16:08:52,859 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory)
16:08:52,859 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory)
16:08:52,859 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.factory.UnknownHandlerFactory)
16:08:52,860 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
16:08:52,860 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
16:08:52,860 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
16:08:52,861 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
16:08:52,861 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
16:08:52,861 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
16:08:52,861 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
16:08:52,861 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
16:08:52,862 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
16:08:52,862 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
16:08:52,862 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
16:08:52,862 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
16:08:52,863 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
16:08:52,863 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
16:08:52,863 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
16:08:52,863 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
16:08:52,863 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
16:08:52,864 INFO AbstractBeanSelectionProvider:46 - Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
16:08:52,864 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
16:08:52,865 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
16:08:52,865 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
16:08:52,865 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
16:08:52,866 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
16:08:52,866 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
16:08:52,866 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
16:08:52,867 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.util.ContentTypeMatcher)
16:08:52,867 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
16:08:52,867 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
16:08:52,867 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
16:08:52,868 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
16:08:52,868 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (org.apache.struts2.dispatcher.DispatcherErrorHandler)
16:08:52,868 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.security.ExcludedPatternsChecker)
16:08:52,868 INFO AbstractBeanSelectionProvider:46 - Choosing bean (struts) for (com.opensymphony.xwork2.security.AcceptedPatternsChecker)
16:08:52,892 INFO StrutsSpringObjectFactory:46 - Initializing Struts-Spring integration...
16:08:52,893 INFO SpringObjectFactory:46 - Setting autowire strategy to name
16:08:52,893 INFO StrutsSpringObjectFactory:46 - ... initialized Struts-Spring integration successfully
十二月 04, 2018 4:09:01 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十二月 04, 2018 4:09:01 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
十二月 04, 2018 4:09:07 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-80"]
十二月 04, 2018 4:09:07 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十二月 04, 2018 4:09:07 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 30751 ms

3个回答

404?启动的时候控制台应该报错的吧

qshazi
土豆_ 回复m0_37869177: pom里面有没有配置tomcat-maven-plugin
一年多之前 回复
qshazi
土豆_ 回复m0_37869177: 看一下web.xml的配置,看看项目启动后默认访问的路径的页面是不是存在
一年多之前 回复
m0_37869177
一凉良 我重新创了一个小的MAVEN项目,直接访问了一下发现可以正常访问,但是这个大的项目不知道为什么不能访问,网上的方法都试过了。。
一年多之前 回复
m0_37869177
一凉良 控制台启动的时候没有任何错误,而且同时发布的另外一个web项目可以正常使用。
一年多之前 回复

数据太少 看不出个所以然来

m0_37869177
一凉良 请问需要一些什么数据呢?
一年多之前 回复

1、404,路径肯定是错了
2、你去tomcat配置那选择Modules,配置Web Modules,将不能访问的项目的path改成'/'试试
图片说明

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

apache-tomcat-7.0.69, apache-maven-3.3.9-bin, myeclipse部署的项目可以访问。

maven项目打包成war包发布到远程Tomcat上的webapps但是不能访问

maven项目打包成war包发布到远程Tomcat上的webapps但是不能访问,maven项目已经打包成war包了![图片说明](https://img-ask.csdn.net/upload/201711/21/1511260146_922466.png),也放到了tomcat/webapp下面,但是只能访问ROOT下的普通网页,webapp下的项目不能访问,root![图片说明](https://img-ask.csdn.net/upload/201711/21/1511260166_43182.png)下的项目也不鞥访问,是路径还是,哪里错了啊!

idea 引入maven项目发布到tomcat 访问页面无法加载css js 图片

这是我在github上引入的一个maven项目 这是项目中的webapp下面的路径 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179953_650507.png) 这是我发布的路径 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179982_866713.png) idea是通过虚拟路径的形式发布到tomcat上的,我发布的根目录,localhost:8080可以直接访问,但是前端无法加载js css 图片 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476180078_766042.png) 怎么加载不出来,怎么解决啊,求大神指教,谢谢!

eclipse maven项目 怎么实现一点就会自动编译并发布到tomcat

eclipse maven项目 怎么实现一点就会自动编译并发布到tomcat

IDEA创建maven的web项目,配置tomcat后可以发布,但浏览器报错404

**问题描述**:刚开始学习maven,在idea中使用模板创建了web maven项目后,可以使用maven自带的maven tomcat运行,并且浏览器正常 。但是使用网站下载下来的Tomcat配置在项目中后,虽然可以运行,但浏览器直接显示 404错误。 **下载的Tomcat运行后的信息**: G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\bin\catalina.bat run [2020-02-17 12:39:19,204] Artifact ren:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5" Using CATALINA_HOME: "G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51" Using CATALINA_TMPDIR: "G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_181" Using CLASSPATH: "G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\bin\bootstrap.jar;G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\bin\tomcat-juli.jar" 17-Feb-2020 12:39:20.431 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/8.5.51 17-Feb-2020 12:39:20.436 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建: Feb 5 2020 22:26:25 UTC 17-Feb-2020 12:39:20.436 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号(:8.5.51.0 17-Feb-2020 12:39:20.436 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构: amd64 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: C:\Program Files\Java\jdk1.8.0_181\jre 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本: 1.8.0_181-b13 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5 17-Feb-2020 12:39:20.438 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51 17-Feb-2020 12:39:20.438 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5\conf\logging.properties 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5 17-Feb-2020 12:39:20.441 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\temp 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0]. 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL配置:useAprConnector[false],useOpenSSL[true] 17-Feb-2020 12:39:20.449 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1c 28 May 2019] 17-Feb-2020 12:39:20.614 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 17-Feb-2020 12:39:20.632 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 17-Feb-2020 12:39:20.658 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 647 ms 17-Feb-2020 12:39:20.702 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 17-Feb-2020 12:39:20.702 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51 17-Feb-2020 12:39:20.715 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 17-Feb-2020 12:39:20.727 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 68 ms Connected to server [2020-02-17 12:39:20,850] Artifact ren:war exploded: Artifact is being deployed, please wait... [2020-02-17 12:39:21,376] Artifact ren:war exploded: Artifact is deployed successfully [2020-02-17 12:39:21,376] Artifact ren:war exploded: Deploy took 526 milliseconds 17-Feb-2020 12:39:30.722 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\webapps\manager] 17-Feb-2020 12:39:30.809 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\webapps\manager] has finished in [86] ms **配置页面** ![图片说明](https://img-ask.csdn.net/upload/202002/17/1581915221_525072.png) **运行后的结果** ![图片说明](https://img-ask.csdn.net/upload/202002/17/1581914498_959743.png)

idea发布maven项目到tomcat上。为何不能在tomcat下看输出

看了一下日志。项目生成的文件被保存在我的C盘的user/xxx/.intelli_idea15/sstem/tomcat中,怎么才能让每次生成的文件直接在tomcat安装路径下生成。

项目发布到tomcat,无法访问!!!

我用java语言myeclipse开发工具写了个webservice,但是把他项目啊发布到tomcat;之后控制台没有错误,但是却无法访问这个项目,一直在报错

求解答,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 ```

maven项目发布到tomcat时报错

maven项目发布到tomcat时报错如下: ![图片说明](https://img-ask.csdn.net/upload/201707/18/1500339536_792446.png) 使用的tomcat7-maven-plugin插件: ![图片说明](https://img-ask.csdn.net/upload/201707/18/1500339654_419806.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

怎么使用tomcat直接运行一个maven项目?

我在一台电脑上,直接把一个maven项目打包了,然后把打包好的war包classes那些拷到另一台电脑,直接放到tomcat的webapp目录下,tomcat能正常启动但就是不能打开这个项目,会一直加载,没报404,请问我是不是漏了什么步骤? 项目在原来的电脑上运行是没问题的,我按网上的方法mvn package打包的项目

使用tomcat插件启动maven项目,添加虚拟路径无法访问项目

添加server.xml的配置: ![图片说明](https://img-ask.csdn.net/upload/201808/27/1535335192_956258.png) 配置虚拟路径: ![图片说明](https://img-ask.csdn.net/upload/201808/27/1535335262_712704.png) 启动tomcat之后无法访问项目,日志显示下列信息,: [INFO] --- tomcat7-maven-plugin:2.2:run (default) @ xomy_three --- [INFO] Running war on http://localhost:8080/ [INFO] Creating Tomcat server configuration at E:\xomy_study\webservice\workspace\xomy_three\target\tomcat 八月 27, 2018 9:59:24 上午 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:\lanqiao\java\jdk1.7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/lanqiao/java/jdk1.7/bin/../jre/bin/client;D:/lanqiao/java/jdk1.7/bin/../jre/bin;D:/lanqiao/java/jdk1.7/bin/../jre/lib/i386;D:\lanqiao\java\jdk1.7\bin;D:\lanqiao\java\jdk1.7\jre\bin;C:\ProgramData\Oracle\Java\javapath;D:\Xomy\apache-maven-3.5.2\bin;D:\Xomy\apache-cxf-3.0.16\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\lanqiao\mysql\mysql5.5\bin;D:\lanqiao\oracle11g\oral11\product\11.2.0\dbhome_1\BIN;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;D:\lanqiao\software\eclipse\eclipse_kepler;;. 八月 27, 2018 9:59:25 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 八月 27, 2018 9:59:25 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8009"] 八月 27, 2018 9:59:25 上午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 609 ms 八月 27, 2018 9:59:25 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 八月 27, 2018 9:59:25 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.47 八月 27, 2018 9:59:27 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 八月 27, 2018 9:59:27 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 八月 27, 2018 9:59:27 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 2044 ms 如果不置入server.xml文件,可以正常启动tomcat并可以正常访问项目。

Maven项目部署到Tomcat的问题

项目不知道怎么回事,maven打包没有任何问题,Tomcat启动后web页面不能正常访问,控制台连续不断地输出以下信息: 七月 26, 2016 6:21:46 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 七月 26, 2016 6:21:46 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-443"] 七月 26, 2016 6:21:46 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 七月 26, 2016 6:21:46 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 14546 ms 18:21:48.022 [Thread-7] DEBUG o.h.cache.redis.jedis.JedisClient - delete expired cache item in region[hibernate.org.hibernate.cache.internal.StandardQueryCache] expire time=[1469528508021] 18:22:00.015 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is desired by: schedFactoryBean_QuartzSchedulerThread 18:22:00.016 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is being obtained: schedFactoryBean_QuartzSchedulerThread 18:22:00.018 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' given to: schedFactoryBean_QuartzSchedulerThread Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=0 and order0_.PAYMETHOD_ID=? 18:22:00.144 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' returned by: schedFactoryBean_QuartzSchedulerThread 18:22:00.153 [schedFactoryBean_Worker-1] DEBUG org.quartz.core.JobRunShell - Calling execute on job DEFAULT.orderPayTimeOutJob Hibernate: select order0_.ID as ID1_29_, order0_.CREATEBY as CREATEBY2_29_, order0_.CREATETIME as CREATETI3_29_, order0_.UPDATEBY as UPDATEBY4_29_, order0_.UPDATETIME as UPDATETI5_29_, order0_.ADDR as ADDR6_29_, order0_.AREA_ID as AREA_ID32_29_, order0_.BUILDING as BUILDING7_29_, order0_.BUYCOUNT as BUYCOUNT8_29_, order0_.CITY_ID as CITY_ID33_29_, order0_.COMM_ID as COMM_ID34_29_, order0_.CONSIGEE as CONSIGEE9_29_, order0_.DELITIME as DELITIM10_29_, order0_.DELIVERY as DELIVER11_29_, order0_.DELIVERYFLAG as DELIVER12_29_, order0_.DELIVERYORDER_ID as DELIVER35_29_, order0_.DISTRCOMPLETETIME as DISTRCO13_29_, order0_.DISTRSTOREID as DISTRST14_29_, order0_.DISTRIBUTIONID as DISTRIB15_29_, order0_.FINSHTIME as FINSHTI16_29_, order0_.FLOOR as FLOOR17_29_, order0_.ORDER_ID as ORDER_I36_29_, order0_.MOBILE as MOBILE18_29_, order0_.NIGHTINCOME as NIGHTIN19_29_, order0_.NUMB as NUMB20_29_, order0_.ONLINEPAYNAME_ID as ONLINEP37_29_, order0_.OPERSTATUS as OPERSTA21_29_, order0_.ORDERBILLNO as ORDERBI22_29_, order0_.ORDERNO as ORDERNO23_29_, order0_.PAYABLE as PAYABLE24_29_, order0_.PAYMETHOD_ID as PAYMETH38_29_, order0_.PROVICE_ID as PROVICE39_29_, order0_.REMARK as REMARK25_29_, order0_.SHIPMENT as SHIPMEN26_29_, order0_.STATUS as STATUS27_29_, order0_.STORE_ID as STORE_I40_29_, order0_.STORETYPE_ID as STORETY41_29_, order0_.SUBMITORDERTIME as SUBMITO28_29_, order0_.TEL as TEL29_29_, order0_.TOTAL as TOTAL30_29_, order0_.UNIT as UNIT31_29_, order0_.USER_ID as USER_ID42_29_ from HS_ORDER order0_ where order0_.STATUS=? and order0_.SUBMITORDERTIME<? and order0_.PAYMETHOD_ID=? limit ? 18:22:00.208 [schedFactoryBean_Worker-1] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is desired by: schedFactoryBean_Worker-1 18:22:00.208 [schedFactoryBean_Worker-1] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is being obtained: schedFactoryBean_Worker-1 18:22:00.209 [schedFactoryBean_Worker-1] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' given to: schedFactoryBean_Worker-1 18:22:00.213 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is desired by: schedFactoryBean_QuartzSchedulerThread 18:22:00.213 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is being obtained: schedFactoryBean_QuartzSchedulerThread 18:22:00.215 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' given to: schedFactoryBean_QuartzSchedulerThread 18:22:00.286 [schedFactoryBean_QuartzSchedulerThread] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' returned by: schedFactoryBean_QuartzSchedulerThread 18:22:00.286 [schedFactoryBean_Worker-1] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' returned by: schedFactoryBean_Worker-1 18:22:00.290 [schedFactoryBean_Worker-2] DEBUG org.quartz.core.JobRunShell - Calling execute on job DEFAULT.tempOrderSettlementJob 18:22:00.347 [schedFactoryBean_Worker-2] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is desired by: schedFactoryBean_Worker-2 18:22:00.348 [schedFactoryBean_Worker-2] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' is being obtained: schedFactoryBean_Worker-2 18:22:00.348 [schedFactoryBean_Worker-2] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' given to: schedFactoryBean_Worker-2 18:22:00.395 [schedFactoryBean_Worker-2] DEBUG o.q.i.j.StdRowLockSemaphore - Lock 'TRIGGER_ACCESS' returned by: schedFactoryBean_Worker-2 Hibernate: select dictionary0_.ID as ID1_16_, dictionary0_.CREATEBY as CREATEBY2_16_, dictionary0_.CREATETIME as CREATETI3_16_, dictionary0_.UPDATEBY as UPDATEBY4_16_, dictionary0_.UPDATETIME as UPDATETI5_16_, dictionary0_.CODE as CODE6_16_, dictionary0_.KIND as KIND7_16_, dictionary0_.SORTNO as SORTNO8_16_, dictionary0_.STATUS as STATUS9_16_, dictionary0_.VALUE as VALUE10_16_, dictionary0_.VALUETYPE as VALUETY11_16_ from HS_DICTIONARY dictionary0_ where dictionary0_.CODE=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=0 and order0_.PAYMETHOD_ID=? Hibernate: select dictionary0_.ID as ID1_16_, dictionary0_.CREATEBY as CREATEBY2_16_, dictionary0_.CREATETIME as CREATETI3_16_, dictionary0_.UPDATEBY as UPDATEBY4_16_, dictionary0_.UPDATETIME as UPDATETI5_16_, dictionary0_.CODE as CODE6_16_, dictionary0_.KIND as KIND7_16_, dictionary0_.SORTNO as SORTNO8_16_, dictionary0_.STATUS as STATUS9_16_, dictionary0_.VALUE as VALUE10_16_, dictionary0_.VALUETYPE as VALUETY11_16_ from HS_DICTIONARY dictionary0_ where dictionary0_.CODE=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=10 and order0_.PAYMETHOD_ID=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.DELIVERY=1 and order0_.STATUS=10 Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.DELITIME<? and order0_.DELIVERY=2 and order0_.STATUS=15 18:22:42.981 [QuartzScheduler_schedFactoryBean-USER-20140708ZJ1469528502606_MisfireHandler] DEBUG o.q.impl.jdbcjobstore.JobStoreTX - MisfireHandler: scanning for misfires... 18:22:43.013 [QuartzScheduler_schedFactoryBean-USER-20140708ZJ1469528502606_MisfireHandler] DEBUG o.q.impl.jdbcjobstore.JobStoreTX - Found 0 triggers that missed their scheduled fire-time. Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=0 and order0_.PAYMETHOD_ID=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=10 and order0_.PAYMETHOD_ID=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.DELIVERY=1 and order0_.STATUS=10 Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.DELITIME<? and order0_.DELIVERY=2 and order0_.STATUS=15 Hibernate: select count(deliveryor0_.ID) as col_0_0_ from DELIVERY_ORDER deliveryor0_ where deliveryor0_.CREATETIME<? and deliveryor0_.STATUS=1 18:23:07.397 [Thread-7] DEBUG o.h.cache.redis.jedis.JedisClient - delete expired cache item in region[hibernate.com.hisun.shop.entity.MallVoucherAssignDetail] expire time=[1469528587396] 18:23:07.440 [Thread-7] DEBUG o.h.cache.redis.jedis.JedisClient - delete expired cache item in region[hibernate.org.hibernate.cache.internal.StandardQueryCache] expire time=[1469528587439] Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=0 and order0_.PAYMETHOD_ID=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.STATUS=10 and order0_.PAYMETHOD_ID=? Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.SUBMITORDERTIME<? and order0_.DELIVERY=1 and order0_.STATUS=10 Hibernate: select count(order0_.ID) as col_0_0_ from HS_ORDER order0_ where order0_.DELITIME<? and order0_.DELIVERY=2 and order0_.STATUS=15 Hibernate: select count(deliveryor0_.ID) as col_0_0_ from DELIVERY_ORDER deliveryor0_ where deliveryor0_.CREATETIME<? and deliveryor0_.STATUS=1 18:23:42.949 [QuartzScheduler_schedFactoryBean-USER-20140708ZJ1469528502606_MisfireHandler] DEBUG o.q.impl.jdbcjobstore.JobStoreTX - MisfireHandler: scanning for misfires... 18:23:42.982 [QuartzScheduler_schedFactoryBean-USER-20140708ZJ1469528502606_MisfireHandler] DEBUG o.q.impl.jdbcjobstore.JobStoreTX - Found 0 triggers that missed their scheduled fire-time. 18:23:42.983 [QuartzScheduler_schedFactoryBean-USER-20140708ZJ1469528502606_ClusterManager] DEBUG o.q.impl.jdbcjobstore.JobStoreTX - ClusterManager: Check-in complete.

maven项目,tomcat的部署问题

在maven项目中,tomcat:run eclipse使用的是哪个tomcat,这个tomcat是怎么来的, 和pom.xml中的tomcat有联系吗。一般开发的过程中,是用maven的tomcat:run还是 用servers运行.

求助:ssm的maven项目tomcat插件启动成功,但是无法访问的问题!

问题描述: springmvc+mybatis项目,tomcat插件成功启动后,访问报404的错误。 个人排查: 1.将其独立部署到tomcat服务器而不用tomcat插件可以成功启动并访问。 2.tomcat插件启动成功后,target下的classes目录下面没有配置文件,但是有class文件。buildpath中已经配置输出文件夹为target/classes,仍然无效。 tomcat插件配置: ``` <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <update>true</update> <!-- 热部署 --> <charset>utf-8</charset> <!-- 设置字符集 --> <uriEncoding>UTF-8</uriEncoding><!-- 设置uri编码 --> <port>8080</port> <!-- 设置端口 --> <path>/</path><!-- 设置默认访问应用的路径 --> </configuration> </plugin> </plugins> ``` 前端控制器配置: ``` <!-- 前端控制器 --> <!-- The front controller of this Spring Web application, responsible for handling all application requests --> <servlet> <servlet-name>springDispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:springmvc/springmvc.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Map all requests to the DispatcherServlet for handling --> <servlet-mapping> <servlet-name>springDispatcherServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> ``` controller: ``` @Controller public class UserController { @Autowired private UserService userService; @RequestMapping("/") public String hello() { return "index"; } @RequestMapping("/user") @ResponseBody public List<User> getUserList() { List<User> list = userService.getUserList(); return list; } } ``` 访问url:localhost:8080,正常应该跳转到index.jsp界面,实际输出:`No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'springDispatcherServlet'`。 # 求助!!!

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)

新建的maven项目无法用tomcat运行望解答,感谢!

入门小白 引入的maven项目,启动Tomcat 报错 ![图片说明](https://img-ask.csdn.net/upload/201906/02/1559418070_898936.png) java.lang.Exception: classworlds configuration not specified nor found in the classpath at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 目录文件如下: ![图片说明](https://img-ask.csdn.net/upload/201906/02/1559417988_174025.png) 网上找了好久都找不到解决方法,望各位前辈帮帮忙,感谢!

tomcat启动成功,但是无法正常访问

我上传图片到本地时(并没有放到数据库中)几次之后,tomcat再一重启,结果404,url没有问题,因为一直都是这个,然后我查日志发现了一个问题 ![图片说明](https://img-ask.csdn.net/upload/202004/29/1588175737_649349.png) 我试了多种方法: 1.去掉项目的数据库驱动包,改为放在tomcat的lib下 2.设置spring监听器 都不能解决,想问问大家怎么解决?

用maven进行热部署之后,无法访问到tomcat的8080端口

用maven进行热部署成功之后无法访问tomcat的8080端口,如图 ![图片说明](https://img-ask.csdn.net/upload/201803/23/1521809801_129840.png) 但是访问manager却可以访问到,如图![图片说明](https://img-ask.csdn.net/upload/201803/23/1521809827_813393.png)

linux下利用/proc进行进程树的打印

在linux下利用c语言实现的进程树的打印,主要通过/proc下的目录中的进程文件,获取status中的进程信息内容,然后利用递归实现进程树的打印

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

Python数据分析与挖掘

92讲视频课+16大项目实战+源码+¥800元课程礼包+讲师社群1V1答疑+社群闭门分享会=99元 &nbsp; 为什么学习数据分析? &nbsp; &nbsp; &nbsp; 人工智能、大数据时代有什么技能是可以运用在各种行业的?数据分析就是。 &nbsp; &nbsp; &nbsp; 从海量数据中获得别人看不见的信息,创业者可以通过数据分析来优化产品,营销人员可以通过数据分析改进营销策略,产品经理可以通过数据分析洞察用户习惯,金融从业者可以通过数据分析规避投资风险,程序员可以通过数据分析进一步挖掘出数据价值,它和编程一样,本质上也是一个工具,通过数据来对现实事物进行分析和识别的能力。不管你从事什么行业,掌握了数据分析能力,往往在其岗位上更有竞争力。 &nbsp;&nbsp; 本课程共包含五大模块: 一、先导篇: 通过分析数据分析师的一天,让学员了解全面了解成为一个数据分析师的所有必修功法,对数据分析师不在迷惑。 &nbsp; 二、基础篇: 围绕Python基础语法介绍、数据预处理、数据可视化以及数据分析与挖掘......这些核心技能模块展开,帮助你快速而全面的掌握和了解成为一个数据分析师的所有必修功法。 &nbsp; 三、数据采集篇: 通过网络爬虫实战解决数据分析的必经之路:数据从何来的问题,讲解常见的爬虫套路并利用三大实战帮助学员扎实数据采集能力,避免没有数据可分析的尴尬。 &nbsp; 四、分析工具篇: 讲解数据分析避不开的科学计算库Numpy、数据分析工具Pandas及常见可视化工具Matplotlib。 &nbsp; 五、算法篇: 算法是数据分析的精华,课程精选10大算法,包括分类、聚类、预测3大类型,每个算法都从原理和案例两个角度学习,让你不仅能用起来,了解原理,还能知道为什么这么做。

广工操作系统课程设计(文档+代码+可执行文件)

实现作业调度(先来先服务)、进程调度功能(时间片轮转) 实现内存管理功能(连续分配)。 实现文件系统功能(选作) 这些功能要有机地连接起来

Only老K说-爬取妹子图片(简单入门)

安装第三方请求库 requests 被网站禁止了访问 原因是我们是Python过来的 重新给一段 可能还是存在用不了,使用网页的 编写代码 上面注意看匹配内容 User-Agent:请求对象 AppleWebKit:请求内核 Chrome浏览器 //请求网页 import requests import re //正则表达式 就是去不规则的网页里面提取有规律的信息 headers = { 'User-Agent':'存放浏览器里面的' } response = requests.get

linux“开发工具三剑客”速成攻略

工欲善其事,必先利其器。Vim+Git+Makefile是Linux环境下嵌入式开发常用的工具。本专题主要面向初次接触Linux的新手,熟练掌握工作中常用的工具,在以后的学习和工作中提高效率。

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

Python数据清洗实战入门

本次课程主要以真实的电商数据为基础,通过Python详细的介绍了数据分析中的数据清洗阶段各种技巧和方法。

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

apache-jmeter-5.1.1(Requires Java 8+).zip

。Apache JMeter 5.1.1 (Requires Java 8+),需要jdk8以上的版本。

数通HCNP中文理论全套教材.rar

内涵HCNP-IENP中文理论书-内文,

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

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

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

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

图书管理系统(Java + Mysql)我的第一个完全自己做的实训项目

图书管理系统 Java + MySQL 完整实训代码,MVC三层架构组织,包含所有用到的图片资源以及数据库文件,大三上学期实训,注释很详细,按照阿里巴巴Java编程规范编写

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

C/C++学习指南全套教程

C/C++学习的全套教程,从基本语法,基本原理,到界面开发、网络开发、Linux开发、安全算法,应用尽用。由毕业于清华大学的业内人士执课,为C/C++编程爱好者的教程。

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

2021考研数学张宇基础30讲.pdf

张宇:博士,全国著名考研数学辅导专家,教育部“国家精品课程建设骨干教师”,全国畅销书《张宇高等数学18讲》《张宇线性代数9讲》《张宇概率论与数理统计9讲》《张宇考研数学题源探析经典1000题》《张宇考

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 购课后添加学习助手(微信号:csdn590),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdn590</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

DDR5_Draft_Spec_Rev05c.pdf

DDR5 spec

Java面试史上最全的JAVA专业术语面试100问 (前1-50)

前言: 说在前面, 面试题是根据一些朋友去面试提供的,再就是从网上整理了一些。 先更新50道,下一波吧后面的也更出来。 求赞求关注!! 废话也不多说,现在就来看看有哪些面试题 1、面向对象的特点有哪些? 抽象、继承、封装、多态。 2、接口和抽象类有什么联系和区别? 3、重载和重写有什么区别? 4、java有哪些基本数据类型? 5、数组有没有length()方法?String有没有length()方法? 数组没有length()方法,它有length属性。 String有length()方法。 集合求长度用

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

本课程适合CCNA或HCNA网络小白同志,高手请绕道,可以直接学习进价课程。通过本预科课程的学习,为学习网络工程师、思科CCNA、华为HCNA这些认证打下坚实的基础! 重要!思科认证2020年2月24日起,已启用新版认证和考试,包括题库都会更新,由于疫情原因,请关注官网和本地考点信息。题库网络上很容易下载到。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

Python界面版学生管理系统

前不久上传了一个控制台版本的学生管理系统,这个是Python界面版学生管理系统,这个是使用pycharm开发的一个有界面的学生管理系统,基本的增删改查,里面又演示视频和完整代码,有需要的伙伴可以自行下

2019数学建模A题高压油管的压力控制 省一论文即代码

2019数学建模A题高压油管的压力控制省一完整论文即详细C++和Matlab代码,希望对同学们有所帮助

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

相关热词 c#分级显示数据 c# 不区分大小写替换 c#中调用就java c#正则表达式 验证小数 c# vscode 配置 c#三维数组能存多少数据 c# 新建excel c#多个文本框 c#怎么创建tcp通讯 c# mvc 电子病例
立即提问