Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to add or modify JSP with JIRA 7

Vincent Thoulé
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.
December 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

11 votes
Alexandru Luchian Constantinescu February 3, 2016

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 February 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.

Scott Dudley [Inactive]
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.
April 19, 2016

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

Like Lasse Bencke likes this
ANKITA BARBI December 2, 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
Huseyin Buyukozdogan August 20, 2018

Your solution doesn't work on production server.

How to force jsp redeploy on production server?

 

Thanks

0 votes
Basavaraj Nesargi February 9, 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 June 8, 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
Dieter Greiner February 3, 2016

@Alexandru Luchian Constantinescu thank you!

0 votes
Alexandru Luchian Constantinescu February 3, 2016

@Dieter Greiner, my answer below might help you.

0 votes
Azfar Masut January 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. 

0 votes
Dieter Greiner January 26, 2016

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

 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events