tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Tomcat 7 & JDK 7 access permissions: error or bug?
Date Wed, 18 Jan 2012 10:12:24 GMT
2012/1/17 deniz <>:
> Hi all,
> I am getting a weird error on tomcat 7. at first  i deploy my war file and
> everything is smooth.. but after some time - randomly - i cant access
> anything on tomcat and in the log file I see these lines:
> <code>
> Jan 17, 2012 11:37:37 AM$Acceptor run
> SEVERE: Socket accept failed
> access denied
> ("" "" "accept,resolve")
>        at
>        at
>        at
> java.lang.SecurityManager.checkPermission(
>        at java.lang.SecurityManager.checkAccept(
>        at
>        at
>        at
>        at
>        at
> </code>
> i have to kill tomcat and then after some time it happens again... any
> ideas?

The catalina.policy file that comes with Tomcat grants AllPermission
to both Tomcat and JRE libs (${catalina.home}/lib/-,

The stacktrace that you show above, as well as ones in [1] all show
only Tomcat or JRE classes,  so all permissions must be granted,
unless there is something that I miss.

What is puzzling is that you say that the failure starts to occur randomly.


You have to be more specific about your configuration (OS, JRE
version, Tomcat settings (server.xml without comments)) and try to
provide a scenario to reproduce the issue on a clean installation of

While the issue cannot be reproduced and if nobody here on users@ is
able to reproduce it or find some clues, filing an issue in bugzilla
is useless, as we cannot proceed from there if the issue is not
understood.  It might as well be some configuration error or
programming error in the web application.

You may want to
1. Reconfigure your logging to use the following formatter:

E.g.: =

It prints current thread name with each log message.

2. Reconfigure your access log to include thread name in the access log (%I)

Maybe you can find what requests were handled by those threads before
the failure starts to occurs.

Thus far I do not observe any issues with Tomcat 7.0.25, JDK 1.7.0.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message