views:

18

answers:

0

Hello,

I'm trying to run this JAX-RS web services which uses ActiveMQ and Spring, and have some definitions relating to both in the Spring context xml file. If i'm not behind a proxy, everything runs fine. However, when i'm behind a proxy, I get the following validation error:

org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'amq:connectionFactory'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)

I tried the following, but nothing worked:

  1. Verified that I have the right XML namespace for activemq in my spring file
  2. used the spring.schemas file to include a link to activemq.xsd in my classpath

Any idea how how to resolve this? Is there a proxy setting for the MyEclipse XML validator somewhere?

Thanks!