Hi all
Trying to get a basic scenario running through Ant (using the
scenarioRunner). I am using stable build on MacOSX Java 1.5.
I am seeing the same problem on both my code and the trader example
provided in the source distribution. It appears that there is a base
resource bundle missing for keywords. My code runs fine through
IntelliJ test runner. It's just Ant that seems to be giving me
problems...
Does anyone have any ideas as to what I'm doing wrong?
Stack trace is below.
Cheers
Ben
/Users/bensullivan/work/jbehave-example/build.xml:47: Failed to
instantiate scenario
'org.jbehave.examples.trader.scenarios.ReportCanBeWrittenToFile'
at
org
.jbehave.ant.AbstractScenarioTask.scenarios(AbstractScenarioTask.java:
124)
at org.jbehave.ant.ScenarioRunnerTask.execute(ScenarioRunnerTask.java:
30)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:592)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org
.apache
.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
Caused by: java.lang.RuntimeException: The scenario
'org.jbehave.examples.trader.scenarios.ReportCanBeWrittenToFile' could
not be instantiated with class loader:
[org.jbehave.scenario.ScenarioClassLoader urls=[]]
at
org
.jbehave
.scenario.ScenarioClassLoader.newScenario(ScenarioClassLoader.java:45)
at
org
.jbehave.ant.AbstractScenarioTask.scenarios(AbstractScenarioTask.java:
122)
... 23 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun
.reflect
.NativeConstructorAccessorImpl
.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun
.reflect
.DelegatingConstructorAccessorImpl
.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at
org
.jbehave
.scenario.ScenarioClassLoader.newScenario(ScenarioClassLoader.java:34)
... 24 more
Caused by: java.lang.ExceptionInInitializerError
at
org
.jbehave
.examples
.trader
.scenarios
.ReportCanBeWrittenToFile.<init>(ReportCanBeWrittenToFile.java:26)
... 29 more
Caused by: org.jbehave.scenario.i18n.I18nKeyWords
$ResourceBundleNotFoundExcepion: Resource bundle org/jbehave/scenario/
i18n/keywords not found for locale en in classLoader
java.net.urlclassloa...@a981ca
at
org.jbehave.scenario.i18n.I18nKeyWords.lookupBunde(I18nKeyWords.java:66)
at org.jbehave.scenario.i18n.I18nKeyWords.keywords(I18nKeyWords.java:
43)
at org.jbehave.scenario.i18n.I18nKeyWords.<init>(I18nKeyWords.java:38)
at org.jbehave.scenario.i18n.I18nKeyWords.<init>(I18nKeyWords.java:23)
at
org
.jbehave
.scenario.steps.StepsConfiguration.<init>(StepsConfiguration.java:34)
at org.jbehave.examples.trader.TraderSteps.<clinit>(TraderSteps.java:
26)
... 30 more
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org/jbehave/scenario/i18n/keywords, locale en
at
java
.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:
836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
at
org.jbehave.scenario.i18n.I18nKeyWords.lookupBunde(I18nKeyWords.java:64)
... 35 more
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email