Got it working. Did not realize that the server log was going to go to the
same port as the J2EE component was sending to.

A cut and paste problem !!

 

 

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 6:25 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Starting SimpleSocketServer ..

 

Can you ping thru to the hosting server?
then try Tracert and record any losses.
I suspect there is a proxy server or firewall between the client and  the
server

Keep us apprised,

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official
business of Laconia Data Systems (LDS) is proprietary to the company. It is
confidential, legally privileged and protected by law. LDS does not own and
endorse any other content. Views and opinions are those of the sender unless
clearly stated as being that of LDS. 

The person addressed in the e-mail is the sole authorised recipient. Please
notify the sender immediately if it has unintentionally reached you and do
not read, disclose or use the content in any way.

LDS can not assure that the integrity of this communication has been
maintained nor that it is free of errors, virus, interception or
interference.

             _____________GMT-5___________________

 

>From: Madhav Inamti 

>Reply-To: "Log4J Users List" 

>To: "'Log4j-User ([EMAIL PROTECTED])" 

>Subject: Starting SimpleSocketServer .. 

>Date: Wed, 15 Jan 2003 14:43:18 -0800 

>MIME-Version: 1.0 

>Received: from exchange.sun.com ([192.18.33.10]) by
mc9-f24.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 15 Jan
2003 14:43:58 -0800 

>Received: (qmail 3212 invoked by uid 97); 15 Jan 2003 22:45:11 -0000 

>Received: (qmail 3200 invoked by uid 98); 15 Jan 2003 22:45:10 -0000 

>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 

>Precedence: bulk 

>List-Unsubscribe: 

>List-Subscribe: 

>List-Help: 

>List-Post: 

>List-Id: "Log4J Users List" 

>Delivered-To: mailing list [EMAIL PROTECTED] 

>X-Antivirus: nagoya (v4218 created Aug 14 2002) 

>Message-ID:
<[EMAIL PROTECTED]> 

>X-Mailer: Internet Mail Service (5.5.2653.19) 

>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 

>Return-Path: [EMAIL PROTECTED] 

>X-OriginalArrivalTime: 15 Jan 2003 22:43:58.0867 (UTC)
FILETIME=[97B7D630:01C2BCE7] 

> 

>I want to have a J2EE component log to a socket appender and have a socket 

>server listen to these messages and either log them to a file or display it


>on a GUI console. 

> 

> 

> 

>I plan to use the SimpleSocketServer for this. I seem to get this error 

>however when I start the SimpleSocketServer. 

> 

> 

> 

>Any idea what what's wrong here ? 

> 

> 

> 

>Thanks, 

> 

> 

>Madhav 

> 

> 

> 

>This is what I have in my properties file 

> 

> 

> 

>log4j.rootCategory=DEBUG,SOCKETSERV 

> 

>log4j.category.org.apache.log4j.net=DEBUG 

> 

>log4j.appender.SOCKETSERV=org.apache.log4j.net.SocketAppender 

> 

>log4j.appender.SOCKETSERV.RemoteHost=localhost 

> 

>log4j.appender.SOCKETSERV.Port=9029 

> 

> 

> 

> 

> 

> 

> 

>log4j:ERROR Could not connect to remote log4j server at [localhost]. We
will 

>try 

> 

> again later. 

> 

>java.net.ConnectException: Connection refused: connect 

> 

> at java.net.PlainSocketImpl.socketConnect(Native Method) 

> 

> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) 

> 

> at 

>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) 

> 

> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) 

> 

> at java.net.Socket.(Socket.java:273) 

> 

> at java.net.Socket.(Socket.java:127) 

> 

> at 

>org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:195) 

> 

> at 

>org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.ja 

> 

>va:152) 

> 

> at 

>org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:2 

> 

>47) 

> 

> at 

>org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j 

> 

>ava:123) 

> 

> at 

>org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j 

> 

>ava:87) 

> 

> at 

>org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigura 

> 

>tor.java:645) 

> 

> at 

>org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigura 

> 

>tor.java:603) 

> 

> at 

>org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyC 

> 

>onfigurator.java:500) 

> 

> at 

>org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato 

> 

>r.java:406) 

> 

> at 

>org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato 

> 

>r.java:307) 

> 

> at 

>org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator. 

> 

>java:315) 

> 

> at 

>org.apache.log4j.net.SimpleSocketServer.init(SimpleSocketServer.java: 

> 

>84) 

> 

> at 

>org.apache.log4j.net.SimpleSocketServer.main(SimpleSocketServer.java: 

> 

>44) 

> 




  _____  

MSN 8: advanced junk mail protection and 2 months FREE*
<http://g.msn.com/8HMBEN/2017>  

Reply via email to