From owner-freebsd-java Thu Aug 29 13:23:38 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45A2237B400 for ; Thu, 29 Aug 2002 13:23:32 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 743D443E3B for ; Thu, 29 Aug 2002 13:23:31 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds53-45.dial.hccnet.nl [62.251.45.53] with SMTP id WAA27945 (8.8.8/1.13); Thu, 29 Aug 2002 22:23:27 +0200 (MET DST) Message-Id: <200208292023.WAA27945@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: , Subject: Re: (OT?) Resin 2.1.4 src build errors & problems running as non root user. Date: Thu, 29 Aug 2002 22:23:25 +0200 X-Mailer: KMail [version 1.3.2] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jeremy, The problem you have is that the Sun JDK 1.4 for Linux is unstable on FreeBSD. Try the native JDK 1.3.1 by Greg Lewis & Bill Huey and friends. Ernst On Thursday 29 August 2002 22:18, Jeremy Suo-Anttila wrote: > We are in the process of evaluating resin 2.14 as a replacement for our > tomcat server setup we are using right now. So far everything has been > going very well except for a couple small problems. For one I can _not_ get > either the bin/resin or bin/httpd.sh to run as any other user then root. I > have tried creating completely separate java_homes for each user and giving > the resin uid/gid full reign over those dirs and I still have the resin > core on me without very much information. below is a snippet of the startup > script I am using. > > "tc_start.sh" 8 lines, 194 characters > > #!/bin/sh > USER=resin > GROUP=resin > HOME=/usr/local/resin > JAVA_HOME=/usr/local/linux-jdk1.4 > export USER GROUP HOME JAVA_HOME > > su -f -m resin -c "exec /usr/local/resin/bin/httpd.sh start -verbose" > > root@ping]/usr/local/resin% sh tc_start.sh > JAVA_HOME: /usr/local/linux-jdk1.4 > RESIN_HOME: /usr/local/resin > SERVER_ROOT: /usr/local/resin > CLASSPATH: > /usr/local/jdk1.4/lib/mysql.jar > /usr/local/resin/lib/jdbc-mysql.jar > /usr/local/resin/lib/jdbc2_0-stdext.jar > /usr/local/resin/lib/jta-spec1_0_1.jar > /usr/local/resin/lib/jndi.jar > /usr/local/resin/lib/dom.jar > /usr/local/resin/lib/sax.jar > /usr/local/resin/lib/jaxp.jar > /usr/local/resin/lib/jmx.jar > /usr/local/resin/lib/webutil.jar > /usr/local/resin/lib/resin.jar > /usr/local/resin/lib/JRTF1.1.jar > /usr/local/resin/lib/mysql_comp.jar > /usr/local/resin/lib/mysql.jar > /usr/local/resin/lib/msbase.jar > /usr/local/resin/lib/mssqlserver.jar > /usr/local/resin/lib/msutil.jar > /usr/local/resin/lib/mail.jar > /usr/local/resin/lib/ccc_ssl.jar > /usr/local/resin/lib/activation.jar > /usr/local/resin/lib/mysql_uncomp.jar > /usr/local/resin/lib/com.jar > /usr/local/resin/lib/tools.jar > /usr/local/linux-jdk1.4/lib/tools.jar > /usr/local/linux-jdk1.4/jre/lib/rt.jar > /usr/local/resin/lib/jsdk23.jar > LD_LIBRARY_PATH: > libexec > java: /usr/local/linux-jdk1.4/bin/java > java args: -Dresin.home=/usr/local/resin > class: com.caucho.server.http.HttpServer > resin args: -stdout /usr/local/resin/log/stdout.log -stderr > /usr/local/resin/log/stderr.log > > command-line: > sr/local/linux-jdk1.4/bin/java -Dresin.home=/usr/local/resin > com.caucho.server.http.HttpServer -stdout > /usr/local/resin/log/stdout.log -stderr /usr/local/resin/log/stderr.log > [root@ping]/usr/local/resin% Resin httpd start at Thu Aug 29 13:13:10 CDT > 2002 > Abort trap (core dumped) > > # System specs > [root@ping]/usr/local/resin% uname -a > FreeBSD ping.allneo.com 4.6-STABLE FreeBSD 4.6-STABLE #4: Wed Aug 28 > 15:27:24 CDT 2002 root@ping.ideathcare.com:/usr/obj/usr/src/sys/PING > i386 > > # Java specs > [root@ping]/usr/local/resin% java -version > java version "1.4.0_01" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) > Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) > > Is there any known problems with using resin on a FreeBSD 4.X server with > the linux-jdk1.4.0.1? Tomcat will start and run fine as a non root user on > the exact same box but whenever i try to do it with resin i get the errors > above. I have also tried using the bin/resin but it gives me the same > results. > > # bin/resin > [root@ping]/usr/local/resin/bin% ./resin -conf ../conf/resin.conf > Resin 2.1.4 -- Fri Aug 2 10:22:31 PDT 2002 > http listening to *:8080 > Running as resin(uid=1004) > # > # HotSpot Virtual Machine Error, Internal Error > # Please report this error at > # http://java.sun.com/cgi-bin/bugreport.cgi > # > # Java VM: Java HotSpot(TM) Server VM (1.4.0_01-b03 mixed mode) > # > # Error ID: 4F533F4C494E55580E43505002AB > # > Abort > [root@ping]/usr/local/resin/bin% > > > Also when I am trying to compile the bin/resin from source I keep getting > the same error message listed below. > > # > [root@ping]/home/pimpin/resin-2.1.4% make all > (cd src/c/plugin; make) > for dir in common resin; do (cd $dir; make); done > gcc -o resin resin.o ../common/common.o std.o memory.o ssl.o > /usr/lib/libssl.a /usr/lib/libcrypto.a -ldl > /usr/libexec/elf/ld: cannot find -ldl > *** Error code 1 > > Stop in /home/pimpin/resin-2.1.4/src/c/plugin/resin. > *** Error code 1 > > Stop in /home/pimpin/resin-2.1.4/src/c/plugin. > *** Error code 1 > > Stop in /home/pimpin/resin-2.1.4. > [root@ping]/home/pimpin/resin-2.1.4% > > Any ideas on how i can resolve this? I would love to use the resin server > as full replacement of our existing tomcat setup but I cant until I get > these issues figured out. So any help would be greatly appreciated. > > Thanks > > Jeremy Suo-Anttila > noc@allneo.com > ALLNEO Network Operations > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message