activemq5.8-core-5.8.0.xsd文件在哪

Hi,&&&&&I have a Artemix-Spring-Arquillian setup. I am loading some bean from spring-beans-embedded.xml using the 'import' statement in applicationContext.xml. Since I am gettingThis exception I have included&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&groupId&org.apache.xbean&/groupId&&&&&&&&&&&&&&&&&&&artifactId&xbean-spring&/artifactId&&&&&&&&&&&&&&&&&&&version&4.3&/version&&&&&&&&&&&&&&&&&/dependency&But that doesn't work. Is there something wrong with the 'import' statement ? Can I load ActiveMQ beans like this ? At this time this doesn't seem to have anything to doWith Arquillian because Arquillian 'ShrinkWrap' packages everything. JBoss Wildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [spring-beans-embedded.xml]Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring-beans-embedded.xml]; nested exception is org.springframework.beans.FatalBeanException: NamespaceHandler class [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] for namespace [http://activemq.apache.org/schema/core] nested exception is java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from [Module &deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]&&&&&&&&at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)&&&&&&&&at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)&&&&&&&&at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&&&&&&&&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0 &&&&&&&&&modelVersion&4.0.0&/modelVersion&&&&&&&&&&groupId&scos.hrg&/groupId&&&&&&&&&&artifactId&arquillian-hrg-e2e&/artifactId&&&&&&&&&&version&0.0.1-SNAPSHOT&/version&&&&&&&&&&dependencies&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&&&&groupId&org.springframework&/groupId&&&&&&&&&&&&&&&&&&&&&&&&artifactId&spring-jms&/artifactId&&&&&&&&&&&&&&&&&&&&&&&&version&4.1.1.RELEASE&/version&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&groupId&org.apache.activemq&/groupId&&&&&&&&&&&&&&&&&&&&&artifactId&activemq-spring&/artifactId&&&&&&&&&&&&&&&&&&&&&version&5.8.0&/version&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&&&&groupId&javax.enterprise&/groupId&&&&&&&&&&&&&&&&&&&&&&&&artifactId&cdi-api&/artifactId&&&&&&&&&&&&&&&&&&&&&&&&version&1.0-SP4&/version&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&groupId&org.apache.activemq&/groupId&&&&&&&&&&&&artifactId&artemis-server&/artifactId&&&&&&&&&&&&version&1.0.0&/version&&&&&&&&&&/dependency&&&&&&&&&&dependency&&&&&&&&&&&&groupId&org.apache.activemq&/groupId&&&&&&&&&&&&artifactId&artemis-jms-server&/artifactId&&&&&&&&&&&&version&1.0.0&/version&&&&&&&&&&/dependency&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&&&&groupId&org.apache.geronimo.specs&/groupId&&&&&&&&&&&&&&&&&&&&&&&&artifactId&geronimo-jms_1.1_spec&/artifactId&&&&&&&&&&&&&&&&&&&&&&&&version&1.1.1&/version&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&groupId&org.springframework&/groupId&&&&&&&&&&&&&&&&&&&artifactId&spring-context&/artifactId&&&&&&&&&&&&&&&&&&&version&4.1.1.RELEASE&/version&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&&&&groupId&org.jboss.spec.javax.jms&/groupId&&&&&&&&&&&&&&&&&&&&&&&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&&&&&&&&&&&&&&&&&&&&&&&version&1.0.1.Final&/version&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&groupId&org.jboss.arquillian.junit&/groupId&&&&&&&&&&&&&&&&&&&&artifactId&arquillian-junit-container&/artifactId&&&&&&&&&&&&&&&&&&&&&&version&1.1.8.Final&/version&&&&&&&&&&&&&&&&&&&&scope&test&/scope&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&&&&&groupId&org.jboss.arquillian.core&/groupId&&&&&&&&&&&&&&&&&&&&&&&&&artifactId&arquillian-core-api&/artifactId&&&&&&&&&&&&&&&&&&&&&&&&&version&1.1.4.Final&/version&&&&&&&&&&&&&&&&&&&&&&&&&scope&test&/scope&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&groupId&org.apache.xbean&/groupId&&&&&&&&&&&&&&&&&&&artifactId&xbean-spring&/artifactId&&&&&&&&&&&&&&&&&&&version&4.3&/version&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&&&&&&&&&&&&&&&&&&&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&&&&&&&&&&&&&&&&&&&&version&2.1.0&/version&&&&&&&&&&&&&&&&&&&&&scope&test&/scope&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&groupId&org.jboss.arquillian.extension&/groupId&&&&&&&&&&&&&&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&&&&&&&&&&&&&&version&1.0.0.Beta3&/version&&&&&&&&&&&&&&&&&&&&&scope&test&/scope&&&&&&&&&&&&&&&&&/dependency&&&&&&&/dependencies&&&&&&&&&&profiles&&&&&&&&&&&&&&&&&profile&&&&&&&&&&&&&&&&&&&&&&&&id&arq-jbossas-managed&/id&&&&&&&&&&&&&&&&&&&&&&&&dependencies&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&dependency&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&groupId&org.wildfly&/groupId&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&artifactId&wildfly-arquillian-container-managed&/artifactId&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&version&8.2.0.Final&/version&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/dependency&&&&&&&&&&&&&&&&&&&&&&&&/dependencies&&&&&&&&&&&&&&&&&/profile&&&&&&&&&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?&&beans xmlns=&http://www.springframework.org/schema/beans&&&&&&&&&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&&&&&&&&xmlns:jms=&http://www.springframework.org/schema/jms&&&&&&&&&xmlns:oxm=&http://www.springframework.org/schema/oxm&&&&&&&&&xmlns:p=&http://www.springframework.org/schema/p&&&&&&&&&xmlns:context=&http://www.springframework.org/schema/context&&&&&&&&&xsi:schemaLocation=&http://www.springframework.org/schema/beans&&&&&http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&&&&&http://www.springframework.org/schema/jms&&&&&http://www.springframework.org/schema/jms/spring-jms-3.0.xsd&&&&&http://www.springframework.org/schema/context&&&&&http://www.springframework.org/schema/context/spring-context-3.0.xsd&&&&&http://www.springframework.org/schema/oxm&&&&&http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd&&&&&&&&&default-lazy-init=&true&&&&&&&&context:annotation-config/&&&&&&!-- Activates scanning of @Repository and @Service --&&&&&&context:component-scan base-package=&scos.hrg&/&&&&&&import resource=&spring-beans-embedded.xml&/&&&&&&import resource=&spring-jms-beans.xml&/&&&&&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
Search Discussions
Have you confirmed that xbean-spring.jar is actually making it into yourEAR and then onto the classpath?On Aug 18,
AM, wrote:Hi,I have a Artemix-Spring-Arquillian setup. I am loading some bean fromspring-beans-embedded.xml using the 'import' statement inapplicationContext.xml. Since I am gettingThis exception I have included&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&But that doesn't work. Is there something wrong with the 'import'statement ? Can I load ActiveMQ beans like this ? At this time this doesn'tseem to have anything to doWith Arquillian because Arquillian 'ShrinkWrap' packages everything. JBossWildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem: Failed to import bean definitions from relativelocation [spring-beans-embedded.xml]Offending resource: ServletContext resource[/WEB-INF/applicationContext.xml]; nested exception isorg.springframework.beans.factory.BeanDefinitionStoreException: Unexpectedexception parsing XML document from ServletContext resource[/WEB-INF/spring-beans-embedded.xml]; nested exception isorg.springframework.beans.FatalBeanException: NamespaceHandler class[org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] for namespace [ nested exception isjava.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from [Module&deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0&modelVersion&4.0.0&/modelVersion&&groupId&scos.hrg&/groupId&&artifactId&arquillian-hrg-e2e&/artifactId&&version&0.0.1-SNAPSHOT&/version&&dependencies&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-jms&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&activemq-spring&/artifactId&&version&5.8.0&/version&&/dependency&&dependency&&groupId&javax.enterprise&/groupId&&artifactId&cdi-api&/artifactId&&version&1.0-SP4&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-jms-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.geronimo.specs&/groupId&&artifactId&geronimo-jms_1.1_spec&/artifactId&&version&1.1.1&/version&&/dependency&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-context&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.jboss.spec.javax.jms&/groupId&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&version&1.0.1.Final&/version&&/dependency&&dependency&&groupId&org.jboss.arquillian.junit&/groupId&&artifactId&arquillian-junit-container&/artifactId&&version&1.1.8.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.core&/groupId&&artifactId&arquillian-core-api&/artifactId&&version&1.1.4.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&&dependency&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&version&2.1.0&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.extension&/groupId&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&version&1.0.0.Beta3&/version&&scope&test&/scope&&/dependency&&/dependencies&&profiles&&profile&&id&arq-jbossas-managed&/id&&dependencies&&dependency&&groupId&org.wildfly&/groupId&&artifactId&wildfly-arquillian-container-managed&/artifactId&&version&8.2.0.Final&/version&&/dependency&&/dependencies&&/profile&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?&&beans xmlns=&http://www.springframework.org/schema/beans&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns:jms=&http://www.springframework.org/schema/jms&xmlns:oxm=&http://www.springframework.org/schema/oxm&xmlns:p=&http://www.springframework.org/schema/p&xmlns:context=&http://www.springframework.org/schema/context&xsi:schemaLocation=&http://www.springframework.org/schema/beansdefault-lazy-init=&true&&&context:annotation-config/&&!-- Activates scanning of @Repository and @Service --&&context:component-scan base-package=&scos.hrg&/&&import resource=&spring-beans-embedded.xml&/&&import resource=&spring-jms-beans.xml&/&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole use of theintended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply to thesender and destroy all copies of the original message. Any unauthorizedreview, use, disclosure, dissemination, forwarding, printing or copying ofthis email, and/or any action taken in reliance on the contents of thise-mail is strictly prohibited and may be unlawful. Where permitted byapplicable law, this e-mail and other e-mail communications sent to andfrom Cognizant e-mail addresses may be monitored.
It didn't make it into the EAR. So now I have added it and this error is resolved. But I have another problem.Broker.xml causes this.Caused by: org.xml.sax.SAXParseE lineNumber: 23; columnNumber: 77; cvc-elt.1.a: Cannot find the declaration of element 'configuration'.&&&&&&&&&at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)&&&&&&&&&at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)&&&&&&&&&at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)&&&&&&&&&at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)&&&&&&&&&at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)&&&&&&&&&at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2143)&&&&&&&&&at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)&&&&&&&&&at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)Should I use a broker.xml ? I also have artemis-roles.properties and artemis-users.properties in my WAR's WEB-INF.&?xml version='1.0'?&&!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements.
See the NOTICE filedistributed with this work for additional informationregarding copyright ownership.
The ASF licenses this fileto you under the Apache License, Version 2.0 (the&License&); you may not use this file except in compliancewith the License.
You may obtain a copy of the License at&&&http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,software distributed under the License is distributed on an&AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied.
See the License for thespecific language governing permissions and limitationsunder the License.--&&configuration xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&&&&&&&&&&&&&&&&xmlns=&urn:activemq&&&&&&&&&&&&&&&&&xsi:schemaLocation=&urn:activemq /schema/artemis-server.xsd&&&&&&&jms xmlns=&urn:activemq:jms&&&&&&&&&&!--the queue used by the example--&&&&&&&&&queue name=&exampleQueue&/&&&&&&/jms&&&&&&core xmlns=&urn:activemq:core&&&&&&&&&&persistence-enabled&false&/persistence-enabled&&&&&&&&&acceptors&&&&&&&&&&&&acceptor name=&in-vm&&vm://0&/acceptor&&&&&&&&&/acceptors&&&&&&&&&!-- Other config --&&&&&&&&&security-settings&&&&&&&&&&&&!--security for example queue--&&&&&&&&&&&&security-setting match=&#&&&&&&&&&&&&&&&&permission type=&createDurableQueue& roles=&guest&/&&&&&&&&&&&&&&&permission type=&deleteDurableQueue& roles=&guest&/&&&&&&&&&&&&&&&permission type=&createNonDurableQueue& roles=&guest&/&&&&&&&&&&&&&&&permission type=&deleteNonDurableQueue& roles=&guest&/&&&&&&&&&&&&&&&permission type=&consume& roles=&guest&/&&&&&&&&&&&&&&&permission type=&send& roles=&guest&/&&&&&&&&&&&&/security-setting&&&&&&&&&/security-settings&&&&&&/core&&/configuration&Thanks,Mohan-----Original Message-----From:
On Behalf Of Tim BainSent: Tuesday, August 18,
PMTo: ActiveMQ UsersSubject: Re: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerHave you confirmed that xbean-spring.jar is actually making it into your EAR and then onto the classpath?On Aug 18,
AM, wrote:Hi,I have a Artemix-Spring-Arquillian setup. I am loading some beanfrom spring-beans-embedded.xml using the 'import' statement inapplicationContext.xml. Since I am getting This exception I haveincluded&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&But that doesn't work. Is there something wrong with the 'import'statement ? Can I load ActiveMQ beans like this ? At this time thisdoesn't seem to have anything to do With Arquillian because Arquillian'ShrinkWrap' packages everything. JBoss Wildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem: Failed to import bean definitions from relativelocation [spring-beans-embedded.xml] Offending resource:ServletContext resource [/WEB-INF/applicationContext.xml]; nestedexception isorg.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from ServletContext resource[/WEB-INF/spring-beans-embedded.xml]; nested exception isorg.springframework.beans.FatalBeanException: NamespaceHandler class[org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] fornamespace [ nestedexception isjava.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from [Module&deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0&modelVersion&4.0.0&/modelVersion&&groupId&scos.hrg&/groupId&&artifactId&arquillian-hrg-e2e&/artifactId&&version&0.0.1-SNAPSHOT&/version&&dependencies&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-jms&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&activemq-spring&/artifactId&&version&5.8.0&/version&&/dependency&&dependency&&groupId&javax.enterprise&/groupId&&artifactId&cdi-api&/artifactId&&version&1.0-SP4&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-jms-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.geronimo.specs&/groupId&&artifactId&geronimo-jms_1.1_spec&/artifactId&&version&1.1.1&/version&&/dependency&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-context&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.jboss.spec.javax.jms&/groupId&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&version&1.0.1.Final&/version&&/dependency&&dependency&&groupId&org.jboss.arquillian.junit&/groupId&&artifactId&arquillian-junit-container&/artifactId&&version&1.1.8.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.core&/groupId&&artifactId&arquillian-core-api&/artifactId&&version&1.1.4.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&&dependency&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&version&2.1.0&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.extension&/groupId&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&version&1.0.0.Beta3&/version&&scope&test&/scope&&/dependency&&/dependencies&&profiles&&profile&&id&arq-jbossas-managed&/id&&dependencies&&dependency&&groupId&org.wildfly&/groupId&&artifactId&wildfly-arquillian-container-managed&/artifactId&&version&8.2.0.Final&/version&&/dependency&&/dependencies&&/profile&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?& &beansxmlns=&http://www.springframework.org/schema/beans&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns:jms=&http://www.springframework.org/schema/jms&xmlns:oxm=&http://www.springframework.org/schema/oxm&xmlns:p=&http://www.springframework.org/schema/p&xmlns:context=&http://www.springframework.org/schema/context&xsi:schemaLocation=&http://www.springframework.org/schema/beansdefault-lazy-init=&true&&&context:annotation-config/&&!-- Activates scanning of @Repository and @Service --&&context:component-scan base-package=&scos.hrg&/&&import resource=&spring-beans-embedded.xml&/&&import resource=&spring-jms-beans.xml&/&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole use ofthe intended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply tothe sender and destroy all copies of the original message. Anyunauthorized review, use, disclosure, dissemination, forwarding,printing or copying of this email, and/or any action taken in relianceon the contents of this e-mail is strictly prohibited and may beunlawful. Where permitted by applicable law, this e-mail and othere-mail communications sent to and from Cognizant e-mail addresses may be monitored.This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
It sounds like your XSD isn't making it onto the classpath.
Is it possiblethat whatever Artemis JAR includes artemis-server.xsd isn't getting intothe EAR either?On Aug 18,
AM, wrote:It didn't make it into the EAR. So now I have added it and this error isresolved. But I have another problem.Broker.xml causes this.Caused by: org.xml.sax.SAXParseE lineNumber: 23; columnNumber:77; cvc-elt.1.a: Cannot find the declaration of element 'configuration'.atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)atorg.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)atorg.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2143)atorg.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)atorg.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)Should I use a broker.xml ? I also have artemis-roles.properties andartemis-users.properties in my WAR's WEB-INF.&?xml version='1.0'?&&!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements.
See the NOTICE filedistributed with this work for additional informationregarding copyright ownership.
The ASF licenses this fileto you under the Apache License, Version 2.0 (the&License&); you may not use this file except in compliancewith the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing,software distributed under the License is distributed on an&AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied.
See the License for thespecific language governing permissions and limitationsunder the License.--&&configuration xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns=&urn:activemq&xsi:schemaLocation=&urn:activemq/schema/artemis-server.xsd&&&jms xmlns=&urn:activemq:jms&&&!--the queue used by the example--&&queue name=&exampleQueue&/&&/jms&&core xmlns=&urn:activemq:core&&&persistence-enabled&false&/persistence-enabled&&acceptors&&acceptor name=&in-vm&&vm://0&/acceptor&&/acceptors&&!-- Other config --&&security-settings&&!--security for example queue--&&security-setting match=&#&&&permission type=&createDurableQueue& roles=&guest&/&&permission type=&deleteDurableQueue& roles=&guest&/&&permission type=&createNonDurableQueue& roles=&guest&/&&permission type=&deleteNonDurableQueue& roles=&guest&/&&permission type=&consume& roles=&guest&/&&permission type=&send& roles=&guest&/&&/security-setting&&/security-settings&&/core&&/configuration&Thanks,Mohan-----Original Message-----From:
On Behalf Of Tim BainSent: Tuesday, August 18,
PMTo: ActiveMQ UsersSubject: Re: java.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerHave you confirmed that xbean-spring.jar is actually making it into yourEAR and then onto the classpath?On Aug 18,
AM, wrote:Hi,I have a Artemix-Spring-Arquillian setup. I am loading some beanfrom spring-beans-embedded.xml using the 'import' statement inapplicationContext.xml. Since I am getting This exception I haveincluded&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&But that doesn't work. Is there something wrong with the 'import'statement ? Can I load ActiveMQ beans like this ? At this time thisdoesn't seem to have anything to do With Arquillian because Arquillian'ShrinkWrap' packages everything. JBoss Wildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem: Failed to import bean definitions from relativelocation [spring-beans-embedded.xml] Offending resource:ServletContext resource [/WEB-INF/applicationContext.xml]; nestedexception isorg.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from ServletContext resource[/WEB-INF/spring-beans-embedded.xml]; nested exception isorg.springframework.beans.FatalBeanException: NamespaceHandler class[org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] fornamespace [ nestedexception isjava.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from [Module&deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0&modelVersion&4.0.0&/modelVersion&&groupId&scos.hrg&/groupId&&artifactId&arquillian-hrg-e2e&/artifactId&&version&0.0.1-SNAPSHOT&/version&&dependencies&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-jms&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&activemq-spring&/artifactId&&version&5.8.0&/version&&/dependency&&dependency&&groupId&javax.enterprise&/groupId&&artifactId&cdi-api&/artifactId&&version&1.0-SP4&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-jms-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.geronimo.specs&/groupId&&artifactId&geronimo-jms_1.1_spec&/artifactId&&version&1.1.1&/version&&/dependency&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-context&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.jboss.spec.javax.jms&/groupId&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&version&1.0.1.Final&/version&&/dependency&&dependency&&groupId&org.jboss.arquillian.junit&/groupId&&artifactId&arquillian-junit-container&/artifactId&&version&1.1.8.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.core&/groupId&&artifactId&arquillian-core-api&/artifactId&&version&1.1.4.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&&dependency&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&version&2.1.0&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.extension&/groupId&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&version&1.0.0.Beta3&/version&&scope&test&/scope&&/dependency&&/dependencies&&profiles&&profile&&id&arq-jbossas-managed&/id&&dependencies&&dependency&&groupId&org.wildfly&/groupId&&artifactId&wildfly-arquillian-container-managed&/artifactId&&version&8.2.0.Final&/version&&/dependency&&/dependencies&&/profile&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?& &beansxmlns=&http://www.springframework.org/schema/beans&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns:jms=&http://www.springframework.org/schema/jms&xmlns:oxm=&http://www.springframework.org/schema/oxm&xmlns:p=&http://www.springframework.org/schema/p&xmlns:context=&http://www.springframework.org/schema/context&xsi:schemaLocation=&http://www.springframework.org/schema/beansdefault-lazy-init=&true&&&context:annotation-config/&&!-- Activates scanning of @Repository and @Service --&&context:component-scan base-package=&scos.hrg&/&&import resource=&spring-beans-embedded.xml&/&&import resource=&spring-jms-beans.xml&/&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole use ofthe intended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply tothe sender and destroy all copies of the original message. Anyunauthorized review, use, disclosure, dissemination, forwarding,printing or copying of this email, and/or any action taken in relianceon the contents of this e-mail is strictly prohibited and may beunlawful. Where permitted by applicable law, this e-mail and othere-mail communications sent to and from Cognizant e-mail addresses may bemonitored.This e-mail and any files transmitted with it are for the sole use of theintended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply to thesender and destroy all copies of the original message. Any unauthorizedreview, use, disclosure, dissemination, forwarding, printing or copying ofthis email, and/or any action taken in reliance on the contents of thise-mail is strictly prohibited and may be unlawful. Where permitted byapplicable law, this e-mail and other e-mail communications sent to andfrom Cognizant e-mail addresses may be monitored.
Would you know which artemis JARs are required in the EAR. All my JARs are inside my WAR's WEB-INF.Are all these needed ?activemq-spring( 5.8.0 ) , artemis-server( 1.0.0 ) and artemis-jms-server ( 1.0.0 )Thanks,Mohan________________________________________From:
[] on behalf of Tim Bain [tbain@alumni.duke.edu]Sent: Wednesday, August 19,
AMTo: ActiveMQ UsersSubject: RE: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerIt sounds like your XSD isn't making it onto the classpath.
Is it possiblethat whatever Artemis JAR includes artemis-server.xsd isn't getting intothe EAR either?On Aug 18,
AM, wrote:It didn't make it into the EAR. So now I have added it and this error isresolved. But I have another problem.Broker.xml causes this.Caused by: org.xml.sax.SAXParseE lineNumber: 23; columnNumber:77; cvc-elt.1.a: Cannot find the declaration of element 'configuration'.atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)atorg.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)atorg.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2143)atorg.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)atorg.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)Should I use a broker.xml ? I also have artemis-roles.properties andartemis-users.properties in my WAR's WEB-INF.&?xml version='1.0'?&&!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements.
See the NOTICE filedistributed with this work for additional informationregarding copyright ownership.
The ASF licenses this fileto you under the Apache License, Version 2.0 (the&License&); you may not use this file except in compliancewith the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing,software distributed under the License is distributed on an&AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied.
See the License for thespecific language governing permissions and limitationsunder the License.--&&configuration xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns=&urn:activemq&xsi:schemaLocation=&urn:activemq/schema/artemis-server.xsd&&&jms xmlns=&urn:activemq:jms&&&!--the queue used by the example--&&queue name=&exampleQueue&/&&/jms&&core xmlns=&urn:activemq:core&&&persistence-enabled&false&/persistence-enabled&&acceptors&&acceptor name=&in-vm&&vm://0&/acceptor&&/acceptors&&!-- Other config --&&security-settings&&!--security for example queue--&&security-setting match=&#&&&permission type=&createDurableQueue& roles=&guest&/&&permission type=&deleteDurableQueue& roles=&guest&/&&permission type=&createNonDurableQueue& roles=&guest&/&&permission type=&deleteNonDurableQueue& roles=&guest&/&&permission type=&consume& roles=&guest&/&&permission type=&send& roles=&guest&/&&/security-setting&&/security-settings&&/core&&/configuration&Thanks,Mohan-----Original Message-----From:
On Behalf Of Tim BainSent: Tuesday, August 18,
PMTo: ActiveMQ UsersSubject: Re: java.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerHave you confirmed that xbean-spring.jar is actually making it into yourEAR and then onto the classpath?On Aug 18,
AM, wrote:Hi,I have a Artemix-Spring-Arquillian setup. I am loading some beanfrom spring-beans-embedded.xml using the 'import' statement inapplicationContext.xml. Since I am getting This exception I haveincluded&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&But that doesn't work. Is there something wrong with the 'import'statement ? Can I load ActiveMQ beans like this ? At this time thisdoesn't seem to have anything to do With Arquillian because Arquillian'ShrinkWrap' packages everything. JBoss Wildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem: Failed to import bean definitions from relativelocation [spring-beans-embedded.xml] Offending resource:ServletContext resource [/WEB-INF/applicationContext.xml]; nestedexception isorg.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from ServletContext resource[/WEB-INF/spring-beans-embedded.xml]; nested exception isorg.springframework.beans.FatalBeanException: NamespaceHandler class[org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] fornamespace [ nestedexception isjava.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from [Module&deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0&modelVersion&4.0.0&/modelVersion&&groupId&scos.hrg&/groupId&&artifactId&arquillian-hrg-e2e&/artifactId&&version&0.0.1-SNAPSHOT&/version&&dependencies&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-jms&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&activemq-spring&/artifactId&&version&5.8.0&/version&&/dependency&&dependency&&groupId&javax.enterprise&/groupId&&artifactId&cdi-api&/artifactId&&version&1.0-SP4&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-jms-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.geronimo.specs&/groupId&&artifactId&geronimo-jms_1.1_spec&/artifactId&&version&1.1.1&/version&&/dependency&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-context&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.jboss.spec.javax.jms&/groupId&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&version&1.0.1.Final&/version&&/dependency&&dependency&&groupId&org.jboss.arquillian.junit&/groupId&&artifactId&arquillian-junit-container&/artifactId&&version&1.1.8.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.core&/groupId&&artifactId&arquillian-core-api&/artifactId&&version&1.1.4.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&&dependency&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&version&2.1.0&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.extension&/groupId&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&version&1.0.0.Beta3&/version&&scope&test&/scope&&/dependency&&/dependencies&&profiles&&profile&&id&arq-jbossas-managed&/id&&dependencies&&dependency&&groupId&org.wildfly&/groupId&&artifactId&wildfly-arquillian-container-managed&/artifactId&&version&8.2.0.Final&/version&&/dependency&&/dependencies&&/profile&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?& &beansxmlns=&http://www.springframework.org/schema/beans&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns:jms=&http://www.springframework.org/schema/jms&xmlns:oxm=&http://www.springframework.org/schema/oxm&xmlns:p=&http://www.springframework.org/schema/p&xmlns:context=&http://www.springframework.org/schema/context&xsi:schemaLocation=&http://www.springframework.org/schema/beansdefault-lazy-init=&true&&&context:annotation-config/&&!-- Activates scanning of @Repository and @Service --&&context:component-scan base-package=&scos.hrg&/&&import resource=&spring-beans-embedded.xml&/&&import resource=&spring-jms-beans.xml&/&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole use ofthe intended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply tothe sender and destroy all copies of the original message. Anyunauthorized review, use, disclosure, dissemination, forwarding,printing or copying of this email, and/or any action taken in relianceon the contents of this e-mail is strictly prohibited and may beunlawful. Where permitted by applicable law, this e-mail and othere-mail communications sent to and from Cognizant e-mail addresses may bemonitored.This e-mail and any files transmitted with it are for the sole use of theintended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply to thesender and destroy all copies of the original message. Any unauthorizedreview, use, disclosure, dissemination, forwarding, printing or copying ofthis email, and/or any action taken in reliance on the contents of thise-mail is strictly prohibited and may be unlawful. Where permitted byapplicable law, this e-mail and other e-mail communications sent to andfrom Cognizant e-mail addresses may be monitored.This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
I don't (I've never used Artemis), but Artemis developers are on this listso hopefully one of them has some guidance for you.On Tue, Aug 18, 2015 at 9:17 PM, wrote:Would you know which artemis JARs are required in the EAR. All my JARs areinside my WAR's WEB-INF.Are all these needed ?activemq-spring( 5.8.0 ) , artemis-server( 1.0.0 ) and artemis-jms-server( 1.0.0 )Thanks,Mohan________________________________________From:
[] on behalf of Tim Bain [tbain@alumni.duke.edu]Sent: Wednesday, August 19,
AMTo: ActiveMQ UsersSubject: RE: java.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerIt sounds like your XSD isn't making it onto the classpath.
Is it possiblethat whatever Artemis JAR includes artemis-server.xsd isn't getting intothe EAR either?On Aug 18,
AM, wrote:It didn't make it into the EAR. So now I have added it and this error isresolved. But I have another problem.Broker.xml causes this.Caused by: org.xml.sax.SAXParseE lineNumber: 23; columnNumber:77; cvc-elt.1.a: Cannot find the declaration of element 'configuration'.atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)atorg.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)atorg.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2143)atorg.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)atorg.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)Should I use a broker.xml ? I also have artemis-roles.properties andartemis-users.properties in my WAR's WEB-INF.&?xml version='1.0'?&&!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements.
See the NOTICE filedistributed with this work for additional informationregarding copyright ownership.
The ASF licenses this fileto you under the Apache License, Version 2.0 (the&License&); you may not use this file except in compliancewith the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing,software distributed under the License is distributed on an&AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied.
See the License for thespecific language governing permissions and limitationsunder the License.--&&configuration xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns=&urn:activemq&xsi:schemaLocation=&urn:activemq/schema/artemis-server.xsd&&&jms xmlns=&urn:activemq:jms&&&!--the queue used by the example--&&queue name=&exampleQueue&/&&/jms&&core xmlns=&urn:activemq:core&&&persistence-enabled&false&/persistence-enabled&&acceptors&&acceptor name=&in-vm&&vm://0&/acceptor&&/acceptors&&!-- Other config --&&security-settings&&!--security for example queue--&&security-setting match=&#&&&permission type=&createDurableQueue& roles=&guest&/&&permission type=&deleteDurableQueue& roles=&guest&/&&permission type=&createNonDurableQueue& roles=&guest&/&&permission type=&deleteNonDurableQueue& roles=&guest&/&&permission type=&consume& roles=&guest&/&&permission type=&send& roles=&guest&/&&/security-setting&&/security-settings&&/core&&/configuration&Thanks,Mohan-----Original Message-----From:
On Behalf Of Tim BainSent: Tuesday, August 18,
PMTo: ActiveMQ UsersSubject: Re: java.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerHave you confirmed that xbean-spring.jar is actually making it into yourEAR and then onto the classpath?On Aug 18,
AM, wrote:Hi,I have a Artemix-Spring-Arquillian setup. I am loading some beanfrom spring-beans-embedded.xml using the 'import' statement inapplicationContext.xml. Since I am getting This exception I haveincluded&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&But that doesn't work. Is there something wrong with the 'import'statement ? Can I load ActiveMQ beans like this ? At this time thisdoesn't seem to have anything to do With Arquillian because Arquillian'ShrinkWrap' packages everything. JBoss Wildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem: Failed to import bean definitions from relativelocation [spring-beans-embedded.xml] Offending resource:ServletContext resource [/WEB-INF/applicationContext.xml]; nestedexception isorg.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from ServletContext resource[/WEB-INF/spring-beans-embedded.xml]; nested exception isorg.springframework.beans.FatalBeanException: NamespaceHandler class[org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] fornamespace [ nestedexception isjava.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from [Module&deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0&modelVersion&4.0.0&/modelVersion&&groupId&scos.hrg&/groupId&&artifactId&arquillian-hrg-e2e&/artifactId&&version&0.0.1-SNAPSHOT&/version&&dependencies&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-jms&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&activemq-spring&/artifactId&&version&5.8.0&/version&&/dependency&&dependency&&groupId&javax.enterprise&/groupId&&artifactId&cdi-api&/artifactId&&version&1.0-SP4&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-jms-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.geronimo.specs&/groupId&&artifactId&geronimo-jms_1.1_spec&/artifactId&&version&1.1.1&/version&&/dependency&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-context&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.jboss.spec.javax.jms&/groupId&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&version&1.0.1.Final&/version&&/dependency&&dependency&&groupId&org.jboss.arquillian.junit&/groupId&&artifactId&arquillian-junit-container&/artifactId&&version&1.1.8.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.core&/groupId&&artifactId&arquillian-core-api&/artifactId&&version&1.1.4.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&&dependency&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&version&2.1.0&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.extension&/groupId&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&version&1.0.0.Beta3&/version&&scope&test&/scope&&/dependency&&/dependencies&&profiles&&profile&&id&arq-jbossas-managed&/id&&dependencies&&dependency&&groupId&org.wildfly&/groupId&&artifactId&wildfly-arquillian-container-managed&/artifactId&&version&8.2.0.Final&/version&&/dependency&&/dependencies&&/profile&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?& &beansxmlns=&http://www.springframework.org/schema/beans&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns:jms=&http://www.springframework.org/schema/jms&xmlns:oxm=&http://www.springframework.org/schema/oxm&xmlns:p=&http://www.springframework.org/schema/p&xmlns:context=&http://www.springframework.org/schema/context&xsi:schemaLocation=&http://www.springframework.org/schema/beansdefault-lazy-init=&true&&&context:annotation-config/&&!-- Activates scanning of @Repository and @Service --&&context:component-scan base-package=&scos.hrg&/&&import resource=&spring-beans-embedded.xml&/&&import resource=&spring-jms-beans.xml&/&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole use ofthe intended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply tothe sender and destroy all copies of the original message. Anyunauthorized review, use, disclosure, dissemination, forwarding,printing or copying of this email, and/or any action taken in relianceon the contents of this e-mail is strictly prohibited and may beunlawful. Where permitted by applicable law, this e-mail and othere-mail communications sent to and from Cognizant e-mail addresses maybemonitored.This e-mail and any files transmitted with it are for the sole use of theintended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply to thesender and destroy all copies of the original message. Any unauthorizedreview, use, disclosure, dissemination, forwarding, printing or copying ofthis email, and/or any action taken in reliance on the contents of thise-mail is strictly prohibited and may be unlawful. Where permitted byapplicable law, this e-mail and other e-mail communications sent to andfrom Cognizant e-mail addresses may be monitored.This e-mail and any files transmitted with it are for the sole use of theintended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply to thesender and destroy all copies of the original message. Any unauthorizedreview, use, disclosure, dissemination, forwarding, printing or copying ofthis email, and/or any action taken in reliance on the contents of thise-mail is strictly prohibited and may be unlawful. Where permitted byapplicable law, this e-mail and other e-mail communications sent to andfrom Cognizant e-mail addresses may be monitored.
This git link(/apache/activemq-artemis/blob/master/examples/jms/stomp1.1/src/main/resources/activemq/server0/broker.xml) is down.Mine is like this.&configuration xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&&&&&&&&&&&&&&&&xmlns=&urn:activemq&&&&&&&&&&&&&&&&&xsi:schemaLocation=&urn:activemq /schema/artemis-server.xsd&&But this link Has this.&configuration xmlns=&urn:activemq&&&&&&&&&&&&&&&&&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&&&&&&&&&&&&&&&&xsi:schemaLocation=&urn:activemq /schema/activemq-configuration.xsd&&Thanks,Mohan-----Original Message-----From: Radhakrishnan, Mohan (Cognizant)Sent: Wednesday, August 19,
AMTo: users@activemq.apache.orgSubject: RE: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerWould you know which artemis JARs are required in the EAR. All my JARs are inside my WAR's WEB-INF.Are all these needed ?activemq-spring( 5.8.0 ) , artemis-server( 1.0.0 ) and artemis-jms-server ( 1.0.0 )Thanks,Mohan________________________________________From:
[] on behalf of Tim Bain [tbain@alumni.duke.edu]Sent: Wednesday, August 19,
AMTo: ActiveMQ UsersSubject: RE: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerIt sounds like your XSD isn't making it onto the classpath.
Is it possible that whatever Artemis JAR includes artemis-server.xsd isn't getting into the EAR either?On Aug 18,
AM, wrote:It didn't make it into the EAR. So now I have added it and this erroris resolved. But I have another problem.Broker.xml causes this.Caused by: org.xml.sax.SAXParseE lineNumber: 23; columnNumber:77; cvc-elt.1.a: Cannot find the declaration of element 'configuration'.atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)atorg.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)atorg.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)atorg.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2143)atorg.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)atorg.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)Should I use a broker.xml ? I also have artemis-roles.properties andartemis-users.properties in my WAR's WEB-INF.&?xml version='1.0'?&&!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements.
See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to you under the Apache License, Version2.0 (the &License&); you may not use this file except in compliancewith the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an &AS IS& BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
See the License for the specific language governingpermissions and limitations under the License.--&&configuration xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns=&urn:activemq&xsi:schemaLocation=&urn:activemq/schema/artemis-server.xsd&&&jms xmlns=&urn:activemq:jms&&&!--the queue used by the example--&&queue name=&exampleQueue&/&&/jms&&core xmlns=&urn:activemq:core&&&persistence-enabled&false&/persistence-enabled&&acceptors&&acceptor name=&in-vm&&vm://0&/acceptor&&/acceptors&&!-- Other config --&&security-settings&&!--security for example queue--&&security-setting match=&#&&&permission type=&createDurableQueue& roles=&guest&/&&permission type=&deleteDurableQueue& roles=&guest&/&&permission type=&createNonDurableQueue& roles=&guest&/&&permission type=&deleteNonDurableQueue& roles=&guest&/&&permission type=&consume& roles=&guest&/&&permission type=&send& roles=&guest&/&&/security-setting&&/security-settings&&/core&&/configuration&Thanks,Mohan-----Original Message-----From:
On Behalf Of TimBainSent: Tuesday, August 18,
PMTo: ActiveMQ UsersSubject: Re: java.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerHave you confirmed that xbean-spring.jar is actually making it intoyour EAR and then onto the classpath?On Aug 18,
AM, wrote:Hi,I have a Artemix-Spring-Arquillian setup. I am loading some beanfrom spring-beans-embedded.xml using the 'import' statement inapplicationContext.xml. Since I am getting This exception I haveincluded&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&But that doesn't work. Is there something wrong with the 'import'statement ? Can I load ActiveMQ beans like this ? At this time thisdoesn't seem to have anything to do With Arquillian becauseArquillian 'ShrinkWrap' packages everything. JBoss Wildfly is used.Thanks,Mohanorg.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem: Failed to import bean definitions fromrelative location [spring-beans-embedded.xml] Offending resource:ServletContext resource [/WEB-INF/applicationContext.xml]; nestedexception isorg.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from ServletContextresource [/WEB-INF/spring-beans-embedded.xml]; nested exception isorg.springframework.beans.FatalBeanException: NamespaceHandler class[org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] fornamespace [nested exception isjava.lang.ClassNotFoundException:org.apache.xbean.spring.context.v2.XBeanNamespaceHandler from[Module &deployment.SCOS-Ear.ear.SCOS-Web.war:main& from Service Module Loader]atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)atorg.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)pom.xml&project xmlns=&http://maven.apache.org/POM/4.0.0& xmlns:xsi=&xsi:schemaLocation=&http://maven.apache.org/POM/4.0.0&modelVersion&4.0.0&/modelVersion&&groupId&scos.hrg&/groupId&&artifactId&arquillian-hrg-e2e&/artifactId&&version&0.0.1-SNAPSHOT&/version&&dependencies&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-jms&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&activemq-spring&/artifactId&&version&5.8.0&/version&&/dependency&&dependency&&groupId&javax.enterprise&/groupId&&artifactId&cdi-api&/artifactId&&version&1.0-SP4&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.activemq&/groupId&&artifactId&artemis-jms-server&/artifactId&&version&1.0.0&/version&&/dependency&&dependency&&groupId&org.apache.geronimo.specs&/groupId&&artifactId&geronimo-jms_1.1_spec&/artifactId&&version&1.1.1&/version&&/dependency&&dependency&&groupId&org.springframework&/groupId&&artifactId&spring-context&/artifactId&&version&4.1.1.RELEASE&/version&&/dependency&&dependency&&groupId&org.jboss.spec.javax.jms&/groupId&&artifactId&jboss-jms-api_1.1_spec&/artifactId&&version&1.0.1.Final&/version&&/dependency&&dependency&&groupId&org.jboss.arquillian.junit&/groupId&&artifactId&arquillian-junit-container&/artifactId&&version&1.1.8.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.core&/groupId&&artifactId&arquillian-core-api&/artifactId&&version&1.1.4.Final&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.apache.xbean&/groupId&&artifactId&xbean-spring&/artifactId&&version&4.3&/version&&/dependency&&dependency&&groupId&org.jboss.shrinkwrap.resolver&/groupId&&artifactId&shrinkwrap-resolver-impl-maven&/artifactId&&version&2.1.0&/version&&scope&test&/scope&&/dependency&&dependency&&groupId&org.jboss.arquillian.extension&/groupId&&artifactId&arquillian-service-integration-spring-inject&/artifactId&&version&1.0.0.Beta3&/version&&scope&test&/scope&&/dependency&&/dependencies&&profiles&&profile&&id&arq-jbossas-managed&/id&&dependencies&&dependency&&groupId&org.wildfly&/groupId&&artifactId&wildfly-arquillian-container-managed&/artifactId&&version&8.2.0.Final&/version&&/dependency&&/dependencies&&/profile&&/profiles&&/project&applicationContext.xml&?xml version=&1.0& encoding=&UTF-8&?& &beansxmlns=&http://www.springframework.org/schema/beans&xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&xmlns:jms=&http://www.springframework.org/schema/jms&xmlns:oxm=&http://www.springframework.org/schema/oxm&xmlns:p=&http://www.springframework.org/schema/p&xmlns:context=&http://www.springframework.org/schema/context&xsi:schemaLocation=&http://www.springframework.org/schema/beansdefault-lazy-init=&true&&&context:annotation-config/&&!-- Activates scanning of @Repository and @Service --&&context:component-scan base-package=&scos.hrg&/&&import resource=&spring-beans-embedded.xml&/&&import resource=&spring-jms-beans.xml&/&&import resource=&broker.xml&/&&/beans&This e-mail and any files transmitted with it are for the sole useof the intended recipient(s) and may contain confidential andprivileged information. If you are not the intended recipient(s),please reply to the sender and destroy all copies of the originalmessage. Any unauthorized review, use, disclosure, dissemination,forwarding, printing or copying of this email, and/or any actiontaken in reliance on the contents of this e-mail is strictlyprohibited and may be unlawful. Where permitted by applicable law,this e-mail and other e-mail communications sent to and fromCognizant e-mail addresses may bemonitored.This e-mail and any files transmitted with it are for the sole use ofthe intended recipient(s) and may contain confidential and privilegedinformation. If you are not the intended recipient(s), please reply tothe sender and destroy all copies of the original message. Anyunauthorized review, use, disclosure, dissemination, forwarding,printing or copying of this email, and/or any action taken in relianceon the contents of this e-mail is strictly prohibited and may beunlawful. Where permitted by applicable law, this e-mail and othere-mail communications sent to and from Cognizant e-mail addresses may be monitored.This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
Related Discussions
viewthread |
categories
user style
2 users in discussion
site design / logo & 2016 Grokbase}

我要回帖

更多关于 activemq core 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信