将camunda设置从java7移到8

roqulrg3  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(477)

我之前使用的是Java1.7,但我安装了1.8,现在在运行camunda时出现以下错误

  1. 2016-05-10 11:10:29,652 ERROR [stderr] (MSC service thread 1-1) ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.sun.script.javascript.RhinoScriptEngineFactory not found

经过一番研究,我发现了这个页面,这个页面说module.xml文件应该包含rhinoscriptengine路径。那是什么路?我的module.xml看起来像

  1. <module xmlns="urn:jboss:module:1.3" name="sun.jdk">
  2. <resources>
  3. <!-- currently jboss modules has not way of importing services from
  4. classes.jar so we duplicate them here -->
  5. <resource-root path="service-loader-resources"/>
  6. </resources>
  7. <dependencies>
  8. <system export="true">
  9. <paths>
  10. <!-- todo create new nashorn/scripting module-->
  11. <path name="com/sun/script/javascript"/>
  12. <path name="sun/org/mozilla/javascript/internal"/>
  13. <path name="jdk/nashorn/api/scripting"/>
  14. <path name="jdk/nashorn/api/scripting/resources"/>
  15. <path name="jdk/nashorn/internal/codegen"/>
  16. <path name="jdk/nashorn/internal/codegen/types"/>
  17. <path name="jdk/nashorn/internal/ir"/>
  18. <path name="jdk/nashorn/internal/ir/annotations"/>
  19. <path name="jdk/nashorn/internal/ir/debug"/>
  20. <path name="jdk/nashorn/internal/ir/visitor"/>
  21. <path name="jdk/nashorn/internal/lookup"/>
  22. <path name="jdk/nashorn/internal/objects"/>
  23. <path name="jdk/nashorn/internal/objects/annotations"/>
  24. <path name="jdk/nashorn/internal/parser"/>
  25. <path name="jdk/nashorn/internal/runtime"/>
  26. <path name="jdk/nashorn/internal/runtime/arrays"/>
  27. <path name="jdk/nashorn/internal/runtime/linker"/>
  28. <path name="jdk/nashorn/internal/runtime/options"/>
  29. <path name="jdk/nashorn/internal/runtime/regexp"/>
  30. <path name="jdk/nashorn/internal/runtime/regexp/joni"/>
  31. <path name="jdk/nashorn/internal/runtime/resources"/>
  32. <path name="jdk/nashorn/internal/runtime/resources/fx"/>
  33. <path name="jdk/nashorn/internal/runtime/scripts"/>
  34. <path name="jdk/nashorn/internal/tools"/>
  35. <path name="jdk/nashorn/internal/tools/resources"/>
  36. <path name="jdk/internal/dynalink"/>
  37. <path name="jdk/internal/dynalink/beans"/>
  38. <path name="jdk/internal/dynalink/linker"/>
  39. <path name="jdk/internal/dynalink/support"/>
  40. <!-- END SCRIPTING-->
  41. <path name="com/sun/image/codec/jpeg"/>
  42. <path name="com/sun/imageio/plugins/bmp"/>
  43. <path name="com/sun/imageio/plugins/common"/>
  44. <path name="com/sun/imageio/plugins/gif"/>
  45. <path name="com/sun/imageio/plugins/jpeg"/>
  46. <path name="com/sun/imageio/plugins/png"/>
  47. <path name="com/sun/imageio/plugins/wbmp"/>
  48. <path name="com/sun/imageio/spi"/>
  49. <path name="com/sun/imageio/stream"/>
  50. <path name="com/sun/jndi/dns"/>
  51. <path name="com/sun/jndi/ldap"/>
  52. <path name="com/sun/jndi/url"/>
  53. <path name="com/sun/jndi/url/corbaname"/>
  54. <path name="com/sun/jndi/url/dns"/>
  55. <path name="com/sun/jndi/url/iiop"/>
  56. <path name="com/sun/jndi/url/iiopname"/>
  57. <path name="com/sun/jndi/url/ldap"/>
  58. <path name="com/sun/jndi/url/ldaps"/>
  59. <path name="com/sun/jndi/url/rmi"/>
  60. <path name="com/sun/media/sound"/>
  61. <path name="com/sun/crypto/provider"/>
  62. <path name="com/sun/org/apache/xml/internal/security/transforms/implementations"/>
  63. <path name="com/sun/security/auth"/>
  64. <path name="com/sun/security/auth/login"/>
  65. <path name="com/sun/security/auth/module"/>
  66. <path name="com/sun/tools/internal/xjc"/>
  67. <path name="sun/awt"/>
  68. <path name="sun/awt/color"/>
  69. <path name="sun/awt/datatransfer"/>
  70. <path name="sun/awt/dnd"/>
  71. <path name="sun/awt/event"/>
  72. <path name="sun/awt/geom"/>
  73. <path name="sun/awt/im"/>
  74. <path name="sun/awt/image"/>
  75. <path name="sun/awt/image/codec"/>
  76. <path name="sun/awt/motif"/>
  77. <path name="sun/awt/resources"/>
  78. <path name="sun/awt/shell"/>
  79. <path name="sun/awt/util"/>
  80. <path name="sun/awt/windows"/>
  81. <path name="sun/awt/X11"/>
  82. <path name="sun/dc"/>
  83. <path name="sun/print"/>
  84. <path name="sun/print/resources"/>
  85. <path name="sun/security/action"/>
  86. <path name="sun/security/pkcs"/>
  87. <path name="sun/security/x509"/>
  88. <path name="sun/jdbc/odbc"/>
  89. <path name="sun/jdbc/odbc/ee"/>
  90. <path name="sun/font"/>
  91. <path name="sun/misc"/>
  92. <path name="sun/io"/>
  93. <path name="sun/nio"/>
  94. <path name="sun/nio/ch"/>
  95. <path name="sun/nio/cs"/>
  96. <path name="sun/nio/cs/ext"/>
  97. <path name="sun/security"/>
  98. <path name="sun/security/util"/>
  99. <path name="sun/security/krb5"/>
  100. <path name="sun/util"/>
  101. <path name="sun/util/calendar"/>
  102. <path name="sun/util/locale"/>
  103. <path name="sun/util/resources"/>
  104. <path name="sun/security/pkcs11"/>
  105. <path name="sun/security/provider"/>
  106. <path name="sun/text"/>
  107. <path name="META-INF/services"/>
  108. </paths>
  109. <exports>
  110. <include-set>
  111. <path name="META-INF/services"/>
  112. </include-set>
  113. </exports>
  114. </system>
  115. </dependencies>

我还尝试从scriptenginefactory文件中删除rhino脚本。这也给了我一个错误。
这是否意味着camunda与java8不兼容?我怎样才能解决这个问题?
使用的软件:
卡蒙达7.4.0
野蝇8.2.1

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题