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
Java cvc complex type.2.4.c:匹配的通配符是严格的,但是找不到元素';jaxrs:server';_Java_Jax Rs_Cxf_Weblogic12c - Fatal编程技术网

Java cvc complex type.2.4.c:匹配的通配符是严格的,但是找不到元素';jaxrs:server';

Java cvc complex type.2.4.c:匹配的通配符是严格的,但是找不到元素';jaxrs:server';,java,jax-rs,cxf,weblogic12c,Java,Jax Rs,Cxf,Weblogic12c,我在weblogic server 12.1.3上下载应用程序时遇到错误。错误显示在“jaxrs:server”行所在的行上 org.xml.sax.SAXParseException; lineNumber: 50; columnNumber: 61; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jaxrs:server'.: 这是我

我在weblogic server 12.1.3上下载应用程序时遇到错误。错误显示在“jaxrs:server”行所在的行上

org.xml.sax.SAXParseException; lineNumber: 50; columnNumber: 61; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jaxrs:server'.:
这是我的cxf-servlet.xml

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap" xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
        http://www.springframework.org/schema/util 
        http://www.springframework.org/schema/util/spring-util-4.1.xsd
        http://www.springframework.org/schema/tx
        http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-4.1.xsd
        http://cxf.apache.org/jaxws
        http://cxf.apache.org/schemas/jaxws.xsd
        http://cxf.apache.org/jaxrs
        http://cxf.apache.org/schemas/jaxrs.xsd             
        http://cxf.apache.org/transports/http/configuration  
        http://cxf.apache.org/schemas/configuration/http-conf.xsd
        http://cxf.apache.org/core 
        http://cxf.apache.org/schemas/core.xsd">

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<import resource="cxf-logging.xml" />

   <jaxrs:server id="restContainerBackend" address="/backend">
    <jaxrs:serviceBeans>
        <ref bean="pageframeworkServiceImpl" />
    </jaxrs:serviceBeans>
    <jaxrs:extensionMappings>
        <entry key="json" value="application/json" />
    </jaxrs:extensionMappings>
    <jaxrs:providers>
        <ref bean="jsonProvider" />
    </jaxrs:providers>
</jaxrs:server>
...
... //rest of the xml
</beans>

...
... //xml的其余部分
我不知道这是怎么回事。有人能指出吗


谢谢

缺少cxf rt前端jaxrs依赖项。添加此依赖项后,问题得到解决。

您可能需要向我们展示更多信息,包括
cxf.xml
cxf servlet.xml
cxf logging.xml
。请查看是否有任何答案适用于您的情况。我已经查看了一些现有问题。但没有任何帮助。