nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-777) Upgrading to jetty6 broke unit tests
Date Fri, 18 Dec 2009 18:32:18 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792565#action_12792565
] 

Chris A. Mattmann commented on NUTCH-777:
-----------------------------------------

Here is what I was getting with the latest Nutch trunk:

{noformat}
compile:

job:
      [jar] Building jar: /Users/mattmann/src/nutch/build/nutch-1.0.job

compile-core-test:
    [javac] Compiling 43 source files to /Users/mattmann/src/nutch/build/test/classes
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/crawl/CrawlDBTestUtil.java:33:
package org.mortbay.http does not exist
    [javac] import org.mortbay.http.HttpContext;
    [javac]                        ^
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/crawl/CrawlDBTestUtil.java:34:
package org.mortbay.http does not exist
    [javac] import org.mortbay.http.SocketListener;
    [javac]                        ^
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/crawl/CrawlDBTestUtil.java:35:
package org.mortbay.http.handler does not exist
    [javac] import org.mortbay.http.handler.ResourceHandler;
    [javac]                                ^
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/crawl/CrawlDBTestUtil.java:134:
cannot find symbol
    [javac] symbol  : class SocketListener
    [javac] location: class org.apache.nutch.crawl.CrawlDBTestUtil
    [javac]     SocketListener listener = new SocketListener();
    [javac]     ^
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/crawl/CrawlDBTestUtil.java:134:
cannot find symbol
    [javac] symbol  : class SocketListener
    [javac] location: class org.apache.nutch.crawl.CrawlDBTestUtil
    [javac]     SocketListener listener = new SocketListener();
    [javac]                                   ^
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/crawl/CrawlDBTestUtil.java:138:
cannot find symbol
    [javac] symbol  : class HttpContext
    [javac] location: class org.apache.nutch.crawl.CrawlDBTestUtil
    [javac]     HttpContext staticContext = new HttpContext();
    [javac]     ^
..snip...
    [javac] /Users/mattmann/src/nutch/src/test/org/apache/nutch/fetcher/TestFetcher.java:167:
cannot find symbol
    [javac] symbol  : method getListeners()
    [javac] location: class org.mortbay.jetty.Server
    [javac]     urls.add("http://127.0.0.1:" + server.getListeners()[0].getPort() + "/" +
page);
    [javac]                                          ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 9 errors

BUILD FAILED
/Users/mattmann/src/nutch/build.xml:229: Compile failed; see the compiler error output for
details.

Total time: 37 seconds
{noformat}

> Upgrading to jetty6 broke unit tests
> ------------------------------------
>
>                 Key: NUTCH-777
>                 URL: https://issues.apache.org/jira/browse/NUTCH-777
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>         Environment: My MacBook pro, JDK 1.6.0.
>            Reporter: Chris A. Mattmann
>            Assignee: Chris A. Mattmann
>             Fix For: 1.1
>
>
> It seems that somewhere down the line, there was an upgrade to jetty6, which broke unit
tests, specifically TestFetcher and CrawlDBTestUtil. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message