grails activemq ajax,Grails own plugin error ActiveMQ

在尝试为集成服务创建自定义插件时,遇到了一个导致应用崩溃的编译错误。错误信息指出无法解析'org.apache.activemq.ActiveMQConnectionFactory'类。错误出现在Grails项目的配置中,涉及了JVM的多种配置,如编译、测试和运行时内存设置。此外,还展示了依赖管理和插件配置。解决此问题可能需要检查Groovy版本、激活MQ的相关库导入或调整项目构建配置。
摘要由CSDN通过智能技术生成

i'm creating my own plugin for integration services, but when i insert it on the project, i have a error. Why the app is throwing this exception?

Error Fatal error during compilation org.codehaus.groovy.control.MultipleCompilationErrorsException:

[BuildConfig]

grails.project.class.dir = "target/classes"

grails.project.test.class.dir = "target/test-classes"

grails.project.test.reports.dir = "target/test-reports"

grails.project.fork = [

// configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required

// compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

// configure settings for the test-app JVM, uses the daemon by default

test: [maxMemory: 1024, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

// configure settings for the run-app JVM

run: [maxMemory: 1024, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],

// configure settings for the run-war JVM

war: [maxMemory: 1024, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],

// configure settings for the Console UI JVM

console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]

]

grails.project.dependency.resolver = "maven" // or ivy

grails.project.dependency.resolution = {

// inherit Grails' default dependencies

inherits("global") {

// uncomment to disable ehcache

// excludes 'ehcache'

}

log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'

repositories {

//grailsHome()

grailsCentral()

mavenCentral()

mavenLocal()

// uncomment the below to enable remote dependency resolution

// from public Maven repositories

//mavenRepo "http://repository.codehaus.org"

//mavenRepo "http://download.java.net/maven/2/"

//mavenRepo "http://repository.jboss.com/maven2/"

}

dependencies {

// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

// runtime 'mysql:mysql-connector-java:5.1.27'

compile('org.apache.activemq:activemq-core:5.7.0',

'org.apache.activemq:activeio-core:3.1.4',

'org.apache.xbean:xbean-spring:3.17') {

excludes 'activemq-openwire-generator'

excludes 'commons-logging'

excludes 'xalan'

excludes 'xml-apis'

exported = false

}

}

plugins {

build(":release:3.0.1",

":rest-client-builder:1.0.3") {

export = false

}

compile ":jms:1.3"

}

}

[Plugin descriptor]

def doWithSpring = {

jmsConnectionFactory(ActiveMQConnectionFactory) {

brokerURL = "tcp://localhost:61616"

}

}

Error message

ExpediaGrailsPlugin.groovy: 1: unable to resolve class org.apache.activemq.ActiveMQConnectionFactory

@ line 1, column 1.

import org.apache.activemq.ActiveMQConnectionFactory

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值