Re: iBATIS DAO question

2005-03-31 Thread Clinton Begin
Sure, why not. If that's what you need to do, go for it. I don't see any harm other than the loss of transparency (which in this case is a requirement, not a flaw). Cheers, Clinton On Mar 31, 2005 10:29 AM, Karen Koch <[EMAIL PROTECTED]> wrote: > Up until now, I have been keeping my dao.xml fil

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Brandon Goodin
This is highly unlikely considering the getName() returns the fully-qualified class name and the package and class is imported into the class that is referencing. I recommend that you attach the ibatis source to the jar and startup tomcat in your IDE's debug mode. Set a breakpoint on line 303 of th

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Sasha Borodin
Looking at XmlSqlMapClientBuilder.java parseDataSource() method resolves the alias of "DBCP" to DbcpDataSourceFactory.class.getName(), then uses the Resources class to instantiate based on the String name. I think the problem is that Tomcat 5 has a class of an identical name (org.apache.naming.fac

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Brandon Goodin
Also, if you want to debug this error you'd be looking at SqlMpaConfigParser around line 303. Brandon On Thu, 31 Mar 2005 20:21:09 -0600, Sasha Borodin <[EMAIL PROTECTED]> wrote: > Yes, I have ibatis-common-2.jar on the classpath. > > I've tested my classes from within IntelliJ Idea, and implem

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Brandon Goodin
What is the full exception? Brandon On Thu, 31 Mar 2005 20:21:09 -0600, Sasha Borodin <[EMAIL PROTECTED]> wrote: > Yes, I have ibatis-common-2.jar on the classpath. > > I've tested my classes from within IntelliJ Idea, and implemented them > successfully in a number of web applications. I'm no

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Sasha Borodin
Yes, I have ibatis-common-2.jar on the classpath. I've tested my classes from within IntelliJ Idea, and implemented them successfully in a number of web applications. I'm not sure how to go about debugging this particular environment, however. The jars are all located in $CATALINA_HOME/server/li

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Brandon Goodin
do you have the ibatis-common.jar on your classpath? If i were you i would put this in a debugger. Brandon On Thu, 31 Mar 2005 19:16:50 -0600, Sasha Borodin <[EMAIL PROTECTED]> wrote: > Excerpt from sql-map-config.xml: > > > value="com.microsoft.jdbc.sqlserver.SQLServe

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Sasha Borodin
Excerpt from sql-map-config.xml: The error persists whether or not I place the commons-dbcp, commons-pool, commons-collections, and the jdbc driver jars in server/lib. Thanks for looking at this. -Sasha > From: Brandon Goodin <[EMAIL PROTECTED]> > Reply-To: > Date: Thu, 31 Mar

Re: ClassCastException building SqlMap instance

2005-03-31 Thread Brandon Goodin
What are you using for your datasource? Brandon On Thu, 31 Mar 2005 18:32:57 -0600, Sasha Borodin <[EMAIL PROTECTED]> wrote: > I've written some classes that employ the iBatis framework for data access. > All patterns used are identical to the iBatis JPetStore example (DaoManager, > SqlMaps, a "

ClassCastException building SqlMap instance

2005-03-31 Thread Sasha Borodin
I've written some classes that employ the iBatis framework for data access. All patterns used are identical to the iBatis JPetStore example (DaoManager, SqlMaps, a "service" class which abstracts all this, etc.) These classes work great when accessed from a Tomcat web application. But I ran into

Re: Wiki FAQ still broken! (Was Re: Customer Type Handler)

2005-03-31 Thread Clinton Begin
We're in the process of moving the wiki to confluencewe've pretty much had it with MoinMoin. Clinton On Thu, 31 Mar 2005 09:10:43 -0700, Brandon Goodin <[EMAIL PROTECTED]> wrote: > We put in a request and have been following it up. But, no go. I know > the Apache infrastucture guys are strai

iBATIS DAO question

2005-03-31 Thread Karen Koch
Up until now, I have been keeping my dao.xml file in the classpath of my web application, which, as the doc says, is nice for location transparency reasons. However, once the app is deployed, if I want to add a data source or three (common with our "hosted" app which serves multiple clients, each

Re: Wiki FAQ still broken! (Was Re: Customer Type Handler)

2005-03-31 Thread Brandon Goodin
We put in a request and have been following it up. But, no go. I know the Apache infrastucture guys are strained for resources. So, i don't want to be too harsh. We are currently trying to get a Confluence wiki setup. Hopefully it will be real soon. Confluence has committed to grant us a license. W

Wiki FAQ still broken! (Was Re: Customer Type Handler)

2005-03-31 Thread Nathan Maves
Only the last two faq's are available. Anyone heard when this will be fixed or should we just recreate them from the source if anyone still has that? Nathan On Mar 31, 2005, at 8:34 AM, Akins, Greg wrote: Thanks... I forgot to look through the Wiki. That's exactly what I was looking for. -

RE: Customer Type Handler

2005-03-31 Thread Akins, Greg
Thanks... I forgot to look through the Wiki. That's exactly what I was looking for. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 10:23 AM To: ibatis-user-java@incubator.apache.org Subject: Re: Customer Type Handler I am not sure i

Re: Customer Type Handler

2005-03-31 Thread Nathan Maves
I am not sure if this is what you are looking for. Nathan On Mar 31, 2005, at 7:53 AM, Akins, Greg wrote: I'm retrieving a integer from a database,   the result class has a valu

Customer Type Handler

2005-03-31 Thread Akins, Greg
Title: Message I'm retrieving a integer from a database,   the result class has a value which should be an enumerator.   I don't necessarily want this enumerator to be a lookup table in the database (so I can't use a select attribute on my resultMap).   Is this something I should use a Cust