Updating JAVA in JIRA 5.2.7

Bhupesh Nagda June 7, 2013

I installed JIRA with linux installler...hence it's using inbuilt JAVA..but now I am plannig to update to JIRA 6.0 which doesn't support jdk1.6. I have updated PATH and JAVA_HOME for new Jdk 1.7u21 but it doesn't pick newly installed JAVA on JIRA restart..I checked https://confluence.atlassian.com/display/JIRA/Installing+Java and could find no further documentation on this..Please suggest!!

Thanks:)

7 answers

1 accepted

0 votes
Answer accepted
Bhupesh Nagda June 20, 2013

Clearing the Cache did work for me...thanks guys!! update not required JIRA5.2.7 can run on JAVA 1.7_21

Thanks

0 votes
Bhupesh Nagda June 20, 2013

Hi..

I have installed JAVA with jdk1.7.0_21on my JIRA server and trying to point JIRA5.2.7 to this JAVA

permgen.sh has

#JAVA_HOME="/opt/atlassian/jira/jre/"; export JAVA_HOME

JAVA_HOME="/opt/idam/jdk1.7.0_21/jre/"; export JAVA_HOME

When I restart the JIRA(/bin/shutdown.sh and bin/startup.sh) to point to New JAVA JIRA gets locked with the messages posted above....


JAVA is shown correctly in prompt:

[root@EOSLtest02 bin]# java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
Thanks
C_ Faysal
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.
June 20, 2013

ok i was wondering if jira 5.x supports java7...looks like it does.

https://confluence.atlassian.com/display/JIRAKB/JIRA+5.2+unable+to+be+used+after+upgrading+Java+to+1.7

but i also found this one:

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

do you really need jira to run with a JDK?

you may consider updating JIRA to 5.2.8 ?

0 votes
Bhupesh Nagda June 13, 2013

I thought script was adding /bin..anyway I did it...Still the same error

JAVA_HOME="/opt/idam/jdk1.7.0_21/jre"; export JAVA_HOME

Thanks
Bhupesh Nagda June 20, 2013

Hi..

I am still struggling, is there anyone who could help??

Thanks

C_ Faysal
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.
June 20, 2013

hey bhupesh.

whats the current state? tell me what you did so far etc.

0 votes
C_ Faysal
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.
June 13, 2013
Isn't there a jre folder in your jdk directory?
C_ Faysal
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.
June 13, 2013
JAVA_HOME="/opt/idam/jdk1.7.0_21/jre"; export JAVA_HOME
0 votes
Bhupesh Nagda June 13, 2013

vim /instaldir/bin/permgen.sh

#JAVA_HOME="/opt/atlassian/jira/jre/"; export JAVA_HOME

JAVA_HOME="/opt/idam/jdk1.7.0_21/"; export JAVA_HOME

:wq
Also Java is identified by server:
[root@EOSLtest02 bin]# java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
[root@EOSLtest02 bin]#
0 votes
Bhupesh Nagda June 13, 2013

Thanks for reply...You are right I missed that entry but after pointing to my newly installed JAVA_HOME

I got "JIRA startup failed, JIRA has been locked." error after restart

"The following plugins are required by JIRA, but have not been started: RPC JIRA Plugin (com.atlassian.jira.ext.rpc), Atlassian JIRA - Plugins - Project Config Plugin (com.atlassian.jira.jira-project-config-plugin), Atlassian OAuth Admin Plugin (com.atlassian.oauth.admin), Embedded Gadgets Plugin (com.atlassian.gadgets.embedded), Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard), Atlassian JIRA - Plugins - Look And Feel Logo Upload Plugin (com.atlassian.jira.lookandfeel), Atlassian JIRA - Plugins - OAuth Consumer SPI (com.atlassian.jira.oauth.consumer), Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module), Atlassian JIRA - Plugins - OAuth Service Provider SPI (com.atlassian.jira.oauth.serviceprovider), Gadget Spec Publisher Plugin (com.atlassian.gadgets.publisher), Atlassian JIRA - Plugins - REST Plugin (com.atlassian.jira.rest), Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider), Atlassian OAuth Consumer Plugin (com.atlassian.oauth.consumer), Opensocial Plugin (com.atlassian.gadgets.opensocial), Gadget Directory Plugin (com.atlassian.gadgets.directory), Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets), Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)"

For anyone of the plugins it says:

(package=com.atlassian.jira.rest.api.http) [caused by: Unable to resolve 68.0: missing requirement [68.0] package; (package=com.atlassian.plugins.rest.common.expand) [caused by: Unable to resolve 83.0: missing requirement [83.0] package; (&(package=javax.activation)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE))]]]

Please Suggest!!

0 votes
C_ Faysal
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.
June 7, 2013

hi bhupesh.

can you please tell me what path is set in /opt/atlassian/jira/bin/permgem.sh

i.e. mine looks like this

#JAVA_HOME="/opt/atlassian/jira/jre/"; export JAVA_HOME
JAVA_HOME="/usr/java/latest"; export JAVA_HOME

just comment out the default..and put in your own.

restart jira after you've done the change and this should be it

Bhupesh Nagda June 13, 2013

Thanks for reply...You are right I missed that entry but after pointing to my newly installed JAVA_HOME

I got "JIRA startup failed, JIRA has been locked." error after restart

"The following plugins are required by JIRA, but have not been started: RPC JIRA Plugin (com.atlassian.jira.ext.rpc), Atlassian JIRA - Plugins - Project Config Plugin (com.atlassian.jira.jira-project-config-plugin), Atlassian OAuth Admin Plugin (com.atlassian.oauth.admin), Embedded Gadgets Plugin (com.atlassian.gadgets.embedded), Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard), Atlassian JIRA - Plugins - Look And Feel Logo Upload Plugin (com.atlassian.jira.lookandfeel), Atlassian JIRA - Plugins - OAuth Consumer SPI (com.atlassian.jira.oauth.consumer), Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module), Atlassian JIRA - Plugins - OAuth Service Provider SPI (com.atlassian.jira.oauth.serviceprovider), Gadget Spec Publisher Plugin (com.atlassian.gadgets.publisher), Atlassian JIRA - Plugins - REST Plugin (com.atlassian.jira.rest), Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider), Atlassian OAuth Consumer Plugin (com.atlassian.oauth.consumer), Opensocial Plugin (com.atlassian.gadgets.opensocial), Gadget Directory Plugin (com.atlassian.gadgets.directory), Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets), Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)"

For one out of many plugins with similar error it says:

(package=com.atlassian.jira.rest.api.http) [caused by: Unable to resolve 68.0: missing requirement [68.0] package; (package=com.atlassian.plugins.rest.common.expand) [caused by: Unable to resolve 83.0: missing requirement [83.0] package; (&(package=javax.activation)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE))]]]

Please Suggest!!

C_ Faysal
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.
June 13, 2013
Looks like ma wrong path. What did you change?
Zul NS _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2013

Try clearing plugin caches. Clear the content of .bundled-plugins and .osgi-plugins folder found in <jira-home>/plugins/

Suggest an answer

Log in or Sign up to answer