with the workarounds applied, I ws able to install the examples however,
running the webservers are still causing errors. It's a long error log.
Partial log is below (I will retrieve the errors I was getting from previous
failure prior to skipping tests):

[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory
/home/kathleen/examples3/web/examples/trader-web/target/resources
[INFO] [dependency:unpack {execution: unpack-webapp-resources}]
[INFO] Configured Artifact:
org.jbehave.web:jbehave-web-runner:2.2-SNAPSHOT:jar
[INFO] Unpacking
/home/kathleen/.m2/repository/org/jbehave/web/jbehave-web-runner/2.2-SNAPSHOT/jbehave-web-runner-2.2-SNAPSHOT.jarto
 /home/kathleen/examples3/web/examples/trader-web/target/webapp-resources
with Includes null and excludes:**/*.class
[INFO] [resources:copy-resources {execution: copy-custom-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory
/home/kathleen/examples3/web/examples/trader-web/src/test/java
[INFO] skip non existing resourceDirectory
/home/kathleen/examples3/web/examples/trader-web/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [jetty:run {execution: default-cli}]
[INFO] Configuring Jetty for project: JBehave Trader Webapp
[INFO] Webapp source directory =
/home/kathleen/examples3/web/examples/trader-web/src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] web.xml file =
/home/kathleen/examples3/web/examples/trader-web/src/main/webapp/WEB-INF/web.xml
[INFO] Classes =
/home/kathleen/examples3/web/examples/trader-web/target/classes
2010-02-23 10:16:53.736::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /jbehave-trader
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] Webapp directory =
/home/kathleen/examples3/web/examples/trader-web/src/main/webapp
[INFO] Starting jetty 6.1.14 ...
2010-02-23 10:16:54.467::INFO:  jetty-6.1.14
2010-02-23 10:16:55.564::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
2010-02-23 10:16:57.657::WARN:  failed sitemesh-page
com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct
Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory:
java.lang.reflect.InvocationTargetException
        at
com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:50)
        at
com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:87)
        at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
        at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
        at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)


On Tue, Feb 23, 2010 at 1:27 AM, Mauro Talevi <[email protected]>wrote:

>  The problem is that the failure in the unit test blocked the install phase
> of the components needed for the example.
>
> As a workaround, you can build skipping tests
>
> mvn clean install -Pexamples -Dmaven.test.skip=true
>
> generally not recommended, but will get you over the hump.
>
> I'm puzzled as to the failure.  Can you provide more details (OS, Java
> version) and a stacktrace?  I can't reproduce the failure locally (both OS X
> and Windows) but I can see in Bamboo (
> http://builds.codehaus.org/browse/JBEHAVE-WEB16)
>
> Cheers
>
> On 23/02/2010 01:25, qa tester wrote:
>
> Thank you for your reply.
>
> I did the following:
>
> 1. Build the examples
> svn co 
> https://svn.codehaus.org/jbehave/trunk/web<https://svn.codehaus.org/jbehave/trunk/web/examples/trader-web/>
> cd web
> mvn clean install -Pexamples
>
> 2.
> then run the example webapp interactively:
>
> cd examples/trader-web
> mvn jetty:run
>
>
> *After 1, some tests are failing*:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.jbehave.web.io.ResourceFinderTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.173 sec
> Running org.jbehave.web.io.ArchivingFileManagerTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.208 sec
> Running org.jbehave.web.io.ZipFileArchiverTest
> Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.078 sec
> <<< FAILURE!
>
> Results :
>
> Tests in error:
>   canUnarchiveZip(org.jbehave.web.io.ZipFileArchiverTest)
>   canListFileContentOfUnarchiveZip(org.jbehave.web.io.ZipFileArchiverTest)
>
>
> *I continued to #2 anyways and go the following errors: *
>
> Embedded error: Unable to download the artifact from any repository
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>     mvn install:install-file -DgroupId=org.jbehave.web
> -DartifactId=jbehave-web-runner -Dversion=2.2-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
>     mvn deploy:deploy-file -DgroupId=org.jbehave.web
> -DartifactId=jbehave-web-runner -Dversion=2.2-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>
> I am new to maven so I am not sure which parameters to supply for Dfile or
> to Durl or to DrepositoryId.
>
> Did I have to build the core components before running #1?
>
> Thanks for your help.
>
>
>
>
> On Mon, Feb 22, 2010 at 3:38 PM, Mauro Talevi 
> <[email protected]>wrote:
>
>>  On 23/02/2010 00:24, qa tester wrote:
>>
>>
>> it looks like the checkout and examples install are no longer throwing an
>> error.  however,  i still have to run the examples to verify.
>>
>>  The "install" phase implicitly run the "integration-test" phase, which
>> is where the scenarios are run.
>>
>> In regards to trader-web example, i did the following
>>
>> 1. svn co https://svn.codehaus.org/jbehave/trunk/web/examples/trader-web/
>> 2. mvn clean install
>>
>>
>>  you need to first to build the components (including the example
>> modules):
>>
>>
>> svn co 
>> https://svn.codehaus.org/jbehave/trunk/web<https://svn.codehaus.org/jbehave/trunk/web/examples/trader-web/>
>>  cd web
>> mvn clean install -Pexamples
>>
>> then run the example webapp interactively:
>>
>> cd examples/trader-web
>> mvn jetty:run
>>
>> Cheers
>>
>
>
>

Reply via email to