Jahia in English > Custom install problem

0 (0 Good)
0 (0 Bad)

Custom install problem

by  peterr »  2015/04/30 11:50

context.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true">
  <Manager pathname="" />
  <Resource name="jdbc/jahia" auth="Container" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" type="javax.sql.DataSource" username="jahia" password="jahia" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/jahia" defaultAutoCommit="true" accessToUnderlyingConnectionAllowed="true" maxActive="200" maxIdle="30" maxWait="10000" initialSize="10" validationQuery="select version();" testWhileIdle="true" testOnBorrow="false" testOnReturn="false" timeBetweenEvictionRunsMillis="300000" minEvictableIdleTimeMillis="1800000" numTestsPerEvictionRun="5" />
  <Loader delegate="true" />
</Context>

jahia.log:

2015-04-30 13:47:52,916: INFO  [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Starting up Digital Factory, please wait...
2015-04-30 13:47:52,995: INFO  [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Start initializing Spring root application context
2015-04-30 13:47:52,995: INFO  [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: Starting up Pluto Portal Driver. . .
2015-04-30 13:47:55,471: ERROR [localhost-startStop-1] org.springframework.web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workflowService' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/workflow/applicationcontext-workflow.xml]: Cannot resolve reference to bean 'jcrTemplate' while setting bean property 'jcrTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrTemplate' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean 'jcrSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrSessionFactory' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean 'JahiaUserManagerService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JahiaUserManagerService' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean 'settingsBean' while setting bean property 'settingsBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:753)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
    at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)
    at org.jahia.bin.listeners.JahiaContextLoaderListener.contextInitialized(JahiaContextLoaderListener.java:227)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrTemplate' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean 'jcrSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrSessionFactory' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean 'JahiaUserManagerService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JahiaUserManagerService' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean 'settingsBean' while setting bean property 'settingsBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
    ... 29 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrSessionFactory' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean 'JahiaUserManagerService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JahiaUserManagerService' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean 'settingsBean' while setting bean property 'settingsBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
    ... 39 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JahiaUserManagerService' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean 'settingsBean' while setting bean property 'settingsBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
    ... 49 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settingsBean' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
    ... 59 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
    ... 69 more
Caused by: javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.apache.naming.NamingContext.lookup(NamingContext.java:859)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:830)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:830)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:830)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:167)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
    at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
    at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
    at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:231)
    at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:217)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
    ... 76 more
2015-04-30 13:47:55,503: INFO  [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Stopping OSGi platform service
2015-04-30 13:47:55,503: ERROR [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Error stopping OSGi platform service. Cause: null
java.lang.NullPointerException
    at org.jahia.bin.listeners.JahiaContextLoaderListener.contextDestroyed(JahiaContextLoaderListener.java:380)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5035)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5687)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
2015-04-30 13:47:55,520: INFO  [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: OSGi platform service stopped in 1 ms
2015-04-30 13:47:55,520: INFO  [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Shutting down Spring root application context
2015-04-30 13:47:55,521: INFO  [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: Shutting down Pluto Portal Driver...
2015-04-30 13:47:55,521: INFO  [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: Shutting down Pluto Portal Driver...
2015-04-30 13:47:55,521: INFO  [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: ********** Pluto Portal Driver Shut Down **********


2015-04-30 13:47:55,525: INFO  [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Spring Root application context shut down in 5 ms

 

  • Custom install problem
    2015/04/30 11:50

    peterr <p>context.xml:</p> <p><em>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br /> &lt;Context crossContext=&quot;true&quot;&gt;<br /> &nbsp; &lt;Manager pathname=&quot;&quot; /&gt;<br /> &nbsp; &lt;Resource name=&quot;jdbc/jahia&quot; auth=&quot;Container&quot; factory=&quot;org.apache.tomcat.jdbc.pool.DataSourceFactory&quot; type=&quot;javax.sql.DataSource&quot; username=&quot;jahia&quot; password=&quot;jahia&quot; driverClassName=&quot;org.postgresql.Driver&quot; url=&quot;jdbc:postgresql://localhost:5432/jahia&quot; defaultAutoCommit=&quot;true&quot; accessToUnderlyingConnectionAllowed=&quot;true&quot; maxActive=&quot;200&quot; maxIdle=&quot;30&quot; maxWait=&quot;10000&quot; initialSize=&quot;10&quot; validationQuery=&quot;select version();&quot; testWhileIdle=&quot;true&quot; testOnBorrow=&quot;false&quot; testOnReturn=&quot;false&quot; timeBetweenEvictionRunsMillis=&quot;300000&quot; minEvictableIdleTimeMillis=&quot;1800000&quot; numTestsPerEvictionRun=&quot;5&quot; /&gt;<br /> &nbsp; &lt;Loader delegate=&quot;true&quot; /&gt;<br /> &lt;/Context&gt;</em></p> <p>jahia.log:</p> <p><em>2015-04-30 13:47:52,916: INFO&nbsp; [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Starting up Digital Factory, please wait...<br /> 2015-04-30 13:47:52,995: INFO&nbsp; [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Start initializing Spring root application context<br /> 2015-04-30 13:47:52,995: INFO&nbsp; [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: Starting up Pluto Portal Driver. . .<br /> 2015-04-30 13:47:55,471: ERROR [localhost-startStop-1] org.springframework.web.context.ContextLoader: Context initialization failed<br /> org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;workflowService&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/workflow/applicationcontext-workflow.xml]: Cannot resolve reference to bean &#39;jcrTemplate&#39; while setting bean property &#39;jcrTemplate&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jcrTemplate&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean &#39;jcrSessionFactory&#39; while setting bean property &#39;sessionFactory&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jcrSessionFactory&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean &#39;JahiaUserManagerService&#39; while setting bean property &#39;userService&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;JahiaUserManagerService&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean &#39;settingsBean&#39; while setting bean property &#39;settingsBean&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean &#39;dataSource&#39; while setting bean property &#39;dataSource&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;dataSource&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:753)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)<br /> &nbsp;&nbsp; &nbsp;at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)<br /> &nbsp;&nbsp; &nbsp;at org.jahia.bin.listeners.JahiaContextLoaderListener.contextInitialized(JahiaContextLoaderListener.java:227)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.FutureTask.run(FutureTask.java:262)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br /> &nbsp;&nbsp; &nbsp;at java.lang.Thread.run(Thread.java:745)<br /> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jcrTemplate&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean &#39;jcrSessionFactory&#39; while setting bean property &#39;sessionFactory&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jcrSessionFactory&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean &#39;JahiaUserManagerService&#39; while setting bean property &#39;userService&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;JahiaUserManagerService&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean &#39;settingsBean&#39; while setting bean property &#39;settingsBean&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean &#39;dataSource&#39; while setting bean property &#39;dataSource&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;dataSource&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)<br /> &nbsp;&nbsp; &nbsp;... 29 more<br /> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jcrSessionFactory&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean &#39;JahiaUserManagerService&#39; while setting bean property &#39;userService&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;JahiaUserManagerService&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean &#39;settingsBean&#39; while setting bean property &#39;settingsBean&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean &#39;dataSource&#39; while setting bean property &#39;dataSource&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;dataSource&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)<br /> &nbsp;&nbsp; &nbsp;... 39 more<br /> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;JahiaUserManagerService&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/users-groups/applicationcontext-users.xml]: Cannot resolve reference to bean &#39;settingsBean&#39; while setting bean property &#39;settingsBean&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean &#39;dataSource&#39; while setting bean property &#39;dataSource&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;dataSource&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)<br /> &nbsp;&nbsp; &nbsp;... 49 more<br /> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;settingsBean&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-basejahiaconfig.xml]: Cannot resolve reference to bean &#39;dataSource&#39; while setting bean property &#39;dataSource&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;dataSource&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)<br /> &nbsp;&nbsp; &nbsp;... 59 more<br /> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;dataSource&#39; defined in URL [jar:file:/usr/local/apache-tomcat-7.0/webapps/jahia/WEB-INF/lib/jahia-impl-7.0.0.0.jar!/org/jahia/defaults/config/spring/applicationcontext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)<br /> &nbsp;&nbsp; &nbsp;... 69 more<br /> Caused by: javax.naming.NamingException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:859)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:153)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:830)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:153)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:830)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:153)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:830)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.NamingContext.lookup(NamingContext.java:167)<br /> &nbsp;&nbsp; &nbsp;at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156)<br /> &nbsp;&nbsp; &nbsp;at javax.naming.InitialContext.lookup(InitialContext.java:411)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:231)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:217)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)<br /> &nbsp;&nbsp; &nbsp;... 76 more<br /> 2015-04-30 13:47:55,503: INFO&nbsp; [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Stopping OSGi platform service<br /> 2015-04-30 13:47:55,503: ERROR [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Error stopping OSGi platform service. Cause: null<br /> java.lang.NullPointerException<br /> &nbsp;&nbsp; &nbsp;at org.jahia.bin.listeners.JahiaContextLoaderListener.contextDestroyed(JahiaContextLoaderListener.java:380)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5035)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5687)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.FutureTask.run(FutureTask.java:262)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br /> &nbsp;&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br /> &nbsp;&nbsp; &nbsp;at java.lang.Thread.run(Thread.java:745)<br /> 2015-04-30 13:47:55,520: INFO&nbsp; [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: OSGi platform service stopped in 1 ms<br /> 2015-04-30 13:47:55,520: INFO&nbsp; [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Shutting down Spring root application context<br /> 2015-04-30 13:47:55,521: INFO&nbsp; [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: Shutting down Pluto Portal Driver...<br /> 2015-04-30 13:47:55,521: INFO&nbsp; [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: Shutting down Pluto Portal Driver...<br /> 2015-04-30 13:47:55,521: INFO&nbsp; [localhost-startStop-1] org.apache.pluto.driver.PortalStartupListener: ********** Pluto Portal Driver Shut Down **********</em></p> <p><br /> <em>2015-04-30 13:47:55,525: INFO&nbsp; [localhost-startStop-1] org.jahia.bin.listeners.JahiaContextLoaderListener: Spring Root application context shut down in 5 ms</em></p> <p>&nbsp;</p>

  • Number of messages  8
    Registration date Apr 30, 2015
    0 (0 Good)
    0 (0 Bad)

    Re: Custom install problem

    by  shyrkov »  2015/04/30 13:42

    Hello Peter,

    seems, like IP or host name resolution issue.

    Could you change the "url" (context.xml) from "jdbc:postgresql://localhost:5432/jahia" to "jdbc:postgresql://127.0.0.1:5432/jahia" and check that the PostgreSQL listens to 127.0.0.1?

    Kind regards

    Sergiy

    Sergiy Shyrkov (shyrkov)

    Number of messages  407
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Custom install problem

    by  peterr »  2015/04/30 16:08

    Thanks, Sergiy.

    It seems that something went wrong with my Postgresql. Finally I tried to replace it with MariaDB and it works.

    Well, I would like to use Postgresql but for the moment I'll stay with MariaDB. I'll try to debug the Postgresql problem later.

  • Custom install problem
    2015/04/30 16:08

    peterr <p>Thanks, Sergiy.</p> <p>It seems that something went wrong with my Postgresql. Finally I tried to replace it with MariaDB and it works.</p> <p>Well, I would like to use Postgresql but for the moment I&#39;ll stay with MariaDB. I&#39;ll try to debug the Postgresql problem later.</p>

  • Number of messages  8
    Registration date Apr 30, 2015
    0 (0 Good)
    0 (0 Bad)

    Re: Custom install problem

    by  shyrkov »  2015/04/30 19:02

    Hello Peter,

    thanks for the feedback!

    Let me know, if you will have further issues with connecting Digital Factory to PostgreSQL instance.

    By the way, I am also using MariaDB locally for development and I am really satisfied with the out-of-the box config and performance :-)

     

    Kind regards

    Sergiy

    Sergiy Shyrkov (shyrkov)

    Number of messages  407
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Are you located at t

    by  Q5clHr9Tm »  2015/12/03 02:30

    Are you located at the port also? My mohetr lives in Sherwood Forest Park, Kissimmee, FL and wants to visit your shop. We're hoping it's in walking distance from the port when we visit in early May.
    Q5clHr9Tm
    Number of messages  1
    Not registered
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page