Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » Eclipse cannot find ActiveMQ XSD schema and shows validation warnings(Problems in Eclipse Web Project regarding ActiveMQ Spring configuration)
Eclipse cannot find ActiveMQ XSD schema and shows validation warnings [message #779465] Sun, 15 January 2012 15:28 Go to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 61
Registered: October 2011
Member

I've setup a project in Eclipse based on one of the Maven archetypes from the repository. See here.

The archetype 'ipp-archetype-tc6-ipp-portal-war' contains an embedded ActiveMQ broker that is configured in a Spring context file 'amq-embedded-broker-context.xml'.
There are no problems deploying the project to a local Tomcat, but Eclipse shows warnings regarding the file:

"no declaration can be found for element 'amq:broker'"

The namespaces in the header of the file are set correctly.

How can I teach Eclipse where to find the XSD schema for ActiveMQ?
Re: Eclipse cannot find ActiveMQ XSD schema and shows validation warnings [message #779468 is a reply to message #779465] Sun, 15 January 2012 15:35 Go to previous message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 61
Registered: October 2011
Member

It seems that this is a rather normal issue and there are workarounds by adding the ActiveMQ XSD manually to the XML Catalog in Eclipse. This is how I resolved the warnings:

Go to Window -> Preferences and add two entries under XML -> XML Catalog -> User Specified Entries:

Location: http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd
Key Type: Namespace Name
Key: http://activemq.apache.org/schema/core

Location: http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd
Key Type: Schema Location
Key: http://activemq.apache.org/schema/core/activemq-core.xsd

You can use the XSD published at the URL or point to a local one inside a JAR.
The only disadvantage is that you need to remember to change the declaration when switching to a different ActiveMQ version!

References:
http://www.bigsoft.co.uk/blog/index.php/2009/02/01/invalid-activemq-schema-name-space
http://stackoverflow.com/questions/2289532/tomcat-understands-amqbroker-but-eclipse-marks-errors-in-schema
Previous Topic:SQLException "Invalid Oracle URL specified"
Next Topic:FileNotFoundException for carnot.properties during server startup on Tomcat
Goto Forum:
  


Current Time: Fri Apr 18 21:53:02 EDT 2014

Powered by FUDForum. Page generated in 0.02311 seconds