cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulf Holm Nielsen <dok...@dyregod.dk>
Subject C2 sql examples.
Date Mon, 19 Feb 2001 14:44:41 GMT
hi,

i've succesfully installed cocoon2 but have some troubles getting the 
sql examples to work.

i've created the mentioned tables in mysql downloaded a jdbc driver and 
placed it in the tomcat dir. and changed the driver and table/userinfo 
in the xconf..

however when i run the app simple-sql it gives me (error 1 see below)..

but when running hte sample forms i get something different. (see error 
2 below)

anyone got a clue?

Ulf Holm Nielsen


error1:

org.xml.sax.SAXException
java.lang.NullPointerException
   at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
   at 
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
   at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:168)
   at 
org.apache.cocoon.sitemap.ResourcePipeline.process(ResourcePipeline.java:197)
   at 
_D_._web._tomcat._webapps._cocoon._sitemap_xmap.process(_sitemap_xmap.java:2231)
   at org.apache.cocoon.sitemap.Handler.process(Handler.java:157)
   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:107)
   at org.apache.cocoon.Cocoon.process(Cocoon.java:207)
   at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:318)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
   at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)

error 2:

Error setting connection autocommit
java.lang.RuntimeException
java.lang.RuntimeException: Error setting connection autocommit

java.lang.RuntimeException: Error setting connection autocommit
   at 
_D_._web._tomcat._webapps._cocoon._docs._samples._forms._employee_xsp.generateContent(_employee_xsp.java:305)
   at 
_D_._web._tomcat._webapps._cocoon._docs._samples._forms._employee_xsp.generate(_employee_xsp.java:1083)
   at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:164)
   at 
org.apache.cocoon.sitemap.ResourcePipeline.process(ResourcePipeline.java:197)
   at 
_D_._web._tomcat._webapps._cocoon._sitemap_xmap.process(_sitemap_xmap.java:2298)
   at org.apache.cocoon.sitemap.Handler.process(Handler.java:157)
   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:107)
   at org.apache.cocoon.Cocoon.process(Cocoon.java:207)
   at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:318)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
   at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)



Mime
View raw message