cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Berry <m...@shareaphoto.com>
Subject Re: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
Date Mon, 14 Aug 2000 21:55:47 GMT
You have to add the mysql drivers into the classpath.

(assuming that you are using tomcat) ..  put the classes (de-compressed into the
/WEB-INF/classes directory .. or into your global tomcat classpath settings.




Matthew Smith wrote:

>     I'm just getting started with Cocoon, java, and xml.
>     I'm trying to get the sql taglib to work.  I modified the taglib.xml
> file in the samples/sql directory.  The file now looks like this:
> <?xml version="1.0"?>
>
> <?cocoon-process type="xsp"?>
>
> <xsp:page
>   language="java"
>   xmlns:sql="http://www.apache.org/1999/SQL"
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> >
>
>   <page title="SQL Search Results">
>
>    <sql:execute-query>
>   <sql:driver>org.gjt.mm.mysql.Driver</sql:driver>
>   <sql:dburl>jdbc:mysql://localhost/lonestar</sql:dburl>
>   <sql:username>root</sql:username>
>   <sql:password>mypassword</sql:password>
>   <sql:null-indicator>yes</sql:null-indicator>
>   <sql:query>select * from users</sql:query>
>   <sql:count-attribute>count</sql:count-attribute>
>  </sql:execute-query>
>
>   </page>
>
> </xsp:page>
>
>     I get the following error page from cocoon:
> java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
>         at
> org.apache.cocoon.processor.xsp.library.sql.XSPSQLLibrary.processQuery(XSPSQ
> LLibrary.java)
>         at
> _usr._local._etc._httpd._htdocs._samples._sql._taglib.populateDocument(_tagl
> ib.java)
>         at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java)
>         at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java)
>         at org.apache.cocoon.Engine.handle(Engine.java)
>         at org.apache.cocoon.Cocoon.service(Cocoon.java)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
>         at org.apache.jserv.JServConnection.run(JServConnection.java:188)
>         at java.lang.Thread.run(Thread.java)
>
>         I'm sorry if this is a silly problem.  (I hope it is.)  I'm just getting
> started and am having a hard time finding much in the way of tutorials or
> step by step type documentation for cocoon.  I'd also appretiate anyone
> pointing me toward any that might be out there.
>
> Thanks,
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message