You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeremy Quinn <je...@media.demon.co.uk> on 2001/09/26 18:12:26 UTC

multiple Cocoon2 contexts/projects, removing hsqldb

Hi,

How do you completely stop Cocoon 2 from trying to set up hsqldb?

I am trying to run a second Cocoon 2 context, but it tries to set up a
second hsqldb server.

I have commented out all references to 'hsqldb' and 'jdbc' in
'sitemap.xmap', 'cocoon.xconf' and 'web.xml' files, removed 'hsqldb.jar',
but I still get class not found exceptions looking for it.

Do I need to edit 'hsqldb-server' out of 'cocoon.roles' and re-build Cocoon2?


Is it considered a bad thing to run TomCat with multiple Cocoon 2 contexts?


If I want to run multiple separate projects, is it better to make the ROOT
context the Cocoon context (so the separate projects do not have to have
the same URL prefix) and run them all in there under sub-sitemaps?


thanks for any help

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>

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


Re: AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 1:26 PM +0200 27/9/01, Carsten Ziegeler wrote:
>> Jeremy Quinn wrote:
>>
>> At 8:17 AM +0200 27/9/01, Carsten Ziegeler wrote:
>> >If you uncomment the following lines in the cocoon.xconf:
>> >
>> >  <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
>> >                 pool-max="1" pool-min="1">
>> >     <parameter name="port" value="9002"/>
>> >     <parameter name="silent" value="true"/>
>> >     <parameter name="trace" value="false"/>
>> >  </hsqldb-server>
>> >
>> >hsqldb is not started and everything should work fine. I don't
>> >have any problems with this.
>>
>>
>> Thanks Carsten,
>>
>> I have already done this, however I still get this in my logs:
>>
>> This a snippet of the log for the context that has it's 'hsqldb-server'
>> commented out in cocoon.xconf. It appears like it is using default values
>> from somewhere?
>>
>My log shows only the message "Disabled hsqldb server". Hmm, I assume you
>use the latest C2? The patch for this was introduced - I think - two
>weeks ago.
>
>I just tested a clean cvs from the 20 branch and uncommented the above
>component definition and the configured datasource and it is exactly the
>same behaviour.


Sorry Carsten, you are correct, I just got an updated CVS an this is the
behaviour.

Thanks

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>

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


AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Carsten Ziegeler <cz...@sundn.de>.
> Jeremy Quinn wrote:
>
> At 8:17 AM +0200 27/9/01, Carsten Ziegeler wrote:
> >If you uncomment the following lines in the cocoon.xconf:
> >
> >  <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
> >                 pool-max="1" pool-min="1">
> >     <parameter name="port" value="9002"/>
> >     <parameter name="silent" value="true"/>
> >     <parameter name="trace" value="false"/>
> >  </hsqldb-server>
> >
> >hsqldb is not started and everything should work fine. I don't
> >have any problems with this.
>
>
> Thanks Carsten,
>
> I have already done this, however I still get this in my logs:
>
> This a snippet of the log for the context that has it's 'hsqldb-server'
> commented out in cocoon.xconf. It appears like it is using default values
> from somewhere?
>
My log shows only the message "Disabled hsqldb server". Hmm, I assume you
use the latest C2? The patch for this was introduced - I think - two
weeks ago.

I just tested a clean cvs from the 20 branch and uncommented the above
component definition and the configured datasource and it is exactly the
same behaviour.

Carsten

> But interestingly, I am not seeing the exceptions I was seeing before
> concerning hsqldb's ports being in use (?)
>
> DEBUG   (2001-09-27) 11:38.10:193   [cocoon  ] (Unknown-URI)
> Unknown-thread/Cocoon: Starting database server
> DEBUG   (2001-09-27) 11:38.10:194   [cocoon  ] (Unknown-URI)
> Unknown-thread/ExcaliburComponentManager: Could not find ComponentHandler,
> attempting to create one for role:
> org.apache.cocoon.components.hsqldb.Server
> DEBUG   (2001-09-27) 11:38.10:208   [cocoon  ] (Unknown-URI)
> Unknown-thread/DefaultComponentFactory: ComponentFactory creating new
> instance of org.apache.cocoon.components.hsqldb.ServerImpl.
> DEBUG   (2001-09-27) 11:38.10:209   [cocoon  ] (Unknown-URI)
> Unknown-thread/DefaultComponentFactory: no logger attribute available,
> using standard logger
> DEBUG   (2001-09-27) 11:38.10:212   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: database is
> /Volumes/Tardis/Library/TomCat/webapps/xml/WEB-INF/db/cocoondb
> DEBUG   (2001-09-27) 11:38.10:213   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: Configure ServerImpl
> DEBUG   (2001-09-27) 11:38.10:214   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: Intializing hsqldb server thread
> DEBUG   (2001-09-27) 11:38.10:216   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: HSQLDB Server arguments are as follows:
> DEBUG   (2001-09-27) 11:38.10:216   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 0 : -port
> DEBUG   (2001-09-27) 11:38.10:217   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 1 : 9002
> DEBUG   (2001-09-27) 11:38.10:217   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 2 : -silent
> DEBUG   (2001-09-27) 11:38.10:218   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 3 : true
> DEBUG   (2001-09-27) 11:38.10:218   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 4 : -trace
> DEBUG   (2001-09-27) 11:38.10:219   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 5 : false
> DEBUG   (2001-09-27) 11:38.10:219   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 6 : -database
> DEBUG   (2001-09-27) 11:38.10:220   [cocoon  ] (Unknown-URI)
> Unknown-thread/ServerImpl: 7 :
> /Volumes/Tardis/Library/TomCat/webapps/xml/WEB-INF/db/cocoondb
> DEBUG   (2001-09-27) 11:38.10:236   [cocoon  ] (Unknown-URI)
> Unknown-thread/ThreadSafeComponentHandler: ComponentHandler initialized
> for: org.apache.cocoon.components.hsqldb.ServerImpl
>
>
> thanks regards Jeremy
>
> --
>    ___________________________________________________________________
>
>    Jeremy Quinn                                           Karma Divers
>                                                        webSpace Design
>                                             HyperMedia Research Centre
>
>    <ma...@mac.com>
<http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>

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


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


Re: AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 8:17 AM +0200 27/9/01, Carsten Ziegeler wrote:
>If you uncomment the following lines in the cocoon.xconf:
>
>  <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
>                 pool-max="1" pool-min="1">
>     <parameter name="port" value="9002"/>
>     <parameter name="silent" value="true"/>
>     <parameter name="trace" value="false"/>
>  </hsqldb-server>
>
>hsqldb is not started and everything should work fine. I don't
>have any problems with this.


Thanks Carsten,

I have already done this, however I still get this in my logs:

This a snippet of the log for the context that has it's 'hsqldb-server'
commented out in cocoon.xconf. It appears like it is using default values
from somewhere?

But interestingly, I am not seeing the exceptions I was seeing before
concerning hsqldb's ports being in use (?)

DEBUG   (2001-09-27) 11:38.10:193   [cocoon  ] (Unknown-URI)
Unknown-thread/Cocoon: Starting database server
DEBUG   (2001-09-27) 11:38.10:194   [cocoon  ] (Unknown-URI)
Unknown-thread/ExcaliburComponentManager: Could not find ComponentHandler,
attempting to create one for role:
org.apache.cocoon.components.hsqldb.Server
DEBUG   (2001-09-27) 11:38.10:208   [cocoon  ] (Unknown-URI)
Unknown-thread/DefaultComponentFactory: ComponentFactory creating new
instance of org.apache.cocoon.components.hsqldb.ServerImpl.
DEBUG   (2001-09-27) 11:38.10:209   [cocoon  ] (Unknown-URI)
Unknown-thread/DefaultComponentFactory: no logger attribute available,
using standard logger
DEBUG   (2001-09-27) 11:38.10:212   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: database is
/Volumes/Tardis/Library/TomCat/webapps/xml/WEB-INF/db/cocoondb
DEBUG   (2001-09-27) 11:38.10:213   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: Configure ServerImpl
DEBUG   (2001-09-27) 11:38.10:214   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: Intializing hsqldb server thread
DEBUG   (2001-09-27) 11:38.10:216   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: HSQLDB Server arguments are as follows:
DEBUG   (2001-09-27) 11:38.10:216   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 0 : -port
DEBUG   (2001-09-27) 11:38.10:217   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 1 : 9002
DEBUG   (2001-09-27) 11:38.10:217   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 2 : -silent
DEBUG   (2001-09-27) 11:38.10:218   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 3 : true
DEBUG   (2001-09-27) 11:38.10:218   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 4 : -trace
DEBUG   (2001-09-27) 11:38.10:219   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 5 : false
DEBUG   (2001-09-27) 11:38.10:219   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 6 : -database
DEBUG   (2001-09-27) 11:38.10:220   [cocoon  ] (Unknown-URI)
Unknown-thread/ServerImpl: 7 :
/Volumes/Tardis/Library/TomCat/webapps/xml/WEB-INF/db/cocoondb
DEBUG   (2001-09-27) 11:38.10:236   [cocoon  ] (Unknown-URI)
Unknown-thread/ThreadSafeComponentHandler: ComponentHandler initialized
for: org.apache.cocoon.components.hsqldb.ServerImpl


thanks regards Jeremy

-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>

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


Re: AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Berin Loritsch <bl...@apache.org>.
Carsten Ziegeler wrote:
> 
> > Berin Loritsch wrote:
> >
> > Carsten Ziegeler wrote:
> > >
> > > If you uncomment the following lines in the cocoon.xconf:
> > >
> > >   <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
> > >                  pool-max="1" pool-min="1">
> > >      <parameter name="port" value="9002"/>
> > >      <parameter name="silent" value="true"/>
> > >      <parameter name="trace" value="false"/>
> > >   </hsqldb-server>
> > >
> > > hsqldb is not started and everything should work fine. I don't
> > > have any problems with this.
> >
> >
> > I have a problem:  Cocoon complains in the logs that it couldn't find or
> > start up HSQL.  That should not be.  I have been dilligent in removing
> > any extraneous messages from Avalon's code (esp. since it generates so
> > many) and making the messages helpful.
> >
> > Somewhere, the hsqldb-server is trying to be started.  Because it has
> > an entry in the cocoon.roles file, if the component is requested,
> > there will be a default server object created--which will fail.
> >
> No, as far as I could trace this, the server is tried to be started
> because of a configured datasource. if you remove that, it is never
> started.

I see.  So even if I have a datasource configured for Oracle I will see
the message?  I have experienced this.

Before I go any further, let me pull today's CVS, and run against that.
If I still get the log message, I will post the log for proof.  Also,
please note that the version of Cocoon in Avalon's tools directory gives
me the log message with no datasource defined and no dynamic pages at all.

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


AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Carsten Ziegeler <cz...@sundn.de>.
> Berin Loritsch wrote:
>
> Carsten Ziegeler wrote:
> >
> > If you uncomment the following lines in the cocoon.xconf:
> >
> >   <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
> >                  pool-max="1" pool-min="1">
> >      <parameter name="port" value="9002"/>
> >      <parameter name="silent" value="true"/>
> >      <parameter name="trace" value="false"/>
> >   </hsqldb-server>
> >
> > hsqldb is not started and everything should work fine. I don't
> > have any problems with this.
>
>
> I have a problem:  Cocoon complains in the logs that it couldn't find or
> start up HSQL.  That should not be.  I have been dilligent in removing
> any extraneous messages from Avalon's code (esp. since it generates so
> many) and making the messages helpful.
>
> Somewhere, the hsqldb-server is trying to be started.  Because it has
> an entry in the cocoon.roles file, if the component is requested,
> there will be a default server object created--which will fail.
>
No, as far as I could trace this, the server is tried to be started
because of a configured datasource. if you remove that, it is never
started.

Carsten
>
> >
> > Carsten
> >
> > > Jeremy Quinn wrote:
> > >
> > > Hi,
> > >
> > > How do you completely stop Cocoon 2 from trying to set up hsqldb?
> > >
> > > I am trying to run a second Cocoon 2 context, but it tries to set up a
> > > second hsqldb server.
> > >
> > > I have commented out all references to 'hsqldb' and 'jdbc' in
> > > 'sitemap.xmap', 'cocoon.xconf' and 'web.xml' files, removed
> 'hsqldb.jar',
> > > but I still get class not found exceptions looking for it.
> > >
> > > Do I need to edit 'hsqldb-server' out of 'cocoon.roles' and
> > > re-build Cocoon2?
> > >
> > >
> > > Is it considered a bad thing to run TomCat with multiple Cocoon 2
> > > contexts?
> > >
> > >
> > > If I want to run multiple separate projects, is it better to
> make the ROOT
> > > context the Cocoon context (so the separate projects do not
> have to have
> > > the same URL prefix) and run them all in there under sub-sitemaps?
> > >
> > >
> > > thanks for any help
> > >
> > > regards Jeremy
> > > --
> > >    ___________________________________________________________________
> > >
> > >    Jeremy Quinn                                           Karma Divers
> > >                                                        webSpace Design
> > >                                             HyperMedia Research Centre
> > >
> > >    <ma...@mac.com>
> > <http://www.media.demon.co.uk>
> >    <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


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


Re: AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Berin Loritsch <bl...@apache.org>.
Carsten Ziegeler wrote:
> 
> If you uncomment the following lines in the cocoon.xconf:
> 
>   <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
>                  pool-max="1" pool-min="1">
>      <parameter name="port" value="9002"/>
>      <parameter name="silent" value="true"/>
>      <parameter name="trace" value="false"/>
>   </hsqldb-server>
> 
> hsqldb is not started and everything should work fine. I don't
> have any problems with this.


I have a problem:  Cocoon complains in the logs that it couldn't find or
start up HSQL.  That should not be.  I have been dilligent in removing
any extraneous messages from Avalon's code (esp. since it generates so
many) and making the messages helpful.

Somewhere, the hsqldb-server is trying to be started.  Because it has
an entry in the cocoon.roles file, if the component is requested,
there will be a default server object created--which will fail.


> 
> Carsten
> 
> > Jeremy Quinn wrote:
> >
> > Hi,
> >
> > How do you completely stop Cocoon 2 from trying to set up hsqldb?
> >
> > I am trying to run a second Cocoon 2 context, but it tries to set up a
> > second hsqldb server.
> >
> > I have commented out all references to 'hsqldb' and 'jdbc' in
> > 'sitemap.xmap', 'cocoon.xconf' and 'web.xml' files, removed 'hsqldb.jar',
> > but I still get class not found exceptions looking for it.
> >
> > Do I need to edit 'hsqldb-server' out of 'cocoon.roles' and
> > re-build Cocoon2?
> >
> >
> > Is it considered a bad thing to run TomCat with multiple Cocoon 2
> > contexts?
> >
> >
> > If I want to run multiple separate projects, is it better to make the ROOT
> > context the Cocoon context (so the separate projects do not have to have
> > the same URL prefix) and run them all in there under sub-sitemaps?
> >
> >
> > thanks for any help
> >
> > regards Jeremy
> > --
> >    ___________________________________________________________________
> >
> >    Jeremy Quinn                                           Karma Divers
> >                                                        webSpace Design
> >                                             HyperMedia Research Centre
> >
> >    <ma...@mac.com>
> <http://www.media.demon.co.uk>
>    <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

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


AW: multiple Cocoon2 contexts/projects, removing hsqldb

Posted by Carsten Ziegeler <cz...@sundn.de>.
If you uncomment the following lines in the cocoon.xconf:

  <hsqldb-server class="org.apache.cocoon.components.hsqldb.ServerImpl"
                 pool-max="1" pool-min="1">
     <parameter name="port" value="9002"/>
     <parameter name="silent" value="true"/>
     <parameter name="trace" value="false"/>
  </hsqldb-server>

hsqldb is not started and everything should work fine. I don't
have any problems with this.

Carsten

> Jeremy Quinn wrote:
>
> Hi,
>
> How do you completely stop Cocoon 2 from trying to set up hsqldb?
>
> I am trying to run a second Cocoon 2 context, but it tries to set up a
> second hsqldb server.
>
> I have commented out all references to 'hsqldb' and 'jdbc' in
> 'sitemap.xmap', 'cocoon.xconf' and 'web.xml' files, removed 'hsqldb.jar',
> but I still get class not found exceptions looking for it.
>
> Do I need to edit 'hsqldb-server' out of 'cocoon.roles' and
> re-build Cocoon2?
>
>
> Is it considered a bad thing to run TomCat with multiple Cocoon 2
> contexts?
>
>
> If I want to run multiple separate projects, is it better to make the ROOT
> context the Cocoon context (so the separate projects do not have to have
> the same URL prefix) and run them all in there under sub-sitemaps?
>
>
> thanks for any help
>
> regards Jeremy
> --
>    ___________________________________________________________________
>
>    Jeremy Quinn                                           Karma Divers
>                                                        webSpace Design
>                                             HyperMedia Research Centre
>
>    <ma...@mac.com>
<http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pa...@vizzavi.net>

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


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