Hi,
I am learning to use the above components and I am using a sample servlet.
The code is as follows:

String url = "jdbc:db2://localhost:6789/tcasedb";

String userid = "db2admin";
String passwd = "db2admin";

String dbDriver = ("com.ibm.db2.jcc.DB2Driver");

Class.forName(dbDriver).newInstance();

con = DriverManager.getConnection(url, userid, passwd);

out.println("<H1>Employee Roster</H1>");
Statement stmt = con.createStatement();

--- I omitted not relevant code --------


As a result I get the following:
com.ibm.db2.jcc.b.DisconnectException: A communication error has been detected. Communication protocol being used: {0}. Communication API being used: {1}. Location where the error was detected: {2}. Communication function detecting the error: {3}. Protocol specific error codes(s) {4}, {5}, {6}. TCP/IP SOCKETS Reply.fill() InputStream.read() Connection reset * 0 at com.ibm.db2.jcc.a.a.a(a.java:329) at com.ibm.db2.jcc.a.ba.b(ba.java:153) at com.ibm.db2.jcc.a.ba.c(ba.java:193) at com.ibm.db2.jcc.a.ba.c(ba.java:306) at com.ibm.db2.jcc.a.ba.t(ba.java:1112) at com.ibm.db2.jcc.a.bb.a(bb.java:33) at com.ibm.db2.jcc.a.b.a(b.java:892) at com.ibm.db2.jcc.a.b.a(b.java:439) at com.ibm.db2.jcc.a.b.a(b.java:293) at com.ibm.db2.jcc.a.b.(b.java:207) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:2 44) at java.sql.DriverManager.getConnection(DriverManager .java:512) at java.sql.DriverManager.getConnection(DriverManager .java:171) at dbSampleServlet.servlet.dbSampleServlet.doPost(dbS ampleServlet.java:96) at javax.servlet.http.HttpServlet.service(HttpServlet .java:709) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)
-----------------------------------------------------------
Any helping hand is greatly appreciated!!
Thank you
Ciao
Sandro