----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi All,

We are using a test deployment server before deployment to the production
server on the Internet. Configuration of the production server is RH Linux
6.1, Apache 1.3.12, Apache Jserv 1.1.2, JSDK 2.0 and on the test deployment
server RH linux 6.2, Apache 1.3.12, Apache Jserv   1.1.2,  jsdk2.0.

I am having a servlet that logs and mails, via JDBC . it uses
"org.postgresql.Driver" to make connection to postgres and then the Java
Mail API  to send mails.

It works fine on the test deployment server with the following settings
and it works smoothly!!!...no Errors!!!!

I have put activation.jar,mail.jar,and postgresql.jar in the ext directory
of the  usr/local/jdk1.2.2/jre/lib/ext/  directory.  I am able to make a
simple jdbc connection from the Java Application as well as  through a
servlet.

Here is a decommented  property setting of the local Apache Jserv
 

Apache JServ Configuration File     



ApJServManual off
ApJServProperties /etc/httpd/conf/jserv/jserv.properties
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServLogLevel info
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8007
ApJServSecretKey /etc/httpd/conf/jserv/jserv.secret.key
ApJServMount /servlets /root
ApJServMount /servlet /root
ApJServMountCopy on
ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI  ***
# Added by WebMail postinst (Date: Tue Nov  7 13:41:35 IST 2000)****
ApJServMount /webmail /webmail  ****



Jserv.properties

wrapper.bin=/usr/local/jdk1.2.2/bin/java
wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
wrapper.classpath=/home/httpd/classes/servlet-2.0.jar
wrapper.classpath=/home/httpd/classes/ApacheJSSI.jar
bindaddress=localhost
port=8007
zones=root,webmail
root.properties=/etc/httpd/conf/jserv/zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.allowedAddresses=127.0.0.1
security.authentication=true
security.secretKey=/etc/httpd/conf/jserv/jserv.secret.key
log=true
log.file=/var/log/httpd/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 5000
log.queue.maxsize = 1000
log.channel=true
log.channel.info=true
log.channel.servletException=true

log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true
webmail.properties=/etc/httpd/conf/jserv/webmail.properties

  

Servlet Zone Configuration File
repositories=/home/httpd/servlets/
repositories=/home/httpd/classes/
repositories=/usr/local/jdk1.2.2/jre/lib/ext/
repositories=/usr/local/jdk1.2.2/jre/lib/ext/mail.jar
repositories=/usr/local/jdk1.2.2/jre/lib/ext/activation.jar
repositories=/usr/local/jdk1.2.2/jre/lib/ext/postgresql.jar
repositories=/usr/local/jdk1.2.2/jre/lib/ext/ApacheJSSI.jar
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10


Though i have mail.jar ,activation.jar and postgresql.jar in
usr/local/jdk1.2.2/jre/lib/ext/  as well as
home/httpd/classes/ directories.

When i run the same servlets in the remote server, it gives me error like
No Suitable Driver error,
When i comment the code dealing with jdbc ,postgres,
It gives me Error like No ClassDef Found  Message class  and likewise. 

Strangely  through an  Java Application Tthat simply makes a connection
through jdbc i am able to insert into the database
but with Servlets it is giving sleepless nights,.  I have checked all the
configuration given here  word by word and i found only the starred(****)
ones to be different

Below are the configuration of the   Production Server



Apache JServ Configuration File      


ApJServManual off
ApJServProperties /etc/httpd/conf/jserv/jserv.properties
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServLogLevel notice*****
ApJServDefaultPort 8007
ApJServSecretKey /etc/httpd/conf/jserv/jserv.secret.key
ApJServMount /servlets /root
ApJServMount /servlet /root
ApJServMountCopy on

JServ.properties

wrapper.bin=/usr/local/jdk1.2.2/bin/java
wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
wrapper.classpath=/home/httpd/classes/servlet-2.0.jar
bindaddress=localhost
port=8007
zones=root
root.properties=/etc/httpd/conf/jserv/zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.authentication=true
security.secretKey=/etc/httpd/conf/jserv/jserv.secret.key
log=true
log.file=/var/log/httpd/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 5000
log.queue.maxsize = 1000
log.channel.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true


Apache  zone.properties file
repositories=/home/httpd/servlets/
repositories=/home/httpd/classes/
repositories=/usr/local/jdk1.2.2/jre/lib/ext/
repositories=/usr/local/jdk1.2.2/jre/lib/ext/postgresql.jar
repositories=/usr/local/jdk1.2.2/jre/lib/ext/mail.jar
repositories=/usr/local/jdk1.2.2/jre/lib/ext/activation.jar
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10



The error given during execution is 

    org.postgresql.Driver
   No suitable driver



Thanks  in Advance

Manish





--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to