activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: EXTERNAL: Re: Upgrade from 5.3 to 5.5
Date Wed, 06 Jul 2011 10:03:04 GMT
thanks for closing the loop, the ordering is a bit of a pain, but
there is value to schema validation as you can be sure your additional
configuration is being respected.

On 5 July 2011 22:31, Robillard, Greg L <greg.l.robillard@lmco.com> wrote:
> In case anyone cares!
>
> Original:
>        <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>
>
>
>  New:
>
>        <plugins>
>                <bean id="ActiveMqSecurity" class="com.lmco.fltwinds.activemqsecurity.FltwindsSecurityPlugin"
xmlns="http://www.springframework.org/schema/beans">
>            <property name ="dbDriver" value="com.mysql.jdbc.Driver" />
>            <property name ="dbUri" value="jdbc:mysql://localhost:3306/fltwinds?relaxAutoCommit=true"/>
>            <property name ="dbUsername" value="fltwinds" />
>            <property name ="dbPassword" value="fltwinds" />
>                </bean>
>         </plugins>
>
> Additionally, the configuration had to be moved to alphabetic location.
>
> Regards,
>
>
> -----Original Message-----
> From: Marcelo Jabali [mailto:mjabali@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
>
>
>
>



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message