-
1. Re: Fuse 5.4.2 Plugin Problem
ffang Jan 25, 2011 8:27 PM (in response to widgetwhite)Hi,
This line
this is required by spring configuration file.
Freeman
-
2. Re: Fuse 5.4.2 Plugin Problem
widgetwhite Jan 26, 2011 4:09 AM (in response to ffang)Thanks Freeman,
I tried that but still get an error on startup?
ERROR | SecurityPlugin could not start - unable to find or open security file
INFO | pants - Line 9 in XML document from class path resource security.xml is invalid; nested exception is org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for element type "beans".
the top of my security.xml file looks like this now:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<!--
A sample configuration file for the TTM Security Plugin.
-->
<beans xmlns="http://www.springframework.org/schema/beans">
<AccessControlMap id="aclMap">
<accessControlEntries>
<!-- This entry is for the TtmCommandAgent -->
<AccessControlEntry topic="ActiveMQ.Agent" read="admins" write="admins"
admin="admins"/>
<AccessControlEntry topic="T.REQ" read="admins" write="admins" admin="admins"/>
-
3. Re: Fuse 5.4.2 Plugin Problem
davsclaus Jan 26, 2011 4:45 AM (in response to widgetwhite)In the top of the XML file you need to add those namespace mappings.
See for example here, section using spring 2.0
http://activemq.apache.org/spring-support.html
You can use the version number of spring which you use, eg 2.5 or 3.0.
You can also omit the version number and it's kinda auto detected.
-
4. Re: Fuse 5.4.2 Plugin Problem
widgetwhite Jan 26, 2011 4:55 AM (in response to davsclaus)Ive had a quick read through that and changed the header to the newer style XML Schema...
no joy though with a different error
INFO | Line 8 in XML document from class path resource is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'AccessControlMap'. One of '{"http://www.springframework.org/schema/beans":description, "http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.
I guess activemq 5.3 referenced the <beans xmlns="java://org.ttm.security"> to make sense of this config file....
-
5. Re: Fuse 5.4.2 Plugin Problem
davsclaus Jan 26, 2011 6:58 AM (in response to widgetwhite)You can read about the authorization plugin in the FuseMQ security guide
http://fusesource.com/docs/broker/5.4/security/Auth-AuthzPlugin.html
-
6. Re: Fuse 5.4.2 Plugin Problem
widgetwhite Jan 26, 2011 7:40 AM (in response to davsclaus)I was trying to use a 3rd party plugin, as the authorisation and authentication require a restart of the broker for changes to be applied.
Which isnt very pratical in our environment.