cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Bouman <M.Bou...@telecats.nl>
Subject XML and SQL using MySQL
Date Mon, 09 Oct 2000 13:28:45 GMT
Dear Sir / Madam,

Recently I tried to use the SQL TagLib from Cocoon 1.8 with Access 97.
Because this did'nt work I searched for an alternative DBMS and came up with
MySQL for Windows NT 4.0 (which is running perfectly!).

To use the SQL TagLib from within a XML-file I used the JDBC driver from
Mark Matthews at http://www.worldserver.com/mm.mysql/ and put it in the
Windows User Environment:

Classpath
c:\mysql\lib\mm.mysql-2.0.2-bin.jar

The only problem occuring when I try to view taglib.xml from
hhtp://localhost/taglib.xml is:

Error found handling the request.
	java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
		at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
		at java.security.AccessController.doPrivileged(Native
Method)
		at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
		at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
		at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
		at java.lang.Class.forName0(Native Method)
		at java.lang.Class.forName(Class.java:120)
		at
org.apache.cocoon.processor.xsp.library.sql.XSPSQLLibrary.executeQuery(XSPSQ
LLibrary.java:157)
		at
_C_._Apache._htdocs._taglib.populateDocument(_taglib.java:134)
		at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
		at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:494)
		at org.apache.cocoon.Engine.handle(Engine.java:359)
		at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
		at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
		at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
		at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
		at java.lang.Thread.run(Thread.java:484)

Why can't it find the driver?


I hope someone knows the answer.


Martin Bouman
TeleCats BV, The Netherlands



Mime
View raw message