Thank you Mr. Bull. Could you send me your sql-map-config.xml? My
sql-map-config.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig
PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<sqlMap resource="misc.xml"/>
</sqlMapConfig>
And I got the errors:
[java] [ERROR] The ChkUniqnameService.aar service, which is not
valid, caus
ed Error creating bean with name 'sqlMapClient' defined in class path
resource [
applicationContext.xml]: Invocation of init method failed; nested
exception is j
ava.lang.RuntimeException: Error occurred. Cause:
com.ibatis.common.xml.Nodelet
Exception: Error parsing XML. Cause: java.lang.RuntimeException: Error
parsing
XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not
find resour
ce misc.xml
-Henry
Anthony Bull wrote:
I'm doing iBatis, Spring in an AAR in production released Axis 2 web
services. In our case it is even harder than the equivalent hibernate
setup, especially if you have multiple web services doing it and don't
want them treading on each other's SQL maps.
If the Spring with Hibernate tutorial doesn't work in your case, I've
done a tutorial on how I got my iBatis/Spring/Axis2 setup working that
you can try out:
http://thejavamonkey.blogspot.com/2008/04/axis-2-web-services-with-spring-and.html
cheers,
Ants.
robert lazarski wrote:
I've never used ibatis, but presumably you'd load its config files via
the classpath like you do with hibernate. Hint: load the resources in
an exploded AAR as its easier. There's some tips on loading hibernate
files in the spring tutorial and a good place to start would be trying
the same thing with ibatis.
HTH,
Robert
On Tue, Apr 15, 2008 at 2:39 PM, Henry Lu <[EMAIL PROTECTED]> wrote:
Are there anyones who are using axis2 with spring and ibatis to access a
database? Could some one show me how to do this in the service (not client)
with an aar file? I don't know how to initialize/load the ibatis map file.
-Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Anthony
-------------------------------------
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand
[EMAIL PROTECTED]
Ph +64 4 472 8818
Fax +64 4 472 8811
-------------------------------------
www.bcsoft.co.nz
---------------------------------------------------------------
This email may contain confidential or privileged information,
and is intended for use only by the addressee, or addressees.
If you are not the intended recipient please advise the sender
immediately and do not copy, use or disclose the contents to
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses
received with this email, or to any changes made to the original
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black
Coffee Software Ltd.
---------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]