Dashboard > iBATIS DataMapper > Home > Frequently Asked Questions > How do I use the Java WSDP with iBATIS
How do I use the Java WSDP with iBATIS
Added by Larry Meadors, last edited by Chadwick on Jun 21, 2009  (view change) show comment
Labels: 
(None)


Thanks to Colin Lamond for this tip:

When using J2SE 1.4 with the Sun Web Service Development Kit (WSDK) 1.6 with iBATIS, you get a java.lang.NoSuchMethodError when you call SqlMapClientBuilder.buildSqlMapClient(reader) to create the sql map.

The Sun WSDK 1.6 is shipped with JAXP 1.3, but J2SE 1.4 includes JAXP1.1, and the two versions are not compatible because they come from completely different code bases.

To resolve this issue you have to make the JVM ignore the shipped 1.1 version and use 1.3 by using the endorsed option to override 1.1 with 1.3, e.g.

java -Djava.endorsed.dirs=C:\jaxp\lib;C:\jaxp\lib\endorsed -cp C:\build TestClass

Site running on a free Atlassian Confluence Open Source Project License granted to OSS. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators