2 Replies Latest reply on Aug 26, 2002 11:16 PM by David Jencks

    Build fails on "Cannot resolve symbol"

    Jason Agee Newbie

      Hello,

      I am trying to build from source files, and am having some trouble. I am compiling on HP-UX 11.00, using Java 1.4. I know there are some problems with compiling with 1.4, however I believe that the errors I am encountering are not related to those (I wish I could get to those errors). The problem that is occurring is a "Cannot resolve symbol" error. This seems strange, because it makes it seem that the build files are wrong. Initially I had a problem getting the build file to locate Ant (even though I did have ANT_HOME and ANT both defined in my .profile). I edited the build.sh file, and in the "main" block added the following:
      ANT_HOME="/usr/JBoss/JBoss-3.0.0-2/jboss-all/tools"
      That allowed the build to start, but now when I build I get the following errors:


      /usr/JBoss/JBoss-3.0.0-2/jboss-all/j2ee/src/main/javax/ejb/EJBContext.java:31: warning: java.security.Identity in java.security has been deprecated
      public Identity getCallerIdentity();
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/j2ee/src/main/javax/ejb/EJBContext.java:112:
      warning: java.security.Identity in java.security has been deprecated
      public boolean isCallerInRole(Identity role);
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/j2ee/src/main/javax/ejb/EJBContext.java:112:
      warning: java.security.Identity in java.security has been deprecated
      public boolean isCallerInRole(Identity role);
      ^
      3 warnings
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/ejb/ EnterpriseContext.java:10: warning: java.security.Identity in java.security has been deprecated
      import java.security.Identity;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/ejb/ EnterpriseContext.java:214: warning: java.security.Identity in java.security has been deprecated
      public Identity getCallerIdentity()
      ^
      /usr/JBoss/JBoss-3.0.0-2/jbossall/server/src/main/org/jboss/ejb/ EnterpriseContext.java:340: warning: java.security.Identity in java.security has been deprecated
      public boolean isCallerInRole(Identity id)
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/ejb/E
      JBConnector.java:59: cannot resolve symbol
      symbol : class PollingClientNotificationListener
      location: package notification
      import org.jboss.jmx.connector.notification.PollingClientNotificationListener;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/rmi/R
      MIConnectorImpl.java:68: cannot resolve symbol
      symbol : class PollingClientNotificationListener
      location: package notification
      import org.jboss.jmx.connector.notification.PollingClientNotificationListener;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/notif
      ication/RMIClientNotificationListener.java:31: cannot resolve symbol
      symbol : class RMIClientNotificationListenerInterface
      location: class org.jboss.jmx.connector.notification.RMIClientNotificationListener
      implements RMIClientNotificationListenerInterface
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/ notification/RMINotificationListener.java:31: cannot resolve symbol
      symbol : class RMIClientNotificationListenerInterface
      location: class org.jboss.jmx.connector.notification.RMINotificationListener
      private RMIClientNotificationListenerInterface mClientListener;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jbossall/server/src/main/org/jboss/jmx/connector/notification/ RMINotificationListener.java:46: cannot resolve symbol
      symbol : class RMIClientNotificationListenerInterface
      location: class org.jboss.jmx.connector.notification.RMINotificationListener
      public RMINotificationListener( RMIClientNotificationListenerInterface pClientListener ) {
      ^
      /usr/JBoss/JBoss-3.0.0-2/jbossall/server/src/main/org/jboss/security/ SecurityDomain.java:12: warning: com.sun.net.ssl.KeyManagerFactory in com.sun.net.ssl has been deprecated
      import com.sun.net.ssl.KeyManagerFactory;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jbossall/server/src/main/org/jboss/security/ SecurityDomain.java:13: warning: com.sun.net.ssl.TrustManagerFactory in com.sun.net.ssl has been deprecated
      import com.sun.net.ssl.TrustManagerFactory;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/security/ SecurityDomain.java:32: warning: com.sun.net.ssl.KeyManagerFactory in com.sun.net.ssl has
      been deprecated
      public KeyManagerFactory getKeyManagerFactory() throws SecurityException;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/security/ SecurityDomain.java:38: warning: com.sun.net.ssl.TrustManagerFactory in com.sun.net.ssl has been deprecated
      public TrustManagerFactory getTrustManagerFactory() throws SecurityException;
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/ejb/ EnterpriseContext.java:340: warning: java.security.Identity in java.security has been deprecated
      public boolean isCallerInRole(Identity id)
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/ejb/ EJBConnector.java:543: cannot resolve symbol
      symbol : class PollingClientNotificationListener
      location: class org.jboss.jmx.connector.ejb.EJBConnectorlListener = new PollingClientNotificationListener(
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/rmi/ RMIConnectorImpl.java:533: cannot resolve symbol
      symbol : class PollingClientNotificationListener
      location: class org.jboss.jmx.connector.rmi.RMIConnectorImpl
      lListener = new PollingClientNotificationListener(
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/ notification/RMIClientNotificationListener.java:46: cannot resolve symbol
      symbol : method exportObject (org.jboss.jmx.connector.notification.RMIClientNotificationListener)
      location: class java.rmi.server.UnicastRemoteObject
      UnicastRemoteObject.exportObject( this );
      ^
      /usr/JBoss/JBoss-3.0.0-2/jboss-all/server/src/main/org/jboss/jmx/connector/ notification/RMIClientNotificationListener.java:52: cannot resolve symbol
      symbol : class RMIClientNotificationListenerInterface
      location: class org.jboss.jmx.connector.notification.RMIClientNotificationListen
      er
      new String[] { RMIClientNotificationListenerInterface.class.getName() }
      ^
      9 errors
      8 warnings

      Does anyone know why these classes can not be found?
      Thanks.

      ageejas1

        • 1. Re: Build fails on "Cannot resolve symbol"
          Jason Agee Newbie

          This particular problem was being caused by the unpacking of the tar file limiting the length of the names of the files. Corrected the names and it made it past these errors. Still more errors however (I wonder if I'm getting these problems because it's an Alpha version).

          • 2. Re: Build fails on "Cannot resolve symbol"
            David Jencks Master

            I don't know what is in any source tar file, but I have never seen one that is very up to date. I strongly recommend that you check out code from cvs and compile it. You have a choice of Branch_3_0 (soon to be the 3.0.2 release), Branch_3_2, and HEAD.

            Are you compiling by

            cd build
            ./build.sh

            ? The error suggests perhaps you have not compiled the dependent modules. Also, an appropriate and findable version of ant should be in the download.... but maybe AIX is non-standard unix.