Thanks Andy.
At 02:34 AM 12/10/2004, Andy McBride wrote:
Hi,
Trying to build the current cvs head using jdk1.3 produces the following errors:
With build.properties pointing to a valid jdbc2_0-stdext.jar I get the following errors as the methods used are from JDBC 3.0 which I can't seem to find a jar for (other than using jdk1.4!)
jdbcExtension:
[echo] JDBC Standard Extension is present.
build.db:
[javac] Compiling 11 source files to C:\Java\code\jakarta\logging-log4j\dist\classes
[javac] C:\Java\code\jakarta\logging-log4j\src\java\org\apache\log4j\db\DBAppender.java:219: cannot resolve symbol
[javac] symbol : method getGeneratedKeys ()
[javac] location: interface java.sql.PreparedStatement
[javac] rs = insertStatement.getGeneratedKeys();
[javac] ^
[javac] C:\Java\code\jakarta\logging-log4j\src\java\org\apache\log4j\db\DBAppender2.java:135: cannot resolve symbol
[javac] symbol : variable RETURN_GENERATED_KEYS
[javac] location: interface java.sql.Statement
[javac] connection.prepareStatement(DBAppender2.insertSQL, Statement.RETURN_GENERATED_KEYS);
[javac]
^
[javac] C:\Java\code\jakarta\logging-log4j\src\java\org\apache\log4j\db\DBAppender2.java:198: cannot resolve symbol
[javac] symbol : method getGeneratedKeys ()
[javac] location: interface java.sql.Statement
[javac] ResultSet keyRS = insertStatement.getGeneratedKeys();
[javac] ^
[javac] C:\Java\code\jakarta\logging-log4j\src\java\org\apache\log4j\db\dialect\Util.java:105: cannot resolve symbol
[javac] symbol : method supportsGetGeneratedKeys () [javac] location: interface java.sql.DatabaseMetaData [javac] return meta.supportsGetGeneratedKeys(); [javac] ^ [javac] 4 errors
BUILD FAILED
Yah, the JDBC 3.0 files are hard to find. I think they are supposed to be shipped with the JDBC driver itself.
When I remove the JDBC jar to avoid that part of the build I get the next error:
chainsawCheck:
[echo] Chainsaw dependant libraries present.
build.chainsaw:
[javac] Compiling 119 source files to C:\Java\code\jakarta\logging-log4j\dist\classes ^
[javac] C:\Java\code\jakarta\logging-log4j\src\java\org\apache\log4j\chainsaw\plugins\PluginClassLoaderFactory.java:
77: cannot resolve symbol
[javac] symbol : constructor RuntimeException (java.lang.Exception)
[javac] location: class java.lang.RuntimeException
[javac] throw new RuntimeException(e);
[javac] ^
[javac] C:\Java\code\jakarta\logging-log4j\src\java\org\apache\log4j\chainsaw\plugins\PluginClassLoaderFactory.java:
90: cannot resolve symbol
[javac] symbol : constructor RuntimeException (java.lang.Exception)
[javac] location: class java.lang.RuntimeException
[javac] throw new RuntimeException(e);
[javac] ^
[javac] 2 errors
BUILD FAILED
This is a relatively recent commit by Paul. I've complained about it in the past. Paul, what is current your take on the PluginClassLoader et al.?
Fortunately, if I remove both jakarta-oro.jar and jdbc2_0-stdext.jar from the build classpath everything else builds correctly.
Also dropping the jdbc2_0-stdext.jar into tests\lib made the the unit tests complete ok under 1.3 :-)
good to hear. What are you planning next?
Kind Regards
Andy
-- Ceki G�lc�
The complete log4j manual: http://qos.ch/log4j/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
