Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 2028 invoked from network); 23 Feb 2006 14:01:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 14:01:46 -0000 Received: (qmail 97303 invoked by uid 500); 23 Feb 2006 14:01:15 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 97284 invoked by uid 500); 23 Feb 2006 14:01:15 -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 97273 invoked by uid 99); 23 Feb 2006 14:01:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 06:01:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.106.220.51] (HELO mail92.messagelabs.com) (194.106.220.51) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 23 Feb 2006 06:01:14 -0800 X-VirusChecked: Checked X-Env-Sender: Paul.Carr@express-gifts.co.uk X-Msg-Ref: server-9.tower-92.messagelabs.com!1140703251!16163538!1 X-StarScan-Version: 5.5.9.1; banners=-,-,- X-Originating-IP: [193.128.111.60] Received: (qmail 8395 invoked from network); 23 Feb 2006 14:00:52 -0000 Received: from mailhost.findel.co.uk (HELO mailhost.findel.co.uk) (193.128.111.60) by server-9.tower-92.messagelabs.com with SMTP; 23 Feb 2006 14:00:52 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Namespaces not working Date: Thu, 23 Feb 2006 14:02:20 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Namespaces not working Thread-Index: AcY4gJLBLX+znztUQ0CvOOLaLE4CTwAASfYA From: "Paul Carr" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N (DOH) thanks Brandon -----Original Message----- From: Brandon Goodin [mailto:brandon.goodin@gmail.com]=20 Sent: 23 February 2006 13:52 To: user-java@ibatis.apache.org Subject: Re: Namespaces not working Do you have namespace enabled? ... ... Brandon On 2/23/06, Paul Carr wrote: > > > > Can someone tell me why my xml namespaces aren't working.. > > > > I have used abator to generate my SQLmaps and DAOS. > > The generated SQLmap and DAO for my manufacture_request table are attached. > > When I run my test code ( to do an insert ) I get :- > > com.ibatis.sqlmap.client.SqlMapException: There is no > statement named > upca_manufacture_request.abatorgenerated_insert in this > SqlMap. > > If I remove the namespace (upca_manufacture_request) from the daoImpl, it > works fine. > > > > Also when abator initially generated my SQLMap it was referencing > 'abatorgenerated_Example_Where_Clause' from within the SQL > map as being qualified by the namespace... (upca_manufacture_request) which > was causing the exeption at the bottom. I had to remove the namespace > manually from the sql map to get it to run. > > > > Any suggestions ? > > > > I am using eclipse 3.1.1 and JDK 1.3 > > > > > > > > Error while configuring DaoManager. Cause: > 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: com.ibatis.common.exception.NestedRuntimeException: > Error parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: com.ibatis.common.xml.NodeletException: Error > parsing XML. Cause: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMapConfig/sqlMap'. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. > Cause: com.ibatis.common.exception.NestedRuntimeException: > Error parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: com.ibatis.common.xml.NodeletException: Error > parsing XML. Cause: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > 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: com.ibatis.common.exception.NestedRuntimeException: > Error parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: com.ibatis.common.xml.NodeletException: Error > parsing XML. Cause: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMapConfig/sqlMap'. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. > Cause: com.ibatis.common.exception.NestedRuntimeException: > Error parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: com.ibatis.common.xml.NodeletException: Error > parsing XML. Cause: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Error > parsing XPath '/sqlMap/select'. Cause: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > Caused by: > com.ibatis.common.exception.NestedRuntimeException: Could > not find SQL statement to include with refid > 'upca_manufacture_request.abatorgenerated_Example_Where_Clause' > > > > -----Original Message----- > From: Jeff Butler [mailto:jeffgbutler@gmail.com] > Sent: 22 February 2006 20:25 > To: user-java@ibatis.apache.org > Subject: Re: abator for eclipse generates *Examples classes > > > > > The example class is used in the selectByExample and deleteByExample methods > - it's used to implement "query by example" functionality. There's another > recent thread on this list where I show an example of using these methods. > > > > > > In a stand alone (or any) app, you'll need to do these things: > > > > > > 1. Create an SqlMapConfig.xml file that references the generated SqlMap > files > > > 2. Create a dao.xml file that references the SqlMapConfig.xml and declares > all the generated DAOs > > > 3. Initialize the DaoManager > > > 4. Use the DAOs > > > > > > This information is all covered in the regular iBATIS documentation for the > Sql Map framework and the DAO framework. Step 1 would be in the SqlMap > documentation, steps 2-4 are in the DAO documentation. Any tutorial on > iBATIS would also cover these steps. > > > > > > Jeff Butler > > > > > > > On 2/22/06, Paul Carr wrote: > > > Hi , newb to ibatis , Just used abator for eclipse to generate DAO's for a > simple table and I got :- > > > > TableSQLmap - the sqlMap > > Table.java - the value object > > TableExample.java - some class with the same data as the value > object, but everythings an int, This is where I'm getting confused > > TableDAO interface - the DAO interface > > TableDAOImpl - implements the above interface, but doesn't > use the generated value objects.... Uses the value object Examples ??? > > > > Has anyone got a good example of how all these hang together in a stand > alone java app ? In particular, what you do with the TableExample classes > ? > > > > Cheers > > Paul > > > > > > >