Can I regenerate server.xml file in Jira 7.1.4

I started Jira and the URL was working as http://<localhost>:8080

I made change to server.xml but forgot to take copy of the original file- change was make the URL work as http://<localhost>:8080/jira

I suppose that I might have done some thing wrong.

When I try to stop JIRA catalina.out had error message-

15-Apr-2016 14:35:19.882 WARNING [main]org.apache.catalina.startup.Catalina.load Catalina.start using conf/server.xml: Element type "Context" must be followed by either attribute specifications, ">" or "/>".
15-Apr-2016 14:35:19.887 SEVERE [main]org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at line 120 column 33: Element type "Context" must be followed by either attribute specifications, ">" or "/>".
org.xml.sax.SAXParseException; systemId: file:/opt/atlassian/jira/conf/server.xml; lineNumber: 120; columnNumber: 33; Element type "Context" must be followed by either attribute specifications, ">" or "/>".

I reverted back the changes and now the server.xml has

in line 120- 

<Context path=""docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

but I am not able to start JIRA


I see the error message in catalina.out  in /opt/atlassian/jira/logs

15-Apr-2016 15:23:29.504 WARNING [main] org.apache.catalina.startup.Catalina.load Catalina.start using conf/server.xml: Element type "Context" must be f ollowed by either attribute specifications, ">" or "/>".
4263 15-Apr-2016 15:23:29.505 SEVERE [main] org.apache.catalina.startup.Catalina.start Cannot start server. Server instance is not configured.



Bose Kamineni

3 answers

1 accepted

0 vote

It's malformed xml, and the error message is pretty much the right answer.  Look carefully at the <Context line - you seem to have closed it with > which means "more detail to come, followed by a </Context> to end it".  Then, I suspect you haven't given it those details or the end tag.  If there is nothing to go into the context, try ending it with /> instead to say "here's all the context information in one line"

p.s. un-closed xml elements - bane of my life for months, until I found a decent xml editor that told me where I'd got it wrong.  I hate editing those files - absolute guarantee I won't get them right first time, even after 12 years.


the issue is when I reverted back - deleted the space between """ docbase

after putting the space able to start JIRA and now re-indexing is in progress.

the token should be path='' docbase=".."

<Context path=""docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">



Bose Kamineni



thank you for all the help.

<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

it worked.

Bose Kamineni

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

765 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you