Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence don't start

karim DJAAFAR
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2014

I try to start the confluence distribution (5.5.3) locally on my Mac OS 10.9 with the start-confluence.sh command but i get the following exception in my browser:

Etat HTTP 500 - Invocation of method 'getUserLocaleDefaultDatePattern' in class com.atlassian.confluence.setup.actions.SelectSetupStepAction threw exception java.lang.NullPointerException at /decorators/includes/header.vm[line 51, column 47]


type Rapport d''exception

message Invocation of method 'getUserLocaleDefaultDatePattern' in class com.atlassian.confluence.setup.actions.SelectSetupStepAction threw exception java.lang.NullPointerException at /decorators/includes/header.vm[line 51, column 47]

description Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.

exception

Here the content of my catalina.out log file:

Caused by: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLocale' in class com.atlassian.confluence.core.ConfluenceActionSupport threw exception java.lang.IllegalStateException: Spring Application context has not been set at /decorators/includes/header.vm[line 47, column 41]
at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$StreamingResponseWritingStrategy.renderToResponse(ConfluenceSitemeshDecorator.java:265)
at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.applyDecoratorUsingVelocity(ConfluenceSitemeshDecorator.java:207)
at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.applyDecorator(ConfluenceSitemeshDecorator.java:145)
at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.renderInternal(ConfluenceSitemeshDecorator.java:132)
at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.render(ConfluenceSitemeshDecorator.java:111)
at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:33)
... 44 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLocale' in class com.atlassian.confluence.core.ConfluenceActionSupport threw exception java.lang.IllegalStateException: Spring Application context has not been set at /decorators/includes/header.vm[line 47, column 41]

No port conflict appear and anyway i change the port ...

help is appreciated !

Karim

5 answers

2 votes
Macsis September 2, 2014

Hi all! Have a same problem, starting under root doesnt help :(

Macsis September 2, 2014

this is solution:

Ok I've moved the entire home in my user's hierarchy, and modified /Users/myuser/confluence/confluence/WEB-INF/classes/confluence-init.propertiesand everything works fine now.

thanks to Nicolas Truchaud

梁小阳
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2015

这是怎么操作的

1 vote
Bernhard Berger
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 12, 2015

Check you home directory entry in the file confluence-init.properties

  .../.../.../confluence/WEB-INF/classes/confluence-init.properties

0 votes
Septa Cahyadiputra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2014

Hi there,

Just want to confirm, it is indeed not recommended to run Confluence as a root. Please refer to our KB here:

https://confluence.atlassian.com/display/CONFKB/Confluence+Does+Not+Start+Due+to+'Spring+Application+context+has+not+been+set'+in+Linux

Cheers,
Septa Cahyadiputra 

0 votes
Karim DJAAFAR
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2014

Hi Matheus

Thank you for your help.

I switch to root user in my Mac OS, and relauch confluence (start-confluence.sh command) but nothing change the error is always the same in the catalina.out log file:

Grave: Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]
java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLocale' in class com.atlassian.confluence.core.ConfluenceActionSupport threw exception java.lang.IllegalStateException: Spring Application context has not been set at /decorators/includes/header.vm[line 47, column 41]
at com.opensymphony.sitemesh.webapp.deco

Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLocale' in class com.atlassian.confluence.core.ConfluenceActionSupport threw exception java.lang.IllegalStateException: Spring Application context has not been set at /decorators/includes/header.vm[line 47, column 41]
at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)

Many thanks for your help again !

0 votes
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2014

Hi Karim,

Try starting it as a root - see https://jira.atlassian.com/browse/CONF-20393:)

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events