Thanks for the reply Aaron. Yes it works with the URLs with version. But I get a warning in my IDE, but the application works fine. I am wondering what is the reason for the warning (the warning says it cannot find the Spring Namespace Handler, which is in classpath) :S.
Aaron Mulder wrote: > > You can change the file to use the URLs with versions in the name. I > find that my IDE doesn't work with the versionless URLs either (though > it seems that Spring and XBean are OK with it). > > http://activemq.apache.org/schema/core/activemq-core-5.1.0.xsd > http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd > > Thanks, > Aaron > > On Sat, May 17, 2008 at 1:20 AM, Yohan Liyanage <[EMAIL PROTECTED]> > wrote: >> >> Thanks for the reply Hiram, >> >> I have included activemq-all-5.1.0.jar in the classpath. I see the >> "Spring.Handlers" file inside META-INF folder of the jar file. But still, >> I >> get the warning. >> >> Also, I can see that >> 'http://activemq.apache.org/schema/core/activemq-core.xsd' name space >> declared in activemq.xsd file in the jar file, but seems like Eclipse is >> not >> able to find the .xsd file and tries to obtain XSD from the web, which >> produces the error message when that XSD is given. >> >> Any suggestions? >> >> Thanks. >> >> >> Hiram Chirino wrote: >>> >>> The Spring NamespaceHandler for element 'amq:broker' is located inside >>> the activemq-core jar. Is that in your classpath? >>> >>> On Sun, May 11, 2008 at 3:56 AM, Yohan Liyanage >>> <[EMAIL PROTECTED]> >>> wrote: >>>> >>>> Hi, >>>> >>>> I tried to create an embedded broker in a Spring Bean Configuration, >>>> as >>>> shown in ActiveMQ Documentation. The application runs as intended, but >>>> the >>>> Eclipse XML Editor shows an error in the Bean Configuration File, at >>>> the >>>> line where <amq:broker> is declared: >>>> >>>> schema_reference.4: Failed to read schema document >>>> 'http://activemq.apache.org/schema/core/activemq-core.xsd', because 1) >>>> could >>>> not find the document; 2) the document could not be read; 3) the root >>>> element of the document is not <xsd:schema>. >>>> >>>> >>>> I am using ActiveMQ 5.1 with Spring 2.5 in Eclipse 3.3. I have added >>>> xbean-spring-3.3.jar also into my build path, but this doesnt solve my >>>> problem either. When I change the schemaLocation to >>>> 'http://activemq.apache.org/schema/core/activemq-core-5.1.0.xsd', the >>>> error >>>> is gone, but there's a warning stating that "Unable to locate Spring >>>> NamespaceHandler for element 'amq:broker' of schema namespace >>>> 'http://activemq.apache.org/schema/core'". >>>> >>>> How can I get rid of these errors/warnings? >>>> >>>> My XML file is as follows : >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <beans xmlns="http://www.springframework.org/schema/beans" >>>> xmlns:amq="http://activemq.apache.org/schema/core" >>>> 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.apache.org/schema/core >>>> http://activemq.apache.org/schema/core/activemq-core.xsd"> >>>> >>>> <!-- Embedded ActiveMQ Broker --> >>>> <amq:broker> >>>> <amq:transportConnectors> >>>> <amq:transportConnector >>>> uri="tcp://localhost:61616"/> >>>> </amq:transportConnectors> >>>> </amq:broker> >>>> </beans> >>>> >>>> Thanks. >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Error-in-Eclispe-XML-Editor-when-%27amq%27-namespace-used-tp17170165s2354p17170165.html >>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> >>> -- >>> Regards, >>> Hiram >>> >>> Blog: http://hiramchirino.com >>> >>> Open Source SOA >>> http://open.iona.com >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Error-in-Eclispe-XML-Editor-when-%27amq%27-namespace-used-tp17170165s2354p17288342.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> >> > > -- View this message in context: http://www.nabble.com/Error-in-Eclispe-XML-Editor-when-%27amq%27-namespace-used-tp17170165s2354p17292770.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.