grails项目使用maven,启动时报错。

刘看山-HP 发布于 2015/12/17 12:12
阅读 854
收藏 0
报错信息如下:


    Connected to the target VM, address: '127.0.0.1:50098', transport: 'socket'
    Error |
    2015-12-16 09:30:57,828 [localhost-startStop-1] ERROR context.ContextLoader  - Context initialization failed
    Message: tried to access method org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingletonMutex()Ljava/lang/Object; from class org.springframework.context.event.AbstractApplicationEventMulticaster
        Line | Method
    ->>   84 | setBeanFactory                           in org.springframework.context.event.AbstractApplicationEventMulticaster
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    |     60 | <init>                                   in org.springframework.context.event.SimpleApplicationEventMulticaster
    |    667 | initApplicationEventMulticaster . . . .  in org.springframework.context.support.AbstractApplicationContext
    |    471 | refresh                                  in     ''
    |    403 | configureAndRefreshWebApplicationContext in org.springframework.web.context.ContextLoader
    |    306 | initWebApplicationContext                in     ''
    |    106 | contextInitialized . . . . . . . . . . . in org.springframework.web.context.ContextLoaderListener
    |   4973 | listenerStart                            in org.apache.catalina.core.StandardContext
    |   5467 | startInternal . . . . . . . . . . . . .  in     ''
    |    150 | start                                    in org.apache.catalina.util.LifecycleBase
    |   1559 | call . . . . . . . . . . . . . . . . . . in org.apache.catalina.core.ContainerBase$StartChild
    |   1549 | call                                     in     ''
    |    262 | run . . . . . . . . . . . . . . . . . .  in java.util.concurrent.FutureTask
    |   1145 | runWorker                                in java.util.concurrent.ThreadPoolExecutor
    |    615 | run . . . . . . . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
    ^    745 | run                                      in java.lang.Thread
    Error |
    2015-12-16 09:30:57,982 [localhost-startStop-1] ERROR [localhost].[/myStore]  - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
    Message: tried to access method org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingletonMutex()Ljava/lang/Object; from class org.springframework.context.event.AbstractApplicationEventMulticaster
        Line | Method
    ->>   84 | setBeanFactory                           in org.springframework.context.event.AbstractApplicationEventMulticaster
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    |     60 | <init>                                   in org.springframework.context.event.SimpleApplicationEventMulticaster
    |    667 | initApplicationEventMulticaster . . . .  in org.springframework.context.support.AbstractApplicationContext
    |    471 | refresh                                  in     ''
    |    403 | configureAndRefreshWebApplicationContext in org.springframework.web.context.ContextLoader
    |    306 | initWebApplicationContext                in     ''
    |    106 | contextInitialized . . . . . . . . . . . in org.springframework.web.context.ContextLoaderListener
    |   4973 | listenerStart                            in org.apache.catalina.core.StandardContext
    |   5467 | startInternal . . . . . . . . . . . . .  in     ''
    |    150 | start                                    in org.apache.catalina.util.LifecycleBase
    |   1559 | call . . . . . . . . . . . . . . . . . . in org.apache.catalina.core.ContainerBase$StartChild
    |   1549 | call                                     in     ''
    |    262 | run . . . . . . . . . . . . . . . . . .  in java.util.concurrent.FutureTask
    |   1145 | runWorker                                in java.util.concurrent.ThreadPoolExecutor
    |    615 | run . . . . . . . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
    ^    745 | run                                      in java.lang.Thread
    Error |
    2015-12-16 09:30:57,991 [localhost-startStop-1] ERROR core.StandardContext  - Error listenerStart
    Error |
    2015-12-16 09:30:57,995 [localhost-startStop-1] ERROR core.StandardContext  - Context [/myStore] startup failed due to previous errors
我是老项目集成maven,用的Grails自带的maven,在BuildingConfig.groovy中配置的,但是在项目启动时报错。


我将spring-data-redis:1.6.0换成spring-data-redis:1.4.0后,启动是报错信息变成了:
Message: No such property: grailsResourceProcessor for class: org.springframework.web.context.support.XmlWebApplicationContext

Line | Method

->> 50 | unwrap in org.codehaus.groovy.runtime.ScriptBytecodeAdapter
| 63 | getProperty in org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite
| 227 | callGetProperty in org.codehaus.groovy.runtime.callsite.AbstractCallSite
| 22 | init in org.grails.plugin.resource.ProcessingFilter
| 279 | initFilter . . in org.apache.catalina.core.ApplicationFilterConfig
| 260 | getFilter in ''
| 105 | <init> . . . . in ''
| 4809 | filterStart in org.apache.catalina.core.StandardContext
| 5485 | startInternal . in ''
| 150 | start in org.apache.catalina.util.LifecycleBase
| 1559 | call . . . . . in org.apache.catalina.core.ContainerBase$StartChild
| 1549 | call in ''
| 262 | run . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
Error |
2015-12-16 11:13:19,841 [localhost-startStop-1] ERROR [localhost].[/myStore] - Exception starting filter DeclaredResourcesPluginFilter
Message: No such property: grailsResourceProcessor for class: org.springframework.web.context.support.XmlWebApplicationContext

Line | Method

->> 50 | unwrap in org.codehaus.groovy.runtime.ScriptBytecodeAdapter- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 63 | getProperty in org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite
| 227 | callGetProperty in org.codehaus.groovy.runtime.callsite.AbstractCallSite
| 22 | init in org.grails.plugin.resource.ProcessingFilter
| 279 | initFilter . . in org.apache.catalina.core.ApplicationFilterConfig
| 260 | getFilter in ''
| 105 | <init> . . . . in ''
| 4809 | filterStart in org.apache.catalina.core.StandardContext
| 5485 | startInternal . in ''
| 150 | start in org.apache.catalina.util.LifecycleBase
| 1559 | call . . . . . in org.apache.catalina.core.ContainerBase$StartChild
| 1549 | call in ''
| 262 | run . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread


加载中
返回顶部
顶部