Hi!  It seems you haven't set the initArgs - since I haven't installed
tomcat lately, I will have to check on how they get set, but you need 
to tell the servlet the database connection information, and I think
that goes in the properties file.  For apache jserv, you set the arguments
as follows:

servlet.project.initArgs=\
        org.apache.jetspeed.project.content_directory=<xhtml content directory>,\
        org.apache.jetspeed.project.jdbc_driver=postgresql.Driver,\       
org.apache.jetspeed.project.jdbc_host=jdbc:postgresql://localhost:5432/jetspeedproject,\
        org.apache.jetspeed.project.jdbc_username=<username>,\
        org.apache.jetspeed.project.jdbc_password=<password>,\
        org.apache.jetspeed.project.jdbc_max_connections=10

  But in your properties file, I think you want to add:
       org.apache.jetspeed.project.jdbc_driver=postgresql.Driver
            etc.


  Also, make sure you created the database that you are trying to connect to.
The example above assumes that you are connecting to PostgreSQL, but it should 
work with PostgreSQL, MySQL and Oracle.

LEBRETON Philippe wrote:
> 
> I want to use the  PROJECT servelt and i read the README file in
> <jetspeed-home</src/java/org/apache/jetspeed/project.
> With TOMCAT 3.1 How i can configure my web.xml file?
> This servlet does'nt work .
> I have a error :
> Execption connecting database : java.Lang.illegalArgumentException :
> could not get name from database : java.lang.NullPointerException
> could not get employees list from database :
> java.lang.NullPointerException
> 
> my web.xml is
> 
> <servlet>
> <servlet-name>
> project
> <servlet-class>
> org.apache.jetspeed.project.Project
> <init-param>
> <param-name>
> properties
> <param-name>
> </param-value>
> /usr/jetspeed/src/config/Project.properties
> </param-value>
> </init-param>
> </servlet>
> 
> and in Project.properties is :
> org.apache.jetspeed.project.content_drirectory=webapps/content/static
> org.apache.jetspeed.project.
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to