tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Problem when rebooting....
Date Mon, 10 Nov 2014 14:08:56 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ameer,

On 11/9/14 11:42 PM, Ameer Mawia wrote:
> I'm looking into the issue(I had been longing to contribute to
> community and I see some opportunity to start doing so here. Hope
> my effort will be welcomed!:) )

Absolutely. Thanks for your contributions.

> I'm looking at the code base in trunk. Here is the method where 
> localhost-startstop thread is busy:
> 
> 
> protected void processAnnotationsFile(File file, WebXml fragment,
> //line 1963 boolean handlesTypesOnly) {
> 
> if (file.isDirectory()) { // Returns null if directory is not
> readable String[] dirs = file.list();//line 1968 if (dirs != null)
> { for (String dir : dirs) { processAnnotationsFile(    //line 1971 
> new File(file,dir), fragment, handlesTypesOnly); } } } else if
> (file.canRead() && file.getName().endsWith(".class")) { try
> (FileInputStream fis = new FileInputStream(file)) { 
> processAnnotationsStream(fis, fragment, handlesTypesOnly); } catch
> (IOException e) { 
> log.error(sm.getString("contextConfig.inputStreamFile", 
> file.getAbsolutePath()),e); } catch (ClassFormatException e) { 
> log.error(sm.getString("contextConfig.inputStreamFile", 
> file.getAbsolutePath()),e); } } }
> 
> As you can see and as konstantin said, the thread is busy walking
> over directories listed in web-fragements.

Here, the canRead call is being done in such a way that entropy should
not be a part of the problem.

Perhaps something is being read from a network filesystem that has
stalled mounting or something similar? The question for the OP is
"what is different during boot time?"

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUYMb4AAoJEBzwKT+lPKRYjwUP/jLSdAXlD67RR+UYe0NhPbF8
GweAbj/zDtuLq3enElNa838LnlVoG/yKKvIkA8cQ2GgdtjP0PKzJeIUqSRBVuQ6m
gYg/iiY2qgi6tKfOsEUobGhZrUa8xfzVigASyfKwxVnXE3kShKprY02iq0U7eURW
33cGOgezcq4CvEm4MRcLfBGJqlYtjRWLvWQGt+u3u6IqJ+1gZ2v9VFgembDu6Fjo
2AdRWNGiJGvIPPKeEU4PShk5uWliLdTCToRjCJ6Xm0q9GKIPY6oE616b+sLVz9AP
q1Fzq7ZgMKkwIIcCGsbBLurKm5lmizB5cTCQm870kh2C0fY4I5HXthKwADvBBcn8
eU/0UPe6z2Mn8pgzTBYXTDCH8F8JdRAqVkL//WU0vaZEqNVKxYkbPJZjseYerEjS
huv8N1kXl8GNueWBJ5H+N0VUfrLJOwzOeSRYx8svxF1p79xGOxF2rmKhypLLIPpL
ldoLWFnJ2P1dDPTDEkdsxYJQxZ0FB9eDcDgIH2gGDUuOcyUW7xqK4kCfzo9Yr4MX
c5iIwtsGz0/mELSdY30/Qx2lflEL0NvDj54NIz6o8pDVsIGvSWmV5RgaM9Bb7+84
oehx5TC4GzHTEgrBvU292NH2UQf1lXCPCMYHI15tbEOIBX2NjbqKJp+o/1+ajOl4
IVIII1t4+kGs7yAhL5Pa
=D5Gs
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message