I am trying to get the JMSAppender in jboss-log4j.xml in JBoss 4.2.3 GA.
I modify the root jboss-log4j.xml and enable JMSAppender as follows:
I add my category as:
When I start the jboss app server, I see the following error:
22:36:50,733 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
log4j error: Error while activating options for appender named [JMS].
javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
Looks like the topic is not ready yet(Which I create on the appserver using a service.xml in deploy/jms directory.
How do I get past this error?