Date: Thu, 29 Aug 2002 15:18:57 -0500 From: "Jeremy Suo-Anttila" <jps@funeralexchange.com> To: <java@FreeBSD.org> Subject: (OT?) Resin 2.1.4 src build errors & problems running as non root user. Message-ID: <OAEOLDPOMIMMJMKEBFHCEEOCDAAA.jps@funeralexchange.com> In-Reply-To: <200208291858.UAA13744@smtp.hccnet.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OAEOLDPOMIMMJMKEBFHCEEOCDAAA.jps>
