I am trying to rebuild Lucene 3.4.0 from the source distribution and found some build errors that I am having hard time resolving. I am fairly new to Java so maybe these are trivial errors but I'd still greatly appreciate any help. Here's a partial list of issues:

1. FormBasedXmlQueryDemo.java in contrib\xml-query-parser\src\demo\java: Can't find these packages:

Java Code:
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Do I need to download these JARs from somewhere? Any specific version(s) I need to get?

2. DocHelper.java in backwards\src\test-framework, Line 177: Can't find method:

getOmitTermFreqAndPositions() in class Fieldable

3. TestBlockJoin.java in contrib\join\src\test, Line 214: Can't find method:

cloneDocument() in class _TestUtil

4. TestPayloads.java in src\test, Line 344: Can't find method:

randomFixedByteLengthUnicodeString() in class _TestUtil

Hopefully if I can get help resolving these, I can take care of the rest myself.

Thanks much!