From: <php...@li...> - 2006-10-18 10:01:16
|
Hi - Well I now have my logging working - in Jboss deploying an EAR! :) These are the steps I took. 1. Created an extension to the php bridge PhpJavaServlet and using the Util.setLogger parsing an instance of the the Log4JLogger. (just this on it's own gave me the following exception: ERROR: invalid console appender config detected, console stream is looping). Moving the Log4J jar into my ear then gave me the following: 16:04:29,676 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" var So I: 2. Created a Servlet that creates an instance my Log4jRepositorySelector. 3. Created Log4jRepositorySelector. see http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector for details. php...@li... wrote: Hi Jost, Thanks for your reply. Regarding my loss of logging and the my console freezing - I am using Tomcat within Jboss. I have tried adding the log4j.jar to the classpath in my Jboss startup script - this didn't solve the problem. I have also extended the PhpJavaServlet and set the logger to FileLogger (I assume the default is the Chainsaw?) and modified the php.ini to use various combinations (although I am not sure if this matters for my configuration) and these didn't sort my problem out either. I can, however, make calls to my EJB3 stateless session bean using the bridge - I just loose all logging which isn't desirable...I have done this by deploying my EAR with a WAR that only has the JavaBridge.jar and the php-servlet.jar from the original WAR (although I have used the original and get the same problem). As far as my problem with the connection abort error (see below) - this may well have something to do with Jboss not starting properly but this only happens when I use the bridge, is it possible that I have a port conflict? php...@li... wrote: Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. Regards, Jost Boekemeier --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing.------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users Send instant messages to your online friends http://uk.messenger.yahoo.com |