> Hengtai Yu wrote:
>
> Hi,
> I try to set up connection pool using one of 2 methods:both fail!
> 1. DMConnectionManager.java (written by Hans bergsten), when I test it, message
> always is :can't get connection.
This is a message written by the test client, but the pool classes also write
detailed messages to the log file. Look at the output in the log file and I'm
sure you find a message that helps you find the real problem (also see below).
> Both DMConnectionManager.java and example file
> TestServer.java pass compile. and I have put DMConnectionManager.class in
> classpath, why?
Do you also have the JDBC driver classes in the classpath? Or if you use the
JDBC-ODBC bridge driver bundled with Java, have you defined a System DSN and
defined the corresponding JDBC URL in the db.properties file?
> 2. I use another one: ServletConnection.java , ConnectionPool.java (with Timer
> and TimerListener class) (written by Karl Moss, in book:Java Servlets) and test
> file FastEmployeeList1.java. Error message is: can not load
> ServletConnection.class and FastEmployeeList1.class, JWS can not find them (even I
> can see them after compile them).
> Why?
Sounds like a classpath problem. Note that the classpath used by JWS is not
the same as you set for the account you use to start JWS. By default, JWS
includes the <JWS-HOME>/classes directory and all JAR files in <JWS-HOME>/lib
in its classpath, so try placing all classes there.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html