ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin" <clinton.be...@gmail.com>
Subject Re: Cannot find sqlmap in jar - new bug
Date Sun, 11 Jun 2006 07:37:26 GMT
Did you try removing the "/" from the beginning of your resource path when
loading the xml files from the JAR file?

  <sqlMap resource="/com/company/people/impl/PeopleImpl-sqlmap.xml" />

Clinton


On 6/11/06, Brandon Goodin <brandon.goodin@gmail.com> wrote:
>
> I'd recommend that you place your sqlMapConfig.xml in the classes
> directory and use the follwing spring config.
>
> <bean id="sqlMapClient"
> class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
>   <property name="configLocation" value="classpath:sqlMapConfig.xml"/>
>   <property name="dataSource" ref="dataSource"/>
> </bean>
>
> I would assume this issue is tied to the fact that the sqlMapConfig is
> not being loaded from the classpath.
>
> Brandon
>
> On 6/11/06, Paul Benedict <paul4christ79@yahoo.com> wrote:
> > Brandon,
> >
> > >>All i can tell you is that i have recently created an application that
> > uses Spring, iBATIS and is jarred up.
> >
> > Forgive me, but based on the feedback I am getting, I am not convinced
> at all that my problem is
> > being understood. Can you give me some confidence it is? As I said, this
> is not a problem with the
> > application being jarred up --- my application is not jarred up.
> >
> > My problem arises when:
> > (1) the sqlmapconfig.xml exists in the webapp but
> > (2) the actual sqlmap files belong in a LIB jar.
> >
> > Do you see the difference?
> >
> > Paul
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>

Mime
View raw message