You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark F <mf...@knology.net> on 2006/05/30 14:50:47 UTC
jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
I have very specific requirements that have been imposed on me (and
therefore the servers) that require me to use the following configuration:
Tomcat 5.0.xx
Sun Java 1.4.2
Applications will be running on a Opteron 275 x86_64 server. I also
have the requirement of running tomcat as a user other than root (part
of the reason for jsvc) and the server needs to run on port 80. I'm
sure you can see the problem.
I need to configure jsvc so that I can start/stop tomcat on boot but
every version I've tried seems to fail for one reason or another. Is
there a distribution of jsvc that will compile and work with this
hardware/software configuration?
I've tried using different version of jsvc but I'm limited in what else
I can change.
Thanks,
-Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Posted by Bill Barker <wb...@wilshire.com>.
"Mark F" <mf...@knology.net> wrote in message
news:e5hev0$8qo$1@sea.gmane.org...
>I have very specific requirements that have been imposed on me (and
>therefore the servers) that require me to use the following configuration:
>
> Tomcat 5.0.xx
> Sun Java 1.4.2
>
> Applications will be running on a Opteron 275 x86_64 server. I also have
> the requirement of running tomcat as a user other than root (part of the
> reason for jsvc) and the server needs to run on port 80. I'm sure you can
> see the problem.
>
I believe that this has been fixed in the SVN for commons-daemon. In
anycase, you just need to patch location.c so that it can find the path to
libjvm.so.
> I need to configure jsvc so that I can start/stop tomcat on boot but every
> version I've tried seems to fail for one reason or another. Is there a
> distribution of jsvc that will compile and work with this
> hardware/software configuration?
>
> I've tried using different version of jsvc but I'm limited in what else I
> can change.
>
>
> Thanks,
> -Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Posted by Mladen Adamovic <ad...@blic.net>.
Mark F wrote:
> Applications will be running on a Opteron 275 x86_64 server. I also
> have the requirement of running tomcat as a user other than root (part
> of the reason for jsvc) and the server needs to run on port 80. I'm
> sure you can see the problem.
You could try to run it on the port 8080 and redirect all request from
port 80 using iptables or xinet.d
More information at :
http://www-128.ibm.com/developerworks/java/library/l-secjav.html
> I need to configure jsvc so that I can start/stop tomcat on boot but
> every version I've tried seems to fail for one reason or another. Is
> there a distribution of jsvc that will compile and work with this
> hardware/software configuration?
You should try with the latest version. If it doesn't work and you don't
get more help from this mailing list, try with
jakarta-common-dev mailing list or jsvc-dev if that exists.
--
Mladen Adamovic
http://home.blic.net/adamm http://www.shortopedia.com
http://www.froola.com http://www.online-utility.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Mark F wrote:
> 30/05/2006 08:23:18 3057 jsvc.exec debug: user changed to 'tomcat'
> 30/05/2006 08:23:18 3057 jsvc.exec debug: Using specific JVM in
> /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057
> jsvc.exec debug: Attemtping to load library
> /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057
> jsvc.exec error: Cannot dynamically link to
> /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057
> jsvc.exec error: /usr/lib/java/jre/lib/i386/server/libjvm.so: cannot open
> shared object file: No such file or directory 30/05/2006 08:23:18 3056
> jsvc.exec error: Service exit with a return value of 1 cat:
Maybe doing
ldd /usr/lib/java/jre/lib/i386/server/libjvm.so
provides something helpful.
Regards
mks
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64
Posted by Mark F <mf...@knology.net>.
Mark F wrote:
> I have very specific requirements that have been imposed on me (and
> therefore the servers) that require me to use the following configuration:
>
> Tomcat 5.0.xx
> Sun Java 1.4.2
>
> Applications will be running on a Opteron 275 x86_64 server. I also
> have the requirement of running tomcat as a user other than root (part
> of the reason for jsvc) and the server needs to run on port 80. I'm
> sure you can see the problem.
>
> I need to configure jsvc so that I can start/stop tomcat on boot but
> every version I've tried seems to fail for one reason or another. Is
> there a distribution of jsvc that will compile and work with this
> hardware/software configuration?
>
> I've tried using different version of jsvc but I'm limited in what else
> I can change.
>
>
> Thanks,
> -Mark
>
I built jsvc this morning (again) with -build=1386-linux-gnu so that it would find the jvm.cfg but this is the error I get at startup:
30/05/2006 08:23:18 2941 jsvc.exec debug: +-- DUMPING JAVA HOME STRUCTURE ------------------------
30/05/2006 08:23:18 2941 jsvc.exec debug: | Java Home: "/usr/lib/java"
30/05/2006 08:23:18 2941 jsvc.exec debug: | Java VM Config.: "/usr/lib/java/jre/lib/i386/jvm.cfg"
30/05/2006 08:23:18 2941 jsvc.exec debug: | Found JVMs: 2
30/05/2006 08:23:18 2941 jsvc.exec debug: | JVM Name: "client"
30/05/2006 08:23:18 2941 jsvc.exec debug: | "/usr/lib/java/jre/lib/i386/client/libjvm.so"
30/05/2006 08:23:18 2941 jsvc.exec debug: | JVM Name: "server"
30/05/2006 08:23:18 2941 jsvc.exec debug: | "/usr/lib/java/jre/lib/i386/server/libjvm.so"
30/05/2006 08:23:18 2941 jsvc.exec debug: +-------------------------------------------------------
30/05/2006 08:23:18 2941 jsvc.exec debug: Running w/ LD_LIBRARY_PATH=/usr/lib/java/jre/lib/i386/server:/usr/lib/java/jre/lib/i386
30/05/2006 08:23:18 3056 jsvc.exec debug: redirecting stdout to /dev/null and stderr to /dev/null
30/05/2006 08:23:18 3057 jsvc.exec debug: user changed to 'tomcat'
30/05/2006 08:23:18 3057 jsvc.exec debug: Using specific JVM in /usr/lib/java/jre/lib/i386/server/libjvm.so
30/05/2006 08:23:18 3057 jsvc.exec debug: Attemtping to load library /usr/lib/java/jre/lib/i386/server/libjvm.so
30/05/2006 08:23:18 3057 jsvc.exec error: Cannot dynamically link to /usr/lib/java/jre/lib/i386/server/libjvm.so
30/05/2006 08:23:18 3057 jsvc.exec error: /usr/lib/java/jre/lib/i386/server/libjvm.so: cannot open shared object file: No such file or directory
30/05/2006 08:23:18 3056 jsvc.exec error: Service exit with a return value of 1
cat: /var/run/jsvc.pid: No such file or directory
Starting Tomcat 5 with PID:
It looks like a permissions error but the tomcat user can see the libjvm.so file and its permissions are 755? If not permissions I would say some sort
of linking problem, architectural issues, not finding a 32 bit library for example?
Any help would be greatly appreciated.
Thanks,
-Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org