Re: junit test

2006-01-24 Thread Henry Lu
Bad news! iBatis 2.1.6 doesn't work for Junit test with java 1.5. When I switched iBatis back to 1.5, it works. Any idea why? in Fixing? new Version coming out with fixing? -Henry Larry Meadors wrote: I am using, and have built iBATIS with jdk1.5 - unit tests and all. IIRC, it was pissed ab

ibatis 2.1.16

2006-01-24 Thread Henry Lu
Doesn't work with JUnit!!! 2.1.5 works. -Henry Larry Meadors wrote: I am using, and have built iBATIS with jdk1.5 - unit tests and all. IIRC, it was pissed about the lack of a xalan impl but once I put that in devlib it was happy. Larry On 1/23/06, Henry Lu <[EMAIL PROTECTED]> wrote: I

Re: junit test

2006-01-24 Thread Nathan Maves
Not sure what the issue it since you have not included any error messages but you should upgrade your 2.1.6 to 2.1.7. Nathan On Jan 24, 2006, at 8:44 AM, Henry Lu wrote: Bad news! iBatis 2.1.6 doesn't work for Junit test with java 1.5. When I switched iBatis back to 1.5, it works. Any idea

Re: junit test

2006-01-24 Thread Henry Lu
iBatis2.1.7 DOES NOT work with JUnit!!! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [C:\devel\webapps\coreyp\WEB-INF\app_beans.xml]: Initialization of bean failed; nested exception is com.ibatis.common.exception.NestedR

Re: junit test

2006-01-24 Thread Nathan Maves
Becaureful what you claim :) ibatis works perfectly fine with ibatis. If you need proof download the source of ibatis and run the unit testing for it. What you are trying to say is that your unit tests are failing. I can see this but the first line of your error message. This is not an

Re: junit test

2006-01-24 Thread Henry Lu
Here is my ibatis configuration file: http://www.ibatis.com/dtd/sql-map-config-2.dtd";> It works fine for 2.1.5 and doesn't work for 2.1.6 and 2.1.7. What is wrong with my file? -Henry Nathan Maves wrote: Becaureful what you claim :) ibatis works perfectly fine with ibatis. If you

RE: junit test

2006-01-24 Thread Niels Beekman
IBatis indeed works very well with itself :) I think you are wrong on the interpretation of the exception, "namespace" is not declared for element "sqlMap" actually means you have used the attribute "namespace", but it is not declared in (allowed by) the DTD. Niels -Original Message- F

Re: ibatis 2.1.16

2006-01-24 Thread Larry Meadors
Are you talking about the build? If so, look here: http://opensource2.atlassian.com/confluence/oss/display/IBATIS/unix You're losing me here Henry. Larry On 1/24/06, Henry Lu <[EMAIL PROTECTED]> wrote: > Doesn't work with JUnit!!! 2.1.5 works. > > -Henry > > Larry Meadors wrote: > > >I am usi

Re: ibatis 2.1.16

2006-01-24 Thread Clinton Begin
Also remember that 2.1.6 had the TopLink DAO bug, so you should upgrade to 2.1.7. Cheers, ClintonOn 1/24/06, Larry Meadors <[EMAIL PROTECTED]> wrote: Are you talking about the build?If so, look here:http://opensource2.atlassian.com/confluence/oss/display/IBATIS/unix You're losing me here Henry.Lar

RE: junit test

2006-01-24 Thread Niels Beekman
Hi, First, the problem is likely not in this configuration file, please try to isolate the problem to one sqlmap-file only and post its contents... Second, you are still using the old locations for the DTD's, please see the postings about the new locations. Third, don't know if you do it on pu

Re: junit test

2006-01-24 Thread Henry Lu
There is some confusion here. All ibatis version 2.1.5,2.16.2,1.7 work fine with my web application. I am talking about JUNIT here. When I run JUnit with ibatis, all files, code are working fine for 2.1.5, but failed with 2.1.6 and 2.1.7. -Henry Niels Beekman wrote: IBatis indeed works ve

Re: ibatis 2.1.16

2006-01-24 Thread Henry Lu
There is some confusion here. All ibatis version 2.1.5,2.16.2,1.7 work fine with my web application. I am talking about JUNIT here. When I run JUnit with ibatis, all files, code are working fine for 2.1.5, but failed with 2.1.6 and 2.1.7. -Henry P.S. Here is the errors: org.springframework.

Re: junit test

2006-01-24 Thread Ben Munat
Henry, Try switching to the new DTD: http://ibatis.apache.org/dtd/sql-map-2.dtd";> The DTD is no longer available at ibatis.com. Maybe that's screwing up junit. b Henry Lu wrote: Here is my ibatis configuration file: http://www.ibatis.com/dtd/sql-map-config-2.dtd";> It works fine

Re: ibatis 2.1.16

2006-01-24 Thread Larry Meadors
What DTD are you using? Larry On 1/24/06, Henry Lu <[EMAIL PROTECTED]> wrote: > There is some confusion here. All ibatis version 2.1.5,2.16.2,1.7 work > fine with my web application. I am talking about JUNIT here. > > When I run JUnit with ibatis, all files, code are working fine for > 2.1.5, bu

Re: junit test

2006-01-24 Thread Henry Lu
Thanks Ben but that doesn't solve the problem. http://ibatis.apache.org/dtd/sql-map-2.dtd is still there. See the problem is that EVERY thing work just fine with 2.1.5 but not 2.1.6 and 2.1.7 for JUnit. All versions work just fine for web applications. -Henry Ben Munat wrote: Henry, Try sw

Re: junit test

2006-01-24 Thread Larry Meadors
I think your DTD is buggered up - should be ibatis.apache.org, not ibatis.com. On 1/24/06, Henry Lu <[EMAIL PROTECTED]> wrote: > Here is my ibatis configuration file: > > > PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" > "http://www.ibatis.com/dtd/sql-map-config-2.dtd";> > > > "edu/um

Re: ibatis 2.1.16

2006-01-24 Thread Henry Lu
http://ibatis.apache.org/dtd/sql-map-2.dtd";> and http://www.ibatis.com/dtd/sql-map-config-2.dtd";> Once again, all web application works just fine with any ibatis and all my files and code. Just for JUnit testing, 2.1.6 and 2.1.7 failed. -Henry Larry Meadors wrote: What DTD are you

Re: junit test

2006-01-24 Thread Henry Lu
You don't get the point. All files, code are working just fine in my web application. When I started JUnit testing, I got this errors/issue. -Henry Larry Meadors wrote: I think your DTD is buggered up - should be ibatis.apache.org, not ibatis.com. On 1/24/06, Henry Lu <[EMAIL PROTECTED]> wro

Re: ibatis 2.1.16

2006-01-24 Thread Clinton Begin
Henry, I can't recreate this.  Could it be something wrong with your IDE?  Try building and running your tests with Ant via the command line, just to be sure. I have run unit tests without issue with iBATIS 2.1.6 and 2.1.7 within IntelliJ IDEA and from the command line with Ant. Cheers, ClintonOn

Re: junit test

2006-01-24 Thread Larry Meadors
Henry, your DTD is just plain wrong. You have "http://www.ibatis.com/dtd/sql-map-config-2.dtd";. That is wrong, wrong, wrong. You are making a sql map, not a sql map CONFIG. You need "http://ibatis.apache.org/dtd/sql-map-2.dtd"; instead. Fix your DTD, and there will be much rejoicing. Larry

Re: junit test

2006-01-24 Thread Clinton Begin
I think Larry does get the point and is absolutely right.  Your DTDs are messed up, whether that's the problem or not, we don't know.  Your DTDs should read: PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd "> PUBLIC "-//i

Re: ibatis 2.1.16

2006-01-24 Thread Henry Lu
Thank you very much Clinton for your understanding. I am using eClipse 3.1 and it works fine with ibatis 2.1.5 and it doesn't work with 2.16. and 2.1.7 -Henry Clinton Begin wrote: Henry, I can't recreate this. Could it be something wrong with your IDE? Try building and running your tests w

Re: junit test

2006-01-24 Thread Henry Lu
Okay, finally everything is sorted out nicely. the old dtd files don't work with with 2.1.6 and 2.1.7 for JUnit testing. I change all dtd locations and JUnit testing works now. Thanks for all your help! Sorry for the confusion. -Henry Clinton Begin wrote: I think Larry does get the point

name space

2006-01-24 Thread Edwin Lukaweski
Hi:       I seem to be having a problem with the name space facility.       I get the following exception:   "There is no statement named ADDAM_GROUP.abatorgenerated_selectByPrimaryKey in this SqlMap."       The XML map snippet is:   http://ibatis.apache.org/dtd/sql-map-2.dtd">   

Re: name space

2006-01-24 Thread Clinton Begin
This is the second account of the same problem Your DTD is messed up.  Please refer to the ibatis.apache.org homepage for the proper doctypes. Cheers, ClintonOn 1/24/06, Edwin Lukaweski <[EMAIL PROTECTED]> wrote: Hi:       I seem to be having a problem with the name space facility.  

Re: name space

2006-01-24 Thread Edwin Lukaweski
Thank you for the response.   However, I get the same error when I fixed the DTD, so here it is again     Hi:       I seem to be having a problem with the name space facility.       I get the following exception:   "There is no statement named ADDAM_GROUP.abatorgenerated_selectByPrimaryKey

Re: name space

2006-01-24 Thread Jeff Butler
You need to make sure that you enable statement namespaces in your sqlmapconfig file.       ...     Jeff Butler  On 1/24/06, Edwin Lukaweski <[EMAIL PROTECTED]> wrote: Thank you for the response.   However, I get the same error when I fixed the DTD, so here it is again     Hi:       I seem to

[Fwd: ibatis and oracle 7.]

2006-01-24 Thread Diran Ayandele
Hi, I have an old database that I need to extract some information from. When the query runs it appears to work fine, but the result set is bizarre. It seems to repeat the first columnm and the headers don't align. DEBUG 01-24 10:38:27 {pstm-11} PreparedStatement: SELEC

Re: [Fwd: ibatis and oracle 7.]

2006-01-24 Thread Nathan Maves
Here is a little bit more info on this issue. The database is run by cards Yes Oracle 7! Notice in the query that we alias the columns... yet in the result set log you only see a few of them. Right now the result class is a HashMap for debugging purposes. Could the JDBC 10g drivers b

Re: [Fwd: ibatis and oracle 7.]

2006-01-24 Thread Larry Meadors
Possibly, do you have older drivers to try? Larry On 1/24/06, Nathan Maves <[EMAIL PROTECTED]> wrote: > Could the JDBC 10g drivers be causing the issue?

Re: name space

2006-01-24 Thread Edwin Lukaweski
TremendousI thought it might be something simple.   Thanks, Edwin   - Original Message - From: Jeff Butler To: [email protected] Sent: Tuesday, January 24, 2006 2:49 PM Subject: Re: name space You need to make sure that you enable statement n

Re: [Fwd: ibatis and oracle 7.]

2006-01-24 Thread Nathan Maves
I was able to find an forward the classes12.zip file to Diran and that seemed to solve the issues. On Jan 24, 2006, at 1:37 PM, Larry Meadors wrote: Possibly, do you have older drivers to try? Larry On 1/24/06, Nathan Maves <[EMAIL PROTECTED]> wrote: Could the JDBC 10g drivers be causing

How about ibatis performance

2006-01-24 Thread Anthony Hong
I'm novice of ibatis. I interested in it, its simple but with many useful functions. Anybody can tell me thing about its performance? How slow its compare with JDBC. In my mind, SQL is written by yourself. So it should have good controlling on sql performance -- Anthony Hong

Re: How about ibatis performance

2006-01-24 Thread Clinton Begin
Performance experiences differ based on a number of factors.  You're best off writing a couple of unit tests that describe your case in both JDBC and iBATIS.  Then run them side by side using a multithreaded load test.  If you experience more than a 10% loss, post your tests here and we'll have a

Is there anyway to reload sqlmap.xml during system runing

2006-01-24 Thread Anthony Hong
hi all, I have a problem during development. SQLMapClient will read resource of sqlmap configuration. SQLMap have sqls defined in there. My problem is if sql failed. I can redeploy correct one but do not have to restart web server. dynamic reload the latest updated sql map file. Can? -- Anthony