Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 74327 invoked from network); 26 Jan 2009 17:00:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2009 17:00:22 -0000 Received: (qmail 76144 invoked by uid 500); 26 Jan 2009 17:00:21 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 75469 invoked by uid 500); 26 Jan 2009 17:00:19 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 75460 invoked by uid 99); 26 Jan 2009 17:00:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 09:00:19 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [155.70.16.237] (HELO suomp64i.qwest.com) (155.70.16.237) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 17:00:08 +0000 Received: from suomp60i.qintra.com (suomp60i.qintra.com [151.117.69.27]) by suomp64i.qwest.com (8.14.0/8.14.0) with ESMTP id n0QGxliR010009 for ; Mon, 26 Jan 2009 10:59:47 -0600 (CST) Received: from ITDENE2KSM02.AD.QINTRA.COM (localhost [127.0.0.1]) by suomp60i.qintra.com (8.14.0/8.14.0) with ESMTP id n0QGxfDF003312 for ; Mon, 26 Jan 2009 10:59:41 -0600 (CST) Received: from ITDENE2KM05.AD.QINTRA.COM ([10.1.4.69]) by ITDENE2KSM02.AD.QINTRA.COM with Microsoft SMTPSVC(6.0.3790.1830); Mon, 26 Jan 2009 09:59:41 -0700 X-MessageTextProcessor: DisclaimIt (2.70.270) [Qwest Communications International Inc.] X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C97FD7.7A8833CD" Subject: RE: SqlMapConfig.xml and subsequent sqlMap entries Date: Mon, 26 Jan 2009 09:59:40 -0700 Message-ID: <4183A3E77BDF204180B74CE77F50B0BF09BB162E@ITDENE2KM05.AD.QINTRA.COM> Content-Transfer-Encoding: 7bit In-Reply-To: <497a5e5c.17e7300a.23ab.fffff327@mx.google.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SqlMapConfig.xml and subsequent sqlMap entries thread-index: Acl9ra5OLzGRJs7wSgqJa6swoexwhwABjq0QAAFP4fAAh4yHYA== Importance: normal References: <4183A3E77BDF204180B74CE77F50B0BF09BB1628@ITDENE2KM05.AD.QINTRA.COM> <497a5e5c.17e7300a.23ab.fffff327@mx.google.com> Priority: normal From: "Stanley, Eric" To: X-OriginalArrivalTime: 26 Jan 2009 16:59:41.0901 (UTC) FILETIME=[7B3C37D0:01C97FD7] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C97FD7.7A8833CD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Jonathon, I should have read a little closer. You were right. I apologize for wasting time on a typo. =20 -Ryan ________________________________ From: Jonathan Moores [mailto:jonathan.moores@gmail.com]=20 Sent: Friday, January 23, 2009 5:18 PM To: user-java@ibatis.apache.org Subject: RE: SqlMapConfig.xml and subsequent sqlMap entries Not sure but is there any reason that there are spaces after .xml? =20 From: Stanley, Eric [mailto:Eric.R.Stanley@qwest.com]=20 Sent: zaterdag 24 januari 2009 0:40 To: user-java@ibatis.apache.org Subject: SqlMapConfig.xml and subsequent sqlMap entries =20 All, New to iBATIS, just trying to get the thing to load properly. I am using eclipse 3.4.1, Tomcat 6, iBATIS 2.3.4 and JDK 1.5. It seems to be loading the SqlMapConfig.xml fine, but when it tries to parse the sqlMap entries, it dies hard: =20 java.lang.RuntimeException: Error initializing MyAppSqlConfig class. Cause: java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not find resource com/qwest/pt/domain/sql/Hla.xml=20 This looks to me like a simple classpath issue, and maybe it is. I tried putting the sqlMap files in the WEB-INF/classes folder and updating the SqlMapConfig.xml to no avail. Ive tried just about every combination I can think of, and it still cant find these sqlMap files. I really appreciate any help on this, and would be happy to provide more info if needed. Here is my setup: =20 ------------------------------------------------------------------------ --------- Hla.xml located in: com.qwest.pt.domain.sql ------------------------------------------------------------------------ ---------















------------------------------------------------------------------------ --------- SqlMapConfig.xml ------------------------------------------------------------------------ ---------



































=20 =20 This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. ------_=_NextPart_001_01C97FD7.7A8833CD Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Jonathon,
    I should have read a little = closer. You were=20 right. I apologize for wasting time on a typo.
 
-Ryan


From: Jonathan Moores=20 [mailto:jonathan.moores@gmail.com]
Sent: Friday, January 23, = 2009=20 5:18 PM
To: user-java@ibatis.apache.org
Subject: RE: = SqlMapConfig.xml and subsequent sqlMap entries

Not=20 sure but is there any reason that there are spaces after=20 .xml?

 

From: Stanley,=20 Eric [mailto:Eric.R.Stanley@qwest.com]
Sent: zaterdag 24 = januari 2009=20 0:40
To: user-java@ibatis.apache.org
Subject:=20 SqlMapConfig.xml and subsequent sqlMap = entries

 

All,

    New to = iBATIS, just=20 trying to get the thing to load properly. I am using eclipse 3.4.1, = Tomcat 6,=20 iBATIS 2.3.4 and JDK 1.5. It seems to be loading the = SqlMapConfig.xml fine,=20 but when it tries to parse the sqlMap entries, it dies=20 hard:

 

java.lang.RuntimeException: Error initializing = MyAppSqlConfig=20 class. Cause: java.lang.RuntimeException: Error occurred. Cause: = com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:=20 java.lang.RuntimeException: Error parsing XPath=20 '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not find resource=20 com/qwest/pt/domain/sql/Hla.xml

This=20 looks to me like a simple classpath issue, and maybe it is. I tried = putting the=20 sqlMap files in the WEB-INF/classes folder and updating the = SqlMapConfig.xml to=20 no avail. Ive tried just about every combination I can think of, and it = still=20 cant find these sqlMap files. I really appreciate any help on this, and = would be=20 happy to provide more info if needed. Here is my = setup:

 

---------------------------------------------------= ------------------------------

Hla.xml=20 located in: com.qwest.pt.domain.sql

---------------------------------------------------= ------------------------------

<pre>

<code>

<?xml version=3D"1.0" encoding=3D"UTF-8" ?>

<!DOCTYPE sqlMap

PUBLIC "-//iBATIS.com//DTD SQL Map=20 2.0//EN"

"http://www.ibatis.com/dtd/sql-map-2.dtd">

<sqlMap namespace=3D"Hla">

<select id=3D"getHlaById" parameterClass=3D"java.lang.Integer" resultClass=3D"com.qwest.pt.domain.Hla">

select *=20 from hla where id =3D #value#</select>

</sqlMap>

</code>

</pre>

---------------------------------------------------= ------------------------------

SqlMapConfig.xml

---------------------------------------------------= ------------------------------

<pre>

<code>

<?xml version=3D"1.0" encoding=3D"UTF-8" ?>

<!DOCTYPE sqlMapConfig

PUBLIC "-//ibatis.apache.org//DTD SQL Map Config=20 2.0//EN"

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

<sqlMapConfig>

<transactionManager type=3D"JDBC">

<dataSource type=3D"JNDI">

<property name=3D"DataSource" value=3D"java:comp/env/jdbc/pptracker"/>

</dataSource>

</transactionManager>

<sqlMap resource=3D"com/qwest/pt/domain/sql/Hla.xml = "/>

<sqlMap resource=3D"com/qwest/pt/domain/sql/Loe.xml "/>

<sqlMap resource=3D"com/qwest/pt/domain/sql/Priority.xml=20 "/>

<sqlMap resource=3D"com/qwest/pt/domain/sql/Status.xml = "/>

<sqlMap resource=3D"com/qwest/pt/domain/sql/User.xml = "/>

<sqlMap resource=3D"com/qwest/pt/domain/sql/Action.xml = "/>

</sqlMapConfig>

</code>

</pre>

 

 



This communication is the property of Qwest = and may=20 contain confidential or privileged information. Unauthorized use of this = communication is strictly prohibited and may be unlawful. If you have = received=20 this communication in error, please immediately notify the sender by = reply=20 e-mail and destroy all copies of the communication and any=20 attachments.

------_=_NextPart_001_01C97FD7.7A8833CD--