cancel
Showing results for 
Search instead for 
Did you mean: 

Context initialization failed

chipke
Champ in-the-making
Champ in-the-making
I get following error:


17:06:54,813 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
17:06:58,234 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
17:07:03,844 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
17:07:03,953 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script F:\xampp\tomcat\temp\Alfresco\AlfrescoSchemaCreate-org.hibernate.dialect.MySQLInnoDBDialect-43741.sql (Generated).
17:07:19,922 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script F:\xampp\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-43742.sql (Copied from classpath:alfresco/dbscripts/create/2.1/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.1-FKIndexes.sql).
17:07:20,000 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file F:\xampp\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-All_Statements-43743.sql.
17:10:25,578 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:444)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:666)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
   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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: javax.transaction.RollbackException: Transaction didn't commit: Java heap space
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:430)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:438)
   … 35 more
Caused by: java.lang.OutOfMemoryError: Java heap space
   at java.util.Hashtable.getEnumeration(Hashtable.java:544)
   at java.util.Hashtable.elements(Hashtable.java:244)
   at org.apache.lucene.index.SegmentReader.closeNorms(SegmentReader.java:511)
   at org.apache.lucene.index.SegmentReader.doClose(SegmentReader.java:257)
   at org.apache.lucene.index.IndexReader.close(IndexReader.java:722)
   at org.apache.lucene.index.SegmentMerger.closeReaders(SegmentMerger.java:113)
   at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:1576)
   at org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:1351)
   at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:588)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.closeDeltaIndexWriter(IndexInfo.java:796)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneBase.closeDeltaWriter(AbstractLuceneBase.java:231)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.flushPending(AbstractLuceneIndexerImpl.java:821)
   at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.doPrepare(ADMLuceneIndexerImpl.java:1337)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.prepare(AbstractLuceneIndexerImpl.java:471)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory.prepare(AbstractLuceneIndexerAndSearcherFactory.java:679)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:634)
   at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:48)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:821)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:637)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:624)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:307)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:420)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:438)
   at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:666)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

==>Context initialization failed
==> bootstrap failed


I have tried several possible solutions on this forum but nothing helps.
C:\xampp\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\bootstrap

Contains: Alfresco-Tutorial
tutorial.xml:


- <view:view xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0">
- <cm:content>
  <app:uifacets />
  <cm:name>Alfresco-Tutorial.pdf</cm:name>
  <cm:title>${tutorial.document.title}</cm:title>
  <cm:description>${tutorial.document.description}</cm:description>
  <cm:content>contentUrl=classpath:alfresco/bootstrap/Alfresco-Tutorial.pdf|mimetype=application/pdf|size=|encoding=</cm:content>
  </cm:content>
  </view:view>

bootstrap-tutorial.properties

# Labels used in bootstrap Tutorial definitions

tutorial.space.name=Alfresco Tutorial
tutorial.space.description=Step by step guide to the Alfresco application

tutorial.document.name=Alfresco-Tutorial.pdf
tutorial.document.title=Alfresco Tutorial
tutorial.document.description=Getting started guide

os = windows vista
user account control (uac) = disabled
13 REPLIES 13

mikeh
Star Contributor
Star Contributor
I get following error:


Caused by: java.lang.OutOfMemoryError: Java heap space
There are quite a few forum posts covering this error, e.g. http://forums.alfresco.com/viewtopic.php?t=10455&highlight=outofmemoryerror

Thanks,
Mike

chipke
Champ in-the-making
Champ in-the-making
I get following error:


Caused by: java.lang.OutOfMemoryError: Java heap space
There are quite a few forum posts covering this error, e.g. http://forums.alfresco.com/viewtopic.php?t=10455&highlight=outofmemoryerror

Thanks,
Mike

Yes I know, but there is not a suitable solution for me that works… I tried all those forums already. I'm searching already for hours…

chipke
Champ in-the-making
Champ in-the-making
when i turn another log on i get always this..
a loop?

17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/jsp-examples] reload resource F:\xampp\tomcat\conf\conte
xt.xml
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/jsp-examples] reload resource F:\xampp\tomcat\webapps\js
p-examples\WEB-INF\web.xml
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/balancer] redeploy resource F:\xampp\tomcat\webapps\bala
ncer
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/balancer] redeploy resource F:\xampp\tomcat\webapps\bala
ncer\META-INF\context.xml
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/balancer] reload resource F:\xampp\tomcat\conf\web.xml
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/balancer] reload resource F:\xampp\tomcat\webapps\balanc
er\META-INF\context.xml
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/balancer] reload resource F:\xampp\tomcat\webapps\balanc
er\WEB-INF\web.xml
17-feb-2008 12:41:43 org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/balancer] reload resource F:\xampp\tomcat\conf\context.x
ml

mikeh
Star Contributor
Star Contributor
What are your current JAVA_OPTS?

Mike

chipke
Champ in-the-making
Champ in-the-making
What are your current JAVA_OPTS?

Mike

First of all thank you for your reply.

Secondly:
I have following settings in the following file:

filepath: f:\xampp\tomcat_start.bat
@echo off

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_04
set workers.catalina_home=F:\xampp\tomcat
set workers.java_home=C:\Program Files\Java\jdk1.6.0_04
set TOMCAT_HOME=F:\xampp\tomcat
set TOMCAT_BASE=F:\xampp\tomcat
set CLASSPATH=F:\xampp\tomcat;C:\Program Files\Java\jdk1.6.0_04\lib\tools.jar
set CATALINA_BASE=F:\xampp\tomcat
set CATALINA_HOME=F:\xampp\tomcat


SET JAVA_OPT=-client -server -Xms1024M -Xmx1024M

tomcat\bin\catalina.bat start

The first time SET JAVA_OPT was missing, so I added it…

Ok, I read on some forums, to change the catalina.bat file. But there are no parameters, only programmatic code.
Below you see the code:

set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"

chipke
Champ in-the-making
Champ in-the-making
Nobody???

mikeh
Star Contributor
Star Contributor
SET JAVA_OPT=-client -server -Xms1024M -Xmx1024M
Its JAVA_OPTS, not JAVA_OPT

Thanks,
Mike

chipke
Champ in-the-making
Champ in-the-making
Oeps stupid, I overlooked that setting…

I'm trying now for the moment. I'll let you now the result.

chipke
Champ in-the-making
Champ in-the-making
Result:

20:44:03,611 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
20:44:09,242 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
20:44:19,489 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
20:44:19,772 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script F:\xampp\tomcat\temp\Alfresco\AlfrescoSchemaCreate-org.hibernate.dialect.MySQLInnoDBDialect-25051.sql (Generated).
20:44:38,297 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script F:\xampp\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-25052.sql (Copied from classpath:alfresco/dbscripts/create/2.1/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.1-FKIndexes.sql).
20:44:38,450 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file F:\xampp\tomcat\temp\Alfresco\AlfrescoSchemaUpdate-All_Statements-25053.sql.
20:47:05,840 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
20:47:05,841 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data
20:47:05,855 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: The store 'user://alfrescoUserStore' has a duplicate root node entry.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:268)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:72)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:178)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:182)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
   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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)