On 15/09/2010 20:44, Wesley Acheson wrote:
> Was there something wrong with this question?
Nope. Answers in-line.

>> I think the documentation in tomcat 7 about building tomcat is
>> incorrect or out of date.
Yep.

>> 1 Checkout from http://svn.apache.org/repos/asf/tomcat/trunk. This was
>> the location given to me on the mailing list.
Correct.

>> 2 Tried "ant download" as per
>> http://tomcat.apache.org/tomcat-7.0-doc/building.html#Building%20Tomcat.
>> Apparently there is no target called "download"
Already fixed in svn.

>> 3 Tried the following ant targets in the following order
>> "download-compile" "download-test-compile", "download-dist",
>> "download-validate". Finally ant with no arguments.
That's the one.

>> 4 Renamed "eclipse.project" and "eclipse.classpath" to ".project" and
>> ".eclipse".
Need to add that.

>> 5 Launched eclipse, added in classpath variables, as per documentation
>>
>> 6 I received an error that two jar files were missing
>> "c:\usr\share\java\wsdl4j-1.6.1\wsdl4j-1.6.1.jar" and
>> "c:\usr\share\java\jaxrpc-1.1-rc4\geronimo-spec-jaxrpc-1.1-rc4.jar"
That is for an optional module. I normally exclude that part of the
source tree. Or you can run the full build and you'll get the modules.

>> 7 Downloaded those two jar files from a maven repository and placed in
>> the set location.
The script will handle that. You need the "extras-webservices-prepare"
target.

>> Now I'm stuck the instructions say 'enter
>> "org.apache.catalina.startup.Catalina" as the main class, "start" as
>> program arguments, and "-Dcatalina.home=..." (with the name of your
>> build directory) as VM arguments.'
>>
>> However there doesn't seem to be a main method in Catalina.java, I've
>> changed this to "org.apache.catalina.startup.Bootstrap" is that
>> correct? It appears to launch.
Yep. I deleted the main method from Catalina.


>> So there are the following definite problems with the documentation.
>> The main class is wrong. The ant targets are wrong. Possibly missing a
>> step for downloading jars (Though I suspect thats just a badly
>> configured classpath).
>>
>> Is this the "correct" way to run TC7?  Do you want a bug on this? If
>> you let me know where the documentation is I'll enter a patch
>> (assuming documentation is in SVN).
Yes, yes, yes.

http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/building.xml?view=log

You may also want to take a look at
http://svn.apache.org/viewvc/tomcat/trunk/BUILDING.txt?view=log

Everything required to build Tomcat from source is in svn. You can also
do it from a source bundle if you wish.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to