我之前使用的是Java1.7,但我安装了1.8,现在在运行camunda时出现以下错误
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看起来像
<module xmlns="urn:jboss:module:1.3" name="sun.jdk">
<resources>
<!-- currently jboss modules has not way of importing services from
classes.jar so we duplicate them here -->
<resource-root path="service-loader-resources"/>
</resources>
<dependencies>
<system export="true">
<paths>
<!-- todo create new nashorn/scripting module-->
<path name="com/sun/script/javascript"/>
<path name="sun/org/mozilla/javascript/internal"/>
<path name="jdk/nashorn/api/scripting"/>
<path name="jdk/nashorn/api/scripting/resources"/>
<path name="jdk/nashorn/internal/codegen"/>
<path name="jdk/nashorn/internal/codegen/types"/>
<path name="jdk/nashorn/internal/ir"/>
<path name="jdk/nashorn/internal/ir/annotations"/>
<path name="jdk/nashorn/internal/ir/debug"/>
<path name="jdk/nashorn/internal/ir/visitor"/>
<path name="jdk/nashorn/internal/lookup"/>
<path name="jdk/nashorn/internal/objects"/>
<path name="jdk/nashorn/internal/objects/annotations"/>
<path name="jdk/nashorn/internal/parser"/>
<path name="jdk/nashorn/internal/runtime"/>
<path name="jdk/nashorn/internal/runtime/arrays"/>
<path name="jdk/nashorn/internal/runtime/linker"/>
<path name="jdk/nashorn/internal/runtime/options"/>
<path name="jdk/nashorn/internal/runtime/regexp"/>
<path name="jdk/nashorn/internal/runtime/regexp/joni"/>
<path name="jdk/nashorn/internal/runtime/resources"/>
<path name="jdk/nashorn/internal/runtime/resources/fx"/>
<path name="jdk/nashorn/internal/runtime/scripts"/>
<path name="jdk/nashorn/internal/tools"/>
<path name="jdk/nashorn/internal/tools/resources"/>
<path name="jdk/internal/dynalink"/>
<path name="jdk/internal/dynalink/beans"/>
<path name="jdk/internal/dynalink/linker"/>
<path name="jdk/internal/dynalink/support"/>
<!-- END SCRIPTING-->
<path name="com/sun/image/codec/jpeg"/>
<path name="com/sun/imageio/plugins/bmp"/>
<path name="com/sun/imageio/plugins/common"/>
<path name="com/sun/imageio/plugins/gif"/>
<path name="com/sun/imageio/plugins/jpeg"/>
<path name="com/sun/imageio/plugins/png"/>
<path name="com/sun/imageio/plugins/wbmp"/>
<path name="com/sun/imageio/spi"/>
<path name="com/sun/imageio/stream"/>
<path name="com/sun/jndi/dns"/>
<path name="com/sun/jndi/ldap"/>
<path name="com/sun/jndi/url"/>
<path name="com/sun/jndi/url/corbaname"/>
<path name="com/sun/jndi/url/dns"/>
<path name="com/sun/jndi/url/iiop"/>
<path name="com/sun/jndi/url/iiopname"/>
<path name="com/sun/jndi/url/ldap"/>
<path name="com/sun/jndi/url/ldaps"/>
<path name="com/sun/jndi/url/rmi"/>
<path name="com/sun/media/sound"/>
<path name="com/sun/crypto/provider"/>
<path name="com/sun/org/apache/xml/internal/security/transforms/implementations"/>
<path name="com/sun/security/auth"/>
<path name="com/sun/security/auth/login"/>
<path name="com/sun/security/auth/module"/>
<path name="com/sun/tools/internal/xjc"/>
<path name="sun/awt"/>
<path name="sun/awt/color"/>
<path name="sun/awt/datatransfer"/>
<path name="sun/awt/dnd"/>
<path name="sun/awt/event"/>
<path name="sun/awt/geom"/>
<path name="sun/awt/im"/>
<path name="sun/awt/image"/>
<path name="sun/awt/image/codec"/>
<path name="sun/awt/motif"/>
<path name="sun/awt/resources"/>
<path name="sun/awt/shell"/>
<path name="sun/awt/util"/>
<path name="sun/awt/windows"/>
<path name="sun/awt/X11"/>
<path name="sun/dc"/>
<path name="sun/print"/>
<path name="sun/print/resources"/>
<path name="sun/security/action"/>
<path name="sun/security/pkcs"/>
<path name="sun/security/x509"/>
<path name="sun/jdbc/odbc"/>
<path name="sun/jdbc/odbc/ee"/>
<path name="sun/font"/>
<path name="sun/misc"/>
<path name="sun/io"/>
<path name="sun/nio"/>
<path name="sun/nio/ch"/>
<path name="sun/nio/cs"/>
<path name="sun/nio/cs/ext"/>
<path name="sun/security"/>
<path name="sun/security/util"/>
<path name="sun/security/krb5"/>
<path name="sun/util"/>
<path name="sun/util/calendar"/>
<path name="sun/util/locale"/>
<path name="sun/util/resources"/>
<path name="sun/security/pkcs11"/>
<path name="sun/security/provider"/>
<path name="sun/text"/>
<path name="META-INF/services"/>
</paths>
<exports>
<include-set>
<path name="META-INF/services"/>
</include-set>
</exports>
</system>
</dependencies>
我还尝试从scriptenginefactory文件中删除rhino脚本。这也给了我一个错误。
这是否意味着camunda与java8不兼容?我怎样才能解决这个问题?
使用的软件:
卡蒙达7.4.0
野蝇8.2.1
暂无答案!
目前还没有任何答案,快来回答吧!