Nope, found that 5.3 to 5.5 requires the schema to be in alphabetic order.  Now 
I get a different error.


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@d80be3: 
startup date [Tue Jul 05 14:03:26 CDT 2011]; root of context hierarchy
 INFO | Loading XML bean definitions from class path resource [activemq.xml]
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 68 
in XML document from class path resource [active
mq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 'bean'. 
One of '{"http://activemq.apache.org/schema/core";
:authorizationPlugin, 
"http://activemq.apache.org/schema/core":connectionDotFilePlugin, 
"http://activemq.apache.org/schema/core":destinationDotFilePlugin, 
"http://activemq.apache.org/schema/core":disc
ardingDLQBrokerPlugin, 
"http://activemq.apache.org/schema/core":forcePersistencyModeBrokerPlugin, 
"http://activemq.apache.org/schema/core":jaasAuthenticationPlugin, 
"http://activemq.apache.org/schema/
core":jaasCertificateAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":jaasDualAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":loggingBrokerPlugin, 
"http://activemq.apache.
org/schema/core":multicastTraceBrokerPlugin, 
"http://activemq.apache.org/schema/core":simpleAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":statisticsBrokerPlugin, 
"http://activemq.apac
he.org/schema/core":timeStampingBrokerPlugin, 
"http://activemq.apache.org/schema/core":traceBrokerPathPlugin, 
"http://activemq.apache.org/schema/core":udpTraceBrokerPlugin, 
WC[##other:"http://activemq
.apache.org/schema/core"]}' is expected.
java.lang.RuntimeException: Failed to execute start task. Reason: 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 68 
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 'bean'. 
One of '{"http://activemq.apache.org/schema/core":author
izationPlugin, 
"http://activemq.apache.org/schema/core":connectionDotFilePlugin, 
"http://activemq.apache.org/schema/core":destinationDotFilePlugin, 
"http://activemq.apache.org/schema/core":discardingD
LQBrokerPlugin, 
"http://activemq.apache.org/schema/core":forcePersistencyModeBrokerPlugin, 
"http://activemq.apache.org/schema/core":jaasAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":j
aasCertificateAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":jaasDualAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":loggingBrokerPlugin, 
"http://activemq.apache.org/sch
ema/core":multicastTraceBrokerPlugin, 
"http://activemq.apache.org/schema/core":simpleAuthenticationPlugin, 
"http://activemq.apache.org/schema/core":statisticsBrokerPlugin, 
"http://activemq.apache.org/
schema/core":timeStampingBrokerPlugin, 
"http://activemq.apache.org/schema/core":traceBrokerPathPlugin, 
"http://activemq.apache.org/schema/core":udpTraceBrokerPlugin, 
WC[##other:"http://activemq.apache
.org/schema/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)
        ... 10 more

-----Original Message-----
From: Marcelo Jabali [mailto:mjab...@fusesource.com] 
Sent: Tuesday, July 05, 2011 1:22 PM
To: users@activemq.apache.org
Subject: EXTERNAL: Re: Upgrade from 5.3 to 5.5

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