cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohamed ramzy <m_ra...@yahoo.com>
Subject Re: XML and SQL using MySQL
Date Mon, 09 Oct 2000 18:49:13 GMT
hi
the problem u have means that the cocoon can't find
the Driver, so all what u need is put the classpath of
ur driver in the jserv.properties file.
and restart ur server again


--- Martin Bouman <M.Bouman@telecats.nl> wrote:
> 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
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> 


=====
Mohamed Ramzy Zakaria, Graduate Research student
School of Computer Science & Information Technology
Jubilee Campus, Nottingham University
Nottingham, UK
TEL: 00 44 (0)115 84 66529
MOB: 00 44 (0)7947105251
MOB E-MAIL: m_ramzy@quios.com

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

Mime
View raw message