Обсуждение: Documentation
Hi, I am new on this list, Do anyone know where can I get some information about JSP and Postgresql?, I have tried to connect to a DB in postgresql but I have not had success, I have read the book of Java Server Pages of Hans.....I can remember the last name, but it is of o'reylli and it has a fox, but the examples did not run because I am trying on Linux RedHat 7.2 with Tomcat and Postgresql, please any url that can help me, I will thank a lot. Fabian Valdes ------------------------------------------------- Abre una cuenta de por vida en Zona52.com
On Mon, Jul 22, 2002 at 12:06:46PM -0500, fabian_valdes@zona52.com wrote: > get some information about JSP and Postgresql?, I > have tried to connect to a DB in postgresql but I have > not had success, Is your database working? Is it listening? Have you configured it at all? What error message do you get? A -- ---- Andrew Sullivan 87 Mowat Avenue Liberty RMS Toronto, Ontario Canada <andrew@libertyrms.info> M6K 3E3 +1 416 646 3304 x110
Quoting Andrew Sullivan <andrew@libertyrms.info>: > On Mon, Jul 22, 2002 at 12:06:46PM -0500, > fabian_valdes@zona52.com wrote: > > > get some information about JSP and > Postgresql?, I > > have tried to connect to a DB in postgresql > but I have > > not had success, > > Is your database working? Is it listening? Yes my DB es working, in fact, I can access to it with Perl, > Have you configured it > at all? Yes I configured all, with ./configure --with-java with-perl and I installed it, other stuffs that I installed was tomcat 4.0.3, java 1.3.0(because 1.4.0 did not work very well) and ant 1.3 What error message do you get? this is the error messages Exception javax.servlet.ServletException: Can't create DataSource: org.postgresql.Driver Root javax.servlet.ServletException: Can't create DataSource: org.postgresql.Driver > > A > > -- > ---- > Andrew Sullivan > 87 Mowat Avenue > Liberty RMS Toronto, > Ontario Canada > <andrew@libertyrms.info> > M6K 3E3 > +1 416 > 646 3304 x110 > > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with > the unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) > ------------------------------------------------- Abre una cuenta de por vida en Zona52.com
> this is the error messages > Exception > javax.servlet.ServletException: Can't create > DataSource: org.postgresql.Driver > > Root > javax.servlet.ServletException: Can't create > DataSource: org.postgresql.Driver It's probably a class loading exception; whatever is trying to instantiate the connection can't find the class "org.postgresql.Driver". Are you sure you have the JDBC driver in your WEB-INF/lib or in the correct area of the server's class hierarchy? There's a small chance it could be a ClassCastException, if the version of the driver you're using is not suited for the version of the JDK you're using, but I think the former is more likely. Aaron