You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jason Novak <jn...@adconion.com> on 2007/11/12 23:38:08 UTC
Spring xbean SAXParseException?
My Spring container no longer starts, due to a SAXParseException. Is
there a fix or workaround?
I use the following applicationContext.xml prologue:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.org/config/1.0 http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
">
The actual error I get (via "mvn jetty:run") is:
org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of
element 'amq:transportConnector' is not complete. One of '{"http://activemq.org/config/1.0
":broker, "http://activemq.org/config/1.0":brokerInfo, "http://activemq.org/config/1.0
":discoveryAgent, "http://activemq.org/config/
1.0":messageAuthorizationPolicy, "http://activemq.org/config/
1.0":server, "http://activemq.org/config/1.0":taskRunnerFactory,
WC[##other:"http://activemq.org/config/1.0"]}' is expected.
at
com
.sun
.org
.apache
.xerces
.internal
.util
.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
236)
I don't think this is related to my code, because I have rolled back
to versions that definitely worked and they don't start either.
Also, looks like the ActiveMQ XSD file was recently updated (although
that might be automatic):
> HTTP/1.1 200 OK
> Date: Mon, 12 Nov 2007 22:29:00 GMT
> Server: Apache/2.3.0-dev (Unix)
> Last-Modified: Mon, 12 Nov 2007 21:00:01 GMT
> ETag: "c919e6-2fda4-9da09640"
> Accept-Ranges: bytes
> Content-Length: 196004
> Keep-Alive: timeout=5, max=100
> Connection: Keep-Alive
> Content-Type: text/plain
>
> <?xml version='1.0'?>
> <!-- NOTE: this file is autogenerated by Apache XBean -->
>
- Jason