cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Morrison <john.morri...@experian.com>
Subject RE: urgent: 1.7.5
Date Tue, 18 Jul 2000 09:58:04 GMT
If it is of any use I can (I think) get a little further.  I *can* get Cocoon up
and running with the pool(s) in the properties file but I don't get any data
back from the xsp.

Heres the relevent bit from cocoon.properties...

<snip>

processor.xsp.pool.database.default.driver=sun.jdbc.odbc.JdbcOdbcDriver
processor.xsp.pool.database.default.url=jdbc:odbc:MS Access
Database;DBQ=D:/Test/test.mdb
processor.xsp.pool.database.default.username=guest
processor.xsp.pool.database.default.password=guest
processor.xsp.pool.database.default.maxConnections=3
processor.xsp.pool.database.default.expiryTime=3600000

# These are the supported jdbc-drivers and their adaptors.
# These properties are used by the DBFactory.
processor.xsp.pool.database.adaptor=DBWeblogic,DBOracle,DBInstantDB,DBPostgres,DBSybase,DBInformix
processor.xsp.pool.database.adaptor.DBWeblogic=weblogic.jdbc.pool.Driver
processor.xsp.pool.database.adaptor.DBOracle=oracle.jdbc.driver.OracleDriver
processor.xsp.pool.database.adaptor.DBInstantDB=org.enhydra.instantdb.jdbc.idbDriver
processor.xsp.pool.database.adaptor.DBPostgres=postgresql.Driver
processor.xsp.pool.database.adaptor.DBInformix=com.informix.jdbc.IfxDriver
processor.xsp.pool.database.adaptor.DBSybase=com.sybase.jdbc.SybDriver

# The full path name to a pool log file
# if not given, commands to log events using org.apache.turbine.util.Log
will be ignored.
# This file must already exist and be writable.
# Default: none
#
processor.xsp.pool.logfile=d:/dbPool.log

processor.xsp.pool.database.test.driver=sun.jdbc.odbc.JdbcOdbcDriver
processor.xsp.pool.database.songs.url=jdbc:odbc:MS Access
Database;DBQ=D:/Test/test.mdb
processor.xsp.pool.database.test.username=guest
processor.xsp.pool.database.test.password=guest
processor.xsp.pool.database.test.maxConnections=3
processor.xsp.pool.database.test.expiryTime=3600000

</snip>

with this in my jserv.properties file...

<snip>

wrapper.classpath=c:/Code-Repositories/xml-cocoon/lib/turbine-pool.jar

</snip>

The error I'm getting from the xsp is...

<snip>
java.lang.NullPointerException at
org.apache.turbine.services.resources.TurbineResources.getString(TurbineResources.java:432)
at
org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:135) at
org.apache.cocoon.processor.xsp.library.sql.XSPSQLLibrary.executeQuery(XSPSQLLibrary.java:99)
at
_D_._Test._test.populateDocument(_test.java:113) at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96) at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:490) at org.apache.cocoon.Engine.handle(Engine.java:305)
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:314) at
org.apache.jserv.JServConnection.run(JServConnection.java:188) at
java.lang.Thread.run(Thread.java:484)

</snip>

I've not looked any further but I hope this helps.

John.

Mime
View raw message