Re: tomcat/postgres problem

Поиск
Список
Период
Сортировка
Искать
От
Pedro Salazar
Тема
Re: tomcat/postgres problem
Дата
Msg-id
1050312353.995.19.camel@vitoria.intra.cet.pt
Ответ на
Список
Дерево обсуждения
tomcat/postgres problem "Jason Dinger" <jake451@knology.net>
Re: tomcat/postgres problem Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
Hi Jason,

I think this could be a missing  in your web application
context in your server.xml. I mean, you need to declare your
 inside your web  element or inside your
 element? If not, try do it to because I think that what
is happening is that your web.xml declares a  but there is
no  available to configure it. 

So, the first error (exception) is that it cannot find the
driverClassName because it cannot read the  (like it was
null).

P.S.- I think this is a Tomcat/DBCP forum question...

Regards,
Pedro Salazar.

On Wed, 2003-04-09 at 20:40, Jason Dinger wrote:
> I'm trying to load the postgresql driver into tomcat using the
> server.xml file and web.xml file, but I keep getting the following
> error:
>  
> javax.naming.NamingException: DbcpDataSourceFactory: driverClassName
> is required 
>  
> Here's part of my server.xml file:
>  
>      type="javax.sql.DataSource"/>
>     
>       
>         validationQuery
>         
>       
>       
>         user
>         Jason
>       
>       
>         maxWait
>         5000
>       
>       
>         maxActive
>         4
>       
>       
>         url
>         jdbc:postgresql:mydb
>       
>       
>         password
>          
>       
>       
>         driverClassName
>         org.postgresql.Driver
>       
>       
>         maxIdle
>         2
>       
>     
>  
> And here's part of my web.xml file
>  
> 
>   
>     Postgresql driver
>   
>   
>     jdbc/MyDB
>   
>   
>     javax.sql.DataSource
>   
>   
>     Container
>   
> 
>  
>  
> I know I can load the driver with Class.forName().  That works too. 
> But how do I get the driver loaded via the server.xml and web.xml
> files?  Any suggestions?
>  
>  
> - Jake
-- 
PS
pedro-b-salazar@ptinovacao.pt
PGP:0E129E31D803BC61

В списке pgsql-jdbc по дате отправления
От: Alexey Yudichev
Дата:
Сообщение: unterminated quoted string
От: Pedro Salazar
Дата:
FAQ