cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Restructuring directory structure[was [Vote] Block artifact directory structure]
Date Sat, 04 Nov 2006 13:30:11 GMT
Giacomo Pati wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> 
> Leszek Gawron wrote:
>> Carsten Ziegeler wrote:
>>> Giacomo Pati wrote:
>>>> Just to clear things:
>>> :)
>>>
>>>> Carsten Ziegeler wrote:
>>>>>> Done - with the additional change discussed recently, so now we have:
>>>>>>
>>>>>>>>> META-INF/cocoon/avalon/**
>>>>>>>>> META-INF/cocoon/spring/**
>>>> plus ev. mode subdir {dev,test,proc}
>>>>
>>> Yes, but only for the properties! It's simple to add this for reading
>>> avalon and spring configurations, if desired?!?
>> I heard somewhere on the list that some developers (Giacomo?) where
>> using property placeholders for defining mock beans.
> 
> Yup,that was me. Before one could do that which has been handy together
> with different modes:
> 
>> I could also find this useful. Especially when 'new CLI':
>>
>> ApplicationContext = new ClasspathXmlApplicationContext(
>> "applicationContext.xml" );
>>
>> will finally create full blown cocoon container. I suppose 'when' might
>> have changed to 'already' after the changes from last two days.
> 
> Whatever you mean by that !?!?

I meant:

- create a maven project
- add cocoon-template-impl dependency

get applicationContext.xml from 
core/cocoon-webapp/src/main/webapp/WEB-INF/applicationContext.xml:

> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:util="http://www.springframework.org/schema/util"
>        xmlns:cocoon="http://cocoon.apache.org/core"
>        xmlns:avalon="http://cocoon.apache.org/avalon"
>        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>                            http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
>                            http://cocoon.apache.org/core http://cocoon.apache.org/core.xsd
>                            http://cocoon.apache.org/avalon http://cocoon.apache.org/avalon.xsd">
>   <!-- Load all the properties for Cocoon -->
>   <cocoon:settings/>
> 
>   <!-- Load Avalon configurations
>        If you want to use a different logger than the default log4j logger,
>        add a bean conforming to the Avalon Logger interface to this definition
>        and leave out the loggingConfiguration attribute.
>        If you have an own cocoon.xconf specify the location attribute,
>        like location="/WEB-INF/cocoon/cocoon.xconf".
>    -->
>   <avalon:avalon loggingConfiguration="/WEB-INF/cocoon/log4j.xconf"/>
> </beans>

create a simple application:

public class Test {
   public static void main( String[] args ) {
     ApplicationContext context = new ClassPathXmlApplicationContext(
                                           "applicationContext.xml" );
   }
}

you *should* have your cocoon up and running. It's easy now to lookup 
beans, fairly easy to setup a pipeline, run it and get the results.

Unfortunately it still breaks:

> INFO  (2006-11-04) 14:28.03:392 [org.springframework.core.CollectionFactory]  JDK 1.4+
collections available
> INFO  (2006-11-04) 14:28.03:407 [org.springframework.core.CollectionFactory]  Commons
Collections 3.x available
> INFO  (2006-11-04) 14:28.03:485 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from class path resource [applicationContext.xml]
> INFO  (2006-11-04) 14:28.04:485 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [file:C:/dev/projects/viessmann-pi/server/core/src/main/resources/META-INF/cocoon/spring/acegi-authentication.xml]
> INFO  (2006-11-04) 14:28.04:595 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [file:C:/dev/projects/viessmann-pi/server/core/src/main/resources/META-INF/cocoon/spring/acegi-web.xml]
> INFO  (2006-11-04) 14:28.04:642 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [file:C:/dev/projects/viessmann-pi/server/core/src/main/resources/META-INF/cocoon/spring/acegi.xml]
> INFO  (2006-11-04) 14:28.04:767 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [jar:file:/C:/Documents%20and%20Settings/lgawron/.m2/repository/org/apache/cocoon/cocoon-core/2.2.0-M2-SNAPSHOT/cocoon-core-2.2.0-M2-SNAPSHOT.jar!/META-INF/cocoon/spring/cocoon-core-applicationContext.xml]
> INFO  (2006-11-04) 14:28.04:813 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [file:C:/dev/projects/viessmann-pi/server/core/src/main/resources/META-INF/cocoon/spring/core-services.xml]
> INFO  (2006-11-04) 14:28.04:892 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [file:C:/dev/projects/viessmann-pi/server/core/src/main/resources/META-INF/cocoon/spring/core.xml]
> INFO  (2006-11-04) 14:28.05:017 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 Loading XML bean definitions from URL [file:C:/dev/projects/viessmann-pi/server/pi-api/src/main/resources/META-INF/cocoon/spring/pi-api.xml]
> INFO  (2006-11-04) 14:28.06:001 [org.springframework.context.support.ClassPathXmlApplicationContext]
 Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=15532856]:
org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [org.apache.cocoon.configuration.Settings,org.apache.cocoon.core.container.spring.CocoonPropertyOverrideConfigurer,javax.servlet.ServletContext,userDetailsService,filterChainProxy,httpSessionContextIntegrationFilter,basicProcessingFilter,basicProcessingFilterEntryPoint,exceptionTranslationFilter,filterSecurityInterceptor,roleVoter,accessDecisionManager,testingAuthenticationProvider,daoAuthenticationProvider,authenticationManager,org.apache.cocoon.processing.ProcessInfoProvider,investmentDao,partnerDao,regionDao,userDao,investmentService,partnerService,regionService,userService,org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor,dataSource,
sessionFactory,baseHibernateDao,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,xmlRequestApple,storeInvestmentApple,investmentParser,org.apache.avalon.framework.context.Context,org.apache.avalon.framework.service.ServiceManager,org.apache.avalon.framework.logger.Logger,org.apache.cocoon.serialization.Serializer/htmlPooled,org.apache.cocoon.serialization.Serializer/html,org.apache.cocoon.acting.Action/session-state,org.apache.cocoon.acting.Action/session-validator,org.apache.cocoon.generation.Generator/directoryPooled,org.apache.cocoon.generation.Generator/directory,org.apache.cocoon.generation.Generator/imagedirectoryPooled,org.apache.cocoon.generation.Generator/imagedirectory,org.apache.cocoon.transformation.Transformer/<gatherer>Pooled,org.apache.cocoon.transformation.Transformer/<gatherer>,org.apache.cocoon.components.flow.Interpreter/service-apples,org.apache.cocoon.c
omponents.modules.input.InputModule/request,org.apache.cocoon.components.modules.input.InputModule/flow-attribute,org.apache.cocoon.selection.Selector/exception,org.apache.cocoon.reading.ReaderSelector,org.apache.excalibur.store.Store,org.apache.cocoon.acting.Action/set-header,org.apache.cocoon.components.pipeline.ProcessingPipeline/caching-pointPooled,org.apache.cocoon.components.pipeline.ProcessingPipeline/caching-point,org.apache.excalibur.xml.xslt.XSLTProcessorPooled,org.apache.excalibur.xml.xslt.XSLTProcessor,org.apache.excalibur.xml.dom.DOMSerializer,org.apache.cocoon.serialization.Serializer/sxdPooled,org.apache.cocoon.serialization.Serializer/sxd,org.apache.cocoon.selection.Selector/header,org.apache.cocoon.components.modules.input.InputModule/nullinput,org.apache.cocoon.generation.Generator/jxPooled,org.apache.cocoon.generation.Generator/jx,org.apache.cocoon.components.pipeline.ProcessingPipelineSelector,org.apache.cocoon.components.modules.input.InputModule/mapmeta,
org.apache.cocoon.classloader.reloading.Monitor,org.apache.cocoon.transformation.Transformer/filterPooled,org.apache.cocoon.transformation.Transformer/filter,org.apache.cocoon.components.modules.output.OutputModule/request-attr,org.apache.cocoon.components.flow.InterpreterSelector,org.apache.excalibur.source.SourceResolver,org.apache.excalibur.source.SourceFactory/cocoon,org.apache.cocoon.components.modules.output.OutputModule/session-attr,org.apache.cocoon.transformation.Transformer/cincludePooled,org.apache.cocoon.transformation.Transformer/cinclude,org.apache.cocoon.serialization.Serializer/xmlPooled,org.apache.cocoon.serialization.Serializer/xml,org.apache.cocoon.acting.Action/resource-exists,org.apache.cocoon.matching.Matcher/parameter,org.apache.cocoon.components.modules.input.InputModule/raw-request-param,org.apache.cocoon.template.script.ScriptManager,org.apache.cocoon.serialization.Serializer/xhtml11Pooled,org.apache.cocoon.serialization.Serializer/xhtml11,org.apache
.cocoon.matching.Matcher/cookie,org.apache.cocoon.selection.Selector/session-attribute,org.apache.cocoon.generation.Generator/requestPooled,org.apache.cocoon.generation.Generator/request,org.apache.cocoon.transformation.Transformer/includePooled,org.apache.cocoon.transformation.Transformer/include,org.apache.cocoon.matching.MatcherSelector,org.apache.cocoon.components.expression.ExpressionFactory,org.apache.cocoon.matching.Matcher/locale,org.apache.cocoon.components.flow.Interpreter/javascript,org.apache.excalibur.xml.xpath.XPathProcessor,org.apache.cocoon.selection.Selector/request-attribute,org.apache.cocoon.reading.Reader/imagePooled,org.apache.cocoon.reading.Reader/image,org.apache.cocoon.matching.Matcher/sessionstate,org.apache.cocoon.components.thread.RunnableManager,org.apache.cocoon.generation.GeneratorSelector,org.apache.cocoon.transformation.Transformer/xalanPooled,org.apache.cocoon.transformation.Transformer/xalan,org.apache.cocoon.components.modules.input.InputMod
ule/request-scoped-attr,org.apache.cocoon.components.modules.input.InputModule/url-decode,org.apache.cocoon.selection.Selector/resource-exists,org.apache.excalibur.source.SourceFactory/*,org.apache.cocoon.acting.ActionSelector,org.apache.cocoon.components.modules.input.InputModule/global,org.apache.cocoon.classloader.ClassLoaderFactory,org.apache.cocoon.i18n.BundleFactory,org.apache.cocoon.components.notification.NotifyingBuilderPooled,org.apache.cocoon.components.notification.NotifyingBuilder,org.apache.cocoon.serialization.Serializer/xhtmlPooled,org.apache.cocoon.serialization.Serializer/xhtml,org.apache.cocoon.components.modules.input.InputModule/flow-attr,org.apache.cocoon.components.expression.ExpressionCompilerSelector,org.apache.cocoon.components.flow.Interpreter/apples,org.apache.cocoon.transformation.Transformer/write-sourcePooled,org.apache.cocoon.transformation.Transformer/write-source,org.apache.cocoon.components.pipeline.ProcessingPipeline/expiresPooled,org.apach
e.cocoon.components.pipeline.ProcessingPipeline/expires,org.apache.cocoon.components.modules.input.InputModule/request-param,org.apache.cocoon.transformation.Transformer/jpathPooled,org.apache.cocoon.transformation.Transformer/jpath,org.apache.cocoon.matching.Matcher/request-parameter,org.apache.cocoon.components.modules.input.InputModule/session-attr,org.apache.excalibur.source.SourceFactorySelector,org.apache.cocoon.components.treeprocessor.TreeBuilder/sitemap-1.0Pooled,org.apache.cocoon.components.treeprocessor.TreeBuilder/sitemap-1.0,org.apache.cocoon.matching.Matcher/referer-match,org.apache.cocoon.serialization.Serializer/zipPooled,org.apache.cocoon.serialization.Serializer/zip,org.apache.cocoon.acting.Action/session-invalidator,org.apache.cocoon.components.modules.input.InputModuleSelector,org.apache.cocoon.transformation.Transformer/paginatePooled,org.apache.cocoon.transformation.Transformer/paginate,org.apache.cocoon.transformation.Transformer/encodeURLPooled,org.apa
che.cocoon.transformation.Transformer/encodeURL,org.apache.cocoon.transformation.Transformer/readDOMsessionPooled,org.apache.cocoon.transformation.Transformer/readDOMsession,org.apache.cocoon.components.expression.ExpressionCompiler/jxpath,org.apache.cocoon.components.expression.ExpressionCompiler/jexl,org.apache.cocoon.generation.Generator/<aggregator>Pooled,org.apache.cocoon.generation.Generator/<aggregator>,org.apache.cocoon.transformation.Transformer/xsltPooled,org.apache.cocoon.transformation.Transformer/xslt,org.apache.cocoon.transformation.Transformer/xincludePooled,org.apache.cocoon.transformation.Transformer/xinclude,org.apache.excalibur.xml.dom.DOMParserPooled,org.apache.excalibur.xml.dom.DOMParser,org.apache.cocoon.components.modules.input.InputModule/naming,org.apache.cocoon.template.expression.StringTemplateParser,org.apache.cocoon.serialization.Serializer/textPooled,org.apache.cocoon.serialization.Serializer/text,org.apache.cocoon.components.modules.input.InputM
odule/chain,org.apache.cocoon.components.modules.input.InputModule/date,org.apache.excalibur.store.StoreJanitor,org.apache.cocoon.transformation.TransformerSelector,org.apache.cocoon.template.expression.StringTemplateParser/jxtg,org.apache.cocoon.generation.Generator/mp3directoryPooled,org.apache.cocoon.generation.Generator/mp3directory,org.apache.cocoon.serialization.Serializer/sxwPooled,org.apache.cocoon.serialization.Serializer/sxw,org.apache.cocoon.components.modules.input.InputModule/xmlmeta,org.apache.cocoon.components.modules.input.InputModule/datemeta,org.apache.cocoon.generation.Generator/filePooled,org.apache.cocoon.generation.Generator/file,org.apache.cocoon.acting.Action/session-isvalid,org.apache.cocoon.transformation.Transformer/jxPooled,org.apache.cocoon.transformation.Transformer/jx,org.apache.cocoon.transformation.helpers.IncludeCacheManager,org.apache.cocoon.serialization.SerializerSelector,org.apache.cocoon.selection.Selector/request-method,org.apache.cocoo
n.components.modules.input.InputModule/digest,org.apache.cocoon.acting.Action/request,org.apache.cocoon.components.modules.input.InputModule/url-encode,org.apache.cocoon.selection.Selector/host,org.apache.cocoon.components.modules.input.InputModule/constant,org.apache.cocoon.transformation.Transformer/logPooled,org.apache.cocoon.transformation.Transformer/log,org.apache.excalibur.xml.xslt.XSLTProcessor/xalanPooled,org.apache.excalibur.xml.xslt.XSLTProcessor/xalan,org.apache.excalibur.source.SourceFactory/module,org.apache.cocoon.matching.Matcher/wildcard,org.apache.cocoon.components.modules.input.InputModule/simplemap,org.apache.cocoon.caching.Cache,org.apache.excalibur.store.Store/TransientStore,org.apache.cocoon.template.expression.StringTemplateParser/default,org.apache.cocoon.generation.Generator/notifyingPooled,org.apache.cocoon.generation.Generator/notifying,org.apache.cocoon.matching.Matcher/mount-table,org.apache.cocoon.components.modules.input.InputModule/locate,org.
apache.cocoon.Processor,org.apache.cocoon.serialization.Serializer/wmlPooled,org.apache.cocoon.serialization.Serializer/wml,org.apache.cocoon.serialization.Serializer/svgxmlPooled,org.apache.cocoon.serialization.Serializer/svgxml,org.apache.cocoon.template.expression.StringTemplateParserSelector,org.apache.cocoon.transformation.Transformer/xsltcPooled,org.apache.cocoon.transformation.Transformer/xsltc,org.apache.cocoon.generation.Generator/<notifier>Pooled,org.apache.cocoon.generation.Generator/<notifier>,org.apache.cocoon.components.modules.input.InputModule/cocoon-properties,org.apache.excalibur.source.SourceFactory/zip,org.apache.cocoon.components.pipeline.ProcessingPipeline/noncachingPooled,org.apache.cocoon.components.pipeline.ProcessingPipeline/noncaching,org.apache.cocoon.components.modules.input.InputModule/session,org.apache.cocoon.generation.Generator/statusPooled,org.apache.cocoon.generation.Generator/status,org.apache.cocoon.generation.Generator/exceptionPooled,or
g.apache.cocoon.generation.Generator/exception,org.apache.excalibur.source.SourceFactory/context,org.apache.cocoon.components.persistence.RequestDataStore,org.apache.cocoon.serialization.Serializer/linksPooled,org.apache.cocoon.serialization.Serializer/links,org.apache.cocoon.acting.Action/form-validator,org.apache.cocoon.serialization.Serializer/sxcPooled,org.apache.cocoon.serialization.Serializer/sxc,org.apache.cocoon.generation.Generator/streamPooled,org.apache.cocoon.generation.Generator/stream,org.apache.excalibur.xml.xslt.XSLTProcessor/xsltcPooled,org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc,org.apache.cocoon.components.modules.input.InputModule/cookie,org.apache.cocoon.reading.Reader/resourcePooled,org.apache.cocoon.reading.Reader/resource,org.apache.cocoon.transformation.Transformer/<translator>Pooled,org.apache.cocoon.transformation.Transformer/<translator>,org.apache.cocoon.components.modules.input.InputModule/request-header,org.apache.cocoon.components.modules
.input.InputModule/realpath,org.apache.cocoon.classloader.ClassLoaderFactory/reloading,org.apache.cocoon.selection.Selector/request-parameter,org.apache.cocoon.generation.Generator/xpathdirectoryPooled,org.apache.cocoon.generation.Generator/xpathdirectory,org.apache.cocoon.components.expression.ExpressionCompiler/js,org.apache.cocoon.acting.Action/clear-persistent-store,org.apache.cocoon.components.modules.input.InputModule/environment-attr,org.apache.cocoon.acting.Action/locale,org.apache.excalibur.source.SourceFactory/resource,org.apache.cocoon.transformation.Transformer/writeDOMsessionPooled,org.apache.cocoon.transformation.Transformer/writeDOMsession,org.apache.excalibur.xml.sax.SAXParserPooled,org.apache.excalibur.xml.sax.SAXParser,org.apache.cocoon.selection.Selector/parameter,org.apache.cocoon.matching.Matcher/header,org.apache.cocoon.components.modules.output.OutputModuleSelector,org.apache.cocoon.components.pipeline.ProcessingPipeline/cachingPooled,org.apache.cocoon.
components.pipeline.ProcessingPipeline/caching,org.apache.cocoon.selection.Selector/simple,org.apache.cocoon.components.modules.input.InputModule/request-attr,org.apache.excalibur.source.SourceFactory/empty,org.apache.excalibur.xml.EntityResolver,org.apache.cocoon.components.expression.ExpressionCompiler/default,org.apache.cocoon.serialization.Serializer/sxiPooled,org.apache.cocoon.serialization.Serializer/sxi,org.apache.cocoon.components.modules.output.OutputModule/request-attr-map,org.apache.cocoon.components.modules.input.InputModule/random,org.apache.cocoon.components.modules.input.InputModule/flow-continuation,org.apache.cocoon.serialization.Serializer/chtmlPooled,org.apache.cocoon.serialization.Serializer/chtml,org.apache.cocoon.acting.Action/req-params,org.apache.cocoon.components.modules.input.InputModule/jxpath,org.apache.cocoon.components.modules.input.InputModule/contextpath,org.apache.cocoon.template.script.InstructionFactory,org.apache.excalibur.source.SourceFact
ory/file,org.apache.excalibur.xmlizer.XMLizer,org.apache.excalibur.source.SourceFactory/upload,org.apache.cocoon.acting.Action/clear-cache,org.apache.cocoon.selection.SelectorSelector,org.apache.excalibur.source.SourceFactory/xmodule,org.apache.cocoon.matching.Matcher/regexp,org.apache.cocoon.components.flow.ContinuationsManager,org.apache.cocoon.components.modules.input.InputModule/baselink,org.apache.cocoon.selection.Selector/browser,org.apache.cocoon.components.modules.input.InputModule/system-property,org.apache.cocoon.serialization.Serializer/vrmlPooled,org.apache.cocoon.serialization.Serializer/vrml,org.apache.cocoon.generation.Generator/virtualPooled,org.apache.cocoon.generation.Generator/virtual,org.apache.cocoon.components.treeprocessor.ProcessorComponentInfo,org.apache.cocoon.core.container.spring.avalon.ConfigurationInfo,org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor];
root of BeanFactory hierarchy
> INFO  (2006-11-04) 14:28.06:048 [org.springframework.context.support.ClassPathXmlApplicationContext]
 283 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=15532856]
> INFO  (2006-11-04) 14:28.06:345 [org.springframework.beans.factory.support.DefaultListableBeanFactory]
 Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [org.apache.cocoon.configuration.Settings,org.apache.cocoon.core.container.spring.CocoonPropertyOverrideConfigurer,javax.servlet.ServletContext,userDetailsService,filterChainProxy,httpSessionContextIntegrationFilter,basicProcessingFilter,basicProcessingFilterEntryPoint,exceptionTranslationFilter,filterSecurityInterceptor,roleVoter,accessDecisionManager,testingAuthenticationProvider,daoAuthenticationProvider,authenticationManager,org.apache.cocoon.processing.ProcessInfoProvider,investmentDao,partnerDao,regionDao,userDao,investmentService,partnerService,regionService,userService,org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor,dataSource,sessionFactory,baseHibernateDao,transactionManager,org.springframework.aop.config.internalAutoPro
xyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,xmlRequestApple,storeInvestmentApple,investmentParser,org.apache.avalon.framework.context.Context,org.apache.avalon.framework.service.ServiceManager,org.apache.avalon.framework.logger.Logger,org.apache.cocoon.serialization.Serializer/htmlPooled,org.apache.cocoon.serialization.Serializer/html,org.apache.cocoon.acting.Action/session-state,org.apache.cocoon.acting.Action/session-validator,org.apache.cocoon.generation.Generator/directoryPooled,org.apache.cocoon.generation.Generator/directory,org.apache.cocoon.generation.Generator/imagedirectoryPooled,org.apache.cocoon.generation.Generator/imagedirectory,org.apache.cocoon.transformation.Transformer/<gatherer>Pooled,org.apache.cocoon.transformation.Transformer/<gatherer>,org.apache.cocoon.components.flow.Interpreter/service-apples,org.apache.cocoon.components.modules.input.InputModule/request,org.apache.cocoon.components.modules.input.InputModul
e/flow-attribute,org.apache.cocoon.selection.Selector/exception,org.apache.cocoon.reading.ReaderSelector,org.apache.excalibur.store.Store,org.apache.cocoon.acting.Action/set-header,org.apache.cocoon.components.pipeline.ProcessingPipeline/caching-pointPooled,org.apache.cocoon.components.pipeline.ProcessingPipeline/caching-point,org.apache.excalibur.xml.xslt.XSLTProcessorPooled,org.apache.excalibur.xml.xslt.XSLTProcessor,org.apache.excalibur.xml.dom.DOMSerializer,org.apache.cocoon.serialization.Serializer/sxdPooled,org.apache.cocoon.serialization.Serializer/sxd,org.apache.cocoon.selection.Selector/header,org.apache.cocoon.components.modules.input.InputModule/nullinput,org.apache.cocoon.generation.Generator/jxPooled,org.apache.cocoon.generation.Generator/jx,org.apache.cocoon.components.pipeline.ProcessingPipelineSelector,org.apache.cocoon.components.modules.input.InputModule/mapmeta,org.apache.cocoon.classloader.reloading.Monitor,org.apache.cocoon.transformation.Transformer/filt
erPooled,org.apache.cocoon.transformation.Transformer/filter,org.apache.cocoon.components.modules.output.OutputModule/request-attr,org.apache.cocoon.components.flow.InterpreterSelector,org.apache.excalibur.source.SourceResolver,org.apache.excalibur.source.SourceFactory/cocoon,org.apache.cocoon.components.modules.output.OutputModule/session-attr,org.apache.cocoon.transformation.Transformer/cincludePooled,org.apache.cocoon.transformation.Transformer/cinclude,org.apache.cocoon.serialization.Serializer/xmlPooled,org.apache.cocoon.serialization.Serializer/xml,org.apache.cocoon.acting.Action/resource-exists,org.apache.cocoon.matching.Matcher/parameter,org.apache.cocoon.components.modules.input.InputModule/raw-request-param,org.apache.cocoon.template.script.ScriptManager,org.apache.cocoon.serialization.Serializer/xhtml11Pooled,org.apache.cocoon.serialization.Serializer/xhtml11,org.apache.cocoon.matching.Matcher/cookie,org.apache.cocoon.selection.Selector/session-attribute,org.apache
.cocoon.generation.Generator/requestPooled,org.apache.cocoon.generation.Generator/request,org.apache.cocoon.transformation.Transformer/includePooled,org.apache.cocoon.transformation.Transformer/include,org.apache.cocoon.matching.MatcherSelector,org.apache.cocoon.components.expression.ExpressionFactory,org.apache.cocoon.matching.Matcher/locale,org.apache.cocoon.components.flow.Interpreter/javascript,org.apache.excalibur.xml.xpath.XPathProcessor,org.apache.cocoon.selection.Selector/request-attribute,org.apache.cocoon.reading.Reader/imagePooled,org.apache.cocoon.reading.Reader/image,org.apache.cocoon.matching.Matcher/sessionstate,org.apache.cocoon.components.thread.RunnableManager,org.apache.cocoon.generation.GeneratorSelector,org.apache.cocoon.transformation.Transformer/xalanPooled,org.apache.cocoon.transformation.Transformer/xalan,org.apache.cocoon.components.modules.input.InputModule/request-scoped-attr,org.apache.cocoon.components.modules.input.InputModule/url-decode,org.apa
che.cocoon.selection.Selector/resource-exists,org.apache.excalibur.source.SourceFactory/*,org.apache.cocoon.acting.ActionSelector,org.apache.cocoon.components.modules.input.InputModule/global,org.apache.cocoon.classloader.ClassLoaderFactory,org.apache.cocoon.i18n.BundleFactory,org.apache.cocoon.components.notification.NotifyingBuilderPooled,org.apache.cocoon.components.notification.NotifyingBuilder,org.apache.cocoon.serialization.Serializer/xhtmlPooled,org.apache.cocoon.serialization.Serializer/xhtml,org.apache.cocoon.components.modules.input.InputModule/flow-attr,org.apache.cocoon.components.expression.ExpressionCompilerSelector,org.apache.cocoon.components.flow.Interpreter/apples,org.apache.cocoon.transformation.Transformer/write-sourcePooled,org.apache.cocoon.transformation.Transformer/write-source,org.apache.cocoon.components.pipeline.ProcessingPipeline/expiresPooled,org.apache.cocoon.components.pipeline.ProcessingPipeline/expires,org.apache.cocoon.components.modules.inpu
t.InputModule/request-param,org.apache.cocoon.transformation.Transformer/jpathPooled,org.apache.cocoon.transformation.Transformer/jpath,org.apache.cocoon.matching.Matcher/request-parameter,org.apache.cocoon.components.modules.input.InputModule/session-attr,org.apache.excalibur.source.SourceFactorySelector,org.apache.cocoon.components.treeprocessor.TreeBuilder/sitemap-1.0Pooled,org.apache.cocoon.components.treeprocessor.TreeBuilder/sitemap-1.0,org.apache.cocoon.matching.Matcher/referer-match,org.apache.cocoon.serialization.Serializer/zipPooled,org.apache.cocoon.serialization.Serializer/zip,org.apache.cocoon.acting.Action/session-invalidator,org.apache.cocoon.components.modules.input.InputModuleSelector,org.apache.cocoon.transformation.Transformer/paginatePooled,org.apache.cocoon.transformation.Transformer/paginate,org.apache.cocoon.transformation.Transformer/encodeURLPooled,org.apache.cocoon.transformation.Transformer/encodeURL,org.apache.cocoon.transformation.Transformer/read
DOMsessionPooled,org.apache.cocoon.transformation.Transformer/readDOMsession,org.apache.cocoon.components.expression.ExpressionCompiler/jxpath,org.apache.cocoon.components.expression.ExpressionCompiler/jexl,org.apache.cocoon.generation.Generator/<aggregator>Pooled,org.apache.cocoon.generation.Generator/<aggregator>,org.apache.cocoon.transformation.Transformer/xsltPooled,org.apache.cocoon.transformation.Transformer/xslt,org.apache.cocoon.transformation.Transformer/xincludePooled,org.apache.cocoon.transformation.Transformer/xinclude,org.apache.excalibur.xml.dom.DOMParserPooled,org.apache.excalibur.xml.dom.DOMParser,org.apache.cocoon.components.modules.input.InputModule/naming,org.apache.cocoon.template.expression.StringTemplateParser,org.apache.cocoon.serialization.Serializer/textPooled,org.apache.cocoon.serialization.Serializer/text,org.apache.cocoon.components.modules.input.InputModule/chain,org.apache.cocoon.components.modules.input.InputModule/date,org.apache.excalibur.stor
e.StoreJanitor,org.apache.cocoon.transformation.TransformerSelector,org.apache.cocoon.template.expression.StringTemplateParser/jxtg,org.apache.cocoon.generation.Generator/mp3directoryPooled,org.apache.cocoon.generation.Generator/mp3directory,org.apache.cocoon.serialization.Serializer/sxwPooled,org.apache.cocoon.serialization.Serializer/sxw,org.apache.cocoon.components.modules.input.InputModule/xmlmeta,org.apache.cocoon.components.modules.input.InputModule/datemeta,org.apache.cocoon.generation.Generator/filePooled,org.apache.cocoon.generation.Generator/file,org.apache.cocoon.acting.Action/session-isvalid,org.apache.cocoon.transformation.Transformer/jxPooled,org.apache.cocoon.transformation.Transformer/jx,org.apache.cocoon.transformation.helpers.IncludeCacheManager,org.apache.cocoon.serialization.SerializerSelector,org.apache.cocoon.selection.Selector/request-method,org.apache.cocoon.components.modules.input.InputModule/digest,org.apache.cocoon.acting.Action/request,org.apache.
cocoon.components.modules.input.InputModule/url-encode,org.apache.cocoon.selection.Selector/host,org.apache.cocoon.components.modules.input.InputModule/constant,org.apache.cocoon.transformation.Transformer/logPooled,org.apache.cocoon.transformation.Transformer/log,org.apache.excalibur.xml.xslt.XSLTProcessor/xalanPooled,org.apache.excalibur.xml.xslt.XSLTProcessor/xalan,org.apache.excalibur.source.SourceFactory/module,org.apache.cocoon.matching.Matcher/wildcard,org.apache.cocoon.components.modules.input.InputModule/simplemap,org.apache.cocoon.caching.Cache,org.apache.excalibur.store.Store/TransientStore,org.apache.cocoon.template.expression.StringTemplateParser/default,org.apache.cocoon.generation.Generator/notifyingPooled,org.apache.cocoon.generation.Generator/notifying,org.apache.cocoon.matching.Matcher/mount-table,org.apache.cocoon.components.modules.input.InputModule/locate,org.apache.cocoon.Processor,org.apache.cocoon.serialization.Serializer/wmlPooled,org.apache.cocoon.se
rialization.Serializer/wml,org.apache.cocoon.serialization.Serializer/svgxmlPooled,org.apache.cocoon.serialization.Serializer/svgxml,org.apache.cocoon.template.expression.StringTemplateParserSelector,org.apache.cocoon.transformation.Transformer/xsltcPooled,org.apache.cocoon.transformation.Transformer/xsltc,org.apache.cocoon.generation.Generator/<notifier>Pooled,org.apache.cocoon.generation.Generator/<notifier>,org.apache.cocoon.components.modules.input.InputModule/cocoon-properties,org.apache.excalibur.source.SourceFactory/zip,org.apache.cocoon.components.pipeline.ProcessingPipeline/noncachingPooled,org.apache.cocoon.components.pipeline.ProcessingPipeline/noncaching,org.apache.cocoon.components.modules.input.InputModule/session,org.apache.cocoon.generation.Generator/statusPooled,org.apache.cocoon.generation.Generator/status,org.apache.cocoon.generation.Generator/exceptionPooled,org.apache.cocoon.generation.Generator/exception,org.apache.excalibur.source.SourceFactory/context,
org.apache.cocoon.components.persistence.RequestDataStore,org.apache.cocoon.serialization.Serializer/linksPooled,org.apache.cocoon.serialization.Serializer/links,org.apache.cocoon.acting.Action/form-validator,org.apache.cocoon.serialization.Serializer/sxcPooled,org.apache.cocoon.serialization.Serializer/sxc,org.apache.cocoon.generation.Generator/streamPooled,org.apache.cocoon.generation.Generator/stream,org.apache.excalibur.xml.xslt.XSLTProcessor/xsltcPooled,org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc,org.apache.cocoon.components.modules.input.InputModule/cookie,org.apache.cocoon.reading.Reader/resourcePooled,org.apache.cocoon.reading.Reader/resource,org.apache.cocoon.transformation.Transformer/<translator>Pooled,org.apache.cocoon.transformation.Transformer/<translator>,org.apache.cocoon.components.modules.input.InputModule/request-header,org.apache.cocoon.components.modules.input.InputModule/realpath,org.apache.cocoon.classloader.ClassLoaderFactory/reloading,org.apache
.cocoon.selection.Selector/request-parameter,org.apache.cocoon.generation.Generator/xpathdirectoryPooled,org.apache.cocoon.generation.Generator/xpathdirectory,org.apache.cocoon.components.expression.ExpressionCompiler/js,org.apache.cocoon.acting.Action/clear-persistent-store,org.apache.cocoon.components.modules.input.InputModule/environment-attr,org.apache.cocoon.acting.Action/locale,org.apache.excalibur.source.SourceFactory/resource,org.apache.cocoon.transformation.Transformer/writeDOMsessionPooled,org.apache.cocoon.transformation.Transformer/writeDOMsession,org.apache.excalibur.xml.sax.SAXParserPooled,org.apache.excalibur.xml.sax.SAXParser,org.apache.cocoon.selection.Selector/parameter,org.apache.cocoon.matching.Matcher/header,org.apache.cocoon.components.modules.output.OutputModuleSelector,org.apache.cocoon.components.pipeline.ProcessingPipeline/cachingPooled,org.apache.cocoon.components.pipeline.ProcessingPipeline/caching,org.apache.cocoon.selection.Selector/simple,org.ap
ache.cocoon.components.modules.input.InputModule/request-attr,org.apache.excalibur.source.SourceFactory/empty,org.apache.excalibur.xml.EntityResolver,org.apache.cocoon.components.expression.ExpressionCompiler/default,org.apache.cocoon.serialization.Serializer/sxiPooled,org.apache.cocoon.serialization.Serializer/sxi,org.apache.cocoon.components.modules.output.OutputModule/request-attr-map,org.apache.cocoon.components.modules.input.InputModule/random,org.apache.cocoon.components.modules.input.InputModule/flow-continuation,org.apache.cocoon.serialization.Serializer/chtmlPooled,org.apache.cocoon.serialization.Serializer/chtml,org.apache.cocoon.acting.Action/req-params,org.apache.cocoon.components.modules.input.InputModule/jxpath,org.apache.cocoon.components.modules.input.InputModule/contextpath,org.apache.cocoon.template.script.InstructionFactory,org.apache.excalibur.source.SourceFactory/file,org.apache.excalibur.xmlizer.XMLizer,org.apache.excalibur.source.SourceFactory/upload,or
g.apache.cocoon.acting.Action/clear-cache,org.apache.cocoon.selection.SelectorSelector,org.apache.excalibur.source.SourceFactory/xmodule,org.apache.cocoon.matching.Matcher/regexp,org.apache.cocoon.components.flow.ContinuationsManager,org.apache.cocoon.components.modules.input.InputModule/baselink,org.apache.cocoon.selection.Selector/browser,org.apache.cocoon.components.modules.input.InputModule/system-property,org.apache.cocoon.serialization.Serializer/vrmlPooled,org.apache.cocoon.serialization.Serializer/vrml,org.apache.cocoon.generation.Generator/virtualPooled,org.apache.cocoon.generation.Generator/virtual,org.apache.cocoon.components.treeprocessor.ProcessorComponentInfo,org.apache.cocoon.core.container.spring.avalon.ConfigurationInfo,org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor];
root of BeanFactory hierarchy}
> Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.cocoon.configuration.Settings': Invocation of init method
failed; nested exception is java.lang.NullPointerException
> Caused by: java.lang.NullPointerException
> 	at org.apache.cocoon.core.container.spring.SettingsBeanFactoryPostProcessor.createSettings(SettingsBeanFactoryPostProcessor.java:181)
> 	at org.apache.cocoon.core.container.spring.SettingsBeanFactoryPostProcessor.init(SettingsBeanFactoryPostProcessor.java:66)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1104)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1066)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
> 	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)
> 	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:405)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
> 	at com.mobilebox.viessmann.pi.server.Test.main(Test.java:28)

failing at: this.servletContext.log("Apache Cocoon " + Constants.VERSION 
+ " is running in mode: " + mode);

So either we mock the servlet context (probably not the best idea) or we 
put more attention to making cocoon usable without servlet context.


-- 
Leszek Gawron                                    CTO at MobileBox Ltd.


Mime
View raw message