cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pål Wester <pal.wes...@never.no>
Subject esql connection defined in cocoon.properties [mm.mysql] and getting nullpointerException
Date Wed, 14 Feb 2001 16:00:54 GMT
I want to rewrite my esql-connetion to use a connetion
in cocoon.properties couse that would make use of
turbine. I can't get to work... how do I attack the situation??

I have cocoon 1.8.1-dev..

I have written this in cocoon.properties:

# These are your database settings, look in the
# org.apache.turbine.util.db.pool.* package for more information.
processor.xsp.pool.database.quart.driver=org.gjt.mm.mysql.Driver
processor.xsp.pool.database.quart.url=jdbc:mysql://localhost:3306/quart
processor.xsp.pool.database.quart.username=quartuser
processor.xsp.pool.database.quart.password=quartpasswd
processor.xsp.pool.database.quart.maxConnections=10
processor.xsp.pool.database.quart.expiryTime=3600000

# These are the supported jdbc-drivers and their adaptors.
# These properties are used by the DBFactory.
processor.xsp.pool.database.adaptor=DBMM
processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver

1. would this work, does it look sane??

In all my xml pages I have:
<esql:connection>
	<esql:driver>org.gjt.mm.mysql.Driver</esql:driver>
	<esql:dburl>jdbc:mysql://localhost:3306/quart</esql:dburl>
	<esql:username>quartuser</esql:username>
	<esql:password>quartpasswd</esql:password>

I've changed this to:
<esql:connection>
	<esql:pool>quart</esql:pool>

But I get a nullpointerException:
java.lang.NullPointerException:
	at _home._www._xml._quart._input._artist.populateDocument(_artist.java:560)
	at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:502)
	at org.apache.cocoon.Engine.handle(Engine.java:366)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	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:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
	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:475)

mvh:
Pål Wester, programmerer
never.no as, stortingsgt 30, 0161 Oslo
tlf: 22 01 66 20, fax: 22 01 66 21
direkte: 22 01 66 34, 906 900 62
http://never.no - icq:103476059
~ f u cn rd ts u prb a gk ~


Mime
View raw message