简体   繁体   English

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

[英]Starting wso2 enterprise integrator server from EI Tool

I'm starting a new project with Enterprise Integrator 6.0 and so far I'm unable to start a server from within the eclipse distribution that comes with the EI Tool. 我正在使用Enterprise Integrator 6.0启动一个新项目,到目前为止,我无法从EI工具随附的Eclipse发行版中启动服务器。

When I was working with ESB, I used to create a server and create a Runtime environment pointing the CARBON_HOME variable to <ESB_INTALLATION_DIR>/bin , but if I do the same with Enterprise Integrator I get the following error: 当我使用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

I'm able to start the EI server from the console, but in the long run it would be way easier to work directly from eclipse. 我可以从控制台启动EI服务器,但从长远来看,直接在Eclipse中工作会更容易。 Can anyone shed a light on how to do this configuration? 任何人都可以阐明如何进行此配置吗? I'm running on java jdk 1.8.0_25, windows 10. 我在Windows 10的Java JDK 1.8.0_25上运行。

So apparently the default arguments used by eclipse in the launch configuration was all wrong.It was using the file structure for ESB projects, and that's what caused the FileNotFoundException .For example, the default server configuration would have something like 因此,显然eclipse在启动配置中使用的默认参数都是错误的,它使用ESB项目的文件结构,这就是导致FileNotFoundException的原因,例如,默认服务器配置将具有以下内容

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

When it should be: 什么时候应该是:

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

I found this after some digging with the integrator.bat script. 在使用integrator.bat脚本进行一些挖掘之后,我发现了这一点。 Information about the configuration differences between ESB and EI can be found here . 有关ESB和EI之间的配置差异的信息,请参见此处

-EDIT- -编辑-

It seems these problems are going o be fixed in the next release 这些问题似乎将在下一版本中修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM