You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Arieh Markel <Ar...@Central.Sun.COM> on 2000/02/28 21:52:38 UTC

Build problems with M2 (was Re: Announcing v3.1_m2_rc2 for Tomcat, Watchdog, and Ant)

I am trying to verify that what I downloaded builds and performs successfully.


I am running into problems in building jakarta-watchdog.

The setup appears to need finding moo.jar in the CLASSPATH.

I had built the jakarta-tools first, and created the moo.jar.

I modified the build.sh on jakarta-watchdog to add moo.jar to the CLASSPATH,
without much success.

Below you can see the complaints.

Not clear the issue of the magic number


: amarkel@snapshot [211]; sh build.sh                                   
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-watchdog .....
Building with classpath 
/ws/sx1.0-tools/jakarta/latest/dist/tomcat/lib/xml.jar:/ws/sx1.0-tools/Solaris_J
DK_1.2.1_04b/bin/../lib/tools.jar:/ws/sx1.0-tools/jakarta/latest/dist/tomcat/lib
/servlet.jar:../jakarta-ant/lib/ant.jar:../jakarta-ant/lib/xml.jar:../jakarta-to
ols/servlet-2.2.0.jar:../dist/tomcat/lib/moo.jar
Buildfile: build.xml
count = 0, total = 119
Project base dir set to: /ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-watchdog
The items attribute is deprecated. Please use the includes attribute.
The items attribute is deprecated. Please use the includes attribute.
The items attribute is deprecated. Please use the includes attribute.
The items attribute is deprecated. Please use the includes attribute.
The items attribute is deprecated. Please use the includes attribute.
Executing Target: prepare
Executing Target: main
Compiling 9 source files to 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/servlet-tests/WEB-INF
/classes
count = 0, total = 119
Compiling 6 source files to 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/jsp-tests/WEB-INF/cla
sses
count = 0, total = 119
Compiling 5 source files to 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/jsp-tests/WEB-INF/cla
sses
count = 0, total = 119
error: Invalid class file format in 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/jsp-tests/WEB-INF/cla
sses/org/apache/tools/moo/TestableBase.class.  wrong magic: -678320450, expected 
-889275714
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/ParameterizedTest.java:69: Superclass org.apache.tools.moo.TestableBase of 
class org.apache.tools.moo.ParameterizedTest not found.
public abstract class ParameterizedTest extends TestableBase {
                                                ^
error: Invalid class file format in 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/jsp-tests/WEB-INF/cla
sses/org/apache/tools/moo/servlet/Constants.class.  wrong magic: -678320450, 
expected -889275714
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/servlet/CoreServletTest.java:3: Class 
org.apache.tools.moo.servlet.Constants not found in import.
import org.apache.tools.moo.servlet.Constants;
       ^
error: Invalid class file format in 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/jsp-tests/WEB-INF/cla
sses/org/apache/tools/moo/Testable.class.  wrong magic: -678320450, expected 
-889275714
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/servlet/GenericClientTest.java:26: Interface org.apache.tools.moo.Testable 
of class org.apache.tools.moo.servlet.GenericClientTest not found.
implements Testable {
           ^
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/servlet/GenericServletTest.java:3: Class 
org.apache.tools.moo.servlet.Constants not found in import.
import org.apache.tools.moo.servlet.Constants;
       ^
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/RunTest.java:122: Class org.apache.tools.moo.Testable not found.
        Testable obj=null;
        ^
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/RunTest.java:124: Class org.apache.tools.moo.Testable not found.
            obj = (Testable)Class.forName(testClassName).newInstance();
                   ^
error: Invalid class file format in 
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/build/watchdog/webapps/jsp-tests/WEB-INF/cla
sses/org/apache/tools/moo/TestResult.class.  wrong magic: -678320450, expected 
-889275714
/ws/sx1.0-tools/jakarta/v3.1_m2_rc2/jakarta-tools/moo/src/share/org/apache/tools
/moo/RunTest.java:137: Class org.apache.tools.moo.TestResult not found.
        TestResult testResult = null;
        ^
11 errors
BUILD FATAL ERROR: Compile failed, messages should have been provided.

---

I have also tried to follow the instructions of the jakarta-tomcat README
file with regards to 'build test'. I was unable to verify the build.

---

It is not clear to me that I am doing something wrong. If I am, please someone
point me at what it is.


Thanks,

Arieh
--
 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)