You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Evelin <ex...@telkom.net> on 2002/11/26 07:55:21 UTC
newbiw. mysql connector problems
Hi
I am a newbie and having problems with mysql connector. I
download the mysql-connector-java-2.0.14-bin.jar and put
the file in the C:\j2sdk1.4.0_02\jre\lib\ext as the readme
file instructed. But when I tried to run a jsp file with
content:
<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
%>
I get the internal server error:
org.apache.jasper.JasperException: com.mysql.jdbc.Driver
Can anyone help me by telling me what I did wrong?
My system is Windows 2000 Professional system with Service
Pack 3 and IE6(SP1) installed. I set the Tomcat to run at
port 80 and having no problem viewing the site via
http://localhost. The Tomcat version is 4.1.12.
Many thanks in advance.
Evelin
PS: I also tried following and got similar problems.
<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("org.gjt.mm.mysql.Driver");
%>
===================================================================================
Selama Bulan Suci Ramadhan, ikuti Netkuis Ramadhan, Lomba Design E-Card, Opini Berhadiah hanya di www.plasa.com
===================================================================================
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: newbiw. mysql connector problems
Posted by Bill Barker <wb...@wilshire.com>.
I'm guessing that you're using some 1.4.x JVM. The Tomcat 4.1.x startup
scripts override $JAVA_HOME/jre/lib/ext, and set it to
$CATALINA_HOME/common/endorsed. Copying your MySQL jars here should solve
your problems,
"Evelin" <ex...@telkom.net> wrote in message
news:web-600172@b1.c.plasa.com...
> Hi
>
> I am a newbie and having problems with mysql connector. I
> download the mysql-connector-java-2.0.14-bin.jar and put
> the file in the C:\j2sdk1.4.0_02\jre\lib\ext as the readme
> file instructed. But when I tried to run a jsp file with
> content:
>
> <%@ page language="java" import="java.sql.*" %>
> <%
> Class.forName("com.mysql.jdbc.Driver").newInstance();
> %>
>
> I get the internal server error:
> org.apache.jasper.JasperException: com.mysql.jdbc.Driver
>
> Can anyone help me by telling me what I did wrong?
>
> My system is Windows 2000 Professional system with Service
> Pack 3 and IE6(SP1) installed. I set the Tomcat to run at
> port 80 and having no problem viewing the site via
> http://localhost. The Tomcat version is 4.1.12.
>
> Many thanks in advance.
>
> Evelin
>
> PS: I also tried following and got similar problems.
> <%@ page language="java" import="java.sql.*" %>
> <%
> Class.forName("org.gjt.mm.mysql.Driver");
> %>
>
============================================================================
=======
> Selama Bulan Suci Ramadhan, ikuti Netkuis Ramadhan, Lomba Design E-Card,
Opini Berhadiah hanya di www.plasa.com
>
============================================================================
=======
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Session Handling in Tomcat 3.2.4
Posted by Vaibhav Kulkarni <va...@rapideffect.com>.
Hi all,
Can i persist the session id generated from the server
request.getSession();
I am having one class which connects to the server with url object and
receives a session id as response from the server. Now the same session
id is used by other programs to communicate with the server. Now if
because of some malfunction server shuts down I am catching the network
errors as ConnectException BindException, UnknowHostException etc. if
the exception occurs, in the catch block the method connect method will
be called , now in this method session id will be sent as a jsession
parameter, and will try to re establish the connection if the
connection has been established i want , sever to send the same session
id . so that the other threads will be in same state as of they are
before , they were sending information to server before connection was
lost..
now my question is whether it will work and does server supports such
kind of requests of creating the session object with the same name as
specified in the url connection.
Regards,
Vaibhav
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>