从EI Tool启动wso2企业集成服务器

时间:2017-03-21 17:32:52

标签: eclipse wso2 wso2esb

我正在使用Enterprise Integrator 6.0开始一个新项目,到目前为止,我无法从EI工具附带的eclipse发行版中启动服务器。

当我使用ESB时,我曾经创建一个服务器并创建一个运行时环境,将CARBON_HOME变量指向<ESB_INTALLATION_DIR>/bin,但如果我对Enterprise Integrator执行相同操作,则会出现以下错误:

Configuration error java.io.FileNotFoundException: C:\Users\...\wso2ei-6.0.0\repository\conf\etc\logging-bridge.properties (The system cannot find the path specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:466) at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:311) at java.util.logging.LogManager$3.run(Unknown Source) at java.util.logging.LogManager$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.readPrimordialConfiguration(Unknown Source) at java.util.logging.LogManager.access$800(Unknown Source) at java.util.logging.LogManager$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.ensureLogManagerInitialized(Unknown Source) at java.util.logging.LogManager.getLogManager(Unknown Source) at java.util.logging.Logger.demandLogger(Unknown Source) at java.util.logging.Logger.getLogger(Unknown Source) at com.sun.jmx.remote.util.ClassLogger.<init>(Unknown Source) at sun.management.jmxremote.ConnectorBootstrap.<clinit>(Unknown Source) at sun.management.Agent.startLocalManagementAgent(Unknown Source) at sun.management.Agent.startAgent(Unknown Source) at sun.management.Agent.startAgent(Unknown Source) java.lang.ClassNotFoundException: org.wso2.carbon.server.Main at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:59) at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45) Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

我能够从控制台启动EI服务器,但从长远来看,直接从eclipse工作会更容易。任何人都可以了解如何进行此配置? 我在java jdk 1.8.0_25,windows 10上运行。

1 个答案:

答案 0 :(得分:0)

显然,eclipse在启动配置中使用的默认参数都是错误的。它正在使用ESB项目的文件结构,这就是导致FileNotFoundException的原因。例如,默认的服务器配置会有一些东西像

-Dconf.location="<CARBON_HOME>/repository/conf"

应该是:

-Dconf.location="<CARBON_HOME>\conf"

我在使用integrator.bat脚本进行一些挖掘后发现了这一点。有关ESB和EI之间配置差异的信息可以在here找到。

- 编辑 -

似乎这些问题将成为fixed in the next release

相关问题