Your DOCTYPE is incorrect. You should be using this:
 

<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"

"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

Notice the difference in ibatis.apache.org and iBATIS.com

This causes the parser to go to the Internet for the dtd instead of looking in the jar file.

Regards,

Richard

 

-----Original Message-----
From: Ashish Kulkarni [mailto:ashish.kulkarni13@gmail.com]
Sent: Tuesday, February 06, 2007 8:33 AM
To: user-java@ibatis.apache.org
Subject: issue with unknown host exception

Hi
I have a java program which uses ibatis to run SQL queries, this program runs on AS400, and on of the AS400 boxes i am getting following error

Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.
Caused by: java.net.UnknownHostException: ibatis.apache.org                                                                        

The header in my XML file looks like this

<?xml version="1.0" encoding="UTF-8" ?>            
<!DOCTYPE sqlMapConfig                             
PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" 
" http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

i suspect this AS400 has a firewall which blocks all internet traffic.

Is this the cause of this problem, is there any work around to get it working on this AS400 machine?

Regards
Ashish