From owner-freebsd-java Thu Aug 29 13:13: 8 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 C57C737B400 for ; Thu, 29 Aug 2002 13:13:02 -0700 (PDT) Received: from ns3.ideathcare.com (mail.allneo.com [216.185.96.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 33F6843E3B for ; Thu, 29 Aug 2002 13:13:02 -0700 (PDT) (envelope-from jps@funeralexchange.com) Received: (qmail 96279 invoked by uid 85); 29 Aug 2002 20:25:58 -0000 Received: from jps@funeralexchange.com by ns3.ideathcare.com with qmail-scanner-1.03 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.176685 secs); 29 Aug 2002 20:25:58 -0000 Received: from unknown (HELO pimpin) (216.138.114.143) by mail.allneo.com with SMTP; 29 Aug 2002 20:25:58 -0000 Reply-To: From: "Jeremy Suo-Anttila" To: Subject: (OT?) Resin 2.1.4 src build errors & problems running as non root user. Date: Thu, 29 Aug 2002 15:18:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200208291858.UAA13744@smtp.hccnet.nl> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal 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 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