Grails开发环境始终存在错误

时间:2011-06-02 16:35:37

标签: grails javabeans

此错误似乎仅在经过一段时间后才在开发环境中发生。解决方案只是从终端再次运行应用程序,但它似乎有点烦人,我想看看是否有人可以找出为什么会这样。

以下是错误消息:

2011-06-02 12:24:00,360 [main] ERROR context.GrailsContextLoader  - Error executing bootstraps: Error creating bean with name 'upaySite': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name upaySite is not bound in this Context
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'upaySite': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name upaySite is not bound in this Context
    at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:215)
    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
    at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
    at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
    at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
    at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
    at _GrailsRun_groovy$_run_closure8_closure14.doCall(_GrailsRun_groovy:263)
    at _GrailsRun_groovy$_run_closure8_closure14.doCall(_GrailsRun_groovy)
    at _GrailsPackage_groovy$_run_closure8.doCall(_GrailsPackage_groovy:299)
    at _GrailsPackage_groovy$_run_closure8.call(_GrailsPackage_groovy)
    at _GrailsRun_groovy$_run_closure8.doCall(_GrailsRun_groovy:245)
    at RunApp$_run_closure1.doCall(RunApp:35)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:590)
    at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: javax.naming.NameNotFoundException: Name upaySite is not bound in this Context
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
    at javax.naming.InitialContext.lookup(InitialContext.java:409)
    ... 29 more
Application context shutting down...
Application context shutdown.

正如我之前提到的那样,应用程序运行得非常好......但是经过一段时间后它关闭了,我看到了这个消息。我想知道这意味着什么,以及如何解决它。

非常感谢您的帮助, -Asaf

0 个答案:

没有答案