Hi Age

I put a file log4j.properties into WEB-INF/classes directory.

The file has the content:

# logs log4j message to console output when starting tomcat ...
# log4j.debug = true

log4j.category.org.apache.stratum.component.ComponentLoader = ALL,
org.apache.stratum.component.ComponentLoader
log4j.appender.org.apache.stratum.component.ComponentLoader =
org.apache.log4j.FileAppender
log4j.appender.org.apache.stratum.component.ComponentLoader.file =
/jakarta-tomcat-4.0/webapps/teben/logs/component.log
log4j.appender.org.apache.stratum.component.ComponentLoader.layout =
org.apache.log4j.PatternLayout
log4j.appender.org.apache.stratum.component.ComponentLoader.layout.conversio
nPattern = %d [%t] %-5p %c - %m%n
log4j.appender.org.apache.stratum.component.ComponentLoader.append = false

log4j.category.org.apache.torque = ALL, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file =
/jakarta-tomcat-4.0/webapps/teben/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c
- %m%n
log4j.appender.org.apache.torque.append = false

log4j.category.org.apache.fulcrum = ALL, org.apache.fulcrum
log4j.appender.org.apache.fulcrum = org.apache.log4j.FileAppender
log4j.appender.org.apache.fulcrum.file =
/jakarta-tomcat-4.0/webapps/teben/logs/fulcrum.log
log4j.appender.org.apache.fulcrum.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.fulcrum.layout.conversionPattern = %d [%t] %-5p %c
- %m%n
log4j.appender.org.apache.fulcrum.append = false

but as stated before: I get now some messages but no running fulcrum :-(

Uwe


-----Urspr�ngliche Nachricht-----
Von: Age Mooy [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Mai 2002 16:11
An: Turbine Users List
Betreff: RE: using the decoupled fulcrum services ?




> thanks for your answer.
> After some complications I got Fulcrum (and all the other components)
> to log using log4j.properties file. Setting up log4j in the TR.prop file
> does�nt work.

Can you describe how you did this ? I still haven't been able to get
Torque to log to a file (or to anything else) and I haven't even tried
Fulcrum yet.

But in general, I would be very interested in using the Fulcrum
services in my turbine 2.2 app too.

Age



> But the problem is still the same. Calling the localization service
> fulcrum complains that it does not know such a service.
> In the fulcrum log I can see that a Mapping for the service is generated:
>
> 2002-05-28 15:07:07,422 [HttpProcessor[8080][4]] INFO
> org.apache.fulcrum.Fulcrum - Added Mapping for Service:
> LocalizationService
>
> ... but there is no initialization like for the turbine-services. So I
> think the services are only registered and not initialized.
> Any ideas how that could be done ??
>
> Uwe
>
> -----Urspr�ngliche Nachricht-----
> Von: Selders, Bart [mailto:[EMAIL PROTECTED]]
> Gesendet: Sonntag, 26. Mai 2002 22:49
> An: 'Turbine Users List '
> Betreff: RE: using the decoupled fulcrum services ?
>
>
> Uwe,
>
> In order to get Fulcrum to log I had to do one of the following:
>
> - Either create a log4j.properties file and put it in WEB-INF/classes
>   See log4j website for details on what to specify.
>
> - Or alternatively (and easier for T2.2 users) log everything in one log
> file
>   To do that I use the following log settings in TR.properties:
>
>    services.LoggingService.facilities=system,debug,security,logforj
>    services.LoggingService.default=logforj
>    services.LoggingService.loggingConfig=
> org.apache.turbine.services.logging.PropertiesLoggingConfig
>
>    services.LoggingService.logforj.log4j.rootCategory = ALL, logforj
>    services.LoggingService.logforj.log4j.category.logforj = ALL, logforj
>    services.LoggingService.logforj.log4j.appender.logforj.file
> =${webappRoot}/logs/turbine.log
>    services.LoggingService.logforj.log4j.appender.logforj =
> org.apache.log4j.FileAppender
>    services.LoggingService.logforj.log4j.appender.logforj.layout =
> org.apache.log4j.PatternLayout
>
> services.LoggingService.logforj.log4j.appender.logforj.layout.conv
> ersionPatt
> ern = [%d{ABSOLUTE} %-5p] %m%n
>    services.LoggingService.logforj.log4j.appender.logforj.append = false
>
> services.LoggingService.logforj.className=org.apache.turbine.servi
> ces.loggin
> g.Log4JavaLogger
>    services.LoggingService.logforj.level=ALL
>
> Set the level to one of: ALL, DEBUG, INFO dependent on your need.
>
> Success.
>
> Bart
>
> -----Original Message-----
> From: Schmidt, Uwe
> To: Turbine Users List
> Sent: 5/26/02 6:38 PM
> Subject: using the decoupled fulcrum services ?
>
> Hi
>
> I have recently switched to turbine 2.2b1. To complete this I try to
> switch
> from the integrated turbine services to the decoupled fulcrum services.
> As a first aproach I simply tried to replace the Localization-Service.
> It seems that the fulcrum services are not initialized at all.
> How can I use them. It seems that I have missed something.
>
> This is the error message I get in the log file:
>
> Error rendering Velocity template: screens/Index.vm: Invocation of
> method
> 'setLanguage' in  class de.gea.wiegand.teben.tools.Session threw
> exception
> class org.apache.fulcrum.InstantiationException : ServiceBroker: Unknown
> Service 'LocalizationService' requested
>
> [Fri May 24 18:19:38 CEST 2002] -- ERROR -- Error rendering Velocity
> template: screens/Index.vm: Error rendering Velocity template:
> screens/Index.vm: Invocation of method 'setLanguage' in  class
> de.gea.wiegand.teben.tools.Session threw exception class
> org.apache.fulcrum.InstantiationException : ServiceBroker: Unknown
> Service
> 'LocalizationService' requested
>
> The localization is activated in the fulcrum.properties file, but there
> are no fulcrum messages in the log file at all ....
> (I�ve already tried several combinations of the path to
> fulcrum.properties
> ;-(  )
>
> Any ideas ?
>
> thanks
>
> Uwe
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> *************************************************************************
> The information contained in this communication is confidential and is
> intended solely for the use of the individual or entity to  whom it is
> addressed.You should not copy, disclose or distribute this communication
> without the authority of iBanx bv. iBanx bv is neither liable for
> the proper and complete transmission of the information has been
> maintained
> nor that the communication is free of viruses, interceptions or
> interference.
>
> If you are not the intended recipient of this communication please return
> the communication to the sender and delete and destroy all copies.
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


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

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

Reply via email to