logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud CHAZOULE" <arnaud.chazo...@fisystem.com>
Subject Initialize Log4J from an EJBSession ?
Date Wed, 13 Feb 2002 09:10:40 GMT
Hello,

I just want to know how i can initialize Log4j from an EJBSession ?

I tried to initialized Log4J in an EJBSession bean in the EJBCreate()
method.

********************* Part of my EJBSession code ***********************
static Category cat;

public void ejbCreate() throws javax.ejb.CreateException,
java.rmi.RemoteException {

PropertyConfigurator.configure("C:\\Program Files\\IBM\\VisualAge for
Java\\ide\\project_resources\\Jalonnement\\log4j.lcf");	

cat = Category.getInstance("Jalonnement");

}

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

When I called a methode like list() of my EJBSession from a servlet
Initialized correctly to Log4j) , I have this error :


*************************** Output of my console ***********************

java.rmi.MarshalException: CORBA COMM_FAILURE 3 No; nested exception is:

	org.omg.CORBA.COMM_FAILURE:   minor code: 3  completed: No
org.omg.CORBA.COMM_FAILURE:   minor code: 3  completed: No
	java.lang.Throwable(java.lang.String)
	java.lang.Exception(java.lang.String)
	java.lang.RuntimeException(java.lang.String)
	org.omg.CORBA.SystemException(java.lang.String, int,
org.omg.CORBA.CompletionStatus)
	org.omg.CORBA.COMM_FAILURE(java.lang.String, int,
org.omg.CORBA.CompletionStatus)
	org.omg.CORBA.COMM_FAILURE(int, org.omg.CORBA.CompletionStatus)
	com.ibm.rmi.iiop.IIOPInputStream
com.ibm.CORBA.iiop.HTTPConnection.send(com.ibm.rmi.iiop.IIOPOutputStream
, boolean)
	com.ibm.rmi.iiop.IIOPInputStream
com.ibm.CORBA.iiop.ClientRequestImpl.invoke(boolean,
com.ibm.rmi.corba.ClientDelegate, org.omg.CORBA.Object)
	com.ibm.rmi.iiop.IIOPInputStream
com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(com.ibm.rmi.IOR, int [],
com.ibm.rmi.corba.ClientDelegate, org.omg.CORBA.Object)
	com.ibm.rmi.ClientResponse
com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(com.ibm.rmi.IOR [],
com.ibm.rmi.corba.ClientDelegate, org.omg.CORBA.Object)
	com.ibm.rmi.ClientResponse
com.ibm.CORBA.iiop.ClientDelegate.invoke(com.ibm.rmi.ClientRequest)
	org.omg.CORBA.portable.InputStream
com.ibm.CORBA.iiop.ClientDelegate.invoke(org.omg.CORBA.Object,
org.omg.CORBA.portable.OutputStream)
	org.omg.CORBA.portable.InputStream
org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputS
tream)
	mpsa.appli1.ejb.PsaAppli1
mpsa.appli1.ejb._PsaAppli1Home_BaseStub.create()
	mpsa.appli1.ejb.PsaAppli1
mpsa.appli1.ejb._PsaAppli1Home_Stub.create()
	mpsa.jalon.bm.ECT []
mpsa.jalon.pm.ECTPM.listerECT(mpsa.jalon.bm.FiltreECT)
	void
mpsa.jalon.servlet.ConsultationAVIEXP.redirection(javax.servlet.http.Htt
pServletRequest, javax.servlet.http.HttpServletResponse,
mpsa.jalon.bm.FiltreECT, int)
	void
mpsa.jalon.servlet.ConsultationAVIEXP.doGet(javax.servlet.http.HttpServl
etRequest, javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletReq
uest, javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.e
ngine.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servl
et.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.Serv
letRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
	void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ib
m.servlet.engine.webapp.ServletInstanceReference,
javax.servlet.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
	void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.se
rvlet.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
	void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(com.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean)
	void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.ser
vlet.ServletRequest, javax.servlet.ServletResponse, boolean)
	void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.
Object)
	void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java
.lang.Object)
	void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.la
ng.String, com.ibm.servlet.engine.srp.ISRPConnection)
	void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm
.servlet.engine.oselistener.api.IOSEConnection)
	void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnect
ion(java.net.Socket)
	void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
	void java.lang.Thread.run()

3030853 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2.2
3030853 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2.3
3030853 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2.4
3030853 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2.5
3030863 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 3
3635711 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 0
3635721 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1
3635721 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.1
3635721 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.2
3635731 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.3
3635731 DEBUG [Server Thread]                           Jalonnement
- INDICE DE DEBUT = 1
3635731 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.4
3635751 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.5
3635751 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.6
3635751 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.7
3635761 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.8
3635761 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 1.9
3635761 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2
3635761 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2.0
3635771 DEBUG [Server Thread]                           Jalonnement
- Indice Fin : 10
3635771 DEBUG [Server Thread]                           Jalonnement
- jusqu'ici tout va bien 2.1
3635771 DEBUG [Server Thread]                           Jalonnement
- Chargement des ECT
3635781 DEBUG [Server Thread]                           Jalonnement
- ici ECTPM 1
3635781 DEBUG [Server Thread]                           Jalonnement
- ici ECTPM 2.1 tentative obtention Conn
3635781 DEBUG [Server Thread]                           Jalonnement
- ici ECTPM 2
3635781 DEBUG [Server Thread]                           Jalonnement
- ici ECTPM 3
3635841 DEBUG [Server Thread]                           Jalonnement
- récup de home 
3635841 DEBUG [Server Thread]                           Jalonnement
- home récupéré et avant home.create()
java.rmi.MarshalException: CORBA COMM_FAILURE 3 No; nested exception is:

	org.omg.CORBA.COMM_FAILURE:   minor code: 3  completed: No
org.omg.CORBA.COMM_FAILURE:   minor code: 3  completed: No
	java.lang.Throwable(java.lang.String)
	java.lang.Exception(java.lang.String)
	java.lang.RuntimeException(java.lang.String)
	org.omg.CORBA.SystemException(java.lang.String, int,
org.omg.CORBA.CompletionStatus)
	org.omg.CORBA.COMM_FAILURE(java.lang.String, int,
org.omg.CORBA.CompletionStatus)
	org.omg.CORBA.COMM_FAILURE(int, org.omg.CORBA.CompletionStatus)
	com.ibm.rmi.iiop.IIOPInputStream
com.ibm.CORBA.iiop.HTTPConnection.send(com.ibm.rmi.iiop.IIOPOutputStream
, boolean)
	com.ibm.rmi.iiop.IIOPInputStream
com.ibm.CORBA.iiop.ClientRequestImpl.invoke(boolean,
com.ibm.rmi.corba.ClientDelegate, org.omg.CORBA.Object)
	com.ibm.rmi.iiop.IIOPInputStream
com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(com.ibm.rmi.IOR, int [],
com.ibm.rmi.corba.ClientDelegate, org.omg.CORBA.Object)
	com.ibm.rmi.ClientResponse
com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(com.ibm.rmi.IOR [],
com.ibm.rmi.corba.ClientDelegate, org.omg.CORBA.Object)
	com.ibm.rmi.ClientResponse
com.ibm.CORBA.iiop.ClientDelegate.invoke(com.ibm.rmi.ClientRequest)
	org.omg.CORBA.portable.InputStream
com.ibm.CORBA.iiop.ClientDelegate.invoke(org.omg.CORBA.Object,
org.omg.CORBA.portable.OutputStream)
	org.omg.CORBA.portable.InputStream
org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputS
tream)
	mpsa.appli1.ejb.PsaAppli1
mpsa.appli1.ejb._PsaAppli1Home_BaseStub.create()
	mpsa.appli1.ejb.PsaAppli1
mpsa.appli1.ejb._PsaAppli1Home_Stub.create()
	mpsa.jalon.bm.ECT []
mpsa.jalon.pm.ECTPM.listerECT(mpsa.jalon.bm.FiltreECT)
	void
mpsa.jalon.servlet.ConsultationAVIEXP.redirection(javax.servlet.http.Htt
pServletRequest, javax.servlet.http.HttpServletResponse,
mpsa.jalon.bm.FiltreECT, int)
	void
mpsa.jalon.servlet.ConsultationAVIEXP.doGet(javax.servlet.http.HttpServl
etRequest, javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletReq
uest, javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.e
ngine.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servl
et.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.Serv
letRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
	void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ib
m.servlet.engine.webapp.ServletInstanceReference,
javax.servlet.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
	void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.se
rvlet.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
	void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(com.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean)
	void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.ser
vlet.ServletRequest, javax.servlet.ServletResponse, boolean)
	void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
	void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.
Object)
	void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java
.lang.Object)
	void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.la
ng.String, com.ibm.servlet.engine.srp.ISRPConnection)
	void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm
.servlet.engine.oselistener.api.IOSEConnection)
	void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnect
ion(java.net.Socket)
	void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
	void java.lang.Thread.run()

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message