FreeBSD + tomcat

FreeBSD + tomcat

Post by Edvard Fagerhol » Mon, 11 Dec 2000 21:51:39



I'm having some problems running tomcat on freebsd (i386).

%./startup.sh
Using classpath:
.:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./../lib/webserver.jar:./../lib/xml.jar:/usr/local/jdk1.1.8/lib/classes.zip
% SIGSEGV   11*  segmentation violation

Full thread dump:
Monitor Cache Dump:
Registered Monitor Dump:
    Monitor IO lock: <unowned>
    Child death monitor: <unowned>
    Event monitor: <unowned>
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
    Memory allocation lock: <unowned>
    Monitor registry: <unowned>
Thread Alarm Q:

% ls -l *core
-rw-------  1 root  wheel  372736 Dec 10 16:33 java.core

So it seems like jdk1.1.8 got mad...

Anyone know what could be wrong? I'm using tomcat 3.1 and jdk1.1.8 both
from the ports collection and FreeBSD 4.2R. And afaik, tomcat should
work with jdk1.1.8.

Thanks
Edvard Fagerholm

 
 
 

FreeBSD + tomcat

Post by mark tingue » Wed, 13 Dec 2000 00:19:38




Quote:>Anyone know what could be wrong? I'm using tomcat 3.1 and jdk1.1.8 both
>from the ports collection and FreeBSD 4.2R. And afaik, tomcat should
>work with jdk1.1.8.

tomcat 3.1 works for me under FreeBSD 4.2 Release, though it appears
it does not start automatically from /usr/local/etc/rc.d, like jrun
it needs a real tty to start. Here is my script:

tomcat.sh:
#!/bin/sh

if [ -x /usr/local/jakarta-tomcat/bin/startup.sh ];
then
        export TOMCAT_HOME=/usr/local/jakarta-tomcat
        export JAVA_HOME=/usr/local/jdk1.1.8
        export PATH=/usr/local/jdk1.1.8/bin:/bin:/usr/bin:
        export CLASSPATH=.:/usr/local/jdk1.1.8/lib/classes.zip:/home/tinguely/public_html:/home/tinguely/JRun/jrun/lib/servlet.jar:/usr/local/swing-1.1.1fcs/swing.jar:
        export LD_LIBRARY_PATH=/usr/local/jdk1.1.8/lib/i386/green_threads:$LD_LIBRARY_PATH:
        /usr/local/jakarta-tomcat/bin/startup.sh
        echo "tomcat"
fi

 
 
 

FreeBSD + tomcat

Post by Richard Scranto » Wed, 13 Dec 2000 03:37:40


Have you tried "nohup" yet?




> >Anyone know what could be wrong? I'm using tomcat 3.1 and jdk1.1.8 both
> >from the ports collection and FreeBSD 4.2R. And afaik, tomcat should
> >work with jdk1.1.8.

> tomcat 3.1 works for me under FreeBSD 4.2 Release, though it appears
> it does not start automatically from /usr/local/etc/rc.d, like jrun
> it needs a real tty to start. Here is my script:

> tomcat.sh:
> #!/bin/sh

> if [ -x /usr/local/jakarta-tomcat/bin/startup.sh ];
> then
>         export TOMCAT_HOME=/usr/local/jakarta-tomcat
>         export JAVA_HOME=/usr/local/jdk1.1.8
>         export PATH=/usr/local/jdk1.1.8/bin:/bin:/usr/bin:
>         export CLASSPATH=.:/usr/local/jdk1.1.8/lib/classes.zip:/home/tinguely/public_html:/home/tinguely/JRun/jrun/lib/servlet.jar:/usr/local/swing-1.1.1fcs/swing.jar:
>         export LD_LIBRARY_PATH=/usr/local/jdk1.1.8/lib/i386/green_threads:$LD_LIBRARY_PATH:
>         /usr/local/jakarta-tomcat/bin/startup.sh
>         echo "tomcat"
> fi

--
________________________________________________________________________
Technology is dominated by those who manage what they do not understand.
http://www.netcom.com/~scrantr/index.html
 
 
 

FreeBSD + tomcat

Post by Edvard Fagerhol » Sun, 17 Dec 2000 23:02:01


Tried using a similar script, and running it with and without nohup. The
same thing always happens, ie. java dumps core. It seems like this is
not a problem with tomcat, but with java. I had similar problems running
the installation program for tomcat 3.2 as it uses java (it also made
java dump core). Classpaths and paths are all ok, so I really can't
figure out, why java would be doing this. Any suggestions?

> Have you tried "nohup" yet?




> > >Anyone know what could be wrong? I'm using tomcat 3.1 and jdk1.1.8 both
> > >from the ports collection and FreeBSD 4.2R. And afaik, tomcat should
> > >work with jdk1.1.8.

> > tomcat 3.1 works for me under FreeBSD 4.2 Release, though it appears
> > it does not start automatically from /usr/local/etc/rc.d, like jrun
> > it needs a real tty to start. Here is my script:

> > tomcat.sh:
> > #!/bin/sh

> > if [ -x /usr/local/jakarta-tomcat/bin/startup.sh ];
> > then
> >         export TOMCAT_HOME=/usr/local/jakarta-tomcat
> >         export JAVA_HOME=/usr/local/jdk1.1.8
> >         export PATH=/usr/local/jdk1.1.8/bin:/bin:/usr/bin:
> >         export CLASSPATH=.:/usr/local/jdk1.1.8/lib/classes.zip:/home/tinguely/public_html:/home/tinguely/JRun/jrun/lib/servlet.jar:/usr/local/swing-1.1.1fcs/swing.jar:
> >         export LD_LIBRARY_PATH=/usr/local/jdk1.1.8/lib/i386/green_threads:$LD_LIBRARY_PATH:
> >         /usr/local/jakarta-tomcat/bin/startup.sh
> >         echo "tomcat"
> > fi

> --
> ________________________________________________________________________
> Technology is dominated by those who manage what they do not understand.
> http://www.netcom.com/~scrantr/index.html