users@glassfish.java.net

Re: multiple log entries from _ThreadName=http-thread-pool

From: <thomas_at_randspringer.de>
Date: Wed, 11 May 2011 13:32:36 +0200 (CEST)

Hm,


I found a workaround. I added a line
 
   <virtual-server id="dummy" log-file="/dev/null" default-web-module="" network-listeners="http-listener-1" />
 
to
 
<http-service>
   <access-log />
   <virtual-server id="server" network-listeners="http-listener-2,http-listener-1" />
   <virtual-server id="__asadmin" network-listeners="admin-listener" />
</http-service>
 
Now the redundant log entries are written to /dev/null.
 
However I do not understand this and it is not necessary in GF3.1. Could someone give an explanation?
 
Thomas
 

"thomas_at_randspringer.de" <thomas_at_randspringer.de> hat am 10. Mai 2011 um 17:02 geschrieben:

> Hi,
>  
> when I deploy a rails-application as WAR in a fresh downloaded glassfish-3.0 I get logentries multiple times. E.g.
>  
> >snip
> [#|2011-05-10T16:54:13.021+0200|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=34;_ThreadName=Thread-1;|PWC1412: WebModule[/haldenr2] ServletContext.log(): 16:54:13.20000 # 0: Ability: /ks/inventur#index Kein Mitarbeiter angemeldet => Zugriff verweigert
> |#]
>
> [#|2011-05-10T16:54:13.021+0200|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=34;_ThreadName=http-thread-pool-8080-(7);|PWC1412: WebModule[/haldenr2] ServletContext.log(): 16:54:13.20000 # 0: Ability: /ks/inventur#index Kein Mitarbeiter angemeldet => Zugriff verweigert
> |#]
>
> [#|2011-05-10T16:54:13.021+0200|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=34;_ThreadName=http-thread-pool-8080-(7);|PWC1412: WebModule[/haldenr2] ServletContext.log(): 16:54:13.20000 # 0: Ability: /ks/inventur#index Kein Mitarbeiter angemeldet => Zugriff verweigert
> |#]
> >snip
>  
> The same WAR deployed in a fresh GF-3.1 gives me just one line. The "_ThreadName=http-thread-pool"-lines do not appear.
>  
> I want get rid of these two redundant lines from the example above but I still found no way in the configuration.
>  
> Can someone give an advice?
>  
> Thank you
> Thomas
>  
>  
>