Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread Morus Walter
Hi,

First of all apologies to everyone for sending my last message thrice.
Wasn't intentional and I'll do my best not to repeat that...


 File destDir = null;
 
 if (absoluteLibPath != null) {
 destDir = new File(absoluteLibPath);
 } else {
 copyJars = true;
 destDir = new File(workDir, libPath);
 destDir.mkdirs();
 }
 
I compiled tomcat from sources and added some debugging messages.
What I found is, that tomcat takes the else-branch which should create
the directory.
I changed this to
   } else {
copyJars = true;
System.err.println(WorkDir:  + workDir + ; libPath:  + libPath);
destDir = new File(workDir, libPath);
System.err.println(no absoluteLibPath; dest Dir:  + destDir);
destDir.mkdirs();
if ( !destDir.exists() ) {
System.err.println(destDir  + destDir +  does not exist);
destDir.getParentFile().mkdirs();
destDir.mkdirs();
if ( !destDir.exists() ) {
System.err.println(destDir  + destDir +  does not exist);
}
else {
System.err.println(destDir  + destDir +  does exist);
}
}
}
and it works. After the first destDir.mkdirs() destDir does not exist,
the second (two) mkdirs calls create it.

So this really seems to be some bug in javas File.mkdirs implementation
(or in the underlying libc/linux filesystem).

I'm not sure what's the best thing to do in this situation, but I'll file
a bug report for tomcat suggesting to add
if ( !destDir.exists() ) {
destDir.getParentFile().mkdirs();
destDir.mkdirs();
}
with an apropriate comment as a workaround...

Morus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread STOCKHOLM, Raymond
What JVM are you using ?
I had some similar problems with java 1.4.1_01 on Windows,
when to many files were opened.
Solved with 1.4.1_05.

-Message d'origine-
De : Morus Walter [mailto:[EMAIL PROTECTED]
Envoyé : mardi 13 juillet 2004 11:19
À : Tomcat Users List
Cc : [EMAIL PROTECTED]
Objet : Re: tomcat doesn't create directories under 'work' but does
create .java/.class files


Hi,

First of all apologies to everyone for sending my last message thrice.
Wasn't intentional and I'll do my best not to repeat that...


 File destDir = null;
 
 if (absoluteLibPath != null) {
 destDir = new File(absoluteLibPath);
 } else {
 copyJars = true;
 destDir = new File(workDir, libPath);
 destDir.mkdirs();
 }
 
I compiled tomcat from sources and added some debugging messages.
What I found is, that tomcat takes the else-branch which should create
the directory.
I changed this to
   } else {
copyJars = true;
System.err.println(WorkDir:  + workDir + ; libPath:  + libPath);
destDir = new File(workDir, libPath);
System.err.println(no absoluteLibPath; dest Dir:  + destDir);
destDir.mkdirs();
if ( !destDir.exists() ) {
System.err.println(destDir  + destDir +  does not exist);
destDir.getParentFile().mkdirs();
destDir.mkdirs();
if ( !destDir.exists() ) {
System.err.println(destDir  + destDir +  does not exist);
}
else {
System.err.println(destDir  + destDir +  does exist);
}
}
}
and it works. After the first destDir.mkdirs() destDir does not exist,
the second (two) mkdirs calls create it.

So this really seems to be some bug in javas File.mkdirs implementation
(or in the underlying libc/linux filesystem).

I'm not sure what's the best thing to do in this situation, but I'll file
a bug report for tomcat suggesting to add
if ( !destDir.exists() ) {
destDir.getParentFile().mkdirs();
destDir.mkdirs();
}
with an apropriate comment as a workaround...

Morus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread Morus Walter
STOCKHOLM, Raymond writes:
 What JVM are you using ?
 I had some similar problems with java 1.4.1_01 on Windows,
 when to many files were opened.
 Solved with 1.4.1_05.
 
java -version
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

Morus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-12 Thread Morus Walter
Hi Horacio,

I get similar problems (on debian woody) for the deployment of jar-files.

When I start tomcat (with jsvc) everythings fine and the webapp is
startet.
But I would like to unload and load the application with the manager
application. In this case the start of the webapp fails, because
tomcat cannot copy the jar-files (jstl beeing the first of them) into
work/Standalone/localhost/webapp/WEB-INF/lib
because it didn't create that dir.

I did a strace analysis which shows, that tomcat
- checks for the existance of .../localhost/webapp/WEB-INF/lib
- tries to create this directory and fails (No such file or directory)
  (because .../localhost/webapp/WEB-INF does not exist)
- checks all paths up to .../localhost/webapp/WEB-INF
- finds that the path up to .../localhost/webapp exits
  and .../localhost/webapp/WEB-INF is missing
- ignores this and tries to open the jar-File (for writing)
  This fails and an IOException is thrown

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089624365, 625731}, NULL) = 0
write(21, 2004-07-12 11:26:05 StandardCont..., 90) = 90
gettimeofday({1089624365, 626281}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 180) = 180
gettimeofday({1089624365, 626677}, NULL) = 0
gettimeofday({1089624365, 626855}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 
0lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
gettimeofday({1089624365, 629834}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 190) = 190
open(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib/jstl.jar,
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)


Without jsvc it looks pretty much the same, except that the directory is 
created as expected.

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089625315, 938740}, NULL) = 0
write(22, 2004-07-12 11:41:55 StandardCont..., 90) = 90
gettimeofday({1089625315, 939285}, NULL) = 0
write(22, 2004-07-12 11:41:55 WebappLoader..., 180) = 180
gettimeofday({1089625315, 939650}, NULL) = 0
gettimeofday({1089625315, 939830}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, 

Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-12 Thread Morus Walter
Hi Horacio,

I get similar problems (on debian woody) for the deployment of jar-files.

When I start tomcat (with jsvc) everythings fine and the webapp is
startet.
But I would like to unload and load the application with the manager
application. In this case the start of the webapp fails, because
tomcat cannot copy the jar-files (jstl beeing the first of them) into
work/Standalone/localhost/webapp/WEB-INF/lib
because it didn't create that dir.

I did a strace analysis which shows, that tomcat
- checks for the existance of .../localhost/webapp/WEB-INF/lib
- tries to create this directory and fails (No such file or directory)
  (because .../localhost/webapp/WEB-INF does not exist)
- checks all paths up to .../localhost/webapp/WEB-INF
- finds that the path up to .../localhost/webapp exits
  and .../localhost/webapp/WEB-INF is missing
- ignores this and tries to open the jar-File (for writing)
  This fails and an IOException is thrown

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089624365, 625731}, NULL) = 0
write(21, 2004-07-12 11:26:05 StandardCont..., 90) = 90
gettimeofday({1089624365, 626281}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 180) = 180
gettimeofday({1089624365, 626677}, NULL) = 0
gettimeofday({1089624365, 626855}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 
0lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
gettimeofday({1089624365, 629834}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 190) = 190
open(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib/jstl.jar,
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)


Without jsvc it looks pretty much the same, except that the directory is 
created as expected.

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089625315, 938740}, NULL) = 0
write(22, 2004-07-12 11:41:55 StandardCont..., 90) = 90
gettimeofday({1089625315, 939285}, NULL) = 0
write(22, 2004-07-12 11:41:55 WebappLoader..., 180) = 180
gettimeofday({1089625315, 939650}, NULL) = 0
gettimeofday({1089625315, 939830}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, 

Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-12 Thread Morus Walter
Hi Horacio,

I get similar problems (on debian woody) for the deployment of jar-files.

When I start tomcat (with jsvc) everythings fine and the webapp is
startet.
But I would like to unload and load the application with the manager
application. In this case the start of the webapp fails, because
tomcat cannot copy the jar-files (jstl beeing the first of them) into
work/Standalone/localhost/webapp/WEB-INF/lib
because it didn't create that dir.

I did a strace analysis which shows, that tomcat
- checks for the existance of .../localhost/webapp/WEB-INF/lib
- tries to create this directory and fails (No such file or directory)
  (because .../localhost/webapp/WEB-INF does not exist)
- checks all paths up to .../localhost/webapp/WEB-INF
- finds that the path up to .../localhost/webapp exits
  and .../localhost/webapp/WEB-INF is missing
- ignores this and tries to open the jar-File (for writing)
  This fails and an IOException is thrown

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089624365, 625731}, NULL) = 0
write(21, 2004-07-12 11:26:05 StandardCont..., 90) = 90
gettimeofday({1089624365, 626281}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 180) = 180
gettimeofday({1089624365, 626677}, NULL) = 0
gettimeofday({1089624365, 626855}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 
0lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
gettimeofday({1089624365, 629834}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 190) = 190
open(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib/jstl.jar,
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)


Without jsvc it looks pretty much the same, except that the directory is 
created as expected.

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089625315, 938740}, NULL) = 0
write(22, 2004-07-12 11:41:55 StandardCont..., 90) = 90
gettimeofday({1089625315, 939285}, NULL) = 0
write(22, 2004-07-12 11:41:55 WebappLoader..., 180) = 180
gettimeofday({1089625315, 939650}, NULL) = 0
gettimeofday({1089625315, 939830}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096,