Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 20:28 Go to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
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 20:35 Go to previous message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
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: Tue Apr 23 13:39:24 GMT 2024

Powered by FUDForum. Page generated in 0.02821 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top