From: <php...@li...> - 2006-10-17 16:18:43
|
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. |