精华内容
下载资源
问答
  • maven项目启动报错

    千次阅读 2015-05-06 18:34:46
    启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 如果你是maven项目,tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包, 你需要设置一下eclipse: ...

    启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

    如果你是maven项目,tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,
    你需要设置一下eclipse:
    项目 —> 属性 -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK
    把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar了。

    详见:http://www.cnblogs.com/fengxm/p/4166661.html

    展开全文
  • Maven项目启动报错

    2018-10-08 14:44:00
    D:\maven\apache-maven- 3.5 . 0 \bin;D:\Program Files\Java\jdk1. 7 .0_80\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1. 0 \;D:\Program Files\...

    错误信息如下:

    六月 11, 2018 1:58:35 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
    警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:rtda' did not find a matching property.
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server version:        Apache Tomcat/7.0.88
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server built:          May 7 2018 11:12:57 UTC
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server number:         7.0.88.0
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Name:               Windows 7
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Version:            6.1
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Architecture:          amd64
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Java Home:             D:\Program Files\Java\jdk1.7.0_80\jre
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Version:           1.7.0_80-b15
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Vendor:            Oracle Corporation
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_BASE:         D:\tomcat\apache-tomcat-7.0.88
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_HOME:         D:\tomcat\apache-tomcat-7.0.88
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:53060
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.base=D:\tomcat\apache-tomcat-7.0.88
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.home=D:\tomcat\apache-tomcat-7.0.88
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dwtp.deploy=D:\tomcat\apache-tomcat-7.0.88\webapps
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.endorsed.dirs=D:\tomcat\apache-tomcat-7.0.88\endorsed
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dfile.encoding=UTF-8
    六月 11, 2018 1:58:35 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.7.0_80\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\Program Files\Java\jdk1.7.0_80\jre\bin;D:/Program Files/Java/jdk1.7.0_80/bin/../jre/bin/server;D:/Program Files/Java/jdk1.7.0_80/bin/../jre/bin;D:/Program Files/Java/jdk1.7.0_80/bin/../jre/lib/amd64;D:\maven\apache-maven-3.5.0\bin;D:\Program Files\Java\jdk1.7.0_80\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;D:\IDE\eclipse;;.
    六月 11, 2018 1:58:35 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-bio-8080"]
    六月 11, 2018 1:58:35 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["ajp-bio-8009"]
    六月 11, 2018 1:58:35 下午 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 847 ms
    六月 11, 2018 1:58:35 下午 org.apache.catalina.core.StandardService startInternal
    信息: Starting service Catalina
    六月 11, 2018 1:58:35 下午 org.apache.catalina.core.StandardEngine startInternal
    信息: Starting Servlet Engine: Apache Tomcat/7.0.88
    六月 11, 2018 1:58:37 下午 org.apache.catalina.startup.TldConfig execute
    信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    六月 11, 2018 1:58:37 下午 org.apache.catalina.core.ApplicationContext log
    信息: No Spring WebApplicationInitializer types detected on classpath
    六月 11, 2018 1:58:37 下午 org.apache.catalina.core.ApplicationContext log
    信息: Set web app root system property: 'webapp.root' = [D:\tomcat\apache-tomcat-7.0.88\webapps\rtda\]
    六月 11, 2018 1:58:37 下午 org.apache.catalina.core.ApplicationContext log
    信息: Initializing log4j from [classpath:log4j.xml]
    六月 11, 2018 1:58:37 下午 org.apache.catalina.core.StandardContext listenerStart
    严重: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener
    java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.xml] cannot be resolved to URL because it does not exist
        at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:155)
        at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1702)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1692)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    
    六月 11, 2018 1:58:37 下午 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.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.StandardContext listenerStart
    严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [spring/applicationContext.xml]: Could not resolve placeholder 'dbcp.driver'
        at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
        at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:656)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1702)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1692)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.StandardContext startInternal
    严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
    六月 11, 2018 1:58:39 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
    警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [105] milliseconds.
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.StandardContext startInternal
    严重: Context [/rtda] startup failed due to previous errors
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.ApplicationContext log
    信息: Closing Spring root WebApplicationContext
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.ApplicationContext log
    信息: Shutting down log4j
    六月 11, 2018 1:58:39 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\docs
    六月 11, 2018 1:58:39 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\docs has finished in 86 ms
    六月 11, 2018 1:58:39 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\examples
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@4984fd2f')
    六月 11, 2018 1:58:39 下午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@34ed0665')
    六月 11, 2018 1:58:39 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\examples has finished in 338 ms
    六月 11, 2018 1:58:39 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\host-manager
    六月 11, 2018 1:58:40 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\host-manager has finished in 154 ms
    六月 11, 2018 1:58:40 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\manager
    六月 11, 2018 1:58:40 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\manager has finished in 77 ms
    六月 11, 2018 1:58:40 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\ROOT
    六月 11, 2018 1:58:40 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:\tomcat\apache-tomcat-7.0.88\webapps\ROOT has finished in 67 ms
    六月 11, 2018 1:58:40 下午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["http-bio-8080"]
    六月 11, 2018 1:58:40 下午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["ajp-bio-8009"]
    六月 11, 2018 1:58:40 下午 org.apache.catalina.startup.Catalina start
    信息: Server startup in 4985 ms

    问题描述:
    以上信息是tomcat在启动项目的时候报的错误信息,发现没有找到配置文件,实际上配置文件在项目中是存在的,但是,在编译过程中,配置文件没有能加载到编译后的项目中。
    就造成了,找不到这些怕配置文件。

    解决方案:
    1.在确定jdk和maven没有问题的时候,进行第二步操作;
    2.选择项目,右键“Maven”,选择“Select Maven profiles”,勾选dev选项,点击:OK按钮

    转载于:https://www.cnblogs.com/zjiacun/p/9754259.html

    展开全文
  • 导入Maven项目到Eclipse中时,出现问题如下: java.lang.ClassNotFoundException: org.springframework.web.context....参考:Maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.c...

    导入Maven项目到Eclipse中时,出现问题如下:

    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

    参考:Maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener


    原因:
    tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,所以找不到


    解决方案:

    设置一下eclipse:
    项目 —> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK
    把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar了。

     

    转载于:https://www.cnblogs.com/ChickenTang/p/5655410.html

    展开全文
  • Idea下maven项目启动报错error configuring application listener of class 问题描述 使用idea导入maven项目,编译完成,启动tomcat出现如下错误 项目其他相关配置 Tomcat相关配置 原因 ...

    Idea下maven项目启动报错error configuring application listener of class

    问题描述

    使用idea导入maven项目,编译完成,启动tomcat出现如下错误

     

     

    项目其他相关配置

     

     

    Tomcat相关配置

     

     

     

     

    原因

    发现工程部署后在WEB-INF文件夹下没有生成lib目录,正常情况下,会生成lib目录并把工程的所有依赖jar包都部署到该目录下

     

     

    解决方案

    网上的很多解决方案都是

     

     

    试了很多次都没用

    最终解决方案

    在Artifacts里面再加一个war_exploded2

     

     

    在tomcat中加入第二个war_exploded2

     

     

    重启就好了

    转载于:https://www.cnblogs.com/elroye/p/7865838.html

    展开全文
  • java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 不要慌 ...
  • maven项目启动报错

    万次阅读 2017-06-08 18:00:42
    严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost...
  • eclipse 创建maven 项目 动态web工程完整示例 (参考https://www.cnblogs.com/noteless/p/5213075.html) eclipse的版本为:Eclipse Java Oxygen 默认只有J2SE,没有J2EE 升级J2EE(参考...
  • 最近几天在启动Maven项目时,偶尔会出现Process finished with exit code 1的错误,启动时显示在连接VM, 最后显示连接失败,然后跳出Process finished with exit code 1. 今天整个项目的所有模块都出现了这个问题,到了...
  • maven项目启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,所以找不到解决方法:设置一下...
  • maven项目启动报错

    2016-09-13 16:59:55
    [img=https://img-bbs.csdn.net/upload/201609/13/1473757143_543119.png][/img]
  • ssm整合maven项目启动报错、架包冲突

    千次阅读 2016-10-25 21:55:40
    先来个在idea(eclipse也一样)SSM项目整合、maven依赖服务器启动报错的情况、大家应该遇见过吧! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang....
  • 17:17:26.506 [RMI TCP Connection(3)-127.0.0.1] ERROR o.s.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: ...
  • 有人说是web.xml配置错误导致的,但不可否认他们遇到的是这个原因,我检查了web.xml实在找不到问题在哪,然后有的说是tomcat的conf目录的server.xml文件多了一行<Context docBase="">标签的问题,都试过了,...
  • 项目启动报 java.lang.RuntimeException: Error scanning entry com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class   java.lang.ArrayIndexOutOfBoundsException: 48188 错误 解决办法 看看 项目中...
  • 运行Maven项目之后(tomcat:run),在网页上localhost拒绝访问。然后用tomcat7运行依旧不行。 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context...
  • 1:以eclipse开发工具为例:选中项目然后按alt+enter,选择Deployment Assembly,发现打包部署的时候并没有我们的maven库中的jar包选项 2: 点击右边的add选择下图中的Java Build Path Entries ,点击Next选择...
  • <name>StudentManage Maven Webapp <url>http://maven.apache.org</url> <groupId>junit <artifactId>junit <version>3.8.1 <scope>test <groupId>javax.servlet <artifactId>servlet-api ...
  • Maven项目启动报出如下错误: [INFO] org.springframework.jdbc.datasource.SingleConnectionDataSource - Loaded JDBC driver: com.mysql.jdbc.Driver [INFO] org.springframework.orm.jpa....
  • 严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener java.lang.ClassNotFoundException: org.springframework.web.util.Log4...右键项目》prope
  • ERROR 2172 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Jetty servlet ...
  • org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataFromDBController': Unsatisfied dependency expressed through field 'dataFromDBService';...
  • 如果你是maven项目,tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包, 你需要设置一下eclipse: 项目 —> 属性 -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -...
  • 启动maven项目的时候会经常遇到这样的错误(以前没有记录,现在记下来吧): [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project open-...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 2,034
精华内容 813
关键字:

maven项目启动报错