tsss_srinu
asked this on March 20, 2012 02:00
Hi,
when i deployed my webapplication i got this exception what was the problem in my application,
SEVERE: Missing default web.xml, using application web.xml only conf/web.xml /var/vcap/data/dea/apps/dealwallet-0-cfea87077e44356f2f6d60ead5f99362/tomcat/conf/web.xml
java.io.FileNotFoundException: /var/vcap/data/dea/apps/dealwallet-0-cfea87077e44356f2f6d60ead5f99362/tomcat/conf/web.xml (Too many open files)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:615)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1075)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
WARNING: Error reading /dev/urandom
java.io.FileNotFoundException: /dev/urandom (Too many open files)
at java.io.FileInputStream.open(Native Method)
thanks
srinu
Comments
i attached the log files
ss
Hey Srinivas,
Base on your post, it seems your application is missing the web.xml.
Can you attach a war file of your app so that we can take a look.
Hi Ali,
My war file is 40mb that why I attached the zip file of code please check it.
Thanks
Srinu
Hey Srinivas,
The error "java.io.FileNotFoundException: /dev/urandom (Too many open files)" means that you are using more than the 256 limit of file descriptors. Currently Cloud Foundry doesn't support over 256 file descriptors. Please modify your application to use lesser than the limit.
I am having the same problem, but I don't have any usage of the java File object. I do use servlets. I do flush and close the writer after I generate the response, but that has not made much difference. So, I don't know how to reduce my usage of file descriptors.
Hi Jim,
The the forums here are no longer under active use. For assistance with CloudFoundry.com please either create a question at http://stackoverflow.com and tag it with "cloudfoundry" or file a ticket at http://support.cloudfoundry.com/tickets/new .