HOWTO : Apache/Tomcat (at last !!)

great !

Just kill those tomcatd process and restart tomcatd.

Then see if your jsp files are working correctly.
 
hi nebukazar I already tried that, but the same amount come back, the number of processes I guess isn't really a problem but I found jsp uses a LOT of ram, is there a way to start it in a lower ram usage mode?
 
FreeBSD users regarding Step 8

"- ./buildconf.sh
- ./configure --with-apxs=/usr/sbin/apxs
- make"

before running ./buildconf.sh you need to edit it. Freebsd will probably have various binaries for automake and autoconf but all different versions, I tried the different versions and what I got below allows the configure command to finish. Change wahts in bold (you may need to install the appropiate binaries read at bottom).

echo "libtoolize --force --automake --copy"
libtoolize13 --force --automake --copy
echo "aclocal"
#aclocal --acdir=`aclocal --print-ac-dir`
#aclocal --acdir=/usr/local/share/aclocal
aclocal15
echo "autoheader"
autoheader259
echo "automake -a --foreign --copy"
automake15 -a --foreign --copy
echo "autoconf"
autoconf259

then run the configure command as instructed in the guide and afterwards use gmake not make and it should compile fine.

If you find one or more of the above binaries doesnt exist, then make sure your ports tree is cvsupped and you can goto /usr/ports/devel and then cd in the appropriate subdir to install the binary you need and doing 'make install clean'.
 
Hi,

Yes, you can specify the heap size being used.

You can specify '-Xmx256m -Xms128m' as part of TOMCAT_OPTS. That'll set your max/min JVM heap size to 256/128MBs.
 
ok another question, a user wants access to reload his jsp stuff, I have the manager user/password which allows this but am I right this I assume can't be given to users so how do I let them do it?

thanks
 
You will have to create a new user/pass for this user in the tomcat-users.xml file and then, restart tomcatd.
 
you don't need to assign a directory.

tomcat will load the assigned apps, context by default.
 
Hi Guys,

I just want to ask about your load server after install Tomcat.
Is it normal or you have big load?

Thank's for any help and attentions.
 
nebukazar said:
you don't need to assign a directory.

tomcat will load the assigned apps, context by default.

sorry I am confused here, how does it know what apps are assigned?

because if I am not mistaken anyone can restart anyones jsp apps if they got access to the reload page.

and yes I know nothign about jsp so this needs explaining to me :(
 
problem with installating tomcat jakarta

Hi,
i have problem installing jakarta, please help, i am quite to this tomcat thingy. below is my errors


[root@test1 native]# make
Making all in common
make[1]: Entering directory `/usr/local/java/jakarta-tomcat-connectors/jk/native
/common'
/bin/sh ../libtool --mode=compile gcc -I/usr/include/apache -g -O2 -DLINUX=22 -D
HAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -g -
O2 -I /usr/local/java/java/include -I /usr/local/java/java/include/ -c jk_ajp12
_worker.c
gcc -I/usr/include/apache -g -O2 -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/
gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -g -O2 -I /usr/local/java/java/includ
e -I /usr/local/java/java/include/ -c jk_ajp12_worker.c -fPIC -DPIC -o .libs/jk
_ajp12_worker.o
cc1: /usr/local/java/java/include: Not a directory
cc1: /usr/local/java/java/include: Not a directory
make[1]: *** [jk_ajp12_worker.lo] Error 1
make[1]: Leaving directory `/usr/local/java/jakarta-tomcat-connectors/jk/native/
common'
make: *** [all-recursive] Error 1
[root@test1 native]# cd /usr/local/java/java/
-bash: cd: /usr/local/java/java/: Not a directory
[root@test1 native]# mkdir include /usr/local/java/java
mkdir: cannot create directory `include': File exists
mkdir: `/usr/local/java/java' exists but is not a directory
[root@test1 native]#


thanks for your help.
regards,
Simon
 
ok , next problem

Hello everyone.
i have added a new vhost and after that I have had added another user to tomcat-users.xml :
<user name="xxxxx" password="xxx" roles="standard,manager"/>
then restart tomcatd
Anf i have noticed strange thing. This user "xxxxx" has access to all previously added servlets ,he can restart em even remove.
It should not be that ?
SO how can i add new user to web-manager to give him just access to his servlets..


Greetings
 
@ PCONLINE : is /usr/local/java/java/ is a directory or a symlink ?

@ magaf : did you tried to just use the manager attribute ? e.g. <user name="xxxxx" password="xxx" roles="manager"/>
 
Hi,
i bet i have gone through the hard way of installing, and manage to get to the end..

when i try to restart apache, done.
when i try to start tomcatd, comes out this error
[root@test1 conf]# tomcatd start
Starting Tomcat: The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

i know i need to set something up on the file..

do you mind to let me know what do i need to do?
practically if it is looking for a good config file.. do you mind to show me an example? i am not good into configuring files...

thanks a lot..

yours truly,
Simon
 
Hi,

It looks like the step 1 has not been completed correctly :
1- Configure PATH
- vi or pico -w /etc/profile
- Add those lines after the first comments
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

JAVA_HOME=/usr/local/java/java
CATALINA_HOME=/usr/local/tomcat
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.

- Locate the line where you see export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC and add : JAVA_HOME CATALINA_HOME CLASSPATH

If you did it, logoff and login back as root.
 
Freebsd 4.10

Hi,
Is there any manual similiar o the last linux manual to set up my machine so it can support JSP please.
Thanks.:(
 
unfortunately, I have no box where I could test the tomcat installation.

You can go ahead and try with this howto. However, when you need to compile, instead of using make, use gmake.
 
Back
Top