[Hippo-cms7-user] Re: [Hippo-hst-dev] Re: How to modify the URL to a PDF-file placed in a resource-field of a documenttype?

Ard Schrijvers a.schrijvers at onehippo.com
Fri Feb 19 17:35:26 CET 2010


We will provide this kind of needed configuration change ofcourse in
the upcoming release mail.

On purpose, we throw an error at initialization when you did not
properly define your binaries credentials: this is to avoid people
forgetting to add them.

Regards Ard

On Fri, Feb 19, 2010 at 4:56 PM, marijan milicevic
<m.milicevic at onehippo.com> wrote:
> btw, while at it, check also for other changes within hst-config.properties,
> just compare [1] & [2]:
>
> [1]
> http://svn.onehippo.org/repos/hippo/ecm/site-toolkit/tags/Release-HSTTWO-v2_04_00/demosuite/site/src/main/webapp/WEB-INF/hst-config.properties
> [2]
> http://svn.onehippo.org/repos/hippo/ecm/site-toolkit/tags/Release-HSTTWO-v2_04_03/demosuite/site/src/main/webapp/WEB-INF/hst-config.properties
>
> hth,
> cheers,
> marijan
>
>
>
> On 02/19/2010 04:50 PM, marijan milicevic wrote:
>>
>> Hi Edwin,
>>
>>
>> have you defined "binaries.repository.address" property within your
>> site/hst.properties? Please see link [1]
>>
>>
>> org.springframework.beans.MethodInvocationException: Property
>> 'repositoryAddress' threw exception; nested exception is java
>> .lang.IllegalArgumentException: Illegal repository address:
>> ${binaries.repository.address}
>>
>>
>>
>>
>> cheers,
>> marijan
>>
>>
>>
>> [1]http://svn.onehippo.org/repos/hippo/ecm/site-toolkit/tags/Release-HSTTWO-v2_04_03/demosuite/site/src/main/webapp/WEB-INF/hst-config.properties
>>
>>
>>
>>
>>
>> On 02/19/2010 04:20 PM, Edwin B. wrote:
>>>
>>> Ard wrote:
>>>>
>>>>  From 2.04.03 and higher, by default, you won't have the "%3Arsrc"
>>>> extensions anymore for images in the gallery. For assets the urls are
>>>> also pretty. For inline resources, you can control the exact url by
>>>> defining your own ResourceContainer(s). Also, you can override the
>>>> default links for gallery item by defining you own custom
>>>> ResourceResolvers. Bottom line is, that by default all the binary
>>>> links are pretty, but if you want, you can inject your own rewriting.
>>>>
>>>> The demosite has an example of a custom resource container, see
>>>> customResourceContainers.xml
>>>>
>>>> Regards Ard
>>>>
>>> Tried to change the hstversion from 2.04.00 to 2.04.03 (ecm 2.06.15) in
>>> the
>>> root-pom.
>>> The CMS did start, but when starting the website (using Jetty) I ran into
>>> trouble:
>>>
>>> The HSTSite: init() failed.
>>>
>>>
>>> 19.02.2010 16:13:38 ERROR
>>>
>>> [org.hippoecm.hst.site.container.HstSiteConfigServlet.initializeComponentManager():324]
>>> HSTSite: init() failed.
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean
>>> with name 'javax.jcr.Repository' defined in class path resource [org/hipp
>>> oecm/hst/site/container/SpringComponentManager-jcr.xml]: Cannot create
>>> inner
>>> bean 'org.hippoecm.hst.core.jcr.pool.BasicPoolingRepository#125c99f' of t
>>> ype [org.hippoecm.hst.core.jcr.pool.BasicPoolingRepository] while setting
>>> constructor argument with key [<javax.jcr.Credentials.binaries>]; nested
>>> exc
>>> eption is org.springframework.beans.factory.BeanCreationException: Error
>>> creating bean with name
>>> 'org.hippoecm.hst.core.jcr.pool.BasicPoolingRepositor
>>> y#125c99f' defined in class path resource
>>> [org/hippoecm/hst/site/container/SpringComponentManager-jcr.xml]: Error
>>> setting property values; nested exce
>>> ption is org.springframework.beans.PropertyBatchUpdateException; nested
>>> PropertyAccessExceptions (1) are:
>>> PropertyAccessException 1:
>>> org.springframework.beans.MethodInvocationException: Property
>>> 'repositoryAddress' threw exception; nested exception is java
>>> .lang.IllegalArgumentException: Illegal repository address:
>>> ${binaries.repository.address}
>>>         at
>>>
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
>>>         at
>>>
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
>>>         at
>>>
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:320)
>>>         at
>>>
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)
>>>         at
>>>
>>> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
>>>         at
>>>
>>> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:92
>>> 5)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835
>>> )
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>>>         at
>>>
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>>>         at
>>>
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
>>>         at
>>>
>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
>>>         at
>>>
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
>>>         at
>>>
>>> org.hippoecm.hst.site.container.SpringComponentManager.initialize(SpringComponentManager.java:107)
>>>         at
>>>
>>> org.hippoecm.hst.site.container.HstSiteConfigServlet.initializeComponentManager(HstSiteConfigServlet.java:301)
>>>         at
>>>
>>> org.hippoecm.hst.site.container.HstSiteConfigServlet.init(HstSiteConfigServlet.java:229)
>>>         at
>>>
>>> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
>>>         at
>>> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
>>>         at
>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>>         at
>>>
>>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:676)
>>>         at
>>> org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>>>         at
>>>
>>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
>>>         at
>>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>>>         at
>>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
>>>         at
>>>
>>> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
>>>         at
>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>>         at
>>>
>>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>>>         at
>>>
>>> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>>>         at
>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>>         at
>>>
>>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>>>         at
>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>>         at
>>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>>>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>>>         at
>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>>         at
>>>
>>> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
>>>         at
>>>
>>> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
>>>         at
>>>
>>> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
>>>         at
>>>
>>> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
>>>         at
>>> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>>>         at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>         at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>         at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>>         at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>>         at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>         at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>         at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>         at
>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>         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:597)
>>>         at
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>         at
>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> Caused by: org.springframework.beans.factory.BeanCreationException: Error
>>> creating bean with name
>>> 'org.hippoecm.hst.core.jcr.pool.BasicPoolingReposito
>>> ry#125c99f' defined in class path resource
>>> [org/hippoecm/hst/site/container/SpringComponentManager-jcr.xml]: Error
>>> setting property values; nested exc
>>> eption is org.springframework.beans.PropertyBatchUpdateException; nested
>>> PropertyAccessExceptions (1) are:
>>> PropertyAccessException 1:
>>> org.springframework.beans.MethodInvocationException: Property
>>> 'repositoryAddress' threw exception; nested exception is java
>>> .lang.IllegalArgumentException: Illegal repository address:
>>> ${binaries.repository.address}
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
>>> 79)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>>>         at
>>>
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
>>>         ... 64 more
>>> Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
>>> PropertyAccessExceptions (1) are:
>>> PropertyAccessException 1:
>>> org.springframework.beans.MethodInvocationException: Property
>>> 'repositoryAddress' threw exception; nested exception is java
>>> .lang.IllegalArgumentException: Illegal repository address:
>>> ${binaries.repository.address}
>>>         at
>>>
>>> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
>>>         at
>>>
>>> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
>>>         at
>>>
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
>>> 76)
>>>         ... 70 more
>>> 2010-02-19 16:13:38.838::INFO:  Started SelectChannelConnector at 0.0.0.0:80
>>> [INFO] Started Jetty Server
>>> [INFO] Starting scanner at interval of 5 seconds.
>>>
>>>
>>>
>>> I guess it isn't that easy as just using a newer hst-version!?
>>> All suggestions are welcome!
>>> Edwin
>>>
>>>
>>
>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html
>



More information about the Hippo-cms7-user mailing list