java - ServiceMix无法启动

标签 java startup apache-karaf apache-servicemix

我的 serviceMix 无法启动,我只是试图停止它。/stop then./start

当我这样做时./client:

client: JAVA_HOME not set; results may vary
Logging in as smx
Failed to get the session.

我的 JAVA_HOME 设置正确。

当我这样做时./status

karaf: JAVA_HOME not set; results may vary
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Not Running ...

当我这样做时./停止

karaf: JAVA_HOME not set; results may vary
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Can't connect to the container. The container is not running.

在我停止之前它运行正常。

感谢您的帮助

最佳答案

尝试在 servicemix 的 bin/setenv 文件中配置 JAVA_HOME 设置。

在该文件中,您将找到如下所示的部分。尝试在此处设置 JAVA_HOME。

# general settings which should be applied for all scripts go here; please keep in mind that it is possible that scripts might be executed more than once, e.g. in example of the start script where the start script is executed first and the karaf script afterwards.

# The following section shows the possible configuration options for the default karaf scripts

# export JAVA_HOME # Location of Java installation

关于java - ServiceMix无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36360671/

相关文章:

java - 将多个组存储到集合中

java - 在 Java 中使用动态名称分配变量

java - jMenuItem Action 监听器

c# - 如何防止加载 WPF 应用程序?

spring - @PostPersist 不会将审计记录保存到数据库

java - 我需要为 Java 代码创建一个独立的数据库(最好是 SQL Server)

clojure - 使用 Clojure 的初创公司

java - Android 模拟器无法启动或启动。什么都没有弹出

java - Apache Camel 聚合在 IDE 中和在 JBoss Fuse 中部署时的不同行为

java - 构建 Karaf 插件的最简单方法