1

我是 ESB 的新手,正在努力实现它。如果有人能指出我正确的直接解决这个问题,我将不胜感激。

我的环境: 操作系统:Ubuntu 12.04(64 位)JDK:1.7.0_51(64 位)保险丝:JBoss Fuse 6.0

我收到以下异常:

ERROR: Error parsing system bundle export statement: org.osgi.framework.startlevel;uses:="org.osgi.framework";version="1.0", org.osgi.framework.wiring;uses:="org.osgi.resource,org.osgi.framework";version="1.1", org.osgi.framework.hooks.bundle;uses:="org.osgi.framework";version="1.1", org.osgi.framework.hooks.service;uses:="org.osgi.framework";version="1.1", org.osgi.framework.hooks.resolver;uses:="org.osgi.framework.wiring";version="1.0", org.osgi.framework.launch;uses:="org.osgi.framework";version="1.1", org.osgi.framework.namespace;uses:="org.osgi.resource";version="1.0", org.osgi.framework;version="1.7",org.osgi.framework.hooks.weaving;uses:="org.osgi.framework.wiring";version="1.0",org.osgi.resource;version="1.0",org.osgi.service.url;version="1.0",org.osgi.service.startlevel;uses:="org.osgi.framework";version="1.1",org.osgi.service.packageadmin;uses:="org.osgi.framework";version="1.2",org.osgi.service.url;version="1.0", org.osgi.util.tracker;uses:="org.osgi.framework";version="1.5.1", org.apache.felix.framework.monitor;version="1.0", org.apache.karaf.jaas.boot;version="2.3.0.redhat-60024", org.apache.karaf.jaas.boot.principal;version="2.3.0.redhat-60024", org.apache.karaf.version;version="2.3.0.redhat-60024", org.apache.xalan.extensions; version="2.7.1", org.apache.xalan.xsltc.compiler; version="2.7.1", org.apache.xalan.xsltc.cmdline.getopt; version="2.7.1", org.apache.xalan.xsltc.util; version="2.7.1", org.apache.xalan.transformer; version="2.7.1", org.apache.xalan.xsltc.trax; version="2.7.1", org.apache.xalan.processor; version="2.7.1", org.apache.xalan.lib; version="2.7.1", org.apache.xalan.trace; version="2.7.1", org.apache.xalan.xsltc.compiler.util; version="2.7.1", org.apache.xalan.templates; version="2.7.1", org.apache.xalan.xsltc; version="2.7.1", org.apache.xalan.xsltc.runtime; version="2.7.1", org.apache.xalan; version="2.7.1", org.apache.xalan.xslt; version="2.7.1", org.apache.xalan.lib.sql; version="2.7.1", org.apache.xalan.xsltc.runtime.output; version="2.7.1", org.apache.xalan.xsltc.dom; version="2.7.1", org.apache.xalan.client; version="2.7.1", org.apache.xalan.xsltc.cmdline; version="2.7.1", org.apache.xalan.serialize; version="2.7.1", org.apache.xalan.res; version="2.7.1", org.apache.xml.dtm.ref; version="2.7.1", org.apache.xml.dtm; version="2.7.1", org.apache.xml.dtm.ref.sax2dtm; version="2.7.1", org.apache.xml.dtm.ref.dom2dtm; version="2.7.1", org.apache.xml.res; version="2.7.1", org.apache.xml.serializer.dom3; version="2.7.1", org.apache.xml.serializer; version="2.7.1", org.apache.xml.serializer.utils; version="2.7.1", org.apache.xml.utils.res; version="2.7.1", org.apache.xml.utils; version="2.7.1", org.apache.xpath.functions; version="2.7.1", org.apache.xpath.jaxp; version="2.7.1", org.apache.xpath.patterns; version="2.7.1", org.apache.xpath.objects; version="2.7.1", org.apache.xpath.res; version="2.7.1", org.apache.xpath; version="2.7.1", org.apache.xpath.axes; version="2.7.1", org.apache.xpath.compiler; version="2.7.1", org.apache.xpath.operations; version="2.7.1", org.apache.xpath.domapi; version="2.7.1", org.apache.html.dom; version="2.11.0", org.apache.wml.dom; version="2.11.0", org.apache.wml; version="2.11.0", org.apache.xerces.parsers; version="2.11.0", org.apache.xerces.impl.dtd.models; version="2.11.0", org.apache.xerces.xni.parser; version="2.11.0", org.apache.xerces.impl.dv.xs; version="2.11.0", org.apache.xerces.impl.xs.traversers; version="2.11.0", org.apache.xerces.util; version="2.11.0", org.apache.xerces.impl.dtd; version="2.11.0", org.apache.xerces.jaxp.validation; version="2.11.0", org.apache.xerces.dom3.as; version="2.11.0", org.apache.xerces.impl.dv; version="2.11.0", org.apache.xerces.jaxp; version="2.11.0", org.apache.xerces.jaxp.datatype; version="2.11.0", org.apache.xerces.impl.xpath.regex; version="2.11.0", org.apache.xerces.xni; version="2.11.0", org.apache.xerces.impl.msg; version="2.11.0", org.apache.xerces.impl.dv.util; version="2.11.0", org.apache.xerces.impl.xs.util; version="2.11.0", org.apache.xerces.dom; version="2.11.0", org.apache.xerces.dom.events; version="2.11.0", org.apache.xerces.impl.xs.opti; version="2.11.0", org.apache.xerces.impl; version="2.11.0", org.apache.xerces.xs; version="2.11.0", org.apache.xerces.impl.io; version="2.11.0", org.apache.xerces.xpointer; version="2.11.0", org.apache.xerces.impl.dv.dtd; version="2.11.0", org.apache.xerces.xinclude; version="2.11.0", org.apache.xerces.impl.xpath; version="2.11.0", org.apache.xerces.xs.datatypes; version="2.11.0", org.apache.xerces.impl.xs.identity; version="2.11.0", org.apache.xerces.impl.xs.models; version="2.11.0", org.apache.xerces.xni.grammars; version="2.11.0", org.apache.xerces.impl.xs; version="2.11.0", org.apache.xerces.impl.validation; version="2.11.0", org.apache.xml.serialize; version="2.11.0", ,org.apache.karaf.branding (org.osgi.framework.BundleException: Exported package names cannot be zero length.)

**The log file has this message which keeps repeating:**

Mar 20, 2014 10:51:20 PM org.apache.karaf.main.SimpleFileLock lock

INFO: locking

Mar 20, 2014 10:51:21 PM org.apache.karaf.main.SimpleFileLock lock

INFO: locking

Mar 20, 2014 10:51:22 PM org.apache.karaf.main.SimpleFileLock lock

INFO: locking

感谢我能得到的任何帮助。提前谢谢了。

4

1 回答 1

0

org.apache.karaf.main.SimpleFileLock用于实现简单的主从故障转移部署时会发生这种情况。更多细节可以在这里找到。

如果已经有另一个 FUSE ESB 实例正在运行,那么第二个启动的实例将等待第一个进程停止。如果您停止第一个实例,第二个实例将启动并获得锁,并且日志条目将消失。

主从实例必须引用文件系统中的同一个锁文件。如果由于主从位于不同的主机上而无法做到这一点,则org.apache.karaf.main.DefaultJDBCLock可以使用。

于 2014-03-21T20:58:09.480 回答