Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Connection Error

Connection Error

2003-08-08       - By Rajesh Mulpuri

 Back
Reply:     1     2     3  

hi Arul,

The db2jcc.jar which you are using may be of older
version which doesn't have getLogWriter method in the
java.sql.DriverManager Source code of java.sql.DriverManager class. Try to get a newer
version of the jar file. Before usage, do check if the
java.sql.DriverManager Source code of java.sql.DriverManager class packaged with the jar
file has the method.

Hope this solves your problem.

Rajesh Mulpuri

--- Arul Prakasam <arul.prakasam@(protected)>
wrote: > Hi,
>
> I have a problem associated with Java-DB2. Though it
> is irrelevant to ask this kind of doubt in this
> forum. But this is the only forum I have subscribed
> to. Hence I am putting the question to you all. So
> please excuse me.
>
> I have DB2 8.1 Client installed in win2000. I have
> also Java 1.3.
> My Connection String goes like this.
>
> private Connection con = null;
>
Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance();
> con = DriverManager.getConnection(
> "jdbc:db2://14.18.2.232:50000/ibm_p630",
> "dbinst1","password");
>
> I am unable to establish the connection to the
> server.My Db2 Server is running on Unix. I have
> checked the classpath, path also and I have my
> db2jcc.jar file present in relevant directory where
> my Classpath points to. My Error goes likt this..
>
> java.lang.NoSuchMethodError Source code of java.lang.NoSuchMethodError: java.sql.DriverManager Source code of java.sql.DriverManager:
> method getLogWriter()Ljava/
> io/PrintWriter; not found
>         at
>
com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:224)
>         at
> java.sql.DriverManager Source code of java.sql.DriverManager(Compiled Code)
>         at
>
java.sql.DriverManager Source code of java.sql.DriverManager(DriverManager.java:126)
>         at
>
JavaDB2Work.DB.GetDBConnection.connect(GetDBConnection.java:128)
>         at
> JavaDB2Work.DB.CallDB.getConnection(CallDB.java:25)
>         at
> JavaDB2Work.DB.CallDB.main(CallDB.java:15)
>
>
> Can Anyone help me to solve this problem. I am very
> new to Java Programming.
> Thanks in Advance.
>
> Rgds
> Arul Prakasam.
> ---
> DB2Team,
> 9th Floor, Raheja Towers
> MG Road, Blre-2 (See http://lre-2.ora-code.com). Ph 5597600 X:3362
>
>
>
> DISCLAIMER:
> This message contains privileged and confidential
> information and is intended only for the individual
> named.If you are not the intended recipient you
> should not disseminate,distribute,store,print, copy
> or deliver this message.Please notify the sender
> immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your
> system.E-mail transmission cannot be guaranteed to
> be secure or error-free as information could be
> intercepted,corrupted,lost,destroyed,arrive late or
> incomplete or contain viruses.The sender therefore
> does not accept liability for any errors or
> omissions in the contents of this message which
> arise as a result of e-mail transmission. If
> verification is required please request a hard-copy
> version.
>
>
====================================================================
> Community Web Site (Core J2EE Patterns Catalog -
> Online Version):
>  http://java.sun.com/blueprints/corej2eepatterns
> Getting Started (Beta Version):
>
>
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
> Get the book:
>
>
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 (See http://tte-20.ora-code.com)
> List Archive:
>
>
http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing:
>  email "signoff J2EEPATTERNS-INTEREST" to
listserv@(protected)

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new
/pc/

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 (See http://tte-20.ora-code.com)
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.