Mark
I am using log4j-1.2.9.jar.
The exact error message as diplayed in server console:
****************************************************************************
*******************************************
INFO: WEB0100: Loading web module [servlet2] in virtual server [server1] at
[/servlet2]
INFO: WEB0121: Enabling no persistence for web module [/servlet2]'s
sessions: persistence-type = [memory]
WARNING: CORE3283: stderr: log4j:ERROR Could not find name
[jms/ConnFactory].
WARNING: CORE3283: stderr: log4j:ERROR Error while activating options for
appender named [JMSAppender].
WARNING: CORE3283: stderr: javax.naming.NameNotFoundException [Root
exception is  org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
WARNING: CORE3283: stderr:      at
com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
WARNING: CORE3283: stderr:      at
com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
WARNING: CORE3283: stderr:      at
com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
WARNING: CORE3283: stderr:      at
com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
WARNING: CORE3283: stderr:      at
javax.naming.InitialContext.lookup(InitialContext.java:347)
WARNING: CORE3283: stderr:      at
org.apache.log4j.net.JMSAppender.lookup(Unknown Source)
WARNING: CORE3283: stderr:      at
org.apache.log4j.net.JMSAppender.activateOptions(Unknown Source)
WARNING: CORE3283: stderr:      at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
WARNING: CORE3283: stderr:      at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123
)
WARNING: CORE3283: stderr:      at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
WARNING: CORE3283: stderr:      at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.jav
a:645)
WARNING: CORE3283: stderr:      at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.jav
a:603)
WARNING: CORE3283: stderr:      at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigur
ator.java:500)
WARNING: CORE3283: stderr:      at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
406)
WARNING: CORE3283: stderr:      at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
307)
WARNING: CORE3283: stderr:      at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:31
5)
WARNING: CORE3283: stderr:      at
com.mot.gama.siepoc.web.Servlet2.init(Servlet2.java:29)
WARNING: CORE3283: stderr:      at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
1)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3410)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3656)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
WARNING: CORE3283: stderr:      at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345)
WARNING: CORE3283: stderr:      at
org.apache.catalina.startup.Embedded.start(Embedded.java:957)
WARNING: CORE3283: stderr:      at
com.iplanet.ias.web.WebContainer.start(WebContainer.java:666)
WARNING: CORE3283: stderr:      at
com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:755)
WARNING: CORE3283: stderr:      at
com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
WARNING: CORE3283: stderr: Caused by:
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
WARNING: CORE3283: stderr:      at
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.ja
va:72)
WARNING: CORE3283: stderr:      at
org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:4
06)
WARNING: CORE3283: stderr:      at
com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
WARNING: CORE3283: stderr:      ... 28 more
INFO: CORE3282: stdout: log4j system initialized
****************************************************************************
*****************************************
I am giving you server.xml as well

****************************************************************************
*****************************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server PUBLIC "-//Sun Microsystems Inc.//DTD Sun ONE Application
Server 7.0//EN" "file:///C:/Sun/AppServer7/lib/dtds/sun-server_1_1.dtd">
<!--
   Copyright (c) 2002 Sun Microsystems, Inc.  All rights reserved.
   Use is subject to license terms.
-->
<!-- server_7_0_dtd version: 1.1.2.39 -->
<server locale="en_US" name="server1"
log-root="C:/Sun/AppServer7/domains/domain1/server1/logs"
application-root="C:/Sun/AppServer7/domains/domain1/server1/applications"
session-store="C:/Sun/AppServer7/domains/domain1/server1/session-store">
  <http-service qos-enabled="false" qos-metrics-interval-in-seconds="30"
qos-recompute-time-interval-in-millis="100">
    <http-listener id="http-listener-1" address="0.0.0.0" port="81"
acceptor-threads="1" blocking-enabled="false" security-enabled="false"
default-virtual-server="server1" server-name="rac3ser10" enabled="true"/>
    <mime id="mime1" file="mime.types"/>
    <acl id="acl1"
file="C:/Sun/AppServer7/domains/domain1/server1/config/generated.server1.acl
"/>
    <virtual-server-class id="defaultclass" config-file="obj.conf"
default-object="default" accept-language="false" enabled="true">
      <virtual-server id="server1" config-file="server1-obj.conf"
http-listeners="http-listener-1" hosts="rac3ser10" mime="mime1" state="on"
accept-language="false">
        <auth-db id="default" database="default"/>
        <property name="dir" value=""/>
        <property name="nice" value=""/>
        <property name="user" value=""/>
        <property name="group" value=""/>
        <property name="chroot" value=""/>
        <property name="docroot"
value="C:/Sun/AppServer7/domains/domain1/server1/docroot"/>
        <property name="accesslog"
value="C:/Sun/AppServer7/domains/domain1/server1/logs/access"/>
      </virtual-server>
    </virtual-server-class>
    <http-qos enforce-bandwidth-limit="false"
enforce-connection-limit="false"/>
  </http-service>
  <iiop-service>
    <orb message-fragment-size="1024" steady-thread-pool-size="40"
max-thread-pool-size="70" idle-thread-timeout-in-seconds="300"
max-connections="1024" monitoring-enabled="false"/>
    <iiop-listener id="orb-listener-1" address="10.5.2.226" port="3700"
enabled="true">
  </iiop-listener>
  </iiop-service>
  <web-container monitoring-enabled="false">
 </web-container>
  <ejb-container steady-pool-size="32" pool-resize-quantity="16"
max-pool-size="64" cache-resize-quantity="32" max-cache-size="512"
pool-idle-timeout-in-seconds="600" cache-idle-timeout-in-seconds="600"
removal-timeout-in-seconds="5400" victim-selection-policy="nru"
commit-option="B" monitoring-enabled="false">
 </ejb-container>
  <mdb-container steady-pool-size="32" pool-resize-quantity="16"
max-pool-size="1024" idle-timeout-in-seconds="600"
monitoring-enabled="false">
 </mdb-container>
  <jms-service port="7676" admin-user-name="admin" admin-password="admin"
init-timeout-in-seconds="30" enabled="true">
 </jms-service>
  <log-service
file="C:/Sun/AppServer7/domains/domain1/server1/logs/server.log"
level="INFO" log-stdout="true" log-stderr="true"
echo-log-messages-to-stderr="true" create-console="true"
log-virtual-server-id="false" use-system-logging="false">
 </log-service>
  <security-service default-realm="file" anonymous-role="ANYONE"
audit-enabled="false">
    <auth-realm name="file"
classname="com.iplanet.ias.security.auth.realm.file.FileRealm">
      <property name="file"
value="C:/Sun/AppServer7/domains/domain1/server1/config/keyfile"/>
      <property name="jaas-context" value="fileRealm"/>
    </auth-realm>
    <auth-realm name="ldap"
classname="com.iplanet.ias.security.auth.realm.ldap.LDAPRealm">
      <property name="directory" value="ldap://localhost:389"/>
      <property name="base-dn" value="o=isp"/>
      <property name="jaas-context" value="ldapRealm"/>
    </auth-realm>
    <auth-realm name="certificate"
classname="com.iplanet.ias.security.auth.realm.certificate.CertificateRealm"
>
  </auth-realm>
    <!--
  <auth-realm name="solaris"
classname="com.iplanet.ias.security.auth.realm.solaris.SolarisRealm">
   <property name="jaas-context" value="solarisRealm"/>
  </auth-realm>
  -->
  </security-service>
  <transaction-service automatic-recovery="false" timeout-in-seconds="0"
tx-log-dir="C:/Sun/AppServer7/domains/domain1/server1/logs"
heuristic-decision="rollback" keypoint-interval="2048"
monitoring-enabled="false">
 </transaction-service>
  <java-config java-home="C:/Sun/AppServer7/jdk"
server-classpath="c:/Sun/AppServer7/domains/domain1/server1/config;C:/Sun/Ap
pServer7/lib/appserv-rt.jar;${java.home}/lib/tools.jar;C:/Sun/AppServer7/lib
/appserv-ext.jar;C:/Sun/AppServer7/lib/appserv-cmp.jar;C:\Sun\AppServer7\sha
re\lib/mail.jar;C:/Sun/AppServer7/lib/appserv-ideplugin.jar;C:\Sun\AppServer
7\imq\lib/imq.jar;C:\Sun\AppServer7\imq\lib/jaxm-api.jar;C:\Sun\AppServer7\i
mq\lib/imqadmin.jar;C:\Sun\AppServer7\imq\lib/imqutil.jar;C:/Sun/AppServer7/
lib/appserv-admin.jar;C:\Sun\AppServer7\share\lib/jaxrpc-impl.jar;C:\Sun\App
Server7\share\lib/jaxrpc-api.jar;C:\Sun\AppServer7\share\lib/jaxr-impl.jar;C
:\Sun\AppServer7\share\lib/jaxr-api.jar;C:\Sun\AppServer7\share\lib/activati
on.jar;C:\Sun\AppServer7\share\lib/saaj-api.jar;C:\Sun\AppServer7\share\lib/
saaj-impl.jar;C:\Sun\AppServer7\share\lib/commons-logging.jar;C:\Sun\AppServ
er7\imq\lib/fscontext.jar;C:\Sun\AppServer7\imq\lib/providerutil.jar;C:/Sun/
AppServer7/lib/appserv-jstl.jar;c:/Sun/AppServer7/domains/domain1/server1/li
b/log4j-1.2.9.jar"
classpath-suffix="C:/Sun/AppServer7/pointbase/client_tools/lib/pbclient42RE.
jar" env-classpath-ignored="true"
debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n"
debug-enabled="false" javac-options="-g"
rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g">
    <jvm-options>-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
</jvm-options>

<jvm-options>-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
</jvm-options>

<jvm-options>-Djava.security.policy=C:/Sun/AppServer7/domains/domain1/server
1/config/server.policy</jvm-options>

<jvm-options>-Djava.security.auth.login.config=C:/Sun/AppServer7/domains/dom
ain1/server1/config/login.conf</jvm-options>

<jvm-options>-Dcom.sun.jdo.api.persistence.model.multipleClassLoaders=reload
</jvm-options>

<jvm-options>-Djava.util.logging.manager=com.iplanet.ias.server.logging.Serv
erLogManager</jvm-options>

<jvm-options>-Dcom.sun.aas.configRoot=C:/Sun/AppServer7\config</jvm-options>

<jvm-options>-Dcom.sun.aas.imqLib=C:\Sun\AppServer7\imq\lib</jvm-options>

<jvm-options>-Dcom.sun.aas.imqBin=C:\Sun\AppServer7\imq\bin</jvm-options>

<jvm-options>-Dcom.sun.aas.webServicesLib=C:\Sun\AppServer7\share\lib</jvm-o
ptions>
    <jvm-options> -server -Xss128k </jvm-options>
    <jvm-options> -Xms256m -Xmx256m </jvm-options>
    <jvm-options>-XX:+AggressiveHeap</jvm-options>
    <jvm-options>-XX:+DisableExplicitGC</jvm-options>

<jvm-options>-Djavax.rmi.CORBA.UtilClass=com.iplanet.ias.util.orbutil.IasUti
lDelegate</jvm-options>
    <jvm-options> -classpath
%classpath%;c:\Sun\AppServer7\domains\domain1\server1\config</jvm-options>
  </java-config>
  <resources>
    <jms-resource enabled="true" jndi-name="jms/MyConnectionFactory"
res-type="javax.jms.QueueConnectionFactory">
      <property value="10.5.2.226" name="imqBrokerHostName"/>
      <property value="7676" name="imqBrokerHostPort"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/DiameterRequestQueue"
res-type="javax.jms.Queue">
      <property value="PhysicalQueue" name="imqDestinationName"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/BillingRequestQueue"
res-type="javax.jms.Queue">
      <property value="PhysicalQueue1" name="imqDestinationName"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/ResponseQueue"
res-type="javax.jms.Queue">
      <property value="PhysicalQueue2" name="imqDestinationName"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/DiameterResponseQueue"
res-type="javax.jms.Queue">
      <property value="PhysicalQueue3" name="imqDestinationName"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/ConnFactory"
res-type="javax.jms.TopicConnectionFactory">
      <property value="10.5.2.226" name="imqBrokerHostName"/>
      <property value="7676" name="imqBrokerHostPort"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/TestTopic"
res-type="javax.jms.Topic">
      <property value="PhysicalTopic" name="imqDestinationName"/>
    </jms-resource>
    <jms-resource enabled="true" jndi-name="jms/TestQueue"
res-type="javax.jms.Queue">
      <property value="PhysicalQueue41" name="imqDestinationName"/>
    </jms-resource>
  </resources>
  <applications dynamic-reload-enabled="false"
dynamic-reload-poll-interval-in-seconds="2">
    <ejb-module enabled="true"
location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-module
s\responsebean_1" name="responsebean"/>
    <ejb-module enabled="true"
location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-module
s\ppsbean_1" name="ppsbean"/>
    <ejb-module enabled="true"
location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-module
s\RequestProcessor_1" name="RequestProcessor"/>
    <ejb-module enabled="true"
location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-module
s\loggerbean_1" name="loggerbean"/>
    <ejb-module enabled="true"
location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-module
s\lookup_1" name="lookup"/>
    <web-module enabled="true"
location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-module
s\servlet2_1" name="servlet2" context-root="servlet2"
virtual-servers="server1"/>
  </applications>
</server>
****************************************************************************
************************************************

Thanks in advance
Subhendu


----- Original Message ----- 
From: "Mark van der Voort" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[email protected]>
Sent: Friday, March 18, 2005 4:13 PM
Subject: Re: JMSAppender


> Subhendu,
>
> What version of Log4J are you using, and what is the exact error message?
>
> Mark
>
>
> On Wed, 16 Mar 2005 21:06:24 +0530, subhendu mahanta
> <[EMAIL PROTECTED]> wrote:
> >
> > We are working with Sun Application Server 2004Q2. and want to use
JMSAppender
> > I have used a properties file logger.properties like this:
> >
############################################################################
> > log4j.rootCategory=, JMSAppender
> >
> > log4j.appender.JMSAppender=org.apache.log4j.net.JMSAppender
> >
> >
log4j.appender.JMSAppender.InitialContextFactoryName=com.sun.jndi.cosnaming.
CNCtxFactory
> >
> > log4j.appender.JMSAppender.ProviderURL=iiop://10.5.2.226:3700
> >
> >
log4j.appender.JMSAppender.TopicConnectionFactoryBindingName=jms/ConnFactory
> >
> > log4j.appender.JMSAppender.TopicBindingName=jms/TestTopic
> >
> > #log4j.appender.JMSAppender.UserName=system
> >
> > #log4j.appender.JMSAppender.password=security
> >
> > log4j.appender.JMSAppender.layout=org.apache.log4j.PatternLayout
> >
> > log4j.appender.JMSAppender.layout.ConversionPattern=(%C:%M:%L) - %m%n
> >
> >
############################################################################
##
> >
> > I have used PropertyConfigurator.configure("logger.properties") inside
the init method of a servlet iside a war file deployed in the server.There
are some MDBs which will use this.
> >
> > However this does not work as the JMSAppender cannot look-up the
connection factory though that connection-factory does exist in the server.I
have tried this also without success:
> >
> >
log4j.appender.JMSAppender.TopicConnectionFactoryBindingName=java:comp/env/j
ms/ConnFactory
> >
> > Let me clarify this does work with RollingFileAppender if I make
necessary changes in the properties file.
> >
> > Thanks in advance
> >
> > Subhendu
> >
> > If you can give me some suggestion I will very much appreciate that.
> >
> > Regards
> >
> > Subhendu
> >
> > *********************************************************
> > Disclaimer:
> >
> > The contents of this E-mail (including the contents of the enclosure(s)
or attachment(s) if any) are privileged and confidential material of MBT and
should not be disclosed to, used by or copied in any manner by anyone other
than the intended addressee(s).   In case you are not the desired addressee,
you should delete this message and/or re-direct it to the sender.  The views
expressed in this E-mail message (including the enclosure(s) or
attachment(s) if any) are those of the individual sender, except where the
sender expressly, and with authority, states them to be the views of MBT.
> >
> > This e-mail message including attachment/(s), if any, is believed to be
free of any virus.  However, it is the responsibility of the recipient to
ensure that it is virus free and MBT is not responsible for any loss or
damage arising in any way from its use
> >
> > *********************************************************
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


*********************************************************
Disclaimer:

The contents of this E-mail (including the contents of the enclosure(s) or 
attachment(s) if any) are privileged and confidential material of MBT and 
should not be disclosed to, used by or copied in any manner by anyone other 
than the intended addressee(s).   In case you are not the desired addressee, 
you should delete this message and/or re-direct it to the sender.  The views 
expressed in this E-mail message (including the enclosure(s) or attachment(s) 
if any) are those of the individual sender, except where the sender expressly, 
and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of 
any virus.  However, it is the responsibility of the recipient to ensure that 
it is virus free and MBT is not responsible for any loss or damage arising in 
any way from its use

*********************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to