Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf Liberty Profile 8.5&;伯特_Jsf_Charts_Classloader_Birt_Websphere Liberty - Fatal编程技术网

Jsf Liberty Profile 8.5&;伯特

Jsf Liberty Profile 8.5&;伯特,jsf,charts,classloader,birt,websphere-liberty,Jsf,Charts,Classloader,Birt,Websphere Liberty,我正在使用BIRT构建一个在Liberty profile 8.5上运行的web应用程序。web应用程序在web-INF/lib文件夹中包含所有BIRT所需的lib,但仅当我运行图表报告(而不是文本报告)时,BIRT日志中存在以下异常: 警告:找不到异常org.eclipse.emf.ecore.resource.resource$IOWrappedException:uri为“”的包。(file:///opt/IBM/WLP-8.5.5/usr/servers/IBMWTC/test.char

我正在使用BIRT构建一个在Liberty profile 8.5上运行的web应用程序。web应用程序在web-INF/lib文件夹中包含所有BIRT所需的lib,但仅当我运行图表报告(而不是文本报告)时,BIRT日志中存在以下异常:

警告:找不到异常org.eclipse.emf.ecore.resource.resource$IOWrappedException:uri为“”的包。(file:///opt/IBM/WLP-8.5.5/usr/servers/IBMWTC/test.chartorg.eclipse.emf.ecore.xmi.impl.xmloadimpl.handleErrors(xmloadimpl.java:77)org.eclipse.emf.ecore.xmi.impl.xmloadimpl.load(xmloadimpl.java:185)org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)org.eclipse.birt.chart.model.impl.SerializerImpl.fromXml(SerializerImpl.java:465)

原因:org.eclipse.emf.ecore.xmi.PackageNotFoundException:找不到uri为“”的包。(file:///opt/IBM/WLP-8.5.5/usr/servers/IBMWTC/test.chart,1314),位于org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2625)

使其工作的唯一方法是在server.xml中将classloader设置为“parentlast”:

<webApplication ...>
    <classloader delegation="parentLast"/> 
</webApplication>


但此设置使应用程序无法与其他框架一起工作(如jsf 2.0通过相关liberty特性在服务器级别定义的)。

您已经有了一个类似的问题(并且格式错误,您的答案应该是对您的问题的编辑)。请学习如何提出好的问题,以及我对另一个问题的了解,但在这里,我的目的只是关注birt例外。正因为这个原因,我创造了一个新的更具体的问题。很抱歉,问题和答案格式不正确。