The stack trace suggests that the problem is in your com/tabarca/dao/ibatis/maps/User.xml file, not the sql-map-config.xml file. Can you post that one instead?
Geoff --- Zack Chandler <[EMAIL PROTECTED]> wrote: > Daniel, > Thanks for the idea on the DOCTYPE change. Unfortunately it didn't > help. This one really has me stumped. I have started the web app > through > the tomcat startup script (in other words without eclipse) and still > have > the same error. So it would seem that eclipse is not the culprit. > The > iBatis xml parser definitely finds the sql-map-config.xml file and > then dies > parsing it. I am using iBatis 2.1.5 build 582. > Any other ideas anyone? > > Thanks, > Zack > > -----Original Message----- > From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 20, 2005 1:07 PM > To: user-java@ibatis.apache.org > Subject: Re: SAXParseException... Error parsing XPath > '/sqlMapConfig/sqlMap' > -- any ideas? > > Hi Zack, > > It seems ok for me when checked against the dtd. > One thing that could be causing this, and i'm guessing here, is that > you're using Eclipse and maybe compiling/running your app inside it > using an invalid DOCTYPE. Replace in the DOCTYPE where you have > www.ibatis.com for ibatis.apache.org and try it again. > > Let us know how it goes. > > Cheers, > Daniel Silva. > > On 10/20/05, Zack Chandler <[EMAIL PROTECTED]> wrote: > > Hi, > > First let me say that iBatis is a great framework and I > thank all > > those who contribute to its development. I have successfully used > iBatis > in > > the past but with a current project I am encountering a strange > error. It > > seems that the parser dies on parsing the sql-map-config.xml file. > I am > > using jdk 1.5, eclipse 3.1 and iBatis build 2.1.5. Here is my > config file > > and a stack trace of the error. Any help would be greatly > appreciated. > > Thanks. > > > > sql-map-config.xml > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config > 2.0//EN" > > "http://www.ibatis.com/dtd/sql-map-config-2.dtd"> > > > > <sqlMapConfig> > > <sqlMap resource="com/tabarca/dao/ibatis/maps/User.xml"/> > > </sqlMapConfig> > > > > > > org.springframework.beans.factory.BeanCreationException: Error > creating > bean > > with name 'sqlMapClient' defined in class path resource > > [com/tabarca/domain/ibatis/testApplicationContext.xml]: > Initialization of > > bean failed; nested exception is > > com.ibatis.common.exception.NestedRuntimeException: Error occurred. > Cause: > > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > > com.ibatis.common.exception.NestedRuntimeException: Error parsing > XPath > > '/sqlMapConfig/sqlMap'. Cause: > com.ibatis.common.xml.NodeletException: > > Error parsing XML. Cause: org.xml.sax.SAXParseException: Document > root > > element "sqlMap", must match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: org.xml.sax.SAXParseException: Document root element > "sqlMap", must > > match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.exception.NestedRuntimeException: > Error > parsing > > XPath '/sqlMapConfig/sqlMap'. Cause: > > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > > org.xml.sax.SAXParseException: Document root element "sqlMap", must > match > > DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: org.xml.sax.SAXParseException: Document root element > "sqlMap", must > > match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > com.ibatis.common.exception.NestedRuntimeException: Error occurred. > Cause: > > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > > com.ibatis.common.exception.NestedRuntimeException: Error parsing > XPath > > '/sqlMapConfig/sqlMap'. Cause: > com.ibatis.common.xml.NodeletException: > > Error parsing XML. Cause: org.xml.sax.SAXParseException: Document > root > > element "sqlMap", must match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: org.xml.sax.SAXParseException: Document root element > "sqlMap", must > > match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.exception.NestedRuntimeException: > Error > parsing > > XPath '/sqlMapConfig/sqlMap'. Cause: > > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > > org.xml.sax.SAXParseException: Document root element "sqlMap", must > match > > DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: org.xml.sax.SAXParseException: Document root element > "sqlMap", must > > match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: com.ibatis.common.exception.NestedRuntimeException: Error > parsing > > XPath '/sqlMapConfig/sqlMap'. Cause: > > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > > org.xml.sax.SAXParseException: Document root element "sqlMap", must > match > > DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: org.xml.sax.SAXParseException: Document root element > "sqlMap", must > > match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.exception.NestedRuntimeException: > Error > parsing > > XPath '/sqlMapConfig/sqlMap'. Cause: > > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > > org.xml.sax.SAXParseException: Document root element "sqlMap", must > match > > DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > Caused by: com.ibatis.common.xml.NodeletException: Error parsing > XML. > > Cause: org.xml.sax.SAXParseException: Document root element > "sqlMap", must > > match DOCTYPE root "null". > > Caused by: org.xml.sax.SAXParseException: Document root element > "sqlMap", > > must match DOCTYPE root "null". > > at > > > com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigPa > > rser.java:81) > > at > > > com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientB > > uilder.java:62) > > at > > > === message truncated === ____________________________________________________ Do you Yahoo!? Find a local business fast with Yahoo! Local Search http://au.local.yahoo.com