java - Active MQ in Spring MVC application throws error in JBoss deployment -


I am trying to use ActiveMQ in my spring web application and it works fine in Tomcat. 7. When I am in the same Jboss, I am facing a strange exception such as

  INFO [org.jboss.as.jpa] (MSC Service Thread 1-6) JBAS011401: activemq ERROR Read the persistence.xml for [ORG. Jboss.msc.service.fail] (MSC Service Thread 1-5) MSC000001: Service failed to start jboss.module.service. "Deployment.message.war". Main: org.jboss.msc.service.StartException service in jboss .module.service. "Deployment.message.war". Main: JBAS018759: Failed to load module: Deployment Message: Main: org.jboss.as.server.moduleservice.ModuleLoadService.start (ModuleLoadService.java:91) [Jboss-as-server-7.3.0.final-redhat-14.jar: 7.3.0.final- Redhat-14] - - generated by: org.jboss.modules.ModuleNotFoundException: org.jboss.as.jpa. Openjapa: main org.jboss.modules.Module.addPaths (Module.java:1030) [jboss-modules.jar: 1.3.0.final-redhat-2]  

The following is my The context is. Xml

  & lt; Bean id = "jmsFactory" class = "com.sample.config.CustomActiveMqConnectionFactory" & gt; & Lt; Property name = "Broker URL" value = "Failure: (tcp: // localhost: 61616)? Randomize = true" /> & Lt; Property Name = "User Name" Value = "Admin" /> & Lt; Property Name = "Password" Value = "Admin" /> & Lt; / Bean & gt; & Lt; Bean id = "Producer jasmemplate" category = "org.springframework.jms.core.JmsTemplate" & gt; & Lt; Property name = "connectionfinancial" & gt; & Lt; Bean class = "org.springframework.jms.connection.SingleConnectionFactory" & gt; & Lt; Property Name = "targetConnectionFactory" ref = "jmsfactory" /> & Lt; / Bean & gt; & Lt; / Property & gt; & Lt; / Bean & gt; & Lt ;! - ActiveMQ destination to use - & gt; & Lt; Bean id = "Destination" class = "org.apache.activemq.command.ActiveMQQueue" autowire = "constructor" & gt; & Lt; Constructor-arg value = "sampleMQ" /> & Lt; / Bean & gt; & Lt; Bean id = "jmsMessageProducer" class = "com.sample.service.MessageProducer" & gt; & Lt; Property Name = "Template" ref = "Producer JemTemplate" / & gt; & Lt; Property Name = "Destination" Reference = "Destination" /> & Lt; / Bean & gt; & Lt; Bean id = "Message Listener" class = "com.sample.service.MessageListener" /> & Lt; Bean id = "jmscontainer" class = "com.sample.service.CustomMessageListenerContainer" & gt; & Lt; Property Name = "Connection Factor" Ref = "JMFFTC" /> & Lt; Property Name = "Destination" Reference = "Destination" /> & Lt; Property Name = "Message Listener" Riff = "Message Listener" / & gt; & Lt; / Bean & gt;  

My POM.Xml has the following dependencies

  & lt; Dependency & gt; & Lt; Group & gt; Org.apache.activemq & lt; / Group & gt; & Lt; ArtifactId & gt; ActiveMQ core & lt; / ArtifactId> & Lt; Version & gt; 5.7.0 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.apache.activemq & lt; / Group & gt; & Lt; ArtifactId & gt; ActiveMQ-all & lt; / ArtifactId> & Lt; Version & gt; 5.1.0 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.apache.activemq & lt; / Group & gt; & Lt; ArtifactId & gt; ActiveMQ-JPA Shop & lt; / ArtifactId> & Lt; Version & gt; 5.2.0 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.jboss.as & lt; / Group & gt; & Lt; ArtifactId & gt; JPA-openjpa as jboss & lt; / ArtifactId> & Lt; Version & gt; 7.2.0.Final & lt; / Edition & gt; & Lt; Type & gt; Pom & lt; / Type & gt; & Lt; / Dependencies & gt;  

There was no entry of jboss-as-jpa-openjpa dependency in the initial POM file. Even after being explicitly added, I am facing the above error, I can not understand the link between open JPA and active MAKE tell me whether to add any information to the question or not. Please help me Thanks in advance

Do you have

  & lt; Attempt to enter property name = "Openjpa.MetaDataFactory" value = "JPA" /> 


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -