You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Helge Weissig <he...@grajagan.org> on 2006/04/05 23:57:48 UTC
Failed to initialize TurbineVelocityService
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.
[INFO] BaseServiceBroker - Added Mapping for Service: CryptoService
[INFO] BaseServiceBroker - Added Mapping for Service: FactoryService
[INFO] BaseServiceBroker - Added Mapping for Service: PoolService
[INFO] BaseServiceBroker - Added Mapping for Service: RunDataService
[INFO] BaseServiceBroker - Added Mapping for Service: ServletService
[INFO] BaseServiceBroker - Added Mapping for Service:
AssemblerBrokerService
[INFO] BaseServiceBroker - Added Mapping for Service:
LocalizationService
[INFO] BaseServiceBroker - Added Mapping for Service: MimeTypeService
[INFO] BaseServiceBroker - Added Mapping for Service: GlobalCacheService
[INFO] BaseServiceBroker - Added Mapping for Service: SchedulerService
[INFO] BaseServiceBroker - Added Mapping for Service: XmlRpcService
[INFO] BaseServiceBroker - Added Mapping for Service: UniqueIdService
[INFO] BaseServiceBroker - Added Mapping for Service: UploadService
[INFO] BaseServiceBroker - Added Mapping for Service: SecurityService
[INFO] BaseServiceBroker - Added Mapping for Service: PullService
[INFO] BaseServiceBroker - Added Mapping for Service: TemplateService
[INFO] BaseServiceBroker - Added Mapping for Service: XSLTService
[INFO] BaseServiceBroker - Added Mapping for Service: VelocityService
[INFO] BaseServiceBroker - Added Mapping for Service: MetaDataService
[INFO] BaseServiceBroker - Start Initializing service (early):
PullService
[INFO] BaseServiceBroker - Start Initializing service (late):
PoolService
[INFO] BaseServiceBroker - Start Initializing service (late):
FactoryService
[INFO] BaseServiceBroker - Finish Initializing service (late):
FactoryService
[INFO] BaseServiceBroker - Finish Initializing service (late):
PoolService
[INFO] TurbinePullService - Pull Model tools will be refreshed on a
per request basis.
[INFO] BaseServiceBroker - Start Initializing service (late):
VelocityService
[ERROR] BaseServiceBroker -
org.apache.turbine.services.InitializationException:
TurbinePullService failed to initialize
[INFO] BaseServiceBroker - Start Initializing service (early):
VelocityService
[ERROR] BaseServiceBroker -
org.apache.turbine.services.InitializationException: Failed to
initialize TurbineVelocityService
[INFO] BaseServiceBroker - Finished initializing all services!
[INFO] BaseServiceBroker - Start Initializing service (late):
TemplateService
[INFO] BaseServiceBroker - Start Initializing service (late):
AssemblerBrokerService
[INFO] TurbineAssemblerBrokerService - Registering 1 action factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 screen factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 navigation
factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 layout factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 page factories.
[INFO] TurbineAssemblerBrokerService - Registering 1 scheduledjob
factories.
[INFO] BaseServiceBroker - Finish Initializing service (late):
AssemblerBrokerService
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.DirectMapper to map page
elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ClassMapper to map screen
elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ClassMapper to map layout
elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ClassMapper to map
navigation elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.LayoutTemplateMapper to
map layout.template elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.ScreenTemplateMapper to
map screen.template elements
[INFO] TurbineTemplateService - Using
org.apache.turbine.services.template.mapper.DirectTemplateMapper to
map navigation.template elements
[INFO] BaseServiceBroker - Finish Initializing service (late):
TemplateService
[INFO] BaseServiceBroker - Start Initializing service (late):
RunDataService
[INFO] BaseServiceBroker - Finish Initializing service (late):
RunDataService
[INFO] Turbine - Turbine: init() Ready to Rumble!
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Failed to initialize TurbineVelocityService
Posted by Helge Weissig <he...@grajagan.org>.
Just FYI, what did the trick finally was to earlyInit the
SessionService in my tr.props file.
h.
On Apr 5, 2006, at 7:31 PM, Helge Weissig wrote:
[snip]
> ERROR [main] (BaseServiceBroker.java:383) -
> org.apache.turbine.services.InitializationException: Failed to
> initialize TurbineVelocityService
[snip]
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Failed to initialize TurbineVelocityService
Posted by Helge Weissig <he...@grajagan.org>.
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Failed to initialize TurbineVelocityService
Posted by Helge Weissig <he...@grajagan.org>.
Thanks for the response, Peter. I just tried it with http://
svn.apache.org/repos/asf/jakarta/turbine/core/trunk/conf/
TurbineResources.properties (commented out the Avalon service and the
scheduler early init line) and got the same results, which leads me
to believe that it is something in my /WEB-INF/lib that is either
missing or incompatible with one of the settings in tr.props
cheers,
h.
On Apr 5, 2006, at 3:15 PM, Peter Courcoux wrote:
> Helge,
>
> Have you tried with cvs head or 2.4M1?
>
> Secondly could you send me a copy of at least the Velocity sections
> from TR.props, off list if you prefer, and I'll take a look. I
> cannot promise that I'll have the answer, but I've played this game
> before, a long time ago. I'll see if anything stands out.
>
> Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Failed to initialize TurbineVelocityService
Posted by Peter Courcoux <pe...@courcoux.biz>.
Helge,
Have you tried with cvs head or 2.4M1?
Secondly could you send me a copy of at least the Velocity sections from
TR.props, off list if you prefer, and I'll take a look. I cannot promise
that I'll have the answer, but I've played this game before, a long time
ago. I'll see if anything stands out.
Peter
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.
>
> [INFO] BaseServiceBroker - Added Mapping for Service: CryptoService
> [INFO] BaseServiceBroker - Added Mapping for Service: FactoryService
> [INFO] BaseServiceBroker - Added Mapping for Service: PoolService
> [INFO] BaseServiceBroker - Added Mapping for Service: RunDataService
> [INFO] BaseServiceBroker - Added Mapping for Service: ServletService
> [INFO] BaseServiceBroker - Added Mapping for Service:
> AssemblerBrokerService
> [INFO] BaseServiceBroker - Added Mapping for Service: LocalizationService
> [INFO] BaseServiceBroker - Added Mapping for Service: MimeTypeService
> [INFO] BaseServiceBroker - Added Mapping for Service: GlobalCacheService
> [INFO] BaseServiceBroker - Added Mapping for Service: SchedulerService
> [INFO] BaseServiceBroker - Added Mapping for Service: XmlRpcService
> [INFO] BaseServiceBroker - Added Mapping for Service: UniqueIdService
> [INFO] BaseServiceBroker - Added Mapping for Service: UploadService
> [INFO] BaseServiceBroker - Added Mapping for Service: SecurityService
> [INFO] BaseServiceBroker - Added Mapping for Service: PullService
> [INFO] BaseServiceBroker - Added Mapping for Service: TemplateService
> [INFO] BaseServiceBroker - Added Mapping for Service: XSLTService
> [INFO] BaseServiceBroker - Added Mapping for Service: VelocityService
> [INFO] BaseServiceBroker - Added Mapping for Service: MetaDataService
> [INFO] BaseServiceBroker - Start Initializing service (early): PullService
> [INFO] BaseServiceBroker - Start Initializing service (late): PoolService
> [INFO] BaseServiceBroker - Start Initializing service (late):
> FactoryService
> [INFO] BaseServiceBroker - Finish Initializing service (late):
> FactoryService
> [INFO] BaseServiceBroker - Finish Initializing service (late): PoolService
> [INFO] TurbinePullService - Pull Model tools will be refreshed on a per
> request basis.
> [INFO] BaseServiceBroker - Start Initializing service (late):
> VelocityService
> [ERROR] BaseServiceBroker -
> org.apache.turbine.services.InitializationException: TurbinePullService
> failed to initialize
> [INFO] BaseServiceBroker - Start Initializing service (early):
> VelocityService
> [ERROR] BaseServiceBroker -
> org.apache.turbine.services.InitializationException: Failed to
> initialize TurbineVelocityService
> [INFO] BaseServiceBroker - Finished initializing all services!
> [INFO] BaseServiceBroker - Start Initializing service (late):
> TemplateService
> [INFO] BaseServiceBroker - Start Initializing service (late):
> AssemblerBrokerService
> [INFO] TurbineAssemblerBrokerService - Registering 1 action factories.
> [INFO] TurbineAssemblerBrokerService - Registering 1 screen factories.
> [INFO] TurbineAssemblerBrokerService - Registering 1 navigation factories.
> [INFO] TurbineAssemblerBrokerService - Registering 1 layout factories.
> [INFO] TurbineAssemblerBrokerService - Registering 1 page factories.
> [INFO] TurbineAssemblerBrokerService - Registering 1 scheduledjob
> factories.
> [INFO] BaseServiceBroker - Finish Initializing service (late):
> AssemblerBrokerService
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.DirectMapper to map page
> elements
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.ClassMapper to map screen
> elements
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.ClassMapper to map layout
> elements
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.ClassMapper to map
> navigation elements
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.LayoutTemplateMapper to map
> layout.template elements
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.ScreenTemplateMapper to map
> screen.template elements
> [INFO] TurbineTemplateService - Using
> org.apache.turbine.services.template.mapper.DirectTemplateMapper to map
> navigation.template elements
> [INFO] BaseServiceBroker - Finish Initializing service (late):
> TemplateService
> [INFO] BaseServiceBroker - Start Initializing service (late):
> RunDataService
> [INFO] BaseServiceBroker - Finish Initializing service (late):
> RunDataService
> [INFO] Turbine - Turbine: init() Ready to Rumble!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
--
------------------------------
Peter Courcoux
Telephone : +44 (0)1923 661488
Mobile : 07880 605626
email : peter@courcoux.biz
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org