[
https://issues.apache.org/jira/browse/CONNECTORS-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Wright reopened CONNECTORS-223:
------------------------------------
The dependencies still seem incorrect. On a fresh checkout, with no ant-built
artifacts, I get this when the tests are run:
2011-07-26 09:29:46.423:WARN::Web application not found ../../framework/dist/web
/war/mcf-authority-service.war
2011-07-26 09:29:46.423:WARN::Failed startup of context org.mortbay.jetty.webapp
.WebAppContext@15151aa{/mcf-authority-service,../../framework/dist/web/war/mcf-a
uthority-service.war}
java.io.FileNotFoundException: ../../framework/dist/web/war/mcf-authority-servic
e.war
at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.ja
va:997)
at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:8
32)
at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(Web
InfConfiguration.java:62)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489
)
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)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.apache.manifoldcf.filesystem_tests.Base.setUp(Base.java:308)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
Method.java:44)
... and others, indicating that the war files the tests are looking for are not
in place. We need to figure out how to get that to work under Maven.
> Tests in project hierarchy do not adhere to maven conventions
> -------------------------------------------------------------
>
> Key: CONNECTORS-223
> URL: https://issues.apache.org/jira/browse/CONNECTORS-223
> Project: ManifoldCF
> Issue Type: Bug
> Components: Build
> Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
> Reporter: Karl Wright
> Assignee: Karl Wright
> Fix For: ManifoldCF 0.3
>
> Attachments: CONNECTORS-223.patch, CONNECTORS-223_forkMode.patch,
> CONNECTORS-223_jetty-runner.patch, test_reset.patch
>
>
> Maven expects unit tests under .../src/test/java, and root-level project
> tests under tests/xxx/src/test/java (or equivalent, along with their own
> pom.xml at tests and tests/xxx). This is basically compatible with the ant
> build except in location detail. The proposal is to move stuff around to
> make the tests work with maven.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira