Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot find symbol

Status
Not open for further replies.

neuralnode

Technical User
Sep 12, 2007
59
PL
Hi All,

I'm trying to compile Tomcat 7 under SPARC Solaris.
While running ant, I get the errors below.
The java used is JDK 1.6.0_27.
Do you know what the problem is?
I'm a Unix admin, I have no clue about Java compilers.

Thanx in advance!


=================

root@crm02:/home/tomcat/apache-tomcat-7.0.21-src# ant
Buildfile: /home/tomcat/apache-tomcat-7.0.21-src/build.xml

build-prepare:
[delete] Deleting directory /home/tomcat/apache-tomcat-7.0.21-src/output/build/temp
[mkdir] Created dir: /home/tomcat/apache-tomcat-7.0.21-src/output/build/temp

download-compile:

testexist:
[echo] Testing for /usr/share/java/tomcat-native-1.1.22/tomcat-native.tar.gz

downloadfile-2:

proxyflags:

setproxy:

testexist:
[echo] Testing for /usr/share/java/commons-daemon-1.0.7/commons-daemon-1.0.7.jar

downloadgz-2:

testexist:
[echo] Testing for /usr/share/java/commons-daemon-1.0.7/commons-daemon-1.0.7-native-src.tar.gz

downloadfile-2:

proxyflags:

setproxy:

testexist:
[echo] Testing for /usr/share/java/commons-pool-1.5.6-src/build.xml

downloadgz-2:

proxyflags:

setproxy:

testexist:
[echo] Testing for /usr/share/java/commons-dbcp-1.4-src/build.xml

downloadgz-2:

build-prepare:
[delete] Deleting directory /home/tomcat/apache-tomcat-7.0.21-src/output/build/temp
[mkdir] Created dir: /home/tomcat/apache-tomcat-7.0.21-src/output/build/temp

build-manifests:

build-tomcat-dbcp:

testexist:
[echo] Testing for /usr/share/java/ecj-3.7/ecj-3.7.jar

downloadfile-2:

download-validate:

validate:

compile:
[javac] Compiling 1185 source files to /home/tomcat/apache-tomcat-7.0.21-src/output/classes
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java:54: cannot find symbol
[javac] symbol : class MessageDispatch15Interceptor
[javac] location: package org.apache.catalina.tribes.group.interceptors
[javac] import org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor;
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/group/GroupChannel.java:40: cannot find symbol
[javac] symbol : class MessageDispatchInterceptor
[javac] location: package org.apache.catalina.tribes.group.interceptors
[javac] import org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor;
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java:61: cannot find symbol
[javac] symbol : class StaticMembershipInterceptor
[javac] location: class org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor
[javac] WeakReference<StaticMembershipInterceptor> staticMembers = null;
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java:42: cannot find symbol
[javac] symbol : class SingleRemoveSynchronizedAddLock
[javac] location: class org.apache.catalina.tribes.transport.bio.util.FastQueue
[javac] private SingleRemoveSynchronizedAddLock lock = null;
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java:229: cannot find symbol
[javac] symbol : class SingleRemoveSynchronizedAddLock
[javac] location: class org.apache.catalina.tribes.transport.bio.util.FastQueue
[javac] public SingleRemoveSynchronizedAddLock getLock() {
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java:678: cannot find symbol
[javac] symbol : class MessageDispatch15Interceptor
[javac] location: class org.apache.catalina.ha.tcp.SimpleTcpCluster
[javac] channel.addInterceptor(new MessageDispatch15Interceptor());
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/tomcat/util/bcel/classfile/Attribute.java:167: cannot find symbol
[javac] symbol : class RuntimeVisibleParameterAnnotations
[javac] location: class org.apache.tomcat.util.bcel.classfile.Attribute
[javac] return new RuntimeVisibleParameterAnnotations(name_index, length,
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/tomcat/util/bcel/classfile/Attribute.java:170: cannot find symbol
[javac] symbol : class RuntimeInvisibleParameterAnnotations
[javac] location: class org.apache.tomcat.util.bcel.classfile.Attribute
[javac] return new RuntimeInvisibleParameterAnnotations(name_index, length,
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/group/GroupChannel.java:364: cannot find symbol
[javac] symbol : class MessageDispatchInterceptor
[javac] location: class org.apache.catalina.tribes.group.GroupChannel
[javac] clazz = MessageDispatchInterceptor.class;
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java:79: cannot find symbol
[javac] symbol : class StaticMembershipInterceptor
[javac] location: class org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor
[javac] if ( next instanceof StaticMembershipInterceptor )
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java:80: cannot find symbol
[javac] symbol : class StaticMembershipInterceptor
[javac] location: class org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor
[javac] staticMembers = new WeakReference<StaticMembershipInterceptor>((StaticMembershipInterceptor)next);
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java:80: cannot find symbol
[javac] symbol : class StaticMembershipInterceptor
[javac] location: class org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor
[javac] staticMembers = new WeakReference<StaticMembershipInterceptor>((StaticMembershipInterceptor)next);
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java:102: cannot find symbol
[javac] symbol : class SingleRemoveSynchronizedAddLock
[javac] location: class org.apache.catalina.tribes.transport.bio.util.FastQueue
[javac] lock = new SingleRemoveSynchronizedAddLock();
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/tomcat/util/http/fileupload/servlet/ServletFileUpload.java:129: cannot find symbol
[javac] symbol : class ServletRequestContext
[javac] location: class org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload
[javac] return parseRequest(new ServletRequestContext(request));
[javac] ^
[javac] /home/tomcat/apache-tomcat-7.0.21-src/java/org/apache/tomcat/util/http/fileupload/servlet/ServletFileUpload.java:151: cannot find symbol
[javac] symbol : class ServletRequestContext
[javac] location: class org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload
[javac] return super.getItemIterator(new ServletRequestContext(request));
[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

BUILD FAILED
/home/tomcat/apache-tomcat-7.0.21-src/build.xml:491: Compile failed; see the compiler error output for details.

Total time: 12 seconds

=================
 
I usually get these "cannot find symbol" messages when the environmental variable CLASSPATH has not been set.

Try doing this before you invoke Buildfile - looks like it might be: "/home/tomcat/apache-tomcat-7.0.21-src//output/build/temp".

Usually it is also best to also include "." in your classpaths,

Regards, Jim.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top