You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Max Levinson <ma...@gmail.com> on 2009/02/13 12:22:05 UTC

Problems in building James with Phoenix on CentOS 5.2 with JDK 6

Hi guys,
I am trying to build James from a source code (using this
file: james-with-phoenix-2.3.1-src.tar.gz) on CentOS 5.2, I am using the
most recent version of Java (Installed it from rpm from sun.com) was using
this bin file jdk-6u12-linux-i586-rpm.bin

[root@srv1 james]# java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)


[root@srv1 james]# ant -version
Apache Ant version 1.7.1 compiled on June 27 2008

Here are the errors during James compilation:

[root@srv1 james]# ant
Buildfile: build.xml

setup-dependencies:

javamail-check:

activation-check:

check-dependencies:

prepare-common:
[echo] Preparing code
[mkdir] Created dir: /opt/spamolov/james/dist/james-2.3.1
[copy] Copying 3 files to /opt/spamolov/james/dist/james-2.3.1
[mkdir] Created dir: /opt/spamolov/james/build/src
[copy] Copying 1 file to /opt/spamolov/james/build/src

prepare-phoenix:
[echo] Phoenix distribution present – adjusting linefeeds and permissions,
copying files
[copy] Copying 67 files to /opt/spamolov/james/dist/james-2.3.1
[copy] Copying 6 files to /opt/spamolov/james/dist/james-2.3.1/lib
[copy] Copying 1 file to /opt/spamolov/james/dist/james-2.3.1/bin

prepare-mxinfo:
[mkdir] Created dir: /opt/spamolov/james/build/classes
[generatemeta] Writing Info descriptors as legacy xml.

prepare-metainf:
[copy] Copying 1 file to /opt/spamolov/james/build/meta-inf

prepare:

compile-main:
[echo] Compiling James Java sources
[javac] Compiling 317 source files to /opt/spamolov/james/build/classes
[javac] /opt/spamolov/james/src/java/org/apache/james/James.java:407:
warning: [deprecation] sendMail(javax.mail.internet.MimeMessage) in
org.apache.james.services.MailServer has been deprecated
[javac] public void sendMail(MimeMessage message) throws MessagingException
{
[javac] ^
[javac] /opt/spamolov/james/src/java/org/apache/james/James.java:470:
warning: [deprecation]
sendMail(org.apache.mailet.MailAddress,java.util.Collection,java.io.InputStream)
in org.apache.james.services.MailServer has been deprecated
[javac] public void sendMail(MailAddress sender, Collection recipients,
InputStream msg)
[javac] ^
[javac] /opt/spamolov/james/src/java/org/apache/james/James.java:433:
warning: [deprecation]
sendMail(org.apache.mailet.MailAddress,java.util.Collection,javax.mail
.internet.MimeMessage) in org.apache.james.services.MailServer has been
deprecated
[javac] public void sendMail(MailAddress sender, Collection recipients,
MimeMessage message)
[javac] ^
[javac]
/opt/spamolov/james/src/java/org/apache/james/util/mordred/PoolConnEnt
ry.java:37: org.apache.james.util.mordred.PoolConnEntry is not abstract and
does not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection
[javac] public class PoolConnEntry implements java.sql.Connection{
[javac] ^
[javac] 1 error
[javac] 3 warnings

BUILD FAILED
/opt/spamolov/james/build.xml:288: Compile failed; see the compiler error
output for details.

Total time: 15 seconds

Any ideas what is the problem?