获取错误:加载Fuse ESB时解析系统包导出语句时出错

时间:2014-03-21 19:03:28

标签: java fuseesb jbossfuse

我是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

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

1 个答案:

答案 0 :(得分:0)

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

如果另一个FUSE ESB实例正在运行,则第二个已启动的实例正在等待,直到第一个进程停止。如果停止第一个实例,则第二个实例将启动并获取锁定,日志条目将消失。

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