Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.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
无法使用Google App Engine通过JSTL解析XML_Xml_Jsp_Google App Engine_Xpath_Jstl - Fatal编程技术网

无法使用Google App Engine通过JSTL解析XML

无法使用Google App Engine通过JSTL解析XML,xml,jsp,google-app-engine,xpath,jstl,Xml,Jsp,Google App Engine,Xpath,Jstl,运行代码后,出现以下错误: HTTP错误500 访问/index.jsp时出现问题。原因: java.lang.NoClassDefFoundError:org/apache/xpath/XPathException 我在index.jsp文件中正确声明了标记库: 下面是我尝试解析XML文件的地方: <select class="form-control" style="width:40rem;"> <!-- Open Data

运行代码后,出现以下错误:

HTTP错误500

访问/index.jsp时出现问题。原因:

java.lang.NoClassDefFoundError:org/apache/xpath/XPathException

我在index.jsp文件中正确声明了标记库:

下面是我尝试解析XML文件的地方:

<select class="form-control" style="width:40rem;">
    <!-- Open Data -->
    <c:import var="sportInfo" url="http://data.nantes.fr/api/publication/24440040400129_NM_NM_00024/LOC_EQUIPUB_SPORT_NM_STBL/content/?format=xml"/>
    <x:parse xml="${sportInfo}" var="output"/>
    <x:forEach select="$output/document/data/element/geo/name" var="item">
        <option value="$output/document/data/element/_IDOBJ"><x:out select="$item" /></option>
    </x:forEach>
</select>
我已经在线检查并尝试了不同的解决方案,包括将Xalan添加到项目的构建路径,但到目前为止没有结果


提前感谢。

如果您确定类路径上有适当的JAR,这可能是因为XPath和GAE之间不兼容,也就是说XPath使用的某些类不兼容

有两个开放的问题,并形成与您完全相同的问题的人,这两个问题已被GAE团队确认,但不幸的是,到目前为止没有解决方案

<select class="form-control" style="width:40rem;">
    <!-- Open Data -->
    <c:import var="sportInfo" url="http://data.nantes.fr/api/publication/24440040400129_NM_NM_00024/LOC_EQUIPUB_SPORT_NM_STBL/content/?format=xml"/>
    <x:parse xml="${sportInfo}" var="output"/>
    <x:forEach select="$output/document/data/element/geo/name" var="item">
        <option value="$output/document/data/element/_IDOBJ"><x:out select="$item" /></option>
    </x:forEach>
</select>