You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ron Wheeler <rw...@artifact-software.com> on 2007/03/02 15:39:28 UTC
Tomcat 6 will not compile under Windows with the current Java
I am bravely or foolishly trying to use Tomcat 6 for a new Spring project.
It needs log4j so I gather that I have to recompile Tomcat to get the
extras.
When I follow the instructions about how to do this, the build fails.
I an using Java 6 and get the following errors when I to the "ant
download" and "ant -f extras.xml"
Is there an easy fix for this or should I just go back to 5 and wait for
a later version of Tomcat 6 to appear with support for log4j in a
Windows binary distribution.
C:\apache-tomcat-6.0.10-src>dir
Volume in drive C is New Volume
Volume Serial Number is 9076-5D78
Directory of C:\apache-tomcat-6.0.10-src
03/02/2007 09:05a <DIR> .
03/02/2007 09:05a <DIR> ..
03/02/2007 09:05a <DIR> bin
02/13/2007 02:03p 3,446 build.properties.default
02/13/2007 02:03p 25,314 build.xml
02/13/2007 02:03p 3,909 BUILDING.txt
03/02/2007 09:05a <DIR> conf
02/13/2007 02:03p 29,646 dist.xml
02/13/2007 02:03p 8,165 extras.xml
02/13/2007 02:03p <DIR> java
02/13/2007 02:03p 18,272 KEYS
02/13/2007 02:03p 11,560 LICENSE
02/13/2007 02:03p <DIR> native
02/13/2007 02:03p 501 NOTICE
02/13/2007 02:03p 6,109 RELEASE-NOTES
02/13/2007 02:03p 1,489 RELEASE-PLAN-6.0.txt
03/02/2007 09:06a <DIR> res
02/13/2007 02:03p 5,584 RUNNING.txt
02/13/2007 02:03p <DIR> test
02/13/2007 02:03p <DIR> webapps
11 File(s) 113,995 bytes
9 Dir(s) 6,863,671,296 bytes free
C:\apache-tomcat-6.0.10-src>ant download
Buildfile: build.xml
download:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/tomcat-native-1.1.8/tomcat-native.tar.gz
downloadfile:
[mkdir] Created dir: C:\usr\share\java\tomcat-native-1.1.8
[get] Getting:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-1.1.8-src.tar.gz
[get] To: C:\usr\share\java\tomcat-native-1.1.8\tomcat-native.tar.gz
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-daemon-1.0.1/commons-daemon.jar
downloadgz:
[get] Getting:
http://archive.apache.org/dist/jakarta/commons/daemon/binar
ies/commons-daemon-1.0.1.tar.gz
[get] To: C:\usr\share\java\file.tar.gz
[gunzip] Expanding C:\usr\share\java\file.tar.gz to
C:\usr\share\java\file.tar
[untar] Expanding: \usr\share\java\file.tar into \usr\share\java
[delete] Deleting: C:\usr\share\java\file.tar
[delete] Deleting: C:\usr\share\java\file.tar.gz
setproxy:
testexist:
[echo] Testing for /usr/share/java/tomcat6-deps/dbcp/tomcat-dbcp.jar
downloadgz:
[get] Getting:
http://archive.apache.org/dist/jakarta/commons/collections/
source/commons-collections-3.1-src.tar.gz
[get] To: C:\usr\share\java\file.tar.gz
[gunzip] Expanding C:\usr\share\java\file.tar.gz to
C:\usr\share\java\file.tar
[untar] Expanding: \usr\share\java\file.tar into \usr\share\java
[delete] Deleting: C:\usr\share\java\file.tar
[delete] Deleting: C:\usr\share\java\file.tar.gz
setproxy:
testexist:
[echo] Testing for /usr/share/java/tomcat6-deps/dbcp/tomcat-dbcp.jar
downloadgz:
[get] Getting:
http://archive.apache.org/dist/jakarta/commons/pool/source/commons-pool-1.2-src.tar.gz
[get] To: C:\usr\share\java\file.tar.gz
[gunzip] Expanding C:\usr\share\java\file.tar.gz to
C:\usr\share\java\file.tar
[untar] Expanding: \usr\share\java\file.tar into \usr\share\java
[delete] Deleting: C:\usr\share\java\file.tar
[delete] Deleting: C:\usr\share\java\file.tar.gz
setproxy:
testexist:
[echo] Testing for /usr/share/java/tomcat6-deps/dbcp/tomcat-dbcp.jar
downloadgz:
[get] Getting:
http://archive.apache.org/dist/jakarta/commons/dbcp/source/commons-dbcp-1.2.1-src.tar.gz
[get] To: C:\usr\share\java\file.tar.gz
[gunzip] Expanding C:\usr\share\java\file.tar.gz to
C:\usr\share\java\file.tar
[untar] Expanding: \usr\share\java\file.tar into \usr\share\java
[delete] Deleting: C:\usr\share\java\file.tar
[delete] Deleting: C:\usr\share\java\file.tar.gz
[mkdir] Created dir: C:\usr\share\java\tomcat6-deps\dbcp
build-tomcat-dbcp:
[copy] Copying 62 files to C:\usr\share\java\tomcat6-deps\dbcp
[mkdir] Created dir:
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache
\tomcat\dbcp
[move] Moving 62 files to
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp
[mkdir] Created dir: C:\usr\share\java\tomcat6-deps\dbcp\classes
[javac] Compiling 62 source files to
\usr\share\java\tomcat6-deps\dbcp\class
es
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\BasicDataSource.java:43:
org.apache.tomcat.dbcp.dbcp.BasicDataSource is not
abstract and does not override abstract method
isWrapperFor(java.lang.Class<?>)
in java.sql.Wrapper
[javac] public class BasicDataSource implements DataSource {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\DelegatingStatement.java:45:
org.apache.tomcat.dbcp.dbcp.DelegatingStatemen
t is not abstract and does not override abstract method isPoolable() in
java.sql
.Statement
[javac] public class DelegatingStatement extends AbandonedTrace
implements S
tatement {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\DelegatingStatement.java:130: isClosed() in
org.apache.tomcat.dbcp.dbcp.Del
egatingStatement cannot implement isClosed() in java.sql.Statement;
attempting t
o assign weaker access privileges; was public
[javac] protected boolean isClosed() {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\DelegatingPreparedStatement.java:49:
org.apache.tomcat.dbcp.dbcp.Delegating
PreparedStatement is not abstract and does not override abstract method
setNClob
(int,java.io.Reader) in java.sql.PreparedStatement
[javac] public class DelegatingPreparedStatement extends
DelegatingStatement
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\DelegatingCallableStatement.java:52:
org.apache.tomcat.dbcp.dbcp.Delegating
CallableStatement is not abstract and does not override abstract method
setNClob
(java.lang.String,java.io.Reader) in java.sql.CallableStatement
[javac] public class DelegatingCallableStatement extends
DelegatingPreparedS
tatement
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\DelegatingConnection.java:50:
org.apache.tomcat.dbcp.dbcp.DelegatingConnect
ion is not abstract and does not override abstract method
createStruct(java.lang
.String,java.lang.Object[]) in java.sql.Connection
[javac] public class DelegatingConnection extends AbandonedTrace
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\DelegatingResultSet.java:54:
org.apache.tomcat.dbcp.dbcp.DelegatingResultSe
t is not abstract and does not override abstract method
updateNClob(java.lang.St
ring,java.io.Reader) in java.sql.ResultSet
[javac] public class DelegatingResultSet extends AbandonedTrace
implements R
esultSet {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\PoolablePreparedStatement.java:40:
org.apache.tomcat.dbcp.dbcp.PoolablePrep
aredStatement is not abstract and does not override abstract method
setNClob(int
,java.io.Reader) in java.sql.PreparedStatement
[javac] public class PoolablePreparedStatement extends
DelegatingPreparedSta
tement implements PreparedStatement {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\PoolingConnection.java:37:
org.apache.tomcat.dbcp.dbcp.PoolingConnection is
not abstract and does not override abstract method
createStruct(java.lang.Strin
g,java.lang.Object[]) in java.sql.Connection
[javac] public class PoolingConnection extends DelegatingConnection
implemen
ts Connection, KeyedPoolableObjectFactory {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\PoolingDataSource.java:44:
org.apache.tomcat.dbcp.dbcp.PoolingDataSource is
not abstract and does not override abstract method
isWrapperFor(java.lang.Class
<?>) in java.sql.Wrapper
[javac] public class PoolingDataSource implements DataSource {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\SQLNestedException.java:38: warning: non-varargs call of varargs
method wit
h inexact argument type for last parameter;
[javac] cast to java.lang.Class<?> for a varargs call
[javac] cast to java.lang.Class<?>[] for a non-varargs call and to
suppress
this warning
[javac] getCauseMethod =
Throwable.class.getMethod("getCause", n
ull);
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\cpdsadapter\ConnectionImpl.java:40:
org.apache.tomcat.dbcp.dbcp.cpdsadapter
.ConnectionImpl is not abstract and does not override abstract method
createStru
ct(java.lang.String,java.lang.Object[]) in java.sql.Connection
[javac] class ConnectionImpl implements Connection {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\cpdsadapter\PooledConnectionImpl.java:42:
org.apache.tomcat.dbcp.dbcp.cpdsa
dapter.PooledConnectionImpl is not abstract and does not override
abstract metho
d removeStatementEventListener(javax.sql.StatementEventListener) in
javax.sql.Po
oledConnection
[javac] class PooledConnectionImpl
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\cpdsadapter\PoolablePreparedStatementStub.java:33: isClosed() in
org.apache
.tomcat.dbcp.dbcp.DelegatingStatement cannot implement isClosed() in
java.sql.St
atement; attempting to assign weaker access privileges; was public
[javac] class PoolablePreparedStatementStub extends
PoolablePreparedStatemen
t {
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\datasources\PerUserPoolDataSource.java:49:
org.apache.tomcat.dbcp.dbcp.data
sources.PerUserPoolDataSource is not abstract and does not override
abstract met
hod isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
[javac] public class PerUserPoolDataSource
[javac] ^
[javac]
C:\usr\share\java\tomcat6-deps\dbcp\src\java\org\apache\tomcat\dbcp\
dbcp\datasources\SharedPoolDataSource.java:43:
org.apache.tomcat.dbcp.dbcp.datas
ources.SharedPoolDataSource is not abstract and does not override
abstract metho
d isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
[javac] public class SharedPoolDataSource
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 15 errors
[javac] 1 warning
BUILD FAILED
C:\apache-tomcat-6.0.10-src\build.xml:569: The following error occurred
while executing this line:
C:\apache-tomcat-6.0.10-src\build.xml:629: Compile failed; see the
compiler error output for details.
Total time: 29 seconds
C:\apache-tomcat-6.0.10-src>
C:\apache-tomcat-6.0.10-src>ant -f extras.xml
Buildfile: extras.xml
prepare:
[mkdir] Created dir: C:\apache-tomcat-6.0.10-src\output\extras
commons-logging:
setproxy:
testexist:
[echo] Testing for
C:\apache-tomcat-6.0.10-src/output/extras/logging/commo
ns-logging-src.tar.gz
downloadfile:
[mkdir] Created dir: C:\apache-tomcat-6.0.10-src\output\extras\logging
[get] Getting:
http://archive.apache.org/dist/jakarta/commons/logging/sour
ce/commons-logging-1.1-src.tar.gz
[get] To:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-loggin
g-src.tar.gz
[gunzip] Expanding
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-
logging-src.tar.gz to
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-
logging-src.tar
[untar] Expanding:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons
-logging-src.tar into C:\apache-tomcat-6.0.10-src\output\extras\logging
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\src\java\org\apache\juli
[move] Moving 16 files to
C:\apache-tomcat-6.0.10-src\output\extras\logging
\commons-logging-1.1-src\src\java\org\apache\juli
[copy] Copying 1 file to
C:\apache-tomcat-6.0.10-src\output\extras\logging\
commons-logging-1.1-src
getlibs:
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\lib
[get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar
[get] To:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-loggin
g-1.1-src\lib\junit-3.8.1.jar
[get] Getting:
http://www.ibiblio.org/maven/logkit/jars/logkit-1.0.1.jar
[get] To:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-loggin
g-1.1-src\lib\logkit-1.0.1.jar
[get] Getting:
http://www.ibiblio.org/maven/avalon-framework/jars/avalon-f
ramework-4.1.3.jar
[get] To:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-loggin
g-1.1-src\lib\avalon-framework-4.1.3.jar
[get] Getting:
http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.12.jar
[get] To:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-loggin
g-1.1-src\lib\log4j-1.2.12.jar
[get] Getting:
http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3
.jar
[get] To:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-loggin
g-1.1-src\lib\servletapi-2.3.jar
[copy] Copying 5 files to
C:\apache-tomcat-6.0.10-src\output\extras\logging
\commons-logging-1.1-src
init:
[echo] -------- Logging Wrapper Library 1.1 --------
prepare:
[echo]
[echo] Log4j12: log4j-1.2.12.jar
[echo]
[echo]
[echo] LogKit: logkit-1.0.1.jar
[echo] Avalon-Framework: avalon-framework-4.1.3.jar
[echo]
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\target
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\target\classes
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\target\conf
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\target\tests
static:
[copy] Copying 1 file to
C:\apache-tomcat-6.0.10-src\output\extras\logging\
commons-logging-1.1-src\target\conf
discovery:
log4j12-warning:
log4j13-warning:
logkit-warning:
jdk1.4-warning:
avalon-framework-warning:
compile-non-log4j:
[javac] Compiling 13 source files to
C:\apache-tomcat-6.0.10-src\output\extr
as\logging\commons-logging-1.1-src\target\classes
compile-1.4:
warning:
show-lib-presence:
[echo] jdk.1.4.present=true
[echo] log4j12.present=true
[echo] logkit.present=true
[echo] avalon-framework.present=true
compile-log4j12:
[javac] Compiling 1 source file to
C:\apache-tomcat-6.0.10-src\output\extras
\logging\commons-logging-1.1-src\target\classes
[javac] Note:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commons-logg
ing-1.1-src\src\java\org\apache\juli\logging\impl\Log4JLogger.java uses
or overr
ides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
compile-log4j13:
build-jar:
[copy] Copying 3 files to
C:\apache-tomcat-6.0.10-src\output\extras\logging
\commons-logging-1.1-src\target\classes
[mkdir] Created dir:
C:\apache-tomcat-6.0.10-src\output\extras\logging\commo
ns-logging-1.1-src\target\classes\META-INF
[copy] Copying 1 file to
C:\apache-tomcat-6.0.10-src\output\extras\logging\
commons-logging-1.1-src\target\classes\META-INF
[copy] Copying 1 file to
C:\apache-tomcat-6.0.10-src\output\extras\logging\
commons-logging-1.1-src\target\classes\META-INF
[jar] Building jar:
C:\apache-tomcat-6.0.10-src\output\extras\logging\comm
ons-logging-1.1-src\target\commons-logging-1.1.jar
[jar] Building jar:
C:\apache-tomcat-6.0.10-src\output\extras\logging\comm
ons-logging-1.1-src\target\commons-logging-api-1.1.jar
[jar] Building jar:
C:\apache-tomcat-6.0.10-src\output\extras\logging\comm
ons-logging-1.1-src\target\commons-logging-adapters-1.1.jar
compile-only:
compile:
BUILD FAILED
C:\apache-tomcat-6.0.10-src\extras.xml:116:
C:\apache-tomcat-6.0.10-src\output\c
lasses not found.
Total time: 18 seconds
C:\apache-tomcat-6.0.10-src>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
Hassan Schroeder wrote:
> On 3/2/07, Ron Wheeler <rw...@artifact-software.com> wrote:
>
>> Am I correct in assuming that everyone is going to have the same problem
>> with logging.
>
> It's not clear to me what "problem" you're trying to solve. I'm running
> TC 6.0.9 out of the box with Java 6 and log4j for my apps, no probs.
>
> If Spring wants log4j, drop the jar file in there, and you're done, eh?
>
> Or am I totally missing something? :-)
More likely me than you since your state seems to be a lot better than
mine :-)
I tried again and put in log4j and commons-logging and now seem to have
moved on to another error.
I am not sure what that whole Tomcat documentation page about logging is
about.
Perhaps it only refers to internal Tomcat logs not applications running
under Tomcat. Not too clear.
I will start a new thread with a better title for my current state.
Thanks for the encouragement to try it one more time.
Ron
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Hassan Schroeder <ha...@gmail.com>.
On 3/2/07, Ron Wheeler <rw...@artifact-software.com> wrote:
> Am I correct in assuming that everyone is going to have the same problem
> with logging.
It's not clear to me what "problem" you're trying to solve. I'm running
TC 6.0.9 out of the box with Java 6 and log4j for my apps, no probs.
If Spring wants log4j, drop the jar file in there, and you're done, eh?
Or am I totally missing something? :-)
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Rémy Maucherat <re...@gmail.com>.
On 3/2/07, Ron Wheeler <rw...@artifact-software.com> wrote:
> How soon will Tomcat support the current Java version?
> Is it a big problem to include the extras, if the current Java is not
> supported?
At the moment, Tomcat 6 is developed and builds on Java 5, and runs on
Java 5 and 6. I'd like to understand what's so complicated about this.
Rémy
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
Rémy Maucherat wrote:
> On 3/2/07, Ron Wheeler <rw...@artifact-software.com> wrote:
>> The build could be eliminated if the binary distribution contained the
>> extras but it does not. I assume that when everyone using log4j has the
>> same problem, it will.
>
> This is not going to happen.
>
> It is quite evident the compilation fails when compiling the DB
> connection pool, due to added methods in JDBC in Java 6. Only Java 5
> is supported when compiling Tomcat 6.
>
> Rémy
>
How soon will Tomcat support the current Java version?
Is it a big problem to include the extras, if the current Java is not
supported?
Am I correct in assuming that everyone is going to have the same problem
with logging.
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Rémy Maucherat <re...@gmail.com>.
On 3/2/07, Ron Wheeler <rw...@artifact-software.com> wrote:
> The build could be eliminated if the binary distribution contained the
> extras but it does not. I assume that when everyone using log4j has the
> same problem, it will.
This is not going to happen.
It is quite evident the compilation fails when compiling the DB
connection pool, due to added methods in JDBC in Java 6. Only Java 5
is supported when compiling Tomcat 6.
Rémy
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
I was getting a class not found error.
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
The class related to logging and in Tomcat 6, it appears that logging
has changed and the log4j stuff is not in the basic package
From the Tomcat docs http://tomcat.apache.org/tomcat-6.0-doc/logging.html
" By default, only java.util.logging is available for the core Tomcat,
as Tomcat uses a package renamed logging implementation which is
hardcoded for that logger. Usage of alternate loggers is available after
building the extra components (see the extras components
<http://tomcat.apache.org/tomcat-6.0-doc/extras.html> documentation),
which includes a full commons-logging implementation."
Later in the page it described on about how to use log4j including the
following step.
* Download Log4J <http://logging.apache.org/log4j> (v1.2 or later)
and place the log4j jar in $CATALINA_HOME/lib.
* Build the commons-logging additional component using the
extras.xml Ant build script which is part of teh Tomcat source bundle.
* Replace |$CATALINA_HOME/bin/tomcat-juli.jar| with
|output/extras/tomcat-juli.jar|.
* Place |output/extras/tomcat-juli-adapters.jar| in $CATALINA_HOME/lib.
* Start Tomcat
*
The build could be eliminated if the binary distribution contained the
extras but it does not. I assume that when everyone using log4j has the
same problem, it will.
I hope that this is clearer.
Thanks
Ron
Caldarale, Charles R wrote:
>> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
>> Subject: Tomcat 6 will not compile under Windows with the current Java
>>
>> I am bravely or foolishly trying to use Tomcat 6 for a new
>> Spring project. It needs log4j so I gather that I have to
>> recompile Tomcat to get the extras.
>>
>
> ??? Other than the optional APR connector, Tomcat is pure Java, as are
> log4j and Spring - the binaries will run on any platform. No
> recompilation needed. With the advent of Tomcat's NIO connector, the
> APR one is probably superfluous, so you don't need that either.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 will not compile under Windows with the current Java
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Rémy Maucherat [mailto:remy.maucherat@gmail.com]
> Subject: Re: Tomcat 6 will not compile under Windows with the
> current Java
>
> Do you have evidence which shows this ? Try to not present your
> personal opinion as an established fact.
The key word above was "largely". It's adequate for our needs, on Windows boxes.
> - JSSE is far slower than OpenSSL, which in addition to that has
> plenty of hardware accelerators
This is indeed an issue, but our comm layer (on the proprietary platforms) provides SSL support so we don't have to use JSSE or OpenSSL.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
Rémy Maucherat wrote:
> On 3/2/07, Caldarale, Charles R <Ch...@unisys.com> wrote:
>> No, I was just pointing out that the only platform-dependent code
>> associated with Tomcat is the APR connector (tcnative-1.dll). The
>> performance advantages of using that connector have been largely
>> eliminated by the pure Java NIO connector in Tomcat 6.
>
> Do you have evidence which shows this ? Try to not present your
> personal opinion as an established fact.
>
> It is quite evident the NIO connector cannot match the APR connector
> performance where it really matters at the moment, mostly because NIO
> still falls short:
> - On Linux, no sendfile, deferred accept, etc
> - JSSE is far slower than OpenSSL, which in addition to that has
> plenty of hardware accelerators
>
> Rémy
>
As interesting as this is, it does not really resolve the compilation
problem.
Ron
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Rémy Maucherat <re...@gmail.com>.
On 3/2/07, Caldarale, Charles R <Ch...@unisys.com> wrote:
> No, I was just pointing out that the only platform-dependent code
> associated with Tomcat is the APR connector (tcnative-1.dll). The
> performance advantages of using that connector have been largely
> eliminated by the pure Java NIO connector in Tomcat 6.
Do you have evidence which shows this ? Try to not present your
personal opinion as an established fact.
It is quite evident the NIO connector cannot match the APR connector
performance where it really matters at the moment, mostly because NIO
still falls short:
- On Linux, no sendfile, deferred accept, etc
- JSSE is far slower than OpenSSL, which in addition to that has
plenty of hardware accelerators
Rémy
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 will not compile under Windows with the current Java
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Subject: Re: Tomcat 6 will not compile under Windows with the
> current Java
>
> I really need to get the logging issue resolved so I can
> get back to testing.
> The Spring crowd seems pretty settled on log4j as their
> primary logging vehicle and I want to follow that just
> to get the support.
Perhaps I'm confused, but app logging and Tomcat core logging are
completely independent. You don't need to make Tomcat use log4j just
because your Spring app uses it.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
Caldarale, Charles R wrote:
>> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
>> Subject: Re: Tomcat 6 will not compile under Windows with the
>> current Java
>>
>
>
>> I am not sure if Tomcat will start without it
>>
>
> Tomcat runs fine without APR - just delete or rename the .dll file if
> you want to experiment with the NIO connector.
>
> - Chuck
>
I might try that in the future. The target for the application is Linux
so I am not going to spend a lot of time optimizing Windows although
that is the development platform.
I really need to get the logging issue resolved so I can get back to
testing.
At the moment, I am stuck and if it can not be resolved, I will go back
to 5.5 so I can finish the development that I need to do.
The Spring crowd seems pretty settled on log4j as their primary logging
vehicle and I want to follow that just to get the support.
I was actually just trying to get the Java 1.5 version of Spring
Petclinic demo to run under Tomcat before I started with my stuff where
my errors will outweigh any tool deficiencies so I want to test the
tools first.
Ron
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 will not compile under Windows with the current Java
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Subject: Re: Tomcat 6 will not compile under Windows with the
> current Java
> I am not sure if Tomcat will start without it
Tomcat runs fine without APR - just delete or rename the .dll file if
you want to experiment with the NIO connector.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
Caldarale, Charles R wrote:
>> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
>> Subject: Re: Tomcat 6 will not compile under Windows with the
>> current Java
>>
>>
>>> With the advent of Tomcat's NIO connector, the
>>> APR one is probably superfluous, so you don't need that either.
>>>
>>
>> I do not understand this comment. What does this refer to? Do
>> I need to do anything here?
>>
>
> No, I was just pointing out that the only platform-dependent code
> associated with Tomcat is the APR connector (tcnative-1.dll). The
> performance advantages of using that connector have been largely
> eliminated by the pure Java NIO connector in Tomcat 6.
>
>
> - Chuck
>
>
Thanks, I did not recognize the original terminology although APR was a
bit of a hint.
I did upgrade the tcnative-1.dll since Tomcat complained when it started
that I had an old version.
The references in the Tomcat documentation to tcnative-1.dll is a bit
sketchy and it is very easy to overlook this file and a bit hard to find
it if you need to upgrade it.
I am not sure if Tomcat will start without it and it bitches if you are
not running the latest version.
Ron
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 will not compile under Windows with the current Java
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Subject: Re: Tomcat 6 will not compile under Windows with the
> current Java
>
> > With the advent of Tomcat's NIO connector, the
> > APR one is probably superfluous, so you don't need that either.
>
> I do not understand this comment. What does this refer to? Do
> I need to do anything here?
No, I was just pointing out that the only platform-dependent code
associated with Tomcat is the APR connector (tcnative-1.dll). The
performance advantages of using that connector have been largely
eliminated by the pure Java NIO connector in Tomcat 6.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 will not compile under Windows with the current Java
Posted by Ron Wheeler <rw...@artifact-software.com>.
Caldarale, Charles R wrote:
>> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
>> Subject: Tomcat 6 will not compile under Windows with the current Java
>>
>> I am bravely or foolishly trying to use Tomcat 6 for a new
>> Spring project. It needs log4j so I gather that I have to
>> recompile Tomcat to get the extras.
>>
>
> ??? Other than the optional APR connector, Tomcat is pure Java, as are
> log4j and Spring - the binaries will run on any platform. No
> recompilation needed.
> With the advent of Tomcat's NIO connector, the
> APR one is probably superfluous, so you don't need that either.
>
I do not understand this comment. What does this refer to? Do I need to
do anything here?
Ron
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 will not compile under Windows with the current Java
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Subject: Tomcat 6 will not compile under Windows with the current Java
>
> I am bravely or foolishly trying to use Tomcat 6 for a new
> Spring project. It needs log4j so I gather that I have to
> recompile Tomcat to get the extras.
??? Other than the optional APR connector, Tomcat is pure Java, as are
log4j and Spring - the binaries will run on any platform. No
recompilation needed. With the advent of Tomcat's NIO connector, the
APR one is probably superfluous, so you don't need that either.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org