Я пытаюсь создать верблюжий маршрут в весенней загрузке. Я получаю следующую ошибку.
Причина: org.xml.sax.SAXParseException: s4s-elt-character: в элементах схемы, отличных от xs:appinfo и xs:documentation, не допускаются непробельные символы. Видел «301 перемещен навсегда».
Мой applicationContext.xml выглядит так.
<?xml version = "1.0" encoding = "UTF-8"?>
<blueprint xmlns = "http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm = "http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xmlns:jaxws = "http://cxf.apache.org/blueprint/jaxws"
xmlns:cxf = "http://cxf.apache.org/blueprint/core"
xmlns:camel = "http://camel.apache.org/schema/blueprint"
xmlns:camelcxf = "http://camel.apache.org/schema/blueprint/cxf"
xmlns:http-conf = "http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation = "http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd"
default-activation = "lazy">
<!-- CXF SERVER -->
<camelcxf:rsServer id = "productRestController"
address = "http://0.0.0.0:8080/product"
serviceClass = "com.born.oktopus.product.controller.ProductRestController"
loggingFeatureEnabled = "true" loggingSizeLimit = "20" >
<!-- <cxf:schemaLocations> <value>classpath:/schemas/productDataList.xsd</value>
</cxf:schemaLocations> <camelcxf:providers> <ref component-id = "jaxbProviderXsi"
/> </camelcxf:providers> -->
</camelcxf:rsServer>
<!-- ERP BEANS -->
<bean id = "loggingOutInterceptor"
class = "org.apache.cxf.interceptor.LoggingOutInterceptor" >
<property name = "prettyLogging" value = "true" />
</bean>
</blueprint>




Похоже, вы пытаетесь проверить файл преобразования с помощью XML-файла вместо XSD, поскольку applicationContext.xml выглядит правильно.
Вам нужно показать нам код JAVA, где вы анализируете с помощью SAX, но я предполагаю, что у вас либо есть какая-то опечатка, либо вы думаете, что анализируете файл XSD, но ссылаетесь на файл XML.