After learning a lot about commons logging and log4j, I managed to get some more info, although I am afraid that I fail to detect the problem myself (see output below). To make the more verbose logging happen, I basically put a file called commons-logging.properties into my classpath that looked like this:

        #
        # commons-logging config
        #
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Lo gFactoryImpl org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogg er

and then I had log4j.properties linked to from tr.properties and it contained this:

        log4j.rootLogger=ALL, stdout
        log4j.logger.org.grajagan.playground=DEBUG

        log4j.appender.stdout=org.apache.log4j.ConsoleAppender
        log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

        # Pattern to output the caller's file name and line number.
        log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

running my test app then produced the output below.

Again, thanks for any insights from anyone!!
h.

DEBUG [main] (TestTurbineInit.java:15) - starting turbine
DEBUG [main] (TurbineConfig.java:269) - TurbineConfig.getRealPath: path '/' translated to '/home/helgew/work/webapps/test' found DEBUG [main] (ConfigurationUtils.java:247) - Configuration loaded from the absolute path /home/helgew/work/webapps/testWEB-INF/conf/ TurbineResources.properties DEBUG [main] (ConfigurationUtils.java:231) - Configuration loaded from the URL file:/home/helgew/work/webapps/testWEB-INF/conf/ test.properties INFO [main] (Turbine.java:379) - Configured log4j from /home/helgew/ work/webapps/testWEB-INF/conf/log4j.properties INFO [main] (Turbine.java:389) - Loaded configuration (Properties) from /WEB-INF/conf/TurbineResources.properties (/home/helgew/work/ webapps/testWEB-INF/conf/TurbineResources.properties) INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: CryptoService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: FactoryService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: PoolService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: RunDataService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: ServletService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: AssemblerBrokerService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: LocalizationService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: MimeTypeService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: GlobalCacheService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: SchedulerService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: XmlRpcService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: UniqueIdService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: UploadService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: SecurityService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: PullService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: TemplateService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: XSLTService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: VelocityService INFO [main] (BaseServiceBroker.java:256) - Added Mapping for Service: MetaDataService INFO [main] (BaseServiceBroker.java:400) - Start Initializing service (early): PullService INFO [main] (BaseServiceBroker.java:491) - Start Initializing service (late): PoolService INFO [main] (BaseServiceBroker.java:491) - Start Initializing service (late): FactoryService INFO [main] (BaseServiceBroker.java:493) - Finish Initializing service (late): FactoryService INFO [main] (BaseServiceBroker.java:493) - Finish Initializing service (late): PoolService INFO [main] (TurbinePullService.java:287) - Pull Model tools will be refreshed on a per request basis. INFO [main] (BaseServiceBroker.java:491) - Start Initializing service (late): VelocityService DEBUG [main] (TurbineVelocityService.java:593) - Translating / templates/app DEBUG [main] (TurbineVelocityService.java:624) - Result (normal fs reference): /home/helgew/work/webapps/testtemplates/app DEBUG [main] (TurbineVelocityService.java:627) - Adding file.resource.loader.path -> /home/helgew/work/webapps/testtemplates/app DEBUG [main] (SimpleLog4JLogSystem.java:178) - SimpleLog4JLogSystem using category 'velocity' INFO [main] (SimpleLog4JLogSystem.java:175) - ************************************************************** INFO [main] (SimpleLog4JLogSystem.java:175) - Starting Jakarta Velocity v1.3.1-rc2 INFO [main] (SimpleLog4JLogSystem.java:175) - RuntimeInstance initializing. INFO [main] (SimpleLog4JLogSystem.java:175) - Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties INFO [main] (SimpleLog4JLogSystem.java:175) - Trying to use logger class org.apache.velocity.runtime.log.SimpleLog4JLogSystem INFO [main] (SimpleLog4JLogSystem.java:175) - Using logger class org.apache.velocity.runtime.log.SimpleLog4JLogSystem INFO [main] (SimpleLog4JLogSystem.java:175) - Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) ERROR [main] (BaseServiceBroker.java:383) - org.apache.turbine.services.InitializationException: TurbinePullService failed to initialize INFO [main] (BaseServiceBroker.java:400) - Start Initializing service (early): VelocityService DEBUG [main] (TurbineVelocityService.java:593) - Translating / templates/app DEBUG [main] (TurbineVelocityService.java:624) - Result (normal fs reference): /home/helgew/work/webapps/testtemplates/app DEBUG [main] (TurbineVelocityService.java:627) - Adding file.resource.loader.path -> /home/helgew/work/webapps/testtemplates/app INFO [main] (SimpleLog4JLogSystem.java:175) - ************************************************************** INFO [main] (SimpleLog4JLogSystem.java:175) - Starting Jakarta Velocity v1.3.1-rc2 INFO [main] (SimpleLog4JLogSystem.java:175) - RuntimeInstance initializing. INFO [main] (SimpleLog4JLogSystem.java:175) - Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) ERROR [main] (BaseServiceBroker.java:383) - org.apache.turbine.services.InitializationException: Failed to initialize TurbineVelocityService INFO [main] (BaseServiceBroker.java:387) - Finished initializing all services! INFO [main] (BaseServiceBroker.java:491) - Start Initializing service (late): TemplateService
DEBUG [main] (TurbineTemplateService.java:326) - Default Extension:
DEBUG [main] (TurbineTemplateService.java:327) - Default Template: Default DEBUG [main] (TurbineTemplateService.java:328) - Use Caching: false INFO [main] (BaseServiceBroker.java:491) - Start Initializing service (late): AssemblerBrokerService INFO [main] (TurbineAssemblerBrokerService.java:119) - Registering 1 action factories. INFO [main] (TurbineAssemblerBrokerService.java:119) - Registering 1 screen factories. INFO [main] (TurbineAssemblerBrokerService.java:119) - Registering 1 navigation factories. INFO [main] (TurbineAssemblerBrokerService.java:119) - Registering 1 layout factories. INFO [main] (TurbineAssemblerBrokerService.java:119) - Registering 1 page factories. INFO [main] (TurbineAssemblerBrokerService.java:119) - Registering 1 scheduledjob factories. INFO [main] (BaseServiceBroker.java:493) - Finish Initializing service (late): AssemblerBrokerService INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.DirectMapper to map page elements INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.ClassMapper to map screen elements
DEBUG [main] (ClassMapper.java:124) - Loader is {}
INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.ClassMapper to map layout elements
DEBUG [main] (ClassMapper.java:124) - Loader is {}
INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.ClassMapper to map navigation elements
DEBUG [main] (ClassMapper.java:124) - Loader is {}
INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.LayoutTemplateMapper to map layout.template elements INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.ScreenTemplateMapper to map screen.template elements INFO [main] (TurbineTemplateService.java:802) - Using org.apache.turbine.services.template.mapper.DirectTemplateMapper to map navigation.template elements INFO [main] (BaseServiceBroker.java:493) - Finish Initializing service (late): TemplateService INFO [main] (BaseServiceBroker.java:491) - Start Initializing service (late): RunDataService INFO [main] (BaseServiceBroker.java:493) - Finish Initializing service (late): RunDataService
INFO [main] (Turbine.java:249) - Turbine: init() Ready to Rumble!



On Apr 5, 2006, at 2:57 PM, Helge Weissig wrote:

Hello,

I have migrated a somewhat large turbine application to 2.3 and modified the tr.props file to reflect all documented changes necessary. However, a simple test application (and the deployed web application) seem not to be able to initialize TurbineVelocityService. Attached below is the output from my test application (I removed initial logging errors before log4j.properties and tr.props were loaded).

Here is my questions: How can I be get Turbine to spit out the reason for failing to initialize TurbineVelocityService? I tried all sorts of things in log4j.properties to no avail and I don't want to bore you with the details of my configuration file. FWIW, the Turbine 2.3.1 vanilla tr.props causes the same problem, while the TDK2.2 file works just fine.

Thanks for any input you may have!
h.
[snip]

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

Reply via email to