Problem with using the new API in a servlet


I’m trying to use the new API in a servlet environment. I’ve managed to get a clean compile.

Then I try to run it and I get this error
at com.softwareag.tamino.db.API.response.dom.TDOMInputStreamInterpreter.setMessageContentItem(
at com.softwareag.tamino.db.API.response.dom.TDOMInputStreamInterpreter.setResponseInfoContent(
at com.softwareag.tamino.db.API.response.dom.TDOMInputStreamInterpreter.doInterpret(
at com.softwareag.tamino.db.API.response.TInputStreamInterpreter.interpret(
at com.softwareag.tamino.db.API.response.TResponseBuilderImpl.doBuild(
at com.softwareag.tamino.db.API.response.TResponseBuilderImpl.buildForXML(
at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.query(
at at2.PatientQuery2.readTamino(
at at2.PatientQuery2.performTask(
at at2.PatientQuery2.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.facade.ServletHandler.doService(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.facade.ServletHandler.service(
at org.apache.tomcat.core.ContextManager.internalService(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$

I’ve imported the jar files into my IDE (VisualAge) and checked it, and it does have the method that the error says it can not find.

I run Apache with Tomcat 3.3

What am I doing wrong? Any help would be appreciated.


Hi Amir,

are you sure that all jar files that come with the API are available in your servlet environment at run time?


is a list of the jar file I installed:


Does this look right?

The list is Ok.

Did you make sure that those jar files are also available at run time in the servlet environment?

Not only at development time in Visual Age!


Please check out the thread “New API and Servlets Problem” in this forum. It might solve your problem…

Regards, Christian.

Originally posted by Christian Gengenbach:
Please check out the thread "New API and Servlets Problem" in this forum. It might solve your problem...

Regards, Christian.


I checked that post but I still could not find the problem.

I scanned all the jar files in tomcat\lib and tomcat\common and looked for TDOMInputStreamInterpreter. There is only one instance of this class and that is in TaminoAPI4J.jar.

So this tells me that the correct version of this class is being executed by Tomcat. And yes I do have all the jars in my classpath, otherwise I would've gotten ClassDefNotFound.

Anyhow, I've read somewhere that cursoring with the new API only works with Transactions. I'm not sure what this means exactly, maybe something to do with the LocalTransaction class? At the moment I'm not using any transaction classes, all I'm using is the TConnection class. Could this be the problem? Any thoughts on this?


Any news on this?

Sorry, no. Also people are on vacation.

Anybody out there, who could help?

Do you by any chance have access to the source code for TDOMInputStreamInterpreter class?

If so, could you check to see if the setMessageContentItemmethod actually exists or not?

I would’ve done it myself but I don’t have the source =/


It does indeed exist in my copy of the source. As far as I can tell this hasn’t changed since the end of July.