[jira] Commented: (IBATIS-345) Internal DTD is not loaded if external DTD URL is not reachable

2006-09-19 Thread Isaac Arias (JIRA)
[ 
http://issues.apache.org/jira/browse/IBATIS-345?page=comments#action_12435994 ] 

Isaac Arias commented on IBATIS-345:


Thanks Jeff.

We're deploying this application with the latest versions of the Spring 
Framework (2.0 rc4) and Tomcat (5.5.17) and there are no other parser JARs in 
the classpath. The one in the stack trace is probably the one included with the 
Sun JDK (1.5.0_08) in rt.jar. So this must be an integration issue that must be 
resolved at some other level.

I will post this scenario to the list to see if it rings a bell to someone else 
with this setup.

 Internal DTD is not loaded if external DTD URL is not reachable
 ---

 Key: IBATIS-345
 URL: http://issues.apache.org/jira/browse/IBATIS-345
 Project: iBatis for Java
  Issue Type: Bug
  Components: Build/Deployment
Affects Versions: 2.1.7
 Environment: JDK 1.5.0_08, Windows XP, Spring Framework 2.0 RC3, 
 Tomcat 5.5.17.
Reporter: Isaac Arias

 Earlier today all the apache.org web sites (including ibatis.apache.org) were 
 unreachable for a period of time (about 1 hour). During this outage, I was 
 not able to start an iBATIS-dpendent application because iBATIS was not able 
 to parse the XML files. Apparently it was attempting to load the external DTD 
 for validation and, not being able to connect, it simply died.
 Here's a sample of the stack trace I got:
 15:06:40,267 [Thread-1] ERROR 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]  - 
 Exception sending context initialized event to listener instance of class 
 org.springframework.web.context.ContextLoaderListener
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'sqlMap' defined in ServletContext resource 
 [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested 
 exception is com.ibatis.common.exception.NestedRuntimeException: Error 
 occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  
 Cause: java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: 
 com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: 
 com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
   at 
 com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:81)
   at 
 com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:62)
   at 
 org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:255)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
   at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
   at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:248)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
   at 
 org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at 
 org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at 
 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at 
 org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at 
 

[jira] Commented: (IBATIS-345) Internal DTD is not loaded if external DTD URL is not reachable

2006-09-18 Thread Jeff Butler (JIRA)
[ 
http://issues.apache.org/jira/browse/IBATIS-345?page=comments#action_12435576 ] 

Jeff Butler commented on IBATIS-345:


This is almost certainly an issue of mismatching the iBATIS version and the 
DOCTYPEs.

Please verify that you are using iBATIS 2.1.7 or later, and also verify that 
the DOCTYPEs are as specified on the iBATIS home page or in the latest iBATIS 
documentation (i.e. ibatis.apache.org and NOT ibatis.com).

In the future, please use the mailing lists for support questions.


 Internal DTD is not loaded if external DTD URL is not reachable
 ---

 Key: IBATIS-345
 URL: http://issues.apache.org/jira/browse/IBATIS-345
 Project: iBatis for Java
  Issue Type: Bug
  Components: Build/Deployment
Affects Versions: 2.1.7
 Environment: JDK 1.5.0_08, Windows XP, Spring Framework 2.0 RC3, 
 Tomcat 5.5.17.
Reporter: Isaac Arias

 Earlier today all the apache.org web sites (including ibatis.apache.org) were 
 unreachable for a period of time (about 1 hour). During this outage, I was 
 not able to start an iBATIS-dpendent application because iBATIS was not able 
 to parse the XML files. Apparently it was attempting to load the external DTD 
 for validation and, not being able to connect, it simply died.
 Here's a sample of the stack trace I got:
 15:06:40,267 [Thread-1] ERROR 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]  - 
 Exception sending context initialized event to listener instance of class 
 org.springframework.web.context.ContextLoaderListener
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'sqlMap' defined in ServletContext resource 
 [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested 
 exception is com.ibatis.common.exception.NestedRuntimeException: Error 
 occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  
 Cause: java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: 
 com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: 
 com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
   at 
 com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:81)
   at 
 com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:62)
   at 
 org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:255)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
   at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
   at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:248)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
   at 
 org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at 
 org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at 
 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at 
 org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at 
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
   at 

[jira] Commented: (IBATIS-345) Internal DTD is not loaded if external DTD URL is not reachable

2006-09-18 Thread Isaac Arias (JIRA)
[ 
http://issues.apache.org/jira/browse/IBATIS-345?page=comments#action_12435588 ] 

Isaac Arias commented on IBATIS-345:


We are using iBATIS 2.1.7.597 and here's the DOCTYPE in the file:

!DOCTYPE sqlMapConfig 
PUBLIC -//ibatis.apache.org//DTD SQL Map Config 2.0//EN 
http://ibatis.apache.org/dtd/sql-map-config-2.dtd;

By the way, there was another outage just now and we could reproduce the 
problem.

For some reason it is not picking up the DTD from the JAR file when 
ibatis.apache.org was unreachable. Can iBATIS be forced to use the JAR DTDs 
instead of going out to the network to retrieve this?

 Internal DTD is not loaded if external DTD URL is not reachable
 ---

 Key: IBATIS-345
 URL: http://issues.apache.org/jira/browse/IBATIS-345
 Project: iBatis for Java
  Issue Type: Bug
  Components: Build/Deployment
Affects Versions: 2.1.7
 Environment: JDK 1.5.0_08, Windows XP, Spring Framework 2.0 RC3, 
 Tomcat 5.5.17.
Reporter: Isaac Arias

 Earlier today all the apache.org web sites (including ibatis.apache.org) were 
 unreachable for a period of time (about 1 hour). During this outage, I was 
 not able to start an iBATIS-dpendent application because iBATIS was not able 
 to parse the XML files. Apparently it was attempting to load the external DTD 
 for validation and, not being able to connect, it simply died.
 Here's a sample of the stack trace I got:
 15:06:40,267 [Thread-1] ERROR 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]  - 
 Exception sending context initialized event to listener instance of class 
 org.springframework.web.context.ContextLoaderListener
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'sqlMap' defined in ServletContext resource 
 [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested 
 exception is com.ibatis.common.exception.NestedRuntimeException: Error 
 occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  
 Cause: java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: 
 com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: 
 com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
 Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
 java.net.ConnectException: Connection timed out: connect
 Caused by: java.net.ConnectException: Connection timed out: connect
   at 
 com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:81)
   at 
 com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:62)
   at 
 org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:255)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
   at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
   at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:248)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
   at 
 org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at 
 org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at 
 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at