Hi Greg,

The empty xmlns="" seems to be causing that exception.

Hope this helps,

-Marcelo

On Jul 5, 2011, at 10:47 AM, Robillard, Greg L wrote:

> I am running the following plugin on 5.3.
> 
>       <plugins>
>        <bean id="ActiveMqSecurity" 
> class="com.lmco.fltwinds.activemqsecurity.FltwindsSecurityPlugin" xmlns="">
>            <property name ="dbDriver" value="com.mysql.jdbc.Driver" />
>            <property name ="dbUri" 
> value="jdbc:mysql://localhost:3306/fltwinds" />
>            <property name ="dbUsername" value="fltwinds" />
>            <property name ="dbPassword" value="fltwinds" />
>        </bean>
>       </plugins>
> 
> When upgrading to 5.5, the same plugin causes the following error.
> 
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
> 
> C:\Documents and Settings\GLROBILL>cd ../..
> 
> C:\>cd apache-activemq-5.5.0
> 
> C:\apache-activemq-5.5.0>cd bin
> 
> C:\apache-activemq-5.5.0\bin>./activemq.bat
> '.' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\apache-activemq-5.5.0\bin>activemq.bat
> Java Runtime: Sun Microsystems Inc. 1.6.0_24 C:\Program 
> Files\Java\jdk1.6.0_24\jre
>  Heap sizes: current=15872k  free=14340k  max=506816k
>    JVM args: -Dcom.sun.management.jmxremote -Xmx512M 
> -Dorg.apache.activemq.UseDedicatedTaskRunner=true 
> -Djava.util.logging.config.file=logging.properties 
> -Dactivemq.classpath=C:\apache-activemq-5.5.0
> \bin\../conf;C:\apache-activemq-5.5.0\bin\../conf; 
> -Dactivemq.home=C:\apache-activemq-5.5.0\bin\.. 
> -Dactivemq.base=C:\apache-activemq-5.5.0\bin\..
> ACTIVEMQ_HOME: C:\apache-activemq-5.5.0\bin\..
> ACTIVEMQ_BASE: C:\apache-activemq-5.5.0\bin\..
> Loading message broker from: xbean:activemq.xml
> INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@af8358: 
> startup date [Tue Jul 05 12:45:17 CDT 2011]; root of context hierarchy
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: 
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 
> 103 in XML document from class path resource [activ
> emq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: 
> cvc-complex-type.2.4.a: Invalid content was found starting with element 
> 'plugins'. One of '{WC[##other:"http://activemq.apache.o
> rg/schema/core"]}' is expected.
> java.lang.RuntimeException: Failed to execute start task. Reason: 
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 
> 103 in XML document from class path resource [activemq.xml
> ] is invalid; nested exception is org.xml.sax.SAXParseException: 
> cvc-complex-type.2.4.a: Invalid content was found starting with element 
> 'plugins'. One of '{WC[##other:"http://activemq.apache.org/sche
> ma/core"]}' is expected.
>        at 
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
>        at 
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at 
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:143)
>        at 
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at 
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
>        at org.apache.activemq.console.Main.main(Main.java:107)
> Caused by: 
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 
> 103 in XML document from class path resource [activemq.xml] is invalid; 
> nested exception is org.xml.sax.SAXParseE
> xception: cvc-complex-type.2.4.a: Invalid content was found starting with 
> element 'plugins'. One of 
> '{WC[##other:"http://activemq.apache.org/schema/core"]}' is expected.
>        at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>        at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
>        at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
>        at 
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
>        at 
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
>        at 
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> 
> Any assistance would be greatly appreciated.
> 
> Greg L Robillard



Reply via email to