2 messages in com.mysql.lists.javaRe: [Re: unable to connect mysql from...
FromSent OnAttachments
Servelots Infotech Pvt.Ltd.27 Jan 2000 07:36 
Josep Carles Collazos27 Jan 2000 07:42 
Subject:Re: [Re: unable to connect mysql from servlet]
From:Josep Carles Collazos (man@linuxfreak.com)
Date:01/27/2000 07:42:01 AM
List:com.mysql.lists.java

May be you can look at JServ.conf and in properties files

"Servelots Infotech Pvt.Ltd." wrote:

Hello Mark,

Can you explain where to set the classpath.

Earlier we had set that using CLASSPATH environment variable.

We are using Apache 1.3.9 and ApacheJserv 1.1b2 on Red Hat Linux 6.1.

Please help us out.

with regards

Muralidharan N.R.

Mark Matthews <mmat@worldserver.com> wrote: Servlet engines do not use the CLASSPATH environment variable. Read your servlet engine documentation to see how you add to it's classpath.

-Mark (author of MM.MySQL)

On 27 Jan 2000, Servelots Infotech Pvt.Ltd. wrote:

Hello, we are unable to connect mysql from servlet.The same program is working fi ne without servlet.It is displaying error message as "not suitable driver".

program runs like this

public class connect{ public static void main(String s[]) try{ Class.forName("org.gjt.mm.mysql.Driver"); Connection conn =

DriverManager.getConnection("jdbc:mysql://localhost/openrun","root","servelots");

}catch(Exception e){out.println(e.getMessage();} System.out.println(conn); } } output is : mm.mysql.Driver e890021(Address)

This program is working fine but the same code under servlet is not working.

Please help me to get the solution,

Arun,Servelots Infotech Pvt Ltd.,Bangalore.

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.

--------------------------------------------------------------------- Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before posting. To request this thread, e-mail java@lists.mysql.com

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.