----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It does have a search feature!

We cannot guess what you are trying to do:
#1. Include version numbers for all software.
#2. Include relevant configuration settings.
#3. Include full descriptions of the problem.

Got Linux? Seeing lots of java processes?
<http://java.apache.org/faq/?file=274>
----------------------------------------------------

Hmmm... the thing is... when I unpack the file I downloaded the directory
structure looks like this:

mm.mysql.jdbc-1.2b
    COPYING
    README
    doc
    mysql_comp.jar
    mysql_uncomp.jar


if I unpack one of those jar files.. the thing that occurs is:

    org
        gjt
            mm
                mysql

now should I set up the wrapper.classpath to point to the top level
directory of the file I downloaded and unpacked... or the top level
directory of the .jar file?

The thing is that the driver worked when I tested it from a normal command
line application... and it didn't work from the servlet... and I had the
CLASSPATH set to point to the compressed jar file (ie mysql_comp.jar)


Stou Sandalski




> Stou Sandalski wrote:
>
> > I am _realy_ sorry but Outlook Express sent this in HTML format...
>
> > Hi, I am using Linux 2.2,  Apache 1.3.9 with JServ 1.0, and Blackdown
Java 1.2.. I am trying to write a Servlet to interect with a MySQL 3.22... I
have the mm.mysql JDBC driver...
> ...
> >  Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> ...
> > java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
> >         at org.apache.java.lang.AdaptiveClassLoader.loadClass(Compiled
Code)
> ...

>
> Looks like it can't find the class. Here is what works for me:
>
> Unpack mm_mysql_jdbc-1_2b_tar.gz into /usr/local/java/classes so the
> classes are not in a jar file.
>
> Add this to jserv.properties:
> wrapper.classpath=/usr/local/java/classes
>
> And finally, avoid Lookout Express. HTML mail is one of it's benign
> "features".
>
> --Mark Ashworth
>




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to