2012-02-18 101 views
1

當我在本地機器上運行grails run-war時,我的grails戰爭運行良好,但當我上傳到我的ubuntu服務器時,我給了我以下錯誤 這裏我需要一件重要的事情一提的是(我已經上傳相同war文件更早一天,它是工作,當我取消部署,並部署它,它顯示我的錯誤) 我甚至測試相同的戰爭文件中的某些其他的Windows系統也工作正常在Tomcat中部署Grails戰爭時顯示錯誤

Feb 18, 2012 11:43:48 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 
Feb 18, 2012 11:43:48 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: A web application created a ThreadLocal with key of type [org.codehaus.groovy.runtime.GroovyCategorySupport.MyThreadLocal] (value [[email protected]80fb85]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 
Feb 18, 2012 11:43:48 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transaction synchronizations]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 
Feb 18, 2012 11:43:48 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Prototype beans currently in creation]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 
Feb 18, 2012 11:43:48 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: A web application created a ThreadLocal with key of type [null] (value [org.codehaus.groov[email protected]ef96]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 
+0

而且,這個警告後它是否工作?其實它只是*未部署*應用程序,不*部署* – 2012-02-18 12:36:21

+0

@splix該項目未運行您能幫助我們 – 2012-02-18 13:01:27

+0

您是否還有其他錯誤?也許'PermGem space'錯誤?您是否嘗試重新啓動Tomcat? – 2012-02-18 13:06:56

回答

1

查看Tomcat的日誌目錄。您只是看到寫入標準輸出的內容,但另一個日誌文件中可能有用的信息,例如localhost.2012-02-18.log或catalina.2012-02-18.log。 stacktrace.log中可能還有信息

+0

我已檢查所有日誌文件,但我找不到任何其他錯誤任何幫助請 – 2012-02-21 05:16:17

+0

我發現這樣的錯誤無法創建目錄:/usr/share/tomcat6/.grails/projects/redkanproject/searchable-index/production/index/gallery – 2012-02-21 05:42:29

+1

您可以指定Searchable插件的Lucene索引的位置,以指向具有'myproject/grails-app/conf/Searchable.groovy'中的'compassConnection'屬性的可寫目錄 - 請參閱https://svn.codehaus。 org/grails-plugins/grails-searchable/trunk/src/conf/Searchable.groovy以獲得描述使用情況的評論。如果你還沒有運行'grails install-searchable-config'來創建文件。 – 2012-02-21 06:37:46

0

請清除tomcat的temp和工作目錄。並重新啓動tomcat

+0

我重新啓動了它6次以上,並且還清除了我的tomcats工作目錄中的所有temp和webapps文件 – 2012-02-21 05:17:22