Re: Errors when compiling Tomcat Connectors

2002-11-27 Thread Paul Campbell
1. Do you mean TOMCAT_HOME or CATALINA_HOME.
The docs refer to CATALINA_HOME..

2. from http://boats:8080/tomcat-docs/appdev/build.xml.txt
under External Dependencies
  Because we will automatically include all of the Java classes that Tomcat 4
  exposes to web applications, we will not need to explicitly list any of those
  dependencies.  

3. what is CATALINA_HOME ? I think this should bring in servlet.jar
 From the build.xml:
 fileset dir=${catalina.home}/common/lib
  include name=*.jar/
   /fileset

At 02:32 PM 11/27/02 -0500, you wrote:
I downloaded the Tomcat connectors (jakarta-tomcat-connectors-4.1.12-src)
and Ant version 1.5.1. I unzipped that to an appropriate directory and then
edited the build.properties file located in
jakarta-tomcat-connectors-4.1.12/jk. Such that it looks like this:

tomcat40.home=%TOMCAT_HOME%
apache2.home=%APACHE2_HOME%
apr.include=${apache2.home}/include
apr.lib=${apache2.home}/lib
so.debug=true
so.optimize=false
so.profile=false

I then ran Ant in the same directory and it came up with a lot of compiler
errors saying that it could not import org.apache.tomcat.util.* and that
the package does not exist. Those classes are found in tomcat-util.jar and
is located in %TOMCAT_HOME%/server/lib. I tried to put that in my CLASSPATH
environment variable and then ran Ant again, but still it had the same
errors. I am new to Ant and would appreciate any help.

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Errors when compiling Tomcat Connectors

2002-11-27 Thread Kevin Andryc
Both CATALINA_HOME and TOMCAT_HOME are set in my environment variables.
Still, when I try to build the connectors using Ant, it contains error. Here
is the error code:

BUILD FAILED
File:C:/Program Files/Apache Group/Tomcat
Connectors/v4.1.12/jk/build.xml:167: Compile failed; see the compiler error
output for details.

Here is one of the 100 errors:

[javac] C:\Program Files\Apache Group\Tomcat
Connectors\v4.1.12\jk\java\org\apache\jk\common\WorkerDummy.java:69: package
org.apache.tomcat.util.http does not exist
[javac] import org.apache.tomcat.util.http.*;
[javac]^

Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]

-Original Message-
From: Paul Campbell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 2:51 PM
To: Tomcat Users List
Subject: Re: Errors when compiling Tomcat Connectors

1. Do you mean TOMCAT_HOME or CATALINA_HOME.
The docs refer to CATALINA_HOME..

2. from http://boats:8080/tomcat-docs/appdev/build.xml.txt
under External Dependencies
  Because we will automatically include all of the Java classes that Tomcat
4
  exposes to web applications, we will not need to explicitly list any of
those
  dependencies.

3. what is CATALINA_HOME ? I think this should bring in servlet.jar
 From the build.xml:
 fileset dir=${catalina.home}/common/lib
  include name=*.jar/
   /fileset

At 02:32 PM 11/27/02 -0500, you wrote:
I downloaded the Tomcat connectors (jakarta-tomcat-connectors-4.1.12-src)
and Ant version 1.5.1. I unzipped that to an appropriate directory and then
edited the build.properties file located in
jakarta-tomcat-connectors-4.1.12/jk. Such that it looks like this:

tomcat40.home=%TOMCAT_HOME%
apache2.home=%APACHE2_HOME%
apr.include=${apache2.home}/include
apr.lib=${apache2.home}/lib
so.debug=true
so.optimize=false
so.profile=false

I then ran Ant in the same directory and it came up with a lot of
compiler
errors saying that it could not import org.apache.tomcat.util.* and that
the package does not exist. Those classes are found in tomcat-util.jar and
is located in %TOMCAT_HOME%/server/lib. I tried to put that in my CLASSPATH
environment variable and then ran Ant again, but still it had the same
errors. I am new to Ant and would appreciate any help.

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Errors when compiling Tomcat Connectors

2002-11-27 Thread Rasputin
* Kevin Andryc [EMAIL PROTECTED] [1115 20:15]:
 Both CATALINA_HOME and TOMCAT_HOME are set in my environment variables.
 Still, when I try to build the connectors using Ant, it contains error. Here
 is the error code:
 
 BUILD FAILED
 File:C:/Program Files/Apache Group/Tomcat
 Connectors/v4.1.12/jk/build.xml:167: Compile failed; see the compiler error
 output for details.

Probably a long shot (I haven't tried ant yet) - it wouldn't be related to
the space in the directory name, would it?

-- 
Rasputin :: Jack of All Trades - Master of Nuns

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Errors when compiling Tomcat Connectors

2002-11-27 Thread David Brown
Kevin Andryc writes: 

I downloaded the Tomcat connectors (jakarta-tomcat-connectors-4.1.12-src)
and Ant version 1.5.1. I unzipped that to an appropriate directory and then
edited the build.properties file located in
jakarta-tomcat-connectors-4.1.12/jk. Such that it looks like this: 

tomcat40.home=%TOMCAT_HOME%
apache2.home=%APACHE2_HOME%
apr.include=${apache2.home}/include
apr.lib=${apache2.home}/lib
so.debug=true
so.optimize=false
so.profile=false 

I then ran Ant in the same directory and it came up with a lot of compiler
errors saying that it could not import org.apache.tomcat.util.* and that
the package does not exist. Those classes are found in tomcat-util.jar and
is located in %TOMCAT_HOME%/server/lib. I tried to put that in my CLASSPATH
environment variable and then ran Ant again, but still it had the same
errors. I am new to Ant and would appreciate any help. 

Thanks,
Kevin 

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED] 

 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED] 



Hello Kevin, ant was designed w/ CLASSPATH in mind. namely, ant does not use 
the environment classpath at all. ant defines classpath as part of a 
pathelement attribute. look closely in ur build.xml file and u will see 
something like this:  path id=build.path. the encompassing end tag 
complete the path id definition which will consist of 1 to many classes, 
jars and their paths. also, tomcat needs special jars like: servlet.jar 
found in a special directory: $CATALINA_HOME/lib. look closer and dig 
deeper. hope this helps, david.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]