Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat - unable to open logs - unable to deploy
    primarykey
    data
    text
    <p>I am trying to <strong>deploy a web app</strong> on an Ubuntu system. The WAR is an <strong>EXPLODED</strong> folder. There are <strong>no issues with build</strong>. But I am unable to deploy to <strong>Tomcat6 server</strong>. Everything was working fine. <strong>Same Code, Same files</strong>. All of a sudden, unable to deploy.</p> <p>The <strong>main difference</strong> I find now is that - <strong>the logs</strong> at /var/lib/tomcat6/logs - <strong>localhost.2010-11-01.log is locked</strong> and <strong>can be opened only by root</strong> user. Dont understand why?</p> <p>Because of this issue, I am getting the following error (from localhost.2010-11-01.log):</p> <blockquote> <p>SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener</p> </blockquote> <p>Is my issue related to </p> <blockquote> <p><a href="https://stackoverflow.com/questions/2716677/beancreationexception-in-spring-framework-war-deploy-to-tomcat-6-on-ubuntu-9-10">BeanCreationException in Spring Framework .WAR deploy to Tomcat 6 on Ubuntu 9.10</a>?</p> </blockquote> <p><hr> Update1: The issue of Tomcat logs being readable by root user is gone now. However, these ERRORs remain.</p> <blockquote> <p>SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener</p> <p>org.springframework.beans.factory.<strong>BeanCreationException</strong>: 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.<strong>BeanCreationException</strong>: 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.<strong>BeanCreationException</strong>: Error creating bean with name 'australia' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: <strong>Invocation of init method failed;</strong> nested exception is <strong>java.lang.Exception</strong>: Unexpected line <br /> <b>Warning</b>: mysql_connect(): Lost connection to MySQL server during query in .... <strong>#ERROR:Too Many Connections!</strong></p> </blockquote> <p>Update 2:</p> <blockquote> <p>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 (<a href="http://localhost:8080/manager/html" rel="nofollow noreferrer">http://localhost:8080/manager/html</a>) - the same thing I had been trying before.</p> </blockquote> <p><strong>Result</strong>: Web app gets launched with no issues! </p> <p>I have absolutely <strong>NO CLUE why this did not work before</strong>. Also, <strong>NO CLUE why it's working now</strong>, if at all there was a serious issue. I WASTED one whole day :(.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload