From owner-freebsd-questions@FreeBSD.ORG Mon Aug 18 21:23:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD12C1065673 for ; Mon, 18 Aug 2008 21:23:33 +0000 (UTC) (envelope-from 4711@chello.at) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.freebsd.org (Postfix) with SMTP id EC7008FC22 for ; Mon, 18 Aug 2008 21:23:32 +0000 (UTC) (envelope-from 4711@chello.at) Received: (qmail 24535 invoked from network); 18 Aug 2008 21:23:30 -0000 Received: from matrix010.matrix.net (HELO localhost) (192.168.123.10) by smtp.matrix.net with SMTP; 18 Aug 2008 21:23:30 -0000 From: Christian Hiris <4711@chello.at> To: freebsd-questions@freebsd.org Date: Mon, 18 Aug 2008 23:23:30 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: X-Face: 9K^F42eGrHAbAe?%/Jn(.sAeg9d{Ur6`x<[+LZ46Plx#sTFr]9_>|#(?~v6X,=?iso-8859-1?q?2=7EBeL=23=3A7kxV8=23s=3BUP=0A=09=7C?=>X.=B,VvQ"}!^Zb}AGD:Um.+; P=%U6W Cc: Thiago Esteves Subject: Re: tomcat6 and diablo-jdk16 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 21:23:33 -0000 --Boundary-00=_SheqI64BpuVqKvY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Monday 18 August 2008, Thiago Esteves wrote: > Hello, > > I've got the last java jdk 1.6 (diablo version) from freebsd > foundation and when I tried to install the tomcat 6 from the ports I > had > some problems. The tomcat 6 port* tries to find the java binaries in > the /usr/local/jdk1.5.0. Please see the output below. > > duamutef# make install clean > ===> Cleaning for apache-tomcat-6.0.16 > ===> Vulnerability check disabled, database not found > ===> Extracting for apache-tomcat-6.0.16 > => MD5 Checksum OK for apache-tomcat-6.0.16.tar.gz. > => SHA256 Checksum OK for apache-tomcat-6.0.16.tar.gz. > ===> Patching for apache-tomcat-6.0.16 > Installation settings: > Destination directory: /usr/local/apache-tomcat6.0 > Location of JDK: /usr/local/jdk1.5.0 > Location of Java port: java/jdk15 > Running as (user/group): www/www > HTTP port: 8180 > Shutdown listener port: 8005 > AJP 1.3 connector port: 8009 > Logfile stdout: /usr/local/apache-tomcat6.0/logs/stdout.log > Logfile stderr: /usr/local/apache-tomcat6.0/logs/stderr.log > ===> Applying FreeBSD patches for apache-tomcat-6.0.16 > > >> Removing unneeded files... [ DONE ] > >> Customizing server.xml... [ DONE ] > > ===> Configuring for apache-tomcat-6.0.16 > ===> Installing for apache-tomcat-6.0.16 > ===> apache-tomcat-6.0.16 depends on file: > /usr/local/jdk1.5.0/bin/java - not found > ===> Verifying install for /usr/local/jdk1.5.0/bin/java in > /usr/ports/java/jdk15 > ===> jdk-1.5.0.14p8_3,1 : > Due to licensing restrictions, certain files must be fetched manually. > > Please open http://download.java.net/tiger/archive/tiger_u14/ > in a web browser. Download the > Update 14 Source, jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar and the > Source Binaries, jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar . > > Please open http://java.sun.com/javase/downloads/index.jsp > in a web browser and follow the "Download" link for > "JDK US DST Timezone Update Tool - 1_3_6" to obtain the > time zone update file, tzupdater-1_3_6-2008c.zip. > > Please download the patchset, bsd-jdk15-patches-8.tar.bz2, from > http://www.eyesbeyond.com/freebsddom/java/jdk15.html. > > Please place the downloaded file(s) in /usr/ports/distfiles > and restart the build. > > .*** Error code 1 > > Stop in /usr/cvsup/current/ports/java/jdk15. > *** Error code 1 > > Stop in /usr/cvsup/current/ports/www/tomcat6. > > > Since I'm using the diablo-jdk1.6 that is located in > /usr/local/diablo-jdk1.6.0, it doesn't work. I tried to find some > variable to set where is my jdk, but no lucky. > > > I tried the following and it worked well. > > cd /usr/local/ ; ln -s diablo-jdk1.6.0 jdk1.5.0 > > But creating a symbolic link from jdk1.5 to jdk1.6 seems not to be the > best way. Is there a better way to install tomcat 6 *from the ports* > using diablo-jdk1.6? > > Thank you. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" You need to patch /usr/ports/Mk/bsd.java.mk, because the ports system doesn't know anything about diablo-jdk.1.6.0. I attached the patchfile. # cd /usr/ports/www/tomcat6 matrix010# make install ===> Vulnerability check disabled, database not found ===> Extracting for apache-tomcat-6.0.16 => MD5 Checksum OK for apache-tomcat-6.0.16.tar.gz. => SHA256 Checksum OK for apache-tomcat-6.0.16.tar.gz. ===> Patching for apache-tomcat-6.0.16 Installation settings: Destination directory: /usr/local/apache-tomcat6.0 Location of JDK: /usr/local/diablo-jdk1.6.0 Location of Java port: java/diablo-jdk16 Running as (user/group): www/www HTTP port: 8180 Shutdown listener port: 8005 AJP 1.3 connector port: 8009 Logfile stdout: /usr/local/apache-tomcat6.0/logs/stdout.log Logfile stderr: /usr/local/apache-tomcat6.0/logs/stderr.log ===> Applying FreeBSD patches for apache-tomcat-6.0.16 >> Removing unneeded files... [ DONE ] >> Customizing server.xml... [ DONE ] ===> Configuring for apache-tomcat-6.0.16 ===> Installing for apache-tomcat-6.0.16 ===> apache-tomcat-6.0.16 depends on file: /usr/local/diablo-jdk1.6.0/bin/java - found [...] Apache Tomcat 6.0.16 has been installed in /usr/local/apache-tomcat6.0. ===> Installing rc.d startup script(s) ===> Registering installation for apache-tomcat-6.0.16 # Cheers, ch -- Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu --Boundary-00=_SheqI64BpuVqKvY Content-Type: text/x-diff; charset="iso-8859-1"; name="bsd.java.mk.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bsd.java.mk.patch" --- bsd.java.mk.orig 2008-07-29 14:18:05.000000000 +0200 +++ bsd.java.mk 2008-08-18 22:07:01.000000000 +0200 @@ -169,6 +169,8 @@ # Set all meta-information about JDK ports: # port location, corresponding JAVA_HOME, JDK version, OS, vendor +_JAVA_PORT_NATIVE_FREEBSD_JDK_1_6_INFO= PORT=java/diablo-jdk16 HOME=${LOCALBASE}/diablo-jdk1.6.0 \ + VERSION=1.6.0 OS=native VENDOR=freebsd _JAVA_PORT_NATIVE_FREEBSD_JDK_1_5_INFO= PORT=java/diablo-jdk15 HOME=${LOCALBASE}/diablo-jdk1.5.0 \ VERSION=1.5.0 OS=native VENDOR=freebsd _JAVA_PORT_NATIVE_BSDJAVA_JDK_1_3_INFO= PORT=java/jdk13 HOME=${LOCALBASE}/jdk1.3.1 \ @@ -209,7 +211,8 @@ . endif # List all JDK ports -__JAVA_PORTS_ALL= JAVA_PORT_NATIVE_FREEBSD_JDK_1_5 \ +__JAVA_PORTS_ALL= JAVA_PORT_NATIVE_FREEBSD_JDK_1_6 \ + JAVA_PORT_NATIVE_FREEBSD_JDK_1_5 \ JAVA_PORT_NATIVE_BSDJAVA_JDK_1_6 \ JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 \ JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4 \ --Boundary-00=_SheqI64BpuVqKvY--