- 浏览: 358220 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (352)
- JAVAEE (155)
- Gwt (27)
- Android (6)
- TaoBao (0)
- Xiaonei (0)
- Ubuntu (1)
- javafx (1)
- flex (0)
- GAE (2)
- Arcgis (1)
- Extjs (5)
- Dwr (1)
- ExtjsDwrSpring整合 (2)
- ophone (0)
- php (1)
- python (8)
- squid for windows download (1)
- Java (3)
- oracle (1)
- jquery (1)
- 淘宝 (1)
- 人生 (0)
- java项目运行时增加 (1)
- xfire (1)
- jquery mobile (1)
- ES (3)
- logstash (2)
- 8080端口占用 (1)
- 通达信 (1)
- mysql启动故障 (1)
- 微信小程序 (3)
- centos (1)
- redis (1)
- springcloud (1)
- python3.9 (1)
- python2.7 (1)
- ta-lib (0)
- ta-lib,TALIB (1)
- 安装TALIB,CENTOS (1)
- 终端关闭后 (1)
- vi (1)
- 命令行 (1)
- tomcat (2)
- nginx (3)
- linux (2)
- jdk (1)
- 开发环境 (1)
- nodejs (1)
- vs code (1)
- node js 全部版本 (1)
- JAVASCRIPT (1)
- pychar (1)
- mysql (3)
- win10 (1)
- elasticsearch plugin (1)
- vue (10)
- editplus (0)
- clickhouse (6)
- zabbix (1)
- quicktracking (1)
- quiktraking (1)
- talib (1)
- docker (1)
- excel (1)
- bat (1)
- 大模型 (1)
最新评论
-
ian_jiang:
不知道 你说了个 什么?
GWT下如何获取到javaee servlet下会话信息 -
心愿:
index.jsp应该建立在哪个目录下
dwr3.0的HELLOWORLD创建过程 -
349446658:
classpath:path是老的指定配置文件路径的方式。升级 ...
升级2 -
349446658:
新版本不是在type中指定first,而是指定1来表示跳到第一 ...
分页错误2 -
349446658:
这是因为后面的版本规范了指定配置文件路径的方式,必须指定为如下 ...
升级错误
项目启动,仅报错 One or more listeners failed to start,控制台没有详细的报错信息
28-Jan-2018 13:00:13.839 信息 [RMI TCP Connection(4)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
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.
28-Jan-2018 13:00:15.909 严重 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Jan-2018 13:00:15.935 严重 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2018-01-28 01:00:15,957] Artifact ssh_crm_02: Error during artifact deployment. See server log for details.
28-Jan-2018 13:00:21.160 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/null/apache-tomcat-8.5.23/webapps/manager]
28-Jan-2018 13:00:21.223 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/null/apache-tomcat-8.5.23/webapps/manager] has finished in [61] ms
解决方案
在classpath下配置logging.properties,内容如下:
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
############################################################
Handler specific properties.
Describes specific configuration info for Handlers.
############################################################
org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ../logs
org.apache.juli.FileHandler.prefix = error-debug.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
配置完成后,控制台显示详细的报错信息
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDictDao' defined in file [/Users/null/apache-tomcat-8.5.23/webapps/ssh_crm_02/WEB-INF/classes/com/dao/BaseDictDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong namespace. Expected 'com.boot.dao.BaseDictDao' but found 'com.com.boot.dao.BaseDictDao'.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
...
28-Jan-2018 13:15:33.503 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Jan-2018 13:15:33.520 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
根据报错信息,在BaseDictDao.xml中,发现namespace路径是com.com.boot.dao.BaseDictDao
<mapper namespace="com.com.boot.dao.BaseDictDao">
<select id="getDictListByTypeCode" parameterType="string" resultType="BaseDict">
SELECT * FROM base_dict WHERE dict_type_code=#{typeCode}
</select>
</mapper>
原因是之前修改了包名,然后xml文件的namespace自动修改了
把路径修改回正确的路径com.boot.dao.BaseDictDao,然后项目正常启动
作者:行走的火药桶
链接:https://www.jianshu.com/p/d8792f29d9b1
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
28-Jan-2018 13:00:13.839 信息 [RMI TCP Connection(4)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
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.
28-Jan-2018 13:00:15.909 严重 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Jan-2018 13:00:15.935 严重 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2018-01-28 01:00:15,957] Artifact ssh_crm_02: Error during artifact deployment. See server log for details.
28-Jan-2018 13:00:21.160 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/null/apache-tomcat-8.5.23/webapps/manager]
28-Jan-2018 13:00:21.223 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/null/apache-tomcat-8.5.23/webapps/manager] has finished in [61] ms
解决方案
在classpath下配置logging.properties,内容如下:
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
############################################################
Handler specific properties.
Describes specific configuration info for Handlers.
############################################################
org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ../logs
org.apache.juli.FileHandler.prefix = error-debug.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
配置完成后,控制台显示详细的报错信息
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDictDao' defined in file [/Users/null/apache-tomcat-8.5.23/webapps/ssh_crm_02/WEB-INF/classes/com/dao/BaseDictDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong namespace. Expected 'com.boot.dao.BaseDictDao' but found 'com.com.boot.dao.BaseDictDao'.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
...
28-Jan-2018 13:15:33.503 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Jan-2018 13:15:33.520 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
根据报错信息,在BaseDictDao.xml中,发现namespace路径是com.com.boot.dao.BaseDictDao
<mapper namespace="com.com.boot.dao.BaseDictDao">
<select id="getDictListByTypeCode" parameterType="string" resultType="BaseDict">
SELECT * FROM base_dict WHERE dict_type_code=#{typeCode}
</select>
</mapper>
原因是之前修改了包名,然后xml文件的namespace自动修改了
把路径修改回正确的路径com.boot.dao.BaseDictDao,然后项目正常启动
作者:行走的火药桶
链接:https://www.jianshu.com/p/d8792f29d9b1
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
发表评论
-
SpringCloud00 _Restemplate的getForEntity、getForObject、 postForEntity、postForObjec
2022-10-20 02:26 398SpringCloud00 _Restemplate的get ... -
java键盘机器人
2022-08-18 16:26 380package com.yuexiu.yxdp.rpt.be ... -
java常用快捷键
2022-08-18 15:47 409IDEA中常用快捷键 psvm —— 用来快速写一个ma ... -
idea在旧环境里安装又出这个问题了
2022-08-11 17:33 2663这个一眼就看出来是找不到jre的错误。关键 ... -
mysql 5.5的安装包官网下载地址
2022-07-07 21:09 523https://downloads.mysql.com/arc ... -
idea java开发快捷键
2022-07-07 15:02 262在dao层的mapper类里。直接按住ctrl+左键可定位.x ... -
plugin
2022-07-05 10:45 263INFO] Finished at: 2022-07-05T1 ... -
maven配置,通用setting.xml配置-改为阿里云
2022-07-04 10:50 657maven配置,通用setting.xml配置-改为阿里云 ... -
启动模块时报错,命令行过长,command is too long.
2022-07-04 06:42 1746启动模块时报错,命令行过长,command is too lo ... -
node js 全部版本
2022-07-01 10:58 2731https://nodejs.org/en/download/ ... -
post json
2022-07-01 08:00 222try { String ding ... -
post json
2022-07-01 07:56 204package com.arpenker.stockrobot ... -
resttemplate
2022-06-30 15:21 259private static ResponseEntity&l ... -
量化工
2022-06-30 09:54 597String url = "https://api. ... -
eclipse快捷键
2022-06-30 09:18 284package shortcutKey; public cl ... -
ideajdk
2022-06-10 08:06 243「ideajdk」https://www.aliyundriv ... -
nohup java
2022-05-30 19:02 686nohup java -jar test.jar > . ... -
nohup java
2022-05-30 18:36 929springboot 项目内嵌tomcat,一般打包成jar ... -
查服务器硬盘内存CPU
2022-05-25 17:31 380grep MemTotal /proc/meminfo # ... -
tomcat8 和 jdk8
2022-05-21 08:06 339「tomcat8jdk8」https://www.aliyu ...
相关推荐
Missing artifact com.babasport:page:jar:1.0Missing artifact com.babasport:page:jar:1.0
IntelliJ IDEA Community Edition 2017.1 第七卷
%% 计算机断层扫描的金属制品 %% % 这个模拟是平行光束 CT。 % 减少金属伪影% Titipong kaewlek M.Sc.(放射科学) % 放射技术系联合健康科学学院% Phitsanulok 65000, 泰国, 电子邮件:titipongk@nu.ac.th
在Java中,WebSocket的实现主要基于JSR 356规范,即Java API for WebSocket。该规范定义了服务器端和客户端的编程接口,使得开发者可以方便地创建WebSocket服务和客户端应用。然而,"websocket1.3jar包"可能是第三方...
在IT行业中,数据库是数据存储和管理的核心工具,而SQL Server是Microsoft公司提供的一款广泛应用的关系型数据库管理系统。在Java编程环境中,与SQL Server交互通常需要使用JDBC(Java Database Connectivity)驱动...
Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0问题解决 ojdbc包pom.xml出错 <!-- oracle数据库驱动 --> <groupId>com.oracle</groupId> <artifactId>ojdbc6 <version>11.2.0.1.0 1.首先确定你...
Original error: Could not transfer artifact org.codehaus.plexus:plexus- archiver:pom:1.0 from/to central (http://repo.maven.apache.org/maven2): connection timed out to ...
它支持多种数据库,包括MySQL、Oracle、SQL Server等,具有良好的兼容性和性能。 解决“Missing artifact”错误的第一步是检查项目的pom.xml文件,确保PageHelper的依赖已经被正确地添加。在Maven项目中,正确的...
数据库连接包,下载解压,使用命令 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5.0 -Dpackaging=jar -Dfile=(你的路径)\ojdbc14.jar
将jasper studio集成到jboss dev eclipse上时,出现本错误,经过好多天的排查,终于明白,特整个过程和资源文件打包。maven -> update project等基本操作不予细说。
Oracle JDBC驱动程序是Java开发者与Oracle数据库进行交互的重要工具,ojdbc6-11.2.0.1.0 .zip文件就是Oracle公司为Java应用程序提供的一个特定版本的JDBC驱动程序包,用于解决"Could not find artifact ...
解决Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0问题 所需的sqljdbc4-4.0.jar包 解压放到F:\maven-3.9.6\apache-maven-3.9.6\repository\com\microsoft\sqlserver目录下,然后重启idea,重新加载...
<groupId>net.sf.json-lib</groupId> <artifactId>json-lib <version>2.4 <classifier>jdk15 或者直接下载这个包
Missing artifact com.oracle:ojdbc14:jar:10.2.0.3.0-附件资源
Could not resolve dependencies for project org.apache.flink:flink-avro-confluent-registry:jar:1.15.3: Could not find artifact io.confluent:kafka-schema-registry-client:jar:6.2.2 in maven 安装本地...
解决maven引入hive的jar包时依赖报错Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde in xxx的问题,maven路径org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho...
This pattern language covers any execution artifact from a small debugging trace to a distributed log with billions of messages from hundreds of computers, thousands of software components, threads, ...
com.springsource.org.aspectj.weaver-1.6.8.jar