powered by Jive Software

Can''t build Openfire 3.2.4 source

Hi, I just downloaded the Openfire 3.2.4 source .tar.gz. I ‘‘tar xzvf’’’‘ed the file, then cd’'d into the build dir and typed ‘‘ant’’ and got a bunch of compilation errors, and probably would get more except I stopped the build:

Buildfile: /home/sam/apps/wildfire/wildfire_324_src/build/build.xml

init:

compile:

Compiling 388 source files to /home/sam/apps/wildfire/wildfire_324_src/work/classes

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Cha nnel.java:88: incompatible types

found : org.jivesoftware.wildfire.ClientSession

required: org.jivesoftware.wildfire.session.Session

Session session = SessionManager.getInstance().getSession(packet.getFrom());

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Cli entSession.java:297: getSASLMechanisms(org.jivesoftware.wildfire.session.Session) in org.jivesoftware.wildfire.net.SASLAuthentication cannot be applied to (org.jivesoftware.wildfire.Session)

sb.append(SASLAuthentication.getSASLMechanisms(session));

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Cli entSession.java:698: cannot find symbol

symbol : method isAllowAnonymous()

location: class org.jivesoftware.wildfire.handler.IQAuthHandler

if (XMPPServer.getInstance().getIQAuthHandler().isAllowAnonymous()) {

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:530: init(org.jivesoftware.wildfire.session.Session) in org.jivesoftware.wildfire.Connection cannot be applied to (org.jivesoftware.wildfire.ClientSession)

conn.init(session);

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:554: put(java.lang.String,org.jivesoftware.wildfire.ClientSession) in java.util.Map<java.lang.String,org.jivesoftware.wildfire.ClientSession> cannot be applied to (java.lang.String,org.jivesoftware.wildfire.http.HttpSession)

preAuthenticatedSessions.put(session.getAddress().getResource(), session);

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:572: incompatible types

found : org.jivesoftware.wildfire.session.ComponentSession

required: org.jivesoftware.wildfire.Session

return session;

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:718: dispatchEvent(org.jivesoftware.wildfire.session.Session,org.jivesoftware.wildfi re.event.SessionEventDispatcher.EventType) in org.jivesoftware.wildfire.event.SessionEventDispatcher cannot be applied to (org.jivesoftware.wildfire.ClientSession,org.jivesoftware.wildfire.event.Sessio nEventDispatcher.EventType)

.dispatchEvent(session, SessionEventDispatcher.EventType.session_created);

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1104: cannot find symbol

symbol : method sort(java.util.List<org.jivesoftware.wildfire.ClientSession>,java.util.Comparat or<org.jivesoftware.wildfire.session.Session>)

location: class java.util.Collections

Collections.sort(filteredResults, filter.getSortComparator());

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1402: dispatchEvent(org.jivesoftware.wildfire.session.Session,org.jivesoftware.wildfi re.event.SessionEventDispatcher.EventType) in org.jivesoftware.wildfire.event.SessionEventDispatcher cannot be applied to (org.jivesoftware.wildfire.ClientSession,org.jivesoftware.wildfire.event.Sessio nEventDispatcher.EventType)

SessionEventDispatcher.dispatchEvent(session,

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1422: dispatchEvent(org.jivesoftware.wildfire.session.Session,org.jivesoftware.wildfi re.event.SessionEventDispatcher.EventType) in org.jivesoftware.wildfire.event.SessionEventDispatcher cannot be applied to (org.jivesoftware.wildfire.ClientSession,org.jivesoftware.wildfire.event.Sessio nEventDispatcher.EventType)

SessionEventDispatcher.dispatchEvent(session,

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1453: dispatchEvent(org.jivesoftware.wildfire.session.Session,org.jivesoftware.wildfi re.event.SessionEventDispatcher.EventType) in org.jivesoftware.wildfire.event.SessionEventDispatcher cannot be applied to (org.jivesoftware.wildfire.ClientSession,org.jivesoftware.wildfire.event.Sessio nEventDispatcher.EventType)

SessionEventDispatcher.dispatchEvent(session,

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1493: cannot find symbol

symbol : method process(org.xmpp.packet.Presence,org.jivesoftware.wildfire.ClientSession)

location: class org.jivesoftware.wildfire.handler.PresenceUpdateHandler

presenceHandler.process(presence, session);

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1692: cannot find symbol

symbol : method addAll(java.util.Collection<org.jivesoftware.wildfire.session.ComponentSession> )

location: interface java.util.Set<org.jivesoftware.wildfire.Session>

sessions.addAll(getComponentSessions());

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1693: cannot find symbol

symbol : method addAll(java.util.Collection<org.jivesoftware.wildfire.session.OutgoingServerSes sion>)

location: interface java.util.Set<org.jivesoftware.wildfire.Session>

sessions.addAll(outgoingServerSessions.values());

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1695: cannot find symbol

symbol : method addAll(java.util.List<org.jivesoftware.wildfire.session.IncomingServerSession>)

location: interface java.util.Set<org.jivesoftware.wildfire.Session>

sessions.addAll(incomingSessions);

^

/home/sam/apps/wildfire/wildfire_324_src/src/java/org/jivesoftware/wildfire/Ses sionManager.java:1699: cannot find symbol

symbol : method addAll(java.util.List<org.jivesoftware.wildfire.session.ConnectionMultiplexerSe ssion>)

location: interface java.util.Set<org.jivesoftware.wildfire.Session>

sessions.addAll(multiplexers);

^

Looks like there was a refactor and there are still some references to the old package name or something? Or did I do something wrong?

Sam

Sorry for the false alarm. I thought I had uncompressed the archive and copied the contents of the resulting folder to a new location. I can’'t build in the new location but can in the original, so I must have done something wrong somewhere in those two commands. Anyway, nevermind.

Message was edited by: sdouglass@ziprealty.com