http://ibatis.apache.org/dtd/ibatis-3-config.dtd Cause: java.net.ConnectException: Connection timed out: connect

最近发现我的一个web项目只要在家启动时候就出现一个连接错误的问题,大概如下:

Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘orderVersionMapper‘ defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean ‘netezzaSqlSessionFactory‘ while setting bean property ‘sqlSessionFactory‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘netezzaSqlSessionFactory‘ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: java.net.ConnectException: Connection timed out: connect

经过IDE的代码异常提示,在配置文件applicationContext.xml的头文件中有一个头提示无法访问,于是copy 地址http://ibatis.apache.org/dtd/ibatis-3-config.dtd再浏览器中访问,果然请求超时,通过查询发现更改地址就行了,在此记录下:

在配置文件中,将http://ibatis.apache.org/dtd/ibatis-3-config.dtd更改为http://mybatis.org/dtd/mybatis-3-config.dtd

参考地址:http://mybatis-user.963551.n3.nabble.com/Connection-time-out-error-td4026924.html

时间: 2024-10-08 19:47:39

http://ibatis.apache.org/dtd/ibatis-3-config.dtd Cause: java.net.ConnectException: Connection timed out: connect的相关文章

启动storm之后浏览器访问报错,org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)

原因是zookeeper没有启动 Internal Server Error org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused) at org.apache.thrift7.transport.TSocket.open(TSocket.java:183) at org.apache.thrift7.transport

apache开源项目--ibatis

iBATIS一词来源于“internet”和“abatis”的组合,是一个由Clinton Begin在2001年发起的开放源代码项目.最初侧重于密码软件的开发,现在是一个基于Java的持久层框架.iBATIS提供的持久层框架包括SQL Maps和Data Access Objects(DAO),同时还提供一个利用这个框架开发的JPetStore实例. iBATIS 目前提供了三种语言实现的版本,包括:Java..NET以及Ruby.下面是iBATIS的架构图 iBatis JavaDoc: h

IBatis项目中com.ibatis.common.xml.NodeletException的解决方案

一 现象: 今天在写IBatis项目是总是提示我有如下异常: com.ibatis.common.xml.NodeletException java.util.NoSuchElementException Exception in thread "main" java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause

The type org.apache.commons.pool.impl.GenericObjectPool$Config cannot be resolved. It is indirectly

static { try { JedisPoolConfig config = new JedisPoolConfig(); config.setMaxActive(MAX_ACTIVE); config.setMaxIdle(MAX_IDLE); config.setMaxWait(MAX_WAIT); config.setTestOnBorrow(TEST_ON_BORROW); jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, A

Caused by: org.xml.sax.SAXParseException: 外部 DTD: 无法读取外部 DTD 'mybatis-generator-config_1_0.dtd'

1.环境: JDK 1.8 IntelliJ IDEA 2019.3.2 (Community Edition) Build #IC-193.6015.39, built on January 21, 2020 Runtime version: 11.0.5+10-b520.30 amd64 2.现象: 添加 mybatis 的 generatorConfig.xml 后报错 Caused by: org.apache.ibatis.builder.BuilderException: Error

Apache POI – Reading and Writing Excel file in Java

来源于:https://www.mkyong.com/java/apache-poi-reading-and-writing-excel-file-in-java/ In this article, we will discuss about how to read and write an excel file using Apache POI 1. Basic definitions for Apache POI library This section briefly describe a

apache commons JXPath 说明,使用JXPath访问java对象、集合和XML文件

Commons-JXPath 提供了使用Xpath语法操纵符合Java类命名规范的 JavaBeans的工具.也支持 maps, DOM 和其他对象模型.JXPath的主要功能在于一组java类库来使用XPath的方式访问符合JavaBeans规范的java类.java集合(Collections).其他具有动态属性的对象(如Map.ServletContext等),同时提供了一套扩展机制使我们可以增加对这些对象之外的其他对象模型的支持. 如果你要访问的属性不是这个Java类的属性,那么执行过程

struts2 启动tomcat时报错:org.apache.catalina.core.StandardContext filterStart

用struts2+jsp做个网站,到了网站制作后期时,启动tomcat竟然无法启动,挂了.之前一直有用可是今天添加了一些东西就挂了,删除之后还是无法启动tomcat服务器. 下面是报错的代码: <span style="color:#ff0000;"> org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts</span> <s

Connection timed out: connect Nested exception

使用dom4j解析自定义的.xml文件. 大致内容如下: Xml代码 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0&