小编Ram*_*eri的帖子

Apache Camel Spring配置错误 - 无法找到XML架构命名空间的Spring NamespaceHandler [http://camel.apache.org/schema/spring]

我已经从我的spring.xml文件和我正在获得的堆栈跟踪中发布了一段摘录.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:util="http://www.springframework.org/schema/util" xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
    http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
    http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd"
    default-init-method="init" default-lazy-init="false">

    <!-- import web service configuration -->
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
        <package>com.testdomain.testpackage</package>
    </camelContext>
...
</beans>
Run Code Online (Sandbox Code Playgroud)

这引发了这个异常:

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring]
Offending resource: class path resource [spring-config.xml]

    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) …
Run Code Online (Sandbox Code Playgroud)

spring web-applications apache-camel

16
推荐指数
1
解决办法
2万
查看次数

如何在 Cassandra 表中添加一个新字段,默认值是“whatever”?

如何在 Cassandra 表中添加一个新的字段/列,默认值是“whatever”?我知道如何添加新列,但是需要将其设置为某个值。

cql cassandra

6
推荐指数
1
解决办法
5398
查看次数

标签 统计

apache-camel ×1

cassandra ×1

cql ×1

spring ×1

web-applications ×1