添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • On Linux
  • The file <jira-install>/bin/java-opens.txt was created with the necessary properties.
  • The <jira-install>/bin/setenv.sh has a new line as below. JVM_OPENS=$(cat $PRGDIR/java-opens.txt)
  • On Windows
  • Similar strategy as above, however the file changed in setenv.bat with the following entry. set /p JVM_OPENS=< "%_PRG_DIR%java-opens.txt" On Linux The file <jira-install>/bin/java-opens.txt was created with the necessary properties. The <jira-install>/bin/setenv.sh has a new line as below. JVM_OPENS=$(cat $PRGDIR/java-opens.txt) On Windows Similar strategy as above, however the file changed in setenv.bat with the following entry. set /p JVM_OPENS=< "%_PRG_DIR%java-opens.txt" JIRA-Bootstrap ERROR [c.a.jira.startup.ComponentContainerLauncher] An Error occurred during ComponentContainerLauncher servlet context initialisation - class com.atlassian.jira.issue.customfields.manager.xml.AllowlistedXStreamFactory (in unnamed module @0x3e2adf76) cannot access class sun.util.calendar.BaseCalendar$Date (in module java.base) because module java.base does not export sun.util.calendar to unnamed module @0x3e2adf76.

    Workaround

    Linux:

  • Stop Jira
  • Edit the jira-install/bin/catalina.sh file and search for the following line: export JDK_JAVA_OPTIONS
  • Add the following code above that line ### Added as a workaround for Java 17 ### JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.management/javax.management=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.desktop/sun.font=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.base/sun.reflect.generics.parser=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.base/java.time=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-exports=java.base/sun.util.calendar=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-exports=java.base/sun.security.action=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-exports=java.xml/jdk.xml.internal=ALL-UNNAMED" JDK_JAVA_OPTIONS= "$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang=ALL-UNNAMED" ### --- ###
  • Start Jira
  • Windows ( when startng via BAT file ):

  • Stop Jira
  • Edit the file JIRA_INSTAL\bin \catalina.bat and search for the following line: rem Configure JAVA 9 specific start-up parameters
  • Add the below code, below that line: rem Added as a workaround for Java 17 set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.management/javax.management=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.desktop/sun.font=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/sun.reflect.generics.parser=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.time=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-exports=java.base/sun.util.calendar=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-exports=java.base/sun.security.action=ALL-UNNAMED" set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-exports=java.xml/jdk.xml.internal=ALL-UNNAMED"
  • Start Jira
  • Windows (when running as service ):

  • Stop Jira tomcat9w //ES//service_name
  • Then edit in the Java Options (not the Java 9 Options) and replace all the { }add-opens{-} and -add-exports with the following: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio.file=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.base/sun.reflect.generics.parser=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.xml/jdk.xml.internal=ALL-UNNAMED
  • Start Jira
  •