cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject too many components? sql does not work when built with scratchpad
Date Mon, 04 Mar 2002 17:28:03 GMT
Team,

whith the current CVS I observe that the personnel datasource tries to
connect to the HSQL server *before* the server is started. This
happens *only* when I build it with "-Dinclude.scratchpad.libs=yes"
Furthermore, when removing _any_ _three_ component categories
(e.g. "matchers", "actions" and "selectors" or the the portal
components) the original behaviour is restored i.e. HSQL server is
started *before* connections are attempted.

The setup is linux + tc4.0.1 + sun jdk 1.3.1 -- no tweaks.

In case it helps, these are the system properties as printed out at
the beginning of the log:

 java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
 sun.boot.library.path=/usr/lib/jdk1.3.1/jre/lib/i386
 java.vm.version=1.3.1-b24
 vendor-url=http://xml.apache.org/xalan-j
 java.vm.vendor=Sun Microsystems Inc.
 java.vendor.url=http://java.sun.com/
 path.separator=:
 java.vm.name=Java HotSpot(TM) Client VM
 file.encoding.pkg=sun.io
 java.vm.specification.name=Java Virtual Machine Specification
 user.dir=/projects/haul/jakarta-tomcat-4.0.1
 org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
 java.runtime.version=1.3.1-b24
 java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
 os.arch=i386
 java.io.tmpdir=/tmp
 line.separator=

 java.vm.specification.vendor=Sun Microsystems Inc.
 java.awt.fonts=
 java.naming.factory.url.pkgs=org.apache.naming
 os.name=Linux
 vendor=Apache Software Foundation
 java.library.path=/usr/lib/jdk1.3.1/jre/lib/i386:/usr/lib/jdk1.3.1/jre/lib/i386/native_threads/:/usr/lib/jdk1.3.1/jre/lib/i386/client:/usr/lib/jdk1.3.1/jre/../lib/i386:/opt/mozilla//:/opt/mozilla//components:/opt/kde/lib:/opt/mozilla//:/opt/mozilla//components:
 java.specification.name=Java Platform API Specification
 java.class.version=47.0
 os.version=2.4.18-pre3
 user.home=/home/haul
 user.timezone=Europe/Berlin
 catalina.useNaming=true
 java.awt.printerjob=sun.awt.motif.PSPrinterJob
 file.encoding=ISO-8859-1
 java.specification.version=1.3
 catalina.home=bin/..
 user.name=haul
 java.class.path=bin/../bin/bootstrap.jar:/usr/lib/jdk1.3.1/lib/tools.jar
 java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
 java.vm.specification.version=1.0
 java.home=/usr/lib/jdk1.3.1/jre
 java.specification.vendor=Sun Microsystems Inc.
 user.language=de
 java.vm.info=mixed mode
 java.version=1.3.1
 java.ext.dirs=/usr/lib/jdk1.3.1/jre/lib/ext
 sun.boot.class.path=/usr/lib/jdk1.3.1/jre/lib/rt.jar:/usr/lib/jdk1.3.1/jre/lib/i18n.jar:/usr/lib/jdk1.3.1/jre/lib/sunrsasign.jar:/usr/lib/jdk1.3.1/jre/classes
 java.vendor=Sun Microsystems Inc.
 catalina.base=bin/..
 file.separator=/
 java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
 sun.cpu.endian=little
 sun.io.unicode.encoding=UnicodeLittle
 version=2.3.1
 user.region=DE
 sun.cpu.isalist=

And this is the other relevant part of core.log

DEBUG   (2002-03-04) 18:20.49:887   [core](Unknown-URI) Unknown-thread/Cocoon: Work directory
= /projects/haul/jakarta-tomcat-4.0.1/work/localhost/cocoon/cocoon-files
DEBUG   (2002-03-04) 18:20.50:297   [core](Unknown-URI) Unknown-thread/Cocoon: Root configuration:
cocoon
DEBUG   (2002-03-04) 18:20.50:298   [core](Unknown-URI) Unknown-thread/Cocoon: Configuration
version: 2.0
DEBUG   (2002-03-04) 18:20.50:301   [core](Unknown-URI) Unknown-thread/Cocoon: Setting up
components...
DEBUG   (2002-03-04) 18:20.51:402   [core.url-factory](Unknown-URI) Unknown-thread/URLFactoryImpl:
Getting the URLFactories
DEBUG   (2002-03-04) 18:20.51:403   [core.url-factory](Unknown-URI) Unknown-thread/URLFactoryImpl:
     for protocol: resource org.apache.cocoon.components.url.ResourceURLFactory
DEBUG   (2002-03-04) 18:20.51:407   [core.url-factory](Unknown-URI) Unknown-thread/URLFactoryImpl:
     for protocol: context org.apache.cocoon.components.url.ContextURLFactory
DEBUG   (2002-03-04) 18:20.51:430   [core.xslt-processor](Unknown-URI) Unknown-thread/XSLTProcessorImpl:
XSLTProcessorImpl component initialized.
[repeat this line several times]
DEBUG   (2002-03-04) 18:20.51:553   [core.xslt-processor](Unknown-URI) Unknown-thread/XSLTProcessorImpl:
XSLTProcessorImpl component initialized.
DEBUG   (2002-03-04) 18:20.51:636   [core.resolver](Unknown-URI) Unknown-thread/ResolverImpl:
Setting Catalog resolver verbosity level to 1
DEBUG   (2002-03-04) 18:20.51:637   [core.resolver](Unknown-URI) Unknown-thread/ResolverImpl:
System OASIS Catalog URL is /projects/haul/jakarta-tomcat-4.0.1/webapps/cocoon/resources/entities/catalog
DEBUG   (2002-03-04) 18:20.51:720   [core.xml-parser](Unknown-URI) Unknown-thread/LogKitLogger:
JaxpParser: Using EntityResolver: org.apache.cocoon.components.resolver.ResolverImpl@71916f
DEBUG   (2002-03-04) 18:20.51:722   [core.xml-parser](Unknown-URI) Unknown-thread/LogKitLogger:
JaxpParser: validating: false, namespace-prefixes: false, reuse parser: true, stop on warning:
true, stop on recoverable-error: true, saxParserFactory: javax.xml.parsers.SAXParserFactory,
documentBuilderFactory: javax.xml.parsers.DocumentBuilderFactory
DEBUG   (2002-03-04) 18:20.51:723   [core.xml-parser](Unknown-URI) Unknown-thread/LogKitLogger:
JaxpParser: Using EntityResolver: org.apache.cocoon.components.resolver.ResolverImpl@71916f
DEBUG   (2002-03-04) 18:20.51:725   [core.xml-parser](Unknown-URI) Unknown-thread/LogKitLogger:
JaxpParser: validating: false, namespace-prefixes: false, reuse parser: true, stop on warning:
true, stop on recoverable-error: true, saxParserFactory: javax.xml.parsers.SAXParserFactory,
documentBuilderFactory: javax.xml.parsers.DocumentBuilderFactory
DEBUG   (2002-03-04) 18:20.51:812   [core.program-generator](Unknown-URI) Unknown-thread/ProgramGeneratorImpl:
Context directory is file:/projects/haul/jakarta-tomcat-4.0.1/webapps/cocoon/
DEBUG   (2002-03-04) 18:20.51:852   [core.language.java](Unknown-URI) Unknown-thread/JavaLanguage:
Looking up org.apache.cocoon.components.classloader.ClassLoaderManager
DEBUG   (2002-03-04) 18:20.52:044   [core.datasources.personnel](Unknown-URI) Unknown-thread/LogKitLogger:
factory created class was null so a new instance could not be created.
java.sql.SQLException: Connection is broken: Verbindungsaufbau abgelehnt (="connection refused")
        at org.hsqldb.Trace.getError(Trace.java:180)
        at org.hsqldb.Trace.getError(Trace.java:144)
        at org.hsqldb.Trace.error(Trace.java:205)
        at org.hsqldb.jdbcConnection.reconnectHSQL(jdbcConnection.java:865)
        at org.hsqldb.jdbcConnection.openHSQL(jdbcConnection.java:833)
        at org.hsqldb.jdbcConnection.<init>(jdbcConnection.java:678)
        at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:116)
        at java.sql.DriverManager.getConnection(DriverManager.java:517)
        at java.sql.DriverManager.getConnection(DriverManager.java:177)
        at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(JdbcConnectionFactory.java:139)
        at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82)
        at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardResourceLimitingPool.java:95)
        at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcConnectionPool.java:74)
        at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126)
        at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(HardResourceLimitingPool.java:104)
        at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91)
        at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnectionPool.java:195)
        at java.lang.Thread.run(Thread.java:484)
[more sql exceptions -- per connection in pool one]
FATAL_E (2002-03-04) 18:20.52:057   [core.datasources.personnel](Unknown-URI) Unknown-thread/LogKitLogger:
Excalibur could not create any connections.  Examine your settings to make sure they are correct.
 Make sure you can connect with the same settings on your machine.
DEBUG   (2002-03-04) 18:20.52:098   [core.search.crawler](Unknown-URI) Unknown-thread/SimpleCocoonCrawlerImpl:
Include all URLs
DEBUG   (2002-03-04) 18:20.52:130   [core.search.crawler](Unknown-URI) Unknown-thread/SimpleCocoonCrawlerImpl:
Exclude default URLs only
DEBUG   (2002-03-04) 18:20.52:131   [core.search.crawler](Unknown-URI) Unknown-thread/SimpleCocoonCrawlerImpl:
Include all URLs
DEBUG   (2002-03-04) 18:20.52:132   [core.search.crawler](Unknown-URI) Unknown-thread/SimpleCocoonCrawlerImpl:
Exclude default URLs only
DEBUG   (2002-03-04) 18:20.52:232   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
database is /projects/haul/jakarta-tomcat-4.0.1/webapps/cocoon/WEB-INF/db/cocoondb
DEBUG   (2002-03-04) 18:20.52:232   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
Parameterize ServerImpl
DEBUG   (2002-03-04) 18:20.52:233   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
Configure ServerImpl with port: 9002, silent: true, trace: false
INFO    (2002-03-04) 18:20.52:233   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
HSQLDB backup file has been deleted.
DEBUG   (2002-03-04) 18:20.52:234   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
Intializing hsqldb server thread
DEBUG   (2002-03-04) 18:20.52:237   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
HSQLDB Server arguments are as follows:
DEBUG   (2002-03-04) 18:20.52:237   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
0 : -port
DEBUG   (2002-03-04) 18:20.52:247   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
1 : 9002
DEBUG   (2002-03-04) 18:20.52:248   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
2 : -silent
DEBUG   (2002-03-04) 18:20.52:248   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
3 : true
DEBUG   (2002-03-04) 18:20.52:248   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
4 : -trace
DEBUG   (2002-03-04) 18:20.52:248   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
5 : false
DEBUG   (2002-03-04) 18:20.52:248   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
6 : -database
DEBUG   (2002-03-04) 18:20.52:248   [core.hsqldb-server](Unknown-URI) Unknown-thread/ServerImpl:
7 : /projects/haul/jakarta-tomcat-4.0.1/webapps/cocoon/WEB-INF/db/cocoondb
DEBUG   (2002-03-04) 18:20.52:266   [core.xscript](Unknown-URI) Unknown-thread/XScriptManagerImpl:
XScriptManager component initialized.
DEBUG   (2002-03-04) 18:20.53:735   [core.xslt-processor](Unknown-URI) Unknown-thread/XSLTProcessorImpl:
XSLTProcessorImpl component initialized.


If I am the only one suffering from this problem I'm happy to ignore
it and just remove three component categories from cocoon.xconf. BUT I
would not be able to fully test any changes before checking them in.

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message