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.
Is there an option into JIRA or Tomcat in order to retrieve the same behavior as previous versions ?
Thanks
Vincent
Community moderators have prevented the ability to post new 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
<servlet> <servlet-name>jsp.login_jsp</servlet-name> <servlet-class>jsp.login_jsp</servlet-class> </servlet>
and
<servlet-mapping> <servlet-name>jsp.login_jsp</servlet-name> <url-pattern>/login.jsp</url-pattern> </servlet-mapping>
2. Edit JIRA_HOME/login.jsp (same approach as for Jira 6)
3. Restart Tomcat (this is because web.xml was changed)
Just want to mention that an another pre-compiled jsp may
<%@ include file="the_tweaked_jsp_page.jsp" %>
the tweaked one. And so it should be also commented/deleted as in example above to make it work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you arrived here trying to edit the global headers in JIRA, my comment on another JIRA doc page may be useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
In JIRA 7 , how do I add new jsp files. Please guide me. Its little urgent. Your help is highly appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your solution doesn't work on production server.
How to force jsp redeploy on production server?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried the same the sever not getting started . Is there any other alternatives for modifying the login pages and atlassian logo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dieter Greiner, my answer below might help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we have a lot of customized JSPs as well. How can we compile them for JIRA 7 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.