Well I don't really know where exactly to post so sorry if I don't do it in the right place. I'm trying to use log4j in my j2ee application (EJB + JSP + Servlets + Hibernate). There are some different web applications and I would like to split the log in different files. I use a socket appender to the localhost with this properties file
I use a init Servlet for initialize the log4j.properties and I run the server from the command line. The initialization goes on properly but without a specific reason I get an EOFException The exception pops up in many different moments and I can't understand what exactly is making to close the connection. I've tried to initialize the log4j.properties in the server also and the problem persists (I got the exception only starting the application server). I've tried a dummy web project which only loads the init Servlet and logs something, and the same problem, conects ok but it looses the connection suddenly including when I only run the web project.
I use Netbeans 6 and Glassfish 2 running in a Mac computer.