problems with new Taminoclient()

hello

At first, I’m sorry about my english, I’m a beginner!!

I dont now where ist the problem. the sax.jar file are includet in my classpath. why the error eesage :java.lang.ClassNotFoundException: com.jclark.xml.sax.Driver.

Thank’s about your help !!
Best Regards reymond

tamino 3.1.2.1
j2sdk1.4.0_01
java editor: eclipse


my simple code:
public class tamino{

public static final String DATABASE_URL = (“http://localhost/tamino/elas/ESF”);
public static final String COLLECTION = “SHCS” ;
public static final String USER = “Administrator” ;
public static final String PWD = “love2cat” ;
public TConnection tcon;

Element element = null;


public void TestCon(){

insertRecord(element);
}

public void insertRecord(Element element) {
try
{
TaminoClient tamino = new TaminoClient(DATABASE_URL);
tamino.startSession();
TaminoResult tr= tamino.insert(element);
tamino.commit(false);
tamino.endSession();
}
catch (TaminoError e)
{
System.out.println("Tamino Error Text: " + e.errorText );
System.out.println("Tamino Error Code: " + e.responseCode );
}
catch(Exception ex)
{
ex.printStackTrace();
}
}

}
error:
ava.lang.ClassNotFoundException: com.jclark.xml.sax.Driver
java.lang.ClassNotFoundException: com.jclark.xml.sax.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at com.docuverse.dom.util.SAXReader.createParser(SAXReader.java:174)
at com.docuverse.dom.util.SAXReader.createParser(SAXReader.java:139)
at com.docuverse.dom.util.SAXReader.read(SAXReader.java:69)
at com.docuverse.dom.DOM.readDocument(DOM.java:211)
at com.softwareag.tamino.api.dom.TaminoClient.getTaminoResult(Unknown Source)
at com.softwareag.tamino.api.dom.TaminoClient.getTaminoResult(Unknown Source)
at com.softwareag.tamino.api.dom.TaminoClient.getResultByPost(Unknown Source)
at com.softwareag.tamino.api.dom.TaminoClient.getVersion(Unknown Source)
at com.softwareag.tamino.api.dom.TaminoClient.setUrl(Unknown Source)
at com.softwareag.tamino.api.dom.TaminoClient.(Unknown Source)
at FILE.tamino.insertRecord(tamino.java:65)
at FILE.tamino.TestCon(tamino.java:59)
at TEST.TestGui.main(TestGui.java:19)
java.lang.ClassNotFoundException: com.microstar.xml.SAXDriver
java.lang.ClassNotFoundException: com.jclark.xml.sax.Driver
java.lang.ClassNotFoundException: com.ibm.xml.sax.Driver
java.lang.ClassNotFoundException: com.sun.xml.parser.Parser
java.lang.ClassNotFoundException: com.datachannel.xml.sax.SAXDriver
java.lang.ClassNotFoundException: com.megginson.sax.LarkDriver
java.lang.ClassNotFoundException: com.megginson.sax.MSXMLDriver

Hello,

You need to ensure the following are included in the classpath:-

taminoclient.jar
sax.jar
xp.jar (which includes com.jclark.xml.sax.Driver)
w3cdom1.jar
domsdk.jar

and your program should then work.

Hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.