Thanks for your email. The application under test isn’t deployed on Tomcat. What we have deployed on Tomcat (as opposed to Jetty) are JBehave Web Runners including the sample JBehave Web Trader-Runner application and our customized runner application – and they throw the same exception as detailed in my previous mail.
I will send a Tomcat embedded maven project that replicates the issues as soon as I build it. Many thanks Lanre From: Mauro Talevi [mailto:[email protected]] Sent: Monday, February 10, 2014 03:35 PM To: [email protected] Subject: Re: [jbehave-user] Jbehave Web - Tomcat integration What are you trying to do? Test a tomcat-based webapp using selenium or run generic stories via the web-runner? Can you provide a mvn project that replicates issue? On 10 Feb 2014, at 13:42, "Ogunbayo, Lanre (LIT)" <[email protected]<mailto:[email protected]>> wrote: Hello everyone, We are currently working on automating our functional tests using JBehave web. As our automation infrastructure is built around Tomcat, we successfully deployed the sample project and our custom project into Tomcat and we are able to run tests. The issue we have right now is that when we click on “View Story”, we get the following message: > “C:\Tomcat\apache-tomcat-7.0.42\bin\target\classes\web-20140210-092259.txt (The system cannot find the path specified)” and the console has the following logged Generating reports view to 'C:\Tomcat\apache-tomcat-7.0.42\bin\target\jbehave' using formats '[]' and view properties '{defaultFormats=stats, decorate NonHtml=true, viewDirectory=view, decorated=ftl/jbehave-report-decorated.ftl, reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, navigator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, nonDecorated=ftl/jbehave-report-non-decorated.ftl}' Reports view generated with 0 stories (of which 0 pending) containing 0 scenarios (of which 0 pending) The above indicates that no test has run but this is not the case as we are able to see our tests run ok We have tried all sorts of JBehave web configuration but we are unable to get view reports generated properly. I am convinced it’s a JBehave config problem rather than Tomcat but unfortunately, I am unable to find information on configurating JBehave Web in Tomcat via google. I am hoping someone can point me in the right direction. Finally, I can also see the following in the logs but I don’t what it means. Any ideas? Many thanks Lanre ERROR JavaSerializer:94 - Error serializing object class org.jbehave.web.runner.wicket.pages.ViewStory [object=[Page class = org.jbehave. web.runner.wicket.pages.ViewStory, id = 1, render count = 2]] java.io.NotSerializableException: org.jbehave.web.runner.wicket.pages.ViewStory$StatusCache at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:77) at org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:368) at org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:146) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:383) at org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171) at org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:94) at org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:68) at org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:281) at org.apache.wicket.Application$2.onDetach(Application.java:1588) at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:99) at org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:97) at org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:119) at org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:143) at org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113) at org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:95) at org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:569) at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:508) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:284) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
