james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bucanek <subscri...@gloaming.com>
Subject Taking the plunge - Some success!
Date Wed, 12 Nov 2003 19:45:34 GMT
Mostly FYI, with one question at the end.

As I mentioned yesterday, I decided to play around with Eclipse and James.  I seem to have
been somewhat successful (after a few false starts, which we'll ignore).

More or less, I did the following:

(a) Created a CVS Repository Explorer for Jakarta at cvs.apache.org/home/cvspublic, using
"anoncvs" for the user id and password.

(b) Checked out the HEAD > james-server directory into a new Java project named JamesCuttingEdge.

(c) Changed the source directory to ./src/java.  Accepted the default build directory of ./bin.

(d) Added (as External JARs) all of the libraries I could find in ./lib, ./lib/candidates,
and ./phoenix-bin/lib.

(e) Discovered that the Java Mail, and Java Activation Framework are option downloads.  Downloaded
the jars for Java Mail 1.3.1 <http://java.sun.com/products/javamail/>, and JAF 1.0.2
<http://java.sun.com/products/javabeans/glasgow/jaf.html>.  Added those as external

(f) Compiled, but got an error

    Class must implement the inherited abstract method Connection.createStatement(int, int,
    PoolConnEntry.java - JamesCuttingEdge/src/java/org/apache/james/util/mordred - line 76

Realized that I was compiling against the Java 1.4.1 library.  Changed my classpath to compile
against the 1.3.1 library.  This lead me to discover that the javax.sql package is NOT part
of 1.3.1.  Downloaded the JDBC 2.0 "Optional" package <http://java.sun.com/products/jdbc/download.html#spec>
and added the JAR as an external library.

-- At this point, everything compiled!  I honestly thought it would be a lot harder to get
this far.

(g) Decided to push my luck and run the 'main' build.xml target.  Quickly discovered that
the Ant build expects the Java Mail and JAF libraries to be in the project's ./lib directory.
 Moved them both there, and renamed mail.jar to mail-1.3.1.jar.

-- And this is the point where I'm stuck.  I'm gettting compile errors from Ant, starting
with this one:

        [echo] Compiling James Java sources
       [javac] Compiling 197 source files to /Applications/eclipse/workspace/JamesCuttingEdge/build/classes
       [javac] /Applications/eclipse/workspace/JamesCuttingEdge/src/java/org/apache/james/util/SqlResources.java:68:
cannot resolve symbol
       [javac] symbol  : class DocumentBuilder  
       [javac] location: package parsers
       [javac] import javax.xml.parsers.DocumentBuilder;
       [javac]                          ^

While I know that 1.3.1 doesn't include the javax.xml package, it appears that the James project
includes phoenix-bin/lib/xercesImpl-2.0.2.jar, which I assume is the Xerces XML library. 
Any idea what I'm missing at this point?

I also suppose that Ant might be using the wrong javac or core libraries.  I'll try to investigate
that possibility a little later today.


James Bucanek       <mailto:privatereply@gloaming.com>

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message