2010-11-01 51 views
2

我正在嘗試在Ubuntu系統上部署web應用程序。 WAR是一個分解文件夾。有與構建沒有問題。但我無法部署到Tomcat6服務器。一切工作正常。 相同的代碼,相同的文件。突然間,無法部署。Tomcat - 無法打開日誌 - 無法部署

主要區別我現在發現就是 - 日誌位於/ var/lib中/ tomcat6中/日誌 - localhost.2010-11-01.log被鎖定只能由root打開用戶。不明白爲什麼?

因爲這個問題,我收到以下錯誤(從localhost.2010-11-01.log):

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

是我的問題涉及到

BeanCreationException in Spring Framework .WAR deploy to Tomcat 6 on Ubuntu 9.10 ?


UPDATE1 : 現在,root用戶可讀的Tomcat日誌問題已經消失。但是,這些錯誤仍然存​​在。

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'africa' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'antarctica' while setting bean property 'antarctica'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'antarctica' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'australia' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'australia' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.Exception: Unexpected line
Warning: mysql_connect(): Lost connection to MySQL server during query in .... #ERROR:Too Many Connections!

更新2:

Just switched on my Ubuntu system. Only firefox running at the moment. No Eclipse or other software running. Did not shutdown or restart Tomcat. Just tried to launch the web app thru Tomcat Manager application (http://localhost:8080/manager/html) - the same thing I had been trying before.

結果:Web應用程序得到沒有問題展開!

我絕對有NO CLUE爲什麼這個在之前沒有用。另外,沒有CLUE爲什麼它現在的工作,如果有的話是一個嚴重的問題。我浪費了一整天:(

+1

您是否嘗試過簡單的複製爆炸WAR文件夾到Tomcat安裝下的'webapps'目錄? – Bernard 2010-11-01 16:11:23

+0

@Bernard:WAR文件夾路徑已經通過/ etc/tomcat6/Catalina/localhost中的xml文件正確提及 - 無需複製到webapps文件夾。 。 – 2010-11-01 16:25:48

+1

它是一個權限問題嗎? – hvgotcodes 2010-11-01 16:57:10

回答