cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat is not running

vald
Champ in-the-making
Champ in-the-making
Hi,

I'm pretty new to alfresco. I deployed alfresco using alfresco-enterprise-5.0-installer-win-x32.exe. My os is windows 7 sp1 and this installer comes with a tomcat version 7. I am not able to start tomcat using manager tool. The application log is this
Starting Tomcat Server…
Exit code: 1
Stdout:

Stderr:
Unknown error starting tomcat

So I tried to run tomcat through the startup.bat in the bin folder of the tomcat home directory in alfresco. when I start it, the console throws java.lang.OutOfMemoryError
I'm pasting the console output for your reference. any help would be highly appreciated.
1)
        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: java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
2)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:2957)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:1210)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1690)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1571)
        at org.jaxen.expr.DefaultXPathFactory.createPathExpr(DefaultXPathFactory
.java:84)
        at org.jaxen.JaxenHandler.endPathExpr(JaxenHandler.java:217)
        at org.jaxen.saxpath.base.XPathReader.pathExpr(XPathReader.java:195)
        at org.jaxen.saxpath.base.XPathReader.unionExpr(XPathReader.java:1007)
        at org.jaxen.saxpath.base.XPathReader.unaryExpr(XPathReader.java:995)
        at org.jaxen.saxpath.base.XPathReader.multiplicativeExpr(XPathReader.jav
a:943)
        at org.jaxen.saxpath.base.XPathReader.additiveExpr(XPathReader.java:913)

        at org.jaxen.saxpath.base.XPathReader.relationalExpr(XPathReader.java:86
0)
        at org.jaxen.saxpath.base.XPathReader.equalityExpr(XPathReader.java:829)

        at org.jaxen.saxpath.base.XPathReader.andExpr(XPathReader.java:809)
        at org.jaxen.saxpath.base.XPathReader.orExpr(XPathReader.java:787)
        at org.jaxen.saxpath.base.XPathReader.expr(XPathReader.java:780)
        at org.jaxen.saxpath.base.XPathReader.arguments(XPathReader.java:238)
        at org.jaxen.saxpath.base.XPathReader.functionCall(XPathReader.java:227)

        at org.jaxen.saxpath.base.XPathReader.filterExpr(XPathReader.java:279)
        at org.jaxen.saxpath.base.XPathReader.pathExpr(XPathReader.java:161)
        at org.jaxen.saxpath.base.XPathReader.unionExpr(XPathReader.java:1007)
        at org.jaxen.saxpath.base.XPathReader.unaryExpr(XPathReader.java:995)
        at org.jaxen.saxpath.base.XPathReader.multiplicativeExpr(XPathReader.jav
a:943)
        at org.jaxen.saxpath.base.XPathReader.additiveExpr(XPathReader.java:913)

        at org.jaxen.saxpath.base.XPathReader.relationalExpr(XPathReader.java:86
0)
        at org.jaxen.saxpath.base.XPathReader.equalityExpr(XPathReader.java:829)

        at org.jaxen.saxpath.base.XPathReader.andExpr(XPathReader.java:809)
        at org.jaxen.saxpath.base.XPathReader.orExpr(XPathReader.java:787)
        at org.jaxen.saxpath.base.XPathReader.expr(XPathReader.java:780)

рту 06, 2014 10:52:37 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s org.alfresco.repo.webdav.WebDAVSessionListener
org.alfresco.error.AlfrescoRuntimeException: 07060001 Workflow deployment failed

        at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.jav
a:345)
        at org.alfresco.repo.workflow.WorkflowDeployer$1$1.doWork(WorkflowDeploy
er.java:469)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(Au
thenticationUtil.java:548)
        at org.alfresco.repo.workflow.WorkflowDeployer$1.execute(WorkflowDeploye
r.java:465)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:454)
        at org.alfresco.repo.workflow.WorkflowDeployer.onBootstrap(WorkflowDeplo
yer.java:460)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onAppl
icationEvent(AbstractLifecycleBean.java:56)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicas
tEventInternal(SafeApplicationEventMulticaster.java:209)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicas
tEvent(SafeApplicationEventMulticaster.java:180)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:303)
        at org.springframework.context.support.AbstractApplicationContext.finish
Refresh(AbstractApplicationContext.java:911)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:428)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(Context
LoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4973)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5467)
        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:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073
)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:
1857)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        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: java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
2)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:2957)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:1210)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1690)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1571)
        at org.jaxen.expr.DefaultXPathFactory.createPathExpr(DefaultXPathFactory
.java:84)
        at org.jaxen.JaxenHandler.endPathExpr(JaxenHandler.java:217)
        at org.jaxen.saxpath.base.XPathReader.pathExpr(XPathReader.java:195)
        at org.jaxen.saxpath.base.XPathReader.unionExpr(XPathReader.java:1007)
        at org.jaxen.saxpath.base.XPathReader.unaryExpr(XPathReader.java:995)
        at org.jaxen.saxpath.base.XPathReader.multiplicativeExpr(XPathReader.jav
a:943)
        at org.jaxen.saxpath.base.XPathReader.additiveExpr(XPathReader.java:913)

        at org.jaxen.saxpath.base.XPathReader.relationalExpr(XPathReader.java:86
0)
        at org.jaxen.saxpath.base.XPathReader.equalityExpr(XPathReader.java:829)

        at org.jaxen.saxpath.base.XPathReader.andExpr(XPathReader.java:809)
        at org.jaxen.saxpath.base.XPathReader.orExpr(XPathReader.java:787)
        at org.jaxen.saxpath.base.XPathReader.expr(XPathReader.java:780)
        at org.jaxen.saxpath.base.XPathReader.arguments(XPathReader.java:238)
        at org.jaxen.saxpath.base.XPathReader.functionCall(XPathReader.java:227)

        at org.jaxen.saxpath.base.XPathReader.filterExpr(XPathReader.java:279)
        at org.jaxen.saxpath.base.XPathReader.pathExpr(XPathReader.java:161)
        at org.jaxen.saxpath.base.XPathReader.unionExpr(XPathReader.java:1007)
        at org.jaxen.saxpath.base.XPathReader.unaryExpr(XPathReader.java:995)
        at org.jaxen.saxpath.base.XPathReader.multiplicativeExpr(XPathReader.jav
a:943)
        at org.jaxen.saxpath.base.XPathReader.additiveExpr(XPathReader.java:913)

        at org.jaxen.saxpath.base.XPathReader.relationalExpr(XPathReader.java:86
0)
        at org.jaxen.saxpath.base.XPathReader.equalityExpr(XPathReader.java:829)

        at org.jaxen.saxpath.base.XPathReader.andExpr(XPathReader.java:809)
        at org.jaxen.saxpath.base.XPathReader.orExpr(XPathReader.java:787)
        at org.jaxen.saxpath.base.XPathReader.expr(XPathReader.java:780)

рту 06, 2014 10:52:37 AM com.sun.xml.ws.transport.http.servlet.WSServletContextL
istener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
рту 06, 2014 10:52:38 AM com.sun.xml.ws.transport.http.servlet.WSServletContextL
istener contextInitialized
SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.OutOfMemoryEr
ror: PermGen space
java.lang.OutOfMemoryError: PermGen space

рту 06, 2014 10:52:41 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen spa
ce
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:188)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1123)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:300)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:731)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.OutOfMemoryError: PermGen space

рту 06, 2014 10:52:41 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco5\tomcat\webapps\awe.war
рту 06, 2014 10:52:41 AM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to sta
rt.
org.apache.catalina.LifecycleException: Failed to start component [StandardServe
r[8005]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardService[Catalina]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:731)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        … 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        … 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed duri
ng start
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1131)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:300)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        … 11 more

рту 06, 2014 10:52:41 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-apr-8080"]
рту 06, 2014 10:52:42 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-apr-8009"]
рту 06, 2014 10:52:42 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8443"]
рту 06, 2014 10:52:42 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Exception in thread "main" рту 06, 2014 10:52:44 AM org.apache.catalina.startup.
HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco5\tomcat\webapps\share.war

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "main"
2014-08-06 10:52:45,895  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Q
uartzSchedulerThread] An error occured instantiating job to be executed. job= 'S
olr.CoreTracker-archive'
org.quartz.SchedulerException: Problem instantiating class 'org.alfresco.solr.t
racker.CoreTrackerJob' -  [See nested exception: java.lang.OutOfMemoryError: Per
mGen space]
        at org.quartz.core.JobRunShell.initialize(JobRunShell.java:147)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
365)
Caused by: java.lang.OutOfMemoryError: PermGen space
рту 06, 2014 10:52:45 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco5\tomcat\webapps\wcmqs.war
2014-08-06 10:53:00,931  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Q
uartzSchedulerThread] An error occured instantiating job to be executed. job= 'S
olr.CoreTracker-alfresco'
org.quartz.SchedulerException: Problem instantiating class 'org.alfresco.solr.t
racker.CoreTrackerJob' -  [See nested exception: java.lang.OutOfMemoryError: Per
mGen space]
        at org.quartz.core.JobRunShell.initialize(JobRunShell.java:147)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
365)
Caused by: java.lang.OutOfMemoryError: PermGen space
2014-08-06 10:53:01,239  WARN  [solr.tracker.CoreTracker] [SolrTrackerScheduler_
Worker-3] Tracking communication timed out.
2014-08-06 10:53:15,013  WARN  [solr.tracker.CoreTracker] [SolrTrackerScheduler
_Worker-1] Tracking communication timed out.
2014-08-06 10:56:00,841  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_
QuartzSchedulerThread] An error occured instantiating job to be executed. job= '
Solr.CoreWatcher'
org.quartz.SchedulerException: Problem instantiating class 'org.alfresco.solr.t
racker.CoreWatcherJob' -  [See nested exception: java.lang.OutOfMemoryError: Per
mGen space]
        at org.quartz.core.JobRunShell.initialize(JobRunShell.java:147)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
365)
Caused by: java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[192.168.5.166:63735,org.alfresco.util.remot
e.server.socket.HostConfigurableSocketFactory@0]"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "RMI RenewClean-[192.168.5.166:63735,org.alfresco.util.remote.server.so
cket.HostConfigurableSocketFactory@0]"
5 REPLIES 5

vald
Champ in-the-making
Champ in-the-making
I've changed this parameters "-Xms128M;-Xmx2G;-XX:MaxPermSize=256m; " to "-Xms128M;-Xmx512M;-XX:MaxPermSize=128m; "
that didn't help me and i got this messages:
        at org.jaxen.BaseXPath.addNamespace(BaseXPath.java:372)
        at org.alfresco.repo.search.NodeServiceXPath.<init>(NodeServiceXPath.jav
a:167)
        at org.alfresco.repo.search.impl.NodeSearcher.selectNodes(NodeSearcher.j
ava:125)
        at org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator.selectN
odes(SearchServiceSubSystemDelegator.java:162)
        at org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator.selectN
odes(SearchServiceSubSystemDelegator.java:143)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:150)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInter
ceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:158)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:110)

рту 06, 2014 11:35:30 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s org.alfresco.repo.webdav.WebDAVSessionListener
org.alfresco.error.AlfrescoRuntimeException: 07060001 Workflow deployment failed

        at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.jav
a:345)
        at org.alfresco.repo.workflow.WorkflowDeployer$1$1.doWork(WorkflowDeploy
er.java:469)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(Au
thenticationUtil.java:548)
        at org.alfresco.repo.workflow.WorkflowDeployer$1.execute(WorkflowDeploye
r.java:465)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:454)
        at org.alfresco.repo.workflow.WorkflowDeployer.onBootstrap(WorkflowDeplo
yer.java:460)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onAppl
icationEvent(AbstractLifecycleBean.java:56)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicas
tEventInternal(SafeApplicationEventMulticaster.java:209)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicas
tEvent(SafeApplicationEventMulticaster.java:180)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:303)
        at org.springframework.context.support.AbstractApplicationContext.finish
Refresh(AbstractApplicationContext.java:911)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:428)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(Context
LoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4973)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5467)
        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:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073
)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:
1857)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        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: java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
2)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:2957)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:1210)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1690)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1571)
        at org.alfresco.repo.search.NodeServiceXPath$XPathFunctionContext.<init>
(NodeServiceXPath.java:617)
        at org.alfresco.repo.search.NodeServiceXPath$XPathFunctionContext$Single
ton.<clinit>(NodeServiceXPath.java:564)
        at org.alfresco.repo.search.NodeServiceXPath$XPathFunctionContext.getIns
tance(NodeServiceXPath.java:574)
        at org.alfresco.repo.search.NodeServiceXPath.createFunctionContext(NodeS
erviceXPath.java:551)
        at org.jaxen.BaseXPath.getContextSupport(BaseXPath.java:603)
        at org.jaxen.BaseXPath.getNamespaceContext(BaseXPath.java:468)
        at org.jaxen.BaseXPath.addNamespace(BaseXPath.java:372)
        at org.alfresco.repo.search.NodeServiceXPath.<init>(NodeServiceXPath.jav
a:167)
        at org.alfresco.repo.search.impl.NodeSearcher.selectNodes(NodeSearcher.j
ava:125)
        at org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator.selectN
odes(SearchServiceSubSystemDelegator.java:162)
        at org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator.selectN
odes(SearchServiceSubSystemDelegator.java:143)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:150)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInter
ceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:158)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:110)

рту 06, 2014 11:35:30 AM com.sun.xml.ws.transport.http.servlet.WSServletContextL
istener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
рту 06, 2014 11:35:31 AM com.sun.xml.ws.transport.http.servlet.WSServletContextL
istener contextInitialized
SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.OutOfMemoryEr
ror: PermGen space
java.lang.OutOfMemoryError: PermGen space

рту 06, 2014 11:35:31 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s com.sun.xml.ws.transport.http.servlet.WSServletContextListener
com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to
parse runtime descriptor: java.lang.OutOfMemoryError: PermGen space
        at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contex
tInitialized(WSServletContextListener.java:118)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4973)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5467)
        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:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073
)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:
1857)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        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: java.lang.OutOfMemoryError: PermGen space

рту 06, 2014 11:35:31 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
рту 06, 2014 11:35:31 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/alfresco] startup failed due to previous errors
рту 06, 2014 11:35:31 AM com.sun.xml.ws.transport.http.servlet.WSServletContextL
istener contextDestroyed
INFO: WSSERVLET13: JAX-WS context listener destroyed
рту 06, 2014 11:35:31 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
рту 06, 2014 11:35:34 AM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen spa
ce
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:188)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1123)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:300)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:731)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.OutOfMemoryError: PermGen space

рту 06, 2014 11:35:34 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco5\tomcat\webapps\awe.war
рту 06, 2014 11:35:34 AM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to sta
rt.
org.apache.catalina.LifecycleException: Failed to start component [StandardServe
r[8005]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardService[Catalina]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:731)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        … 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        … 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed duri
ng start
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1131)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:300)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        … 11 more

рту 06, 2014 11:35:34 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-apr-8080"]
рту 06, 2014 11:35:34 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-apr-8009"]
рту 06, 2014 11:35:34 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8443"]
рту 06, 2014 11:35:34 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Exception in thread "main" рту 06, 2014 11:35:36 AM org.apache.catalina.startup.
HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco5\tomcat\webapps\share.war

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "main"
рту 06, 2014 11:35:37 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco5\tomcat\webapps\wcmqs.war
Exception in thread "SolrTrackerScheduler_Worker-2" Exception in thread "SolrTra
ckerScheduler_Worker-3"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "SolrTrackerScheduler_Worker-2"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "SolrTrackerScheduler_Worker-3"
Exception in thread "SolrTrackerScheduler_Worker-1"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "SolrTrackerScheduler_Worker-1"

mattl
Champ in-the-making
Champ in-the-making
Hello VAld, I also have the same issue: Tomcat will not start. No amount of modifying Xms Xmx variables, setting CATALINA_HOME in setenv.bat or rebooting and starting Tomcat immediately makes any difference. Have you made any progress on the issue yet?

mattl
Champ in-the-making
Champ in-the-making

chonchos
Champ in-the-making
Champ in-the-making
Maybe I'm stating the obvious, something you're well aware of… if so I apologize. But I had the same issue. Tomcat wouldn't start. I had to install the Java SDK. The other day I updated Java and accidentally uninstalled the SDK afterwards. Maybe you did the same?

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Or maybe this will just help someone else! Smiley Happy

carrasco_diego
Champ in-the-making
Champ in-the-making
Hi, I tried all this alternatives but nothing works. I have the same problem with the PerGem error or Out of Memory Error.

Searching a solution I found that when Alfresco and Tomcat start, checks the configuration in the file: setenv.sh

This file is in %homeDIR /alfresco-4.2.c/tomcat/bin

In this file, change the variable JAVA_OPTS and set the next values:

JAVA_OPTS="-Xms128m -Xmx2G -XX:MaxPermSize=512m -server"

I recomend only change the values for Xmx parameter. You can add more space depending of the RAM memory of your server.

The parameter: -server is necesary because Tomcart is not set like a server by default.

Then save the file setenv.sh and restart your tomcat using ./startup.sh.

This work for me.

You can check this in official website Oracle Tomcat Configuration:
http://docs.oracle.com/cd/E40520_01/integrator.311/integrator_install/src/cli_ldi_server_config.html


Regards,

Diego