INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

cannot find symbol

cannot find symbol

(OP)
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

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

RE: cannot find symbol

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close