Archive for October 20th, 2003

Tomcat Compile Errors

Monday, October 20th, 2003

I tried to compile tomcat using ant and got this:

dropping /usr/share/java/jsse-1.0.3/lib/jsse.jar from path as it doesn’t exist
dropping /opt/IBMJava2-141/jre/lib/jsse.jar from path as it doesn’t exist
dropping /usr/share/java/jsse-1.0.3/lib/jnet.jar from path as it doesn’t exist
dropping /usr/share/java/jsse-1.0.3/lib/jcert.jar from path as it doesn’t exist
dropping /usr/share/java/puretls-0.9b4/build/puretls.jar from path as it doesn’t exist
[javac] Compilation arguments:
[javac] ‘-d’
[javac] ‘/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-5/build/classes’
[javac] ‘-classpath’
[javac] ‘/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-5/build/classes:/usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar:/usr/share/java/commons-logging-1.0.3/commons-logging.jar:/usr/share/java/commons-modeler-1.1/commons-modeler.jar:/usr/local/apache-ant-1.5.4/lib/xml-apis.jar:/usr/local/apache-ant-1.5.4/lib/xercesImpl.jar:/usr/local/apache-ant-1.5.4/lib/optional.jar:/usr/local/apache-ant-1.5.4/lib/ant.jar:/opt/IBMJava2-141/lib/tools.jar’
[javac] ‘-sourcepath’
[javac] ‘/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java’
[javac] ‘-target’
[javac] ‘1.1′
[javac] ‘-g’
[javac]
[javac] The ‘ characters around the executable and arguments are
[javac] not part of the command.
[javac] Files to be compiled:
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE14SocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13Factory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE14Support.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/TcpConnectionHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/TcpConnection.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/URL.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/PoolTcpEndpoint.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/MappingData.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Parameters.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/FastHttpDateFormat.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/MimeMap.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/MimeHeaders.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/BaseRequest.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/ServerCookie.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/LocaleToCharsetMap.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/AcceptLanguage.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/HttpMessages.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/ContentType.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/LogHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/CommonLogHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/CaptureLog.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/LogManager.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/Log.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/SystemLogHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/SimpleHashtable.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/MultiMapValuesEnumeration.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/EmptyEnumeration.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/Queue.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/MultiMap.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/MultiMapNamesEnumeration.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/SimplePool.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/LRUCache.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/JdkCompat.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/Jdk14Compat.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/TcHandlerCtx.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/HandlerManager.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/TcHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadWithAttributes.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/Expirer.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPoolRunnable.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/Reaper.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPoolMX.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPool.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/IntrospectionUtils.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:105: cannot resolve symbol
[javac] symbol : class Sun
[javac] location: package provider
[javac] Security.addProvider (new sun.security.provider.Sun());
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:106: package com.sun.net.ssl.internal.ssl does not exist
[javac] Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider());
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:122: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.KeyManagerFactory kmf =
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:123: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.KeyManagerFactory.getInstance(algorithm);
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:133: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.TrustManager[] tm = null;
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:136: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.TrustManagerFactory tmf =
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:137: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.TrustManagerFactory.getInstance(”SunX509″);
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:143: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.SSLContext context =
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:144: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.SSLContext.getInstance(protocol);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 9 errors



BUILD FAILED
file:/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/build.xml:67: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)

Some Links

Monday, October 20th, 2003

Java 2 Platform, Standard Edition (J2SE Platform), version 1.4.2
Eye on performance: Referencing objects
An Introduction to Java Stack Traces
struts book