Hi folx Does anyone know about these two build errors? 2.0.3 builds without a hitch, but 2.0.2 gives these two errors.
/usr/install/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/source/URLSource.java:232: Method setInstanceFollowRedirects(boolean) not found in class java.net.HttpURLConnection. ((HttpURLConnection)connection).setInstanceFollowRedirects(false); ^ /usr/install/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/store/FilesystemStore.java:377: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method. return java.net.URLDecoder.decode( filename ); ^ the entire build output is below. Environment is FreeBSD 4.1.1-RELEASE, Linux (Blackdown) JDK 1.2.2, Thankyou Jesse ......................................................................... bash-2.04# ./build.sh Apache Cocoon Build System -------------------------- Buildfile: build.xml init: -------------------------------------------------------------- Apache Cocoon 2.0.2 [1999-2002] -------------------------------------------------------------- Building with Ant version 1.4.1 compiled on October 11 2001 using build file /usr/install/cocoon-2.0.2/build.xml -------------------------------------------------------------- Created dir: /usr/install/cocoon-2.0.2/tools/anttasks Compiling 5 source files to /usr/install/cocoon-2.0.2/tools/anttasks op-warning: ********************************************** * * Classes of the optional package JFOR are not * available. Apache Cocoon builds without them. * * JFOR is required for the fo2rtf serializer. * * Recovery: * Get the JFOR package from http://www.jfor.org/ and place the jar in the lib/optional dir * *********************************************** op-warning: ********************************************** * * Classes of the optional package PHP are not * available. Apache Cocoon builds without them. * * PHP is required for the php generator. * * Recovery: * Get the PHP servlet (phpsrvlt.jar) from http://www.php.net/ and place the jar in the lib/optional dir * *********************************************** op-warning: ********************************************** * * Classes of the optional package JNDI are not * available. Apache Cocoon builds without them. * * JNDI is required for the ldap generator and the parentcm generator. * * Recovery: * Get the jndi.jar from Sun and place the jar in the lib/optional dir * *********************************************** prepare: Created dir: /usr/install/cocoon-2.0.2/build/cocoon generate-java-code: Transforming into /usr/install/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/browser Transforming into /usr/install/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/browser Loading stylesheet /usr/install/cocoon-2.0.2/src/java/org/apache/cocoon/components/browser/BrowserImpl.xsl prepare-src-main: Created dir: /usr/install/cocoon-2.0.2/build/cocoon/classes Copying 657 files to /usr/install/cocoon-2.0.2/build/cocoon/src Copied 2 empty directories to /usr/install/cocoon-2.0.2/build/cocoon/src Created dir: /usr/install/cocoon-2.0.2/build/cocoon/scratchpad/src Created dir: /usr/install/cocoon-2.0.2/build/cocoon/scratchpad/classes Copying 141 files to /usr/install/cocoon-2.0.2/build/cocoon/scratchpad/src compile: Copying 28 files to /usr/install/cocoon-2.0.2/build/cocoon/classes Compiling with Java 1.2, debug on, optimize off, deprecation off Compiling 602 source files to /usr/install/cocoon-2.0.2/build/cocoon/classes /usr/install/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/source/URLSource.java:232: Method setInstanceFollowRedirects(boolean) not found in class java.net.HttpURLConnection. ((HttpURLConnection)connection).setInstanceFollowRedirects(false); ^ /usr/install/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/store/FilesystemStore.java:377: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method. return java.net.URLDecoder.decode( filename ); ^ 2 errors BUILD FAILED /usr/install/cocoon-2.0.2/build.xml:912: Compile failed, messages should have been provided. Total time: 4 minutes 28 seconds -- Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au Email: jesse (at) va.com.au > Website Development Phone: +61 (0)8 8223 2288 > Web & Email Hosting Web: http://jesse.va.com.au > Streaming Media Hosting > Telehousing / Colocation --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>