It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add or modify JSP with JIRA 7

Vincent Thoulé Dec 23, 2015

Before JIRA 7, it was possible to add or modify JSP in JIRA Install folder.

The JSP was recompiled by Tomcat as Class into <tomcat-install>\work\Catalina\localhost_\org\apache\jsp.

Now with JIRA 7, the installation comes with all JSP files already compiled into atlassian-jira\WEB-INF\classes\jsp?

The provides JSP files are present but never more accessed.

  • If we add a new JSP, it is never compiled,
  • If we modify an existing JSP, it is never recompiled,
  • if we suppress a JSP, it is also never recompiled and make fails the page access.

Is there an option into JIRA or Tomcat in order to retrieve the same behavior as previous versions ?

Thanks

Vincent

7 answers

How to do this in Jira 7:
Inside JIRA_HOME/WEB-INF/web.xml, remove the servlet and servlet-mapping for the jsp you want to edit.

Detailed example for login.jsp (it works the same for any other jsp):
1. Inside JIRA_HOME/WEB-INF/web.xml remove/comment

&lt;servlet&gt;
	&lt;servlet-name&gt;jsp.login_jsp&lt;/servlet-name&gt;
	&lt;servlet-class&gt;jsp.login_jsp&lt;/servlet-class&gt;
&lt;/servlet&gt;

and

&lt;servlet-mapping&gt;
	&lt;servlet-name&gt;jsp.login_jsp&lt;/servlet-name&gt;
	&lt;url-pattern&gt;/login.jsp&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

2. Edit JIRA_HOME/login.jsp (same approach as for Jira 6)
3. Restart Tomcat (this is because web.xml was changed)

Alex Sergeev Feb 25, 2016

Just want to mention that an another pre-compiled jsp may

&lt;%@ include file="the_tweaked_jsp_page.jsp" %&gt;


the tweaked one. And so it should be also commented/deleted as in example above to make it work.

If you arrived here trying to edit the global headers in JIRA, my comment on another JIRA doc page may be useful.

ANKITA BARBI Dec 02, 2016

Hi Alex,

In JIRA 7 , how do I add new jsp files. Please guide me. Its little urgent. Your help is highly appreciated

0 votes
Dieter Greiner Jan 26, 2016

we have a lot of customized JSPs as well. How can we compile them for JIRA 7 ?

 

0 votes
Azfar Masut Jan 28, 2016

A feature request on a documentation for this to guide users have been created here :

https://jira.atlassian.com/browse/JRA-59587

 

Do cast a vote and leave a comment on the ticket to emphasize the importance of this request to your side. 

@Dieter Greiner, my answer below might help you.

0 votes
Dieter Greiner Feb 03, 2016

@Alexandru Luchian Constantinescu thank you!

0 votes
Basavaraj Nesargi Feb 09, 2017

You can do it by modifying jspweb.xml , comment out 

<servlet>
    <servlet-name>jsp.login_jsp</servlet-name>
    <servlet-class>jsp.login_jsp</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>jsp.login_jsp</servlet-name>
    <url-pattern>/login.jsp</url-pattern>
</servlet-mapping>
rTrack Support Jun 08, 2017

I have tried the same the sever not getting started . Is there any other alternatives for modifying the login pages and atlassian logo

0 votes
Huseyin Buyukozdogan Aug 20, 2018

Your solution doesn't work on production server.

How to force jsp redeploy on production server?

 

Thanks

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

82 views 3 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you