tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HARI17785 <>
Subject Re: Tomcat 5.5 and Mysql 5.0 connectivity
Date Wed, 01 Apr 2009 11:57:34 GMT

Hi i got the solution,
 to connect ur cgi script from Apache to MySql db u hav to do the following

1.Open ur Tomcat home directory and go to conf and open web.xml.
2.uncomment the following things..

         - <servlet>
- <init-param>
- <init-param>
- <init-param>
           and   change the <param-value>false</param-value> to
true(<param-value>true</param-value> )

           and change the <param-name>debug</param-name> 
  <param-value>0</param-value> value to 6

Uncomment the following

- <servlet-mapping>
  <url-pattern>/cgi-bin/*</url-pattern> if ur cgi bin name is cgi-bin dont
change this otherwise      give the exact name of ur cgi folder

Now go to server\lib
there will be jar file named
servlets-cgi.renametojarservlets-cgi.renametojar change the name to

Now ur CGI script will  work on .


HARI17785 wrote:
> Hi,
>  i m using tomcat 5.5  and Mysql 5.0. I hav written a CGI script which
> retrives some infn from database.Now i want to run my CGI script in
> tomcat5.5 and queries the MySQL db.I m very much new to tomcat 5.5.So pls
> somebody help me out.Do i need  any jar files for this connectivity?
> Thanks,
> Hari

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message