Discuss jserv and Mysql in the Java Help forum on Dev Shed. jserv and Mysql Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
Time spent in forums: < 1 sec
Reputation Power: 0
We need help urgently. The setup is like this , we have a linux 6.1 m/c with Apache and Jserv for our servlets, the servlets
use Mysql database for dynamic pages.
The driver we use on the servlet is "twz1JDBCFORMysql".
The problem comes up when we start mysql on the Linux machine. Only when we start mysql server with "mysqld -Sg"
does the servlets work, if we start mysql with the -Sg option we are able to connect to the database from a windows GUI
and also from the linux command mode.But when we run a servlet on the browser we get a message saying" Document
contains no data. debugging shows that the driver is OK but the program has problem at the connection url.
part of the code is given here:
Connection con = null;
pw.println("Raghu"); Statement st =
ResultSet rs = null;
any help from ur side will be appreciated.