Build fails on "Cannot resolve symbol"
ageejas1 Aug 26, 2002 4:48 PMHello,
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