Updating JAVA in JIRA 5.2.7

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

This widget could not be displayed.

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

Thanks

This widget could not be displayed.

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

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!!

Looks like ma wrong path. What did you change?

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

This widget could not be displayed.

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!!

This widget could not be displayed.

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]#
This widget could not be displayed.
Isn't there a jre folder in your jdk directory?
JAVA_HOME="/opt/idam/jdk1.7.0_21/jre"; export JAVA_HOME
This widget could not be displayed.

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

Hi..

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

Thanks

hey bhupesh.

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

This widget could not be displayed.

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

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 ?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

115 views 2 0
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