google-code-export / impala

Automatically exported from code.google.com/p/impala
1 stars 0 forks source link

Standalone integration tests don't work for web modules #313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Applies as of r5436

Running an integration test with the module example-web in the examples
sample produces the following error:

{{{

INFO main org.impalaframework.classloader.graph.GraphClassLoader - Class
'classes.ConcreteService' found using class loader for example-main
ERROR main org.impalaframework.module.runtime.DefaultModuleRuntimeManager -
Failed to handle loading of application module: example-web
org.impalaframework.exception.ConfigurationException: No
org.impalaframework.module.spi.ModuleLoader or
org.impalaframework.spring.module.DelegatingContextLoader specified for
module definition type web_root
    at
org.impalaframework.spring.module.loader.BaseApplicationContextLoader.loadContex
t(BaseApplicationContextLoader.java:77)
    at
org.impalaframework.spring.module.SpringModuleRuntime.doLoadModule(SpringModuleR
untime.java:64)
    at
org.impalaframework.module.runtime.BaseModuleRuntime.doLoadModule(BaseModuleRunt
ime.java:131)
    at
org.impalaframework.module.runtime.BaseModuleRuntime.loadRuntimeModule(BaseModul
eRuntime.java:57)
    at
org.impalaframework.module.runtime.DefaultModuleRuntimeManager.initModule(Defaul
tModuleRuntimeManager.java:58)
    at
org.impalaframework.module.transition.LoadTransitionProcessor.process(LoadTransi
tionProcessor.java:54)
    at
org.impalaframework.module.transition.DefaultTransitionManager.processTransition
s(DefaultTransitionManager.java:78)
    at
org.impalaframework.module.operation.UpdateRootModuleOperation.doExecute(UpdateR
ootModuleOperation.java:65)
    at
org.impalaframework.module.operation.LockingModuleOperation.execute(LockingModul
eOperation.java:45)
    at
org.impalaframework.facade.BaseOperationsFacade.execute(BaseOperationsFacade.jav
a:264)
    at
org.impalaframework.facade.BaseOperationsFacade.init(BaseOperationsFacade.java:9
1)
    at org.impalaframework.facade.Impala.init(Impala.java:79)
    at
org.impalaframework.interactive.command.InitContextCommand.execute(InitContextCo
mmand.java:36)
    at
org.impalaframework.interactive.command.BaseLoadDefinitionCommand.doLoad(BaseLoa
dDefinitionCommand.java:26)
    at
org.impalaframework.interactive.command.LoadDefinitionFromClassCommand.execute(L
oadDefinitionFromClassCommand.java:30)
    at
org.impalaframework.interactive.command.InitRunnerCommand.execute(InitRunnerComm
and.java:35)
    at
org.impalaframework.interactive.InteractiveTestRunner.start(InteractiveTestRunne
r.java:83)
    at
org.impalaframework.interactive.InteractiveTestRunner.run(InteractiveTestRunner.
java:54)
    at test.WebIntegrationTest.main(WebIntegrationTest.java:29)
ERROR main org.impalaframework.module.transition.LoadTransitionProcessor -
Failed to load module example-web
org.impalaframework.exception.ConfigurationException: No
org.impalaframework.module.spi.ModuleLoader or
org.impalaframework.spring.module.DelegatingContextLoader specified for
module definition type web_root
    at
org.impalaframework.spring.module.loader.BaseApplicationContextLoader.loadContex
t(BaseApplicationContextLoader.java:77)
    at
org.impalaframework.spring.module.SpringModuleRuntime.doLoadModule(SpringModuleR
untime.java:64)
    at
org.impalaframework.module.runtime.BaseModuleRuntime.doLoadModule(BaseModuleRunt
ime.java:131)
    at
org.impalaframework.module.runtime.BaseModuleRuntime.loadRuntimeModule(BaseModul
eRuntime.java:57)
    at
org.impalaframework.module.runtime.DefaultModuleRuntimeManager.initModule(Defaul
tModuleRuntimeManager.java:58)
    at
org.impalaframework.module.transition.LoadTransitionProcessor.process(LoadTransi
tionProcessor.java:54)
    at
org.impalaframework.module.transition.DefaultTransitionManager.processTransition
s(DefaultTransitionManager.java:78)
    at
org.impalaframework.module.operation.UpdateRootModuleOperation.doExecute(UpdateR
ootModuleOperation.java:65)
    at
org.impalaframework.module.operation.LockingModuleOperation.execute(LockingModul
eOperation.java:45)
    at
org.impalaframework.facade.BaseOperationsFacade.execute(BaseOperationsFacade.jav
a:264)
    at
org.impalaframework.facade.BaseOperationsFacade.init(BaseOperationsFacade.java:9
1)
    at org.impalaframework.facade.Impala.init(Impala.java:79)
    at
org.impalaframework.interactive.command.InitContextCommand.execute(InitContextCo
mmand.java:36)
    at
org.impalaframework.interactive.command.BaseLoadDefinitionCommand.doLoad(BaseLoa
dDefinitionCommand.java:26)
    at
org.impalaframework.interactive.command.LoadDefinitionFromClassCommand.execute(L
oadDefinitionFromClassCommand.java:30)
    at
org.impalaframework.interactive.command.InitRunnerCommand.execute(InitRunnerComm
and.java:35)
    at
org.impalaframework.interactive.InteractiveTestRunner.start(InteractiveTestRunne
r.java:83)
    at
org.impalaframework.interactive.InteractiveTestRunner.run(InteractiveTestRunner.
java:54)
    at test.WebIntegrationTest.main(WebIntegrationTest.java:29)
Starting inactivity checker with maximum inactivity of 600 seconds
}}}

Should be able to bootstrap as with an application module, but without the
web-specific beans fully populated

Original issue reported on code.google.com by philzoio...@googlemail.com on 30 Mar 2010 at 9:21

GoogleCodeExporter commented 9 years ago
Fixed with r5437

Original comment by philzoio...@googlemail.com on 30 Mar 2010 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by philzoio...@googlemail.com on 23 Apr 2010 at 4:06