You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrew Conrad <an...@msn.com> on 2002/06/30 21:25:40 UTC

Compiling Tomcat 4.0.4

I have downloaded the source for Tomcat 4.0.4 (from the cvs as branch
tomcat_404) but I am unable to compile it.

The problem it seems is that the documentation Building.txt calls for
Tyrex 0.9.7 but if you go to the Tyrex website, only version 1.0 is
available.  

Does anybody know where I can get Tyrex 0.9.7 or has a work around so I
can build Tomcat 4.0.4, I would greatly appreciate it.  I also included
my build log just in case that my own analysis is wrong and someone
would like to look at it.


- Andrew

------ build output -----------------

Buildfile: build.xml

deploy-prepare:

deploy-static:

deploy:
     [echo] Target: Catalina - Deploy ...

flags:

flags.display:
     [echo] --- Build environment for Catalina ---
     [echo] If ${property_name} is displayed, then the property is not
set)
     [echo] --- Build options ---
     [echo] full.dist=on
     [echo] build.sysclasspath=${build.sysclasspath}
     [echo] compile.debug=on
     [echo] compile.deprecation=off
     [echo] compile.optimize=on
     [echo] --- Ant Flags ---
     [echo] <style> task available (required)=true
     [echo] --- JDK ---
     [echo] jdk.1.2.present=true
     [echo] jdk.1.3.present=true
     [echo] jdk.1.4.present=${jdk.1.4.present}
     [echo] --- Required Libraries ---
     [echo] jaxp.present=true
     [echo] jndi.present=true
     [echo] regexp.present=true
     [echo] servlet.present=true
     [echo] --- Optional Libraries ---
     [echo] javamail.present=true
     [echo] jsse.present=true
     [echo] jta.present=true
     [echo] junit.present=true
     [echo] ldap.present=true
     [echo] tyrex.present=${tyrex.present}
     [echo] --- Required JARs ---
     [echo] jndi.jar.present(except JDK 1.3+)=true
     [echo] regexp.jar.present=true
     [echo] servlet.jar.present=true
     [echo] xerces.jar.present(except JDK 1.4+)=true
     [echo] --- Optional JARs ---
     [echo] tomcat-ajp.jar.present=true
     [echo] javamail.jar.present=true
     [echo] jdbc20ext.jar.present=true
     [echo] jta.jar.present=true
     [echo] junit.jar.present=true
     [echo] ldap.jar.present=true
     [echo] tomcat-util.jar.present=true
     [echo] tyrex.jar.present=true
     [echo] --- Conditional compilation flags ---
     [echo] compile.javamail=true
     [echo] compile.jmx=true
     [echo] compile.jndi=true
     [echo] compile.jsse=true
     [echo] compile.jta=true
     [echo] compile.junit=true
     [echo] compile.ldap=true
     [echo] compile.tyrex=true
     [echo] --- Distribution flags ---
     [echo] copy.tomcat-ajp.jar=true
     [echo] copy.jdbc20ext.jar=true
     [echo] copy.jndi.jar=true
     [echo] copy.javamail.jar=true
     [echo] copy.jta.jar=true
     [echo] copy.ldap.jar=true
     [echo] copy.tyrex.jar=true
     [echo] copy.xerces.jar=true

build-prepare:

copy-activation.jar:

copy-tomcat-ajp.jar:

copy-tomcat-coyote.jar:

copy-jdbc20ext.jar:

copy-jndi.jar:

copy-jsse.jar:

copy-jta.jar:

copy-ldap.jar:

copy-tomcat-util.jar:

copy-tyrex.jar:

copy-xerces.jar:

build-static:

build-main:
    [javac] Compiling 4 source files to
C:\modules\jakarta-tomcat-4.0\catalina\build\server\classes
    [javac] Compiling 2 source files to
C:\modules\jakarta-tomcat-4.0\catalina\build\server\classes
    [javac]
C:\modules\jakarta-tomcat-4.0\catalina\src\share\org\apache\naming\facto
ry\TyrexDataSourceFactory.java:77: Class tyrex.jdbc.ServerDataSource not
found in import.
    [javac] import tyrex.jdbc.ServerDataSource;
    [javac]        ^
    [javac]
C:\modules\jakarta-tomcat-4.0\catalina\src\share\org\apache\naming\facto
ry\TyrexDataSourceFactory.java:78: Class tyrex.jdbc.xa.EnabledDataSource
not found in import.
    [javac] import tyrex.jdbc.xa.EnabledDataSource;
    [javac]        ^
    [javac]
C:\modules\jakarta-tomcat-4.0\catalina\src\share\org\apache\naming\facto
ry\TyrexTransactionFactory.java:75: Class tyrex.tm.Tyrex not found in
import.
    [javac] import tyrex.tm.Tyrex;
    [javac]        ^
    [javac] 3 errors

Total time: 2 seconds


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Compiling Tomcat 4.0.4

Posted by Andrew Conrad <an...@msn.com>.
OK, I fixed that problem (stole Tyrex 0.9.7.0 from my Tomcat 4.0.3
install)

But I keep bumping into a compiling error in the tomcat-docs.  Doing a
little research in the archives is leading me to believe it's a compile
issue for Win32 platforms? (I'm running XP).  I keep getting the
following:  


Sorry all, but I resolved the Tyrex Issue (found Tyrex 0.9.7.0 in my
Tomcat 4.0.3 install)


I have another issue, which I'm not quite sure of.  I am getting a
compile error when compiling the documentation (specifically, on jndi-,
I seem to be getting a TransformerException:


----------
build-main:
    [style] Using class
org.apache.tools.ant.taskdefs.optional.TraXLiaison
FileSet: Setup file scanner in dir
C:\modules\jakarta-tomcat-4.0\webapps\tomcat-docs with patternSet{
includes: [*.xml] excludes: [build.xml, project.xml] }
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Loading stylesheet
C:\modules\jakarta-tomcat-4.0\webapps\tomcat-docs\tomcat-docs.xsl
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Transforming into
C:\modules\jakarta-tomcat-4.0\webapps\build\tomcat-docs
    [style] Failed to process
C:\modules\jakarta-tomcat-4.0\webapps\tomcat-docs\realm-howto.xml

BUILD FAILED

C:\modules\jakarta-tomcat-4.0\webapps\tomcat-docs\build.xml:80:
javax.xml.transform.TransformerException: java.lang.NullPointerException
	at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:352)
	at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:179)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.Project.executeTargets(Project.java:560)
	at org.apache.tools.ant.Main.runBuild(Main.java:454)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)-------









-----Original Message-----
From: Andrew Conrad [mailto:andrewconrad@msn.com] 
Sent: Sunday, June 30, 2002 3:26 PM
To: Tomcat Users List
Subject: Compiling Tomcat 4.0.4


I have downloaded the source for Tomcat 4.0.4 (from the cvs as branch
tomcat_404) but I am unable to compile it.

The problem it seems is that the documentation Building.txt calls for
Tyrex 0.9.7 but if you go to the Tyrex website, only version 1.0 is
available.

Does anybody know where I can get Tyrex 0.9.7 or has a work around so I
can build Tomcat 4.0.4, I would greatly appreciate it.  I also included
my build log just in case that my own analysis is wrong and someone
would like to look at it.


- Andrew

------ build output -----------------

Buildfile: build.xml

deploy-prepare:

deploy-static:

deploy:
     [echo] Target: Catalina - Deploy ...

flags:

flags.display:
     [echo] --- Build environment for Catalina ---
     [echo] If ${property_name} is displayed, then the property is not
set)
     [echo] --- Build options ---
     [echo] full.dist=on
     [echo] build.sysclasspath=${build.sysclasspath}
     [echo] compile.debug=on
     [echo] compile.deprecation=off
     [echo] compile.optimize=on
     [echo] --- Ant Flags ---
     [echo] <style> task available (required)=true
     [echo] --- JDK ---
     [echo] jdk.1.2.present=true
     [echo] jdk.1.3.present=true
     [echo] jdk.1.4.present=${jdk.1.4.present}
     [echo] --- Required Libraries ---
     [echo] jaxp.present=true
     [echo] jndi.present=true
     [echo] regexp.present=true
     [echo] servlet.present=true
     [echo] --- Optional Libraries ---
     [echo] javamail.present=true
     [echo] jsse.present=true
     [echo] jta.present=true
     [echo] junit.present=true
     [echo] ldap.present=true
     [echo] tyrex.present=${tyrex.present}
     [echo] --- Required JARs ---
     [echo] jndi.jar.present(except JDK 1.3+)=true
     [echo] regexp.jar.present=true
     [echo] servlet.jar.present=true
     [echo] xerces.jar.present(except JDK 1.4+)=true
     [echo] --- Optional JARs ---
     [echo] tomcat-ajp.jar.present=true
     [echo] javamail.jar.present=true
     [echo] jdbc20ext.jar.present=true
     [echo] jta.jar.present=true
     [echo] junit.jar.present=true
     [echo] ldap.jar.present=true
     [echo] tomcat-util.jar.present=true
     [echo] tyrex.jar.present=true
     [echo] --- Conditional compilation flags ---
     [echo] compile.javamail=true
     [echo] compile.jmx=true
     [echo] compile.jndi=true
     [echo] compile.jsse=true
     [echo] compile.jta=true
     [echo] compile.junit=true
     [echo] compile.ldap=true
     [echo] compile.tyrex=true
     [echo] --- Distribution flags ---
     [echo] copy.tomcat-ajp.jar=true
     [echo] copy.jdbc20ext.jar=true
     [echo] copy.jndi.jar=true
     [echo] copy.javamail.jar=true
     [echo] copy.jta.jar=true
     [echo] copy.ldap.jar=true
     [echo] copy.tyrex.jar=true
     [echo] copy.xerces.jar=true

build-prepare:

copy-activation.jar:

copy-tomcat-ajp.jar:

copy-tomcat-coyote.jar:

copy-jdbc20ext.jar:

copy-jndi.jar:

copy-jsse.jar:

copy-jta.jar:

copy-ldap.jar:

copy-tomcat-util.jar:

copy-tyrex.jar:

copy-xerces.jar:

build-static:

build-main:
    [javac] Compiling 4 source files to
C:\modules\jakarta-tomcat-4.0\catalina\build\server\classes
    [javac] Compiling 2 source files to
C:\modules\jakarta-tomcat-4.0\catalina\build\server\classes
    [javac]
C:\modules\jakarta-tomcat-4.0\catalina\src\share\org\apache\naming\facto
ry\TyrexDataSourceFactory.java:77: Class tyrex.jdbc.ServerDataSource not
found in import.
    [javac] import tyrex.jdbc.ServerDataSource;
    [javac]        ^
    [javac]
C:\modules\jakarta-tomcat-4.0\catalina\src\share\org\apache\naming\facto
ry\TyrexDataSourceFactory.java:78: Class tyrex.jdbc.xa.EnabledDataSource
not found in import.
    [javac] import tyrex.jdbc.xa.EnabledDataSource;
    [javac]        ^
    [javac]
C:\modules\jakarta-tomcat-4.0\catalina\src\share\org\apache\naming\facto
ry\TyrexTransactionFactory.java:75: Class tyrex.tm.Tyrex not found in
import.
    [javac] import tyrex.tm.Tyrex;
    [javac]        ^
    [javac] 3 errors

Total time: 2 seconds


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Compiling Tomcat 4.0.4

Posted by Andrew Conrad <an...@msn.com>.
Ignore the last msg. it was sent incomplete.  I'm all thumbs today.




- Andrew

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>