PDA

View Full Version : HOWTO : Apache/Tomcat (at last !!)


nebukazar
02-24-2004, 12:15 AM
This HOWTO has been taken from http://www.linuxjava.net/howto/webapp/#Introduction
I modified the HOWTO to fit with DA
It has been tested under RedHat 9.0

EDIT 1 (02/27/04) : Fixed some type for the server.xml file.
EDIT 2 (02/27/04) : Modified step 14. (you need to replace all su - tomcat -c $TOMCAT_START text with $TOMCAT_START

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


2- Download SDK at http://java.sun.com/j2se/1.4.2/download.html (j2sdk-1_4_2_03-linux-i586.bin)

3- Install java SDK
- mkdir /usr/local/java
- cd /usr/local/java
- chmod u+x j2sdk-version.bin
- ./j2sdk-version.bin
- ln -s j2sdk-version java
JAVA is installed under /usr/local/java/java/

4- Download Jakarta Tomcat at http://apache.mirror.mcgill.ca/jakarta/tomcat-4/v4.1.30/bin/jakarta-tomcat-4.1.30.tar.gz

5- Install Tomcat
- tar -zxvf jakarta-tomcat-4.1.30.tar.gz
- mv jakarta-tomcat-4.1.30 /usr/local/
- cd /usr/local
- ln -s jakarta-tomcat-4.1.30 tomcat
Tomcat is installed under /usr/local/tomcat/

6- Download Jakarta ANT at http://apache.mirror.cygnal.ca/ant/binaries/apache-ant-1.6.1-bin.tar.gz

7- Install Jakarta ANT
- tar -zxvf apache-ant-1.6.1-bin.tar.gz
- mv apache-ant-1.6.1 /usr/local/
- cd /usr/local
- ln -s apache-ant-1.6.1 ant
- ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
- ln -s /usr/local/ant/bin/ant /usr/sbin/

8- Download the Java Connector from CVS and build / install mod_jk
- cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login password: anoncvs (When prompted for a password, just hit ENTER)
- cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout jakarta-tomcat-connectors
- mv jakarta-tomcat-connectors /usr/local/java/
- cd /usr/local/java/jakarta-tomcat-connectors/jk/native/
- ./buildconf.sh
- ./configure --with-apxs=/usr/sbin/apxs
- make
- cp apache-1.3/mod_jk.so /etc/httpd/modules/

9- Configure httpd.conf for mod_jk
- Doing a backup : cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
- Enabling mod_jk : vi or pico -w /etc/httpd/conf/httpd.conf
After this line :
LoadModule perl_module /usr/lib/apache/libperl.so

Add :
LoadModule jk_module /usr/lib/apache/mod_jk.so

After your last AddModule line, add :
AddModule mod_jk.c

Include "/usr/local/jakarta-tomcat-4.1.30/conf/mod_jk.conf"

10- Edit/Create /usr/local/jakarta-tomcat-4.1.30/conf/mod_jk.conf
- vi or pico -w /usr/local/jakarta-tomcat-4.1.30/conf/mod_jk.conf
- Enter those lines :

<IfModule !mod_jk.c>
LoadModule jk_module /usr/lib/apache/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/jakarta-tomcat-4.1.30/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat-4.1.30/logs/mod_jk.log"


JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
JkMount /*.do ajp13
JkMount /manager/* ajp13


JkLogLevel emerg

11- Edit/Create /usr/local/jakarta-tomcat-4.1.30/conf/jk/workers.properties
- mkdir /usr/local/jakarta-tomcat-4.1.30/conf/jk
- vi or pico -w /usr/local/jakarta-tomcat-4.1.30/conf/jk/workers.properties
- Enter those lines :

# Setting Tomcat & Java Home
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java/java
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

12- Edit /usr/local/jakarta-tomcat-4.1.30/conf/server.xml
cd /usr/local/jakarta-tomcat-4.1.30/conf/
rm -f server.xml
vi or pico -w server.xml
Copy - Past text below :
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"/>
<Host name="www.some-site.com">
<Alias>some-site.com</Alias>
<Context path="" docBase="/home/username/domains/some-site.com/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/username/logs" prefix="context_log." suffix=".log" timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>

13- Edit /usr/local/jakarta-tomcat-4.1.30/conf/tomcat-users.xml
<tomcat-users>
<user name="tomcat" password="tomcat" roles="tomcat" />
<user name="role1" password="tomcat" roles="role1" />
<user name="both" password="tomcat" roles="tomcat,role1" />
<user username="username" password="password" roles="manager"/>
</tomcat-users>

14- Download and install the tomcatd script
- Download the script at http://www.linuxjava.net/howto/webapp/install_files/tomcatd
- mv tomcatd /usr/sbin
- chmod 700 /usr/sbin/tomcatd
- vi or pico -w /usr/sbin/tomcatd
- Locate any lines that contain the text : su - tomcat -c $TOMCAT_START and replace it by : $TOMCAT_START

15- FINISH !! START TOMCAT AND TEST IT :)
- service httpd restart
- tomcatd start

Enjoy !

HOWTO created by Luc Tellier
ltellier .AT. eenix .DOT. com

mmsitech
02-24-2004, 07:52 AM
Great!!! I just got the need for this tomcat thing... one of my clients needs to run java servlets and needs tomcat....... One question... Is this for the per/user option with the default to off?

nebukazar
02-24-2004, 08:13 AM
Hi,

JSP is disabled per default, if you want to enable JSP on his domain, you must add the entry in the server.xml file.

mmsitech
02-24-2004, 11:10 AM
Thanks!!! This is Great...
Just another reason I love Directadmin!!!


:D

jeffery
02-26-2004, 10:52 PM
Thanks!
It got things OK!

But I want to ask what should I do if I want to add an user to be able to use JSP?


Please teach me the steps and what should I include in the files since I am just a newbie on this!

Thanks!

:D

jeffery
02-26-2004, 10:57 PM
O..
It gives me an internal server error!
when I type http://myserver.com/1.jsp

even the file doesn't exist, it always give me an internal server error !?

What have I done wrong?

nebukazar
02-26-2004, 11:59 PM
ok,

To enable JSP you must create a new context for the domain. This can be done by editing the server.xml file.

go to the $CATALINA_HOME dir :
cd $CATALINA_HOME/conf

then edit the server.xml file :
vi or pico -w server.xml

then add a new context :
<Host name="www.another-domain.com">
<Alias>another-domain.com</Alias>
<Context path="" docBase="/home/username/domains/another-domain.com/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/username/logs" prefix="context_log." suffix=".log" timestamp="true"/>
</Host>

Then restart tomcat :
tomcatd restart

jeffery
02-27-2004, 12:03 AM
I have followed the steps and installed Tomcat,
but when I try to run a jsp,
it gives me an internal server error!

I haven't add any other host in server.xml!

Any clues? Thanks!!! :)

nebukazar
02-27-2004, 12:10 AM
Yes,

mod_jk is enabled per default. So, when you point your browser to a jsp page that doesn't exist, it call the tomcat container and tell apache that the page doesn't exist.

jeffery
02-27-2004, 12:12 AM
But it should give me a "JSP Version" File not exist rather than an internal server error...?


I have try to add a host and put a jsp test, an internal server error also resulted..

nebukazar
02-27-2004, 12:16 AM
check your PM :)

jeffery
02-27-2004, 12:22 AM
PM back!~
:D

nebukazar
02-27-2004, 12:50 AM
Fixed.

I corrected my HOWTO. There was some typos in step 12.

Sorry for the inconvenience.

jeffery
02-27-2004, 12:53 AM
Thanks very much!

nice day!

jeffery
02-27-2004, 12:58 AM
Just one more question!
can I add 2 address in the same host?

For example,
www.abc.com and abc.com both go to the same directory!

Thanks~ :p

nebukazar
02-27-2004, 01:00 AM
Yep!
Add an alias in the context :
<Alias>another-domain.com</Alias>

jeffery
02-27-2004, 01:04 AM
this :

<Host name="www.another-domain.com">
<Alias>another-domain.com</Alias>
<Context path="" docBase="/home/username/domains/another-domain.com/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/username/logs" prefix="context_log." suffix=".log" timestamp="true"/>
</Host>

is added outside the <server></server> or inside it??

HA, is it necessary to restart the tomcat every time I changed the server.xml?

nebukazar
02-27-2004, 01:07 AM
Each <Host> tags most be place before the </Server> tag. In fact, it must be placed between the <Engine></Engine> tags.

Yes, you need to restart tomcat each time you modify the server.xml file.

jeffery
02-27-2004, 01:12 AM
When I try to add an alias for www.myhost.com

after restarting tomcatd,

the browser also shows a file not found error!
but the myhost.com works!?



:eek: :eek:

nebukazar
02-27-2004, 01:14 AM
PM your info again.

I'm gonna take a look at your server.xml file :)

jeffery
02-27-2004, 01:24 AM
sent!

jeffery
02-27-2004, 02:11 AM
Thanks~~~!

Time to have a coffee for both of us now~ :D

deltaned
03-06-2004, 01:34 AM
at step 8 I get:
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login password: anoncvs

-bash: cvs: command not found

Any option? do I need to download a file and with wget get it on my machine?

nebukazar
03-06-2004, 10:14 AM
if you type :
rpm -q cvs

Do you get an output ?

deltaned
03-06-2004, 06:36 PM
package cvs is not installed
is the return message

nebukazar
03-06-2004, 06:42 PM
you will need to download the cvs package and install it. Looks like CVS is not installed on your system.

deltaned
03-07-2004, 03:08 AM
OK, I install cvs but in point 8 the follow error at: ./buildconf.sh

[root@resellers2 native]# ./buildconf.sh
libtoolize --force --automake --copy
./buildconf.sh: line 4: libtoolize: command not found
aclocal
./buildconf.sh: line 8: aclocal: command not found
automake -a --foreign --copy
./buildconf.sh: line 10: automake: command not found
autoconf
./buildconf.sh: line 12: autoconf: command not found

Tips?

chousg
03-15-2004, 03:00 PM
Help please
After I have install Tomcat, SDK and ANT

this module is not available in my server:
LoadModule jk_module /usr/lib/apache/mod_jk.so

after restart Apache, of course my server hang.

Can anyone tell me where I can find this file.

thanks

nebukazar
03-15-2004, 11:02 PM
Hi,

are you sure you installed mod_jk correctly ?


8- Download the Java Connector from CVS and build / install mod_jk
- cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login password: anoncvs (When prompted for a password, just hit ENTER)
- cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout jakarta-tomcat-connectors
- mv jakarta-tomcat-connectors /usr/local/java/
- cd /usr/local/java/jakarta-tomcat-connectors/jk/native/
- ./buildconf.sh
- ./configure --with-apxs=/usr/sbin/apxs
- make
- cp apache-1.3/mod_jk.so /etc/httpd/modules/

deltaned
03-16-2004, 09:09 AM
I try but the same problems :-(
Can somebody do the installation for me, I will pay for it!

nebukazar
03-16-2004, 09:12 AM
check your PM ;)

deltaned
03-16-2004, 09:25 AM
you got a reaction :-)

netswitch
05-15-2004, 11:14 AM
How to worked perfect here..

but anybody knows some simple code to test if it is really working ?

(tomcatd is running but I have no jsp app to test the stuff :-D )

nebukazar
05-15-2004, 11:16 AM
try this code :

<%
String name = "Hello World";
%>

<p>Testing : <%= name %> !</p>

netswitch
05-15-2004, 11:21 AM
wonderfull ;-)

eventough it seems pretty slow to generate the output of such a simple thing..

thanks

nebukazar
05-15-2004, 11:26 AM
No problem.

Keep in minds java is an object oriented programation and it needs a good server to run java apps :)

best regards,

netswitch
05-15-2004, 11:29 AM
Thats exactly what I am wonderig about now.
We are running on a dualP3 1 ghz with one giga ram and scsi drives.

Will this be strong enough ? (for a fair use of the service..)

nebukazar
05-15-2004, 11:30 AM
Yes,

It should work if you are hosting simple JSP sites.

let me know if you need anything else.

regards,

netswitch
05-17-2004, 02:23 AM
Hi,

I have given jsp acces to one user, and he is complaining about the manager folder wich is unaccessible, there seems to be a link in the server.xml file for such a thing but I have checked it (www.domain.com/manager) and I get a 403 forbidden.

Also the user has setup a software called axis and the test pages telle 6 missing core libraries, (saaj.jar, ...)
I guess I have to find those files and put them in /usr/local/jakarta-tomcat-4.1.30/common/lib/ (?)

nebukazar
05-17-2004, 05:38 AM
Hi,

PM the URL, username and password. I'll give it a try from here.

As for the libs, you can put them in the common/lib directory like you thought.

regards,

magaf
07-26-2004, 12:30 PM
i have installed tomcat as the instruction said.
and by running tomcatd : root@server bin]# tomcatd start
Starting Tomcat: Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java/java

[root@server bin]# tomcatd status
Tomcat is stopped

tomcat does not run
i dont know why..
any clues?

nebukazar
07-26-2004, 01:03 PM
Hi,

did you took a look at the catalina.out log file ?

magaf
07-26-2004, 02:29 PM
ah , yea. Ive omitted one sign in config file.
it is strange , jsp uses a 10.4 % of ram (512 insalled)
quite much , isnt it ?

nebukazar
07-26-2004, 02:44 PM
Hi,

yes, tomcat use a lot of RAM. You can decrease the amount of memory beeing used by tomcat by modifing the startup script.

e.g. You can specify '-Xmx256m -Xms128m' as part of TOMCAT_OPTS. That'll set your max/min JVM heap size to 256/128MBs.

DJ_Max
07-29-2004, 04:59 PM
Originally posted by nebukazar
Hi,

yes, tomcat use a lot of RAM. You can decrease the amount of memory beeing used by tomcat by modifing the startup script.

e.g. You can specify '-Xmx256m -Xms128m' as part of TOMCAT_OPTS. That'll set your max/min JVM heap size to 256/128MBs.
Yeah, one thing you'll have to understand is that JSP runs different from other server-side languages, such as PHP. In it goes through more at runtime, not to mention as Tomcat has to turn your JSP code into servlets, which are slow.

Also it depends on how you code, has it's not wise to use too many JSP tags in your HTML, rather place it in a .java or .class file.

resolveit
08-22-2004, 11:48 AM
What am I doing wrong? I followed each step and all the suggestions in the topic but in part 8 where I have to do a ./buildconf.sh I get the following output:

----------
[root@server native]# ./buildconf.sh
rm autom4te.cache
libtoolize --force --automake --copy
./buildconf.sh: line 7: libtoolize: command not found
aclocal
./buildconf.sh: line 11: aclocal: command not found
autoheader
./buildconf.sh: line 13: autoheader: command not found
automake -a --foreign --copy
./buildconf.sh: line 15: automake: command not found
autoconf
./buildconf.sh: line 17: autoconf: command not found
rm autom4te.cache
----------

I am running on a RedHat 9 box with DA installed.

Kind Regards,
Onno

harrisliu
08-28-2004, 08:30 AM
I am evaluating whether to switch from cpanle to DirectAdmin. Since one of my service is JSP and servlet support and I see the How-to is on Tomcat version 4 , pls tell me whether DA support Tomcat 5.0.x??

Is it the same installation method as the How-to at the beginning of the thread??

nebukazar
08-28-2004, 09:51 AM
Tomcat5 is slightly different from tomcat4 but you should be able to do the installation. I didn't tried to install it yet but it shouldn't be too complicated.

albatroz
09-08-2004, 01:10 PM
Did you manage to migrate successfully your Cpanel/Tomcat customers to DA?

Originally posted by harrisliu
I am evaluating whether to switch from cpanle to DirectAdmin. Since one of my service is JSP and servlet support and I see the How-to is on Tomcat version 4 , pls tell me whether DA support Tomcat 5.0.x??

Is it the same installation method as the How-to at the beginning of the thread??

harrisliu
09-09-2004, 06:35 PM
Originally posted by albatroz
Did you manage to migrate successfully your Cpanel/Tomcat customers to DA?


Not yet , as I am still struggling between DA and CPanel. Besides, my server hardware is still not ready.

The lack of Chinese translation is another problem for me and my clients

neorder
09-26-2004, 11:54 AM
i have followed the steps except step 9 i can't locate

LoadModule perl_module /usr/lib/apache/libperl.so

instead i found

LoadModule perl_module modules/libperl.so

was that correct? i'm using RHE

nebukazar
09-26-2004, 12:00 PM
Hi,

Yep, that's fine. You just need to add the mod_jk module to the httpd.conf file.

mo.mentum
09-30-2004, 09:00 AM
Originally posted by resolveit
What am I doing wrong? I followed each step and all the suggestions in the topic but in part 8 where I have to do a ./buildconf.sh I get the following output:

----------
[root@server native]# ./buildconf.sh
rm autom4te.cache
libtoolize --force --automake --copy
./buildconf.sh: line 7: libtoolize: command not found
aclocal
./buildconf.sh: line 11: aclocal: command not found
autoheader
./buildconf.sh: line 13: autoheader: command not found
automake -a --foreign --copy
./buildconf.sh: line 15: automake: command not found
autoconf
./buildconf.sh: line 17: autoconf: command not found
rm autom4te.cache
----------

I am running on a RedHat 9 box with DA installed.

Kind Regards,
Onno

anyone find a workaround/fix for this? i get same thing. I installed automake/libtool from RPM..the scripts actually run, but now i get:

rm autom4te.cache
libtoolize --force --automake --copy
aclocal
/usr/share/aclocal/z-ac_withnone.m4:3: warning: underquoted definition of AC_WITHNONE_IF
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/z-ac_withnone.m4:16: warning: underquoted definition of AC_SUBST_WITHOUT
/usr/share/aclocal/z-ac_subdir_files.m4:15: warning: underquoted definition of AC_SUBDIR_FILES
/usr/share/aclocal/z-ac_prog_cp_s.m4:25: warning: underquoted definition of AC_PROG_CP_S
/usr/share/aclocal/z-ac_define_versionlevel.m4:40: warning: underquoted definition of AC_DEFINE_VERSIONLEVEL
/usr/share/aclocal/z-ac_cond_with_level.m4:30: warning: underquoted definition of AC_COND_WITH_LEVEL
/usr/share/aclocal/z-ac_cond_with_level.m4:84: warning: underquoted definition of AC_COND_WITH_LEVEL_DEFINE
/usr/share/aclocal/z-ac_check_typedef.m4:15: warning: underquoted definition of AC_CHECK_TYPEDEF_
/usr/share/aclocal/z-ac_check_typedef.m4:34: warning: underquoted definition of AC_CHECK_TYPEDEF
/usr/share/aclocal/z-ac_check_symbol.m4:11: warning: underquoted definition of AC_CHECK_SYMBOL
/usr/share/aclocal/z-ac_check_symbol.m4:38: warning: underquoted definition of AC_CHECK_SYMBOLS
/usr/share/aclocal/z-ac_check_func_in.m4:8: warning: underquoted definition of AC_CHECK_FUNC_IN
/usr/share/aclocal/z-ac_check_func_in.m4:48: warning: underquoted definition of AC_CHECK_FUNCS_IN
/usr/share/aclocal/z-ac_check_cc_opt.m4:18: warning: underquoted definition of AC_CHECK_CC_OPT
/usr/share/aclocal/z-ac_caolan_func_which_gethostbyname_r.m4:20: warning: underquoted definition of AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R
/usr/share/aclocal/z-ac_arg_with_path_style.m4:29: warning: underquoted definition of AC_ARG_WITH_PATH_STYLE
NONE:0: /usr/bin/m4: `unloadmodule' from frozen file not found in builtin table!
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoheader
NONE:0: /usr/bin/m4: `unloadmodule' from frozen file not found in builtin table!
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader: /usr/bin/autom4te failed with exit status: 1
automake -a --foreign --copy
NONE:0: /usr/bin/m4: `unloadmodule' from frozen file not found in builtin table!
autom4te: /usr/bin/m4 failed with exit status: 1
automake: autoconf failed with exit status: 1
autoconf
NONE:0: /usr/bin/m4: `unloadmodule' from frozen file not found in builtin table!
autom4te: /usr/bin/m4 failed with exit status: 1
rm autom4te.cache

nebukazar
09-30-2004, 04:33 PM
Hi,

Which versions of automake and libtool did you installed ? And which version of RedHat are you using ?

mo.mentum
09-30-2004, 06:39 PM
Originally posted by nebukazar
Hi,

Which versions of automake and libtool did you installed ? And which version of RedHat are you using ?

hey. i was able to get rid of the "warning: underquoted definition of" messages, by editing the said file and putting the variable in question between [ ].

as for the "NONE:0: /usr/bin/m4: `unloadmodule' from frozen file not found in builtin table!", i still have no clue. from what i saw on message boards all around is that the m4 files were created with a newer version of m4 than what i have. but i had rpm upgraded the one i have...still no go...info below:

# m4 --version
GNU m4 1.4.1

# automake --version
automake (GNU automake) 1.9.2

# libtool --version
ltmain.sh (GNU libtool) 1.5.10 (1.1220.2.130 2004/09/19 12:13:49)

# uname -a
Linux wassaze.******.*** 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

thx for help!

nebukazar
09-30-2004, 07:21 PM
Hi,

are you using redhat 9 ?

(see /etc/redhat-release)

mo.mentum
10-01-2004, 04:05 AM
Originally posted by nebukazar
Hi,

are you using redhat 9 ?

(see /etc/redhat-release)

hmmmm no actually...

# cat /proc/version
Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002

:\

magaf
10-19-2004, 08:40 AM
tomcat doesnt list as default index.jsp files
in main wem.xml file i have :
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>

in my servlet installed from .war file


<web-app>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
</web-app>


anyone knows how to solve it ?
or force tomcat to list index.jsp

nebukazar
10-19-2004, 01:16 PM
hi,

I would recommend you to use the .htaccess file and change the DirectoryIndex function to what you want to.

e.g. DirectoryIndex index.jsp index.php index.cgi and so on...

magaf
10-19-2004, 03:30 PM
.htaccess has nothing to do in that case.
it is tomcatd , no apache.
:(

nebukazar
10-19-2004, 08:30 PM
you want to parse jsp files in first or use a servlet mapping ?

magaf
10-20-2004, 02:22 AM
Ok i developed my knowledge about it a bit.
i have configured vhost like that :

....
<Context path="" docBase="/home/wemax/domains/wemax.lap.pl/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
....
after installing .war file from http://vhost/manager/html it is installed in /usr/local/tomcat/APP

http://vhost/APP doesnt work , http://vhost/APP/index.jsp - works.
Then i find out by a chance , i've copied /usr/local/tomcat/APP to /home/wemax/domains/wemax.lap.pl/public_html - then http://vhost/APP start to work. Great

But i have problem with one application http://test2.lap.pl/Test1.war
after installed nothing is printed out & no errors in logs ,could you install it and try it out?
no .jsp files only
WEB-INF/classes/Test1.class
WEB-INF/src/Test.java
web.xml
tomcatd should be restarted deploying that kinda application ?

Greetings

nebukazar
10-20-2004, 05:36 AM
yes, you must restart tomcat each time you install a WAR application.

Once Tomcat is restarted, problem is that war deployment will create a new directory; meaning that if you put a test.war file into public_html there will now be public_html/test directory. But your tomcat context entry in server.xml is pointing to public_html as its ROOT directory; therefore Tomcat Server will not know what to do with files in public_html/test;

A workout is as follows: upload all the files individually.

.jsp files should go into public_html/ directory.

.class files should go into public_html/WEB-INF/classes directory

web.xml file should go into public_html/WEB-INF/ directory

.jar files should go into public_html/WEB-INF/jar directory.

Chrysalis
10-25-2004, 01:25 PM
at step 8 during make I get

Making all in common
--mode=compile gcc -I/usr/include/apache -g -O2 -DHARD_SERVER_LIMIT=32768 -DFD_SETSIZE=32768 -funsigned-char -DMOD_SSL=208121 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -g -O2 -I /include -I /include/ -c ./jk_ajp12_worker.c
--mode=compile: not found
*** Error code 127

Stop in /usr/local/java/jakarta-tomcat-connectors/jk/native/common.
*** Error code 1

the buildconf.sh gives some weird warnings as well.

FreeBSD 5.2.1

Chrysalis
10-25-2004, 02:50 PM
if I use a release version of the connector rather then the cvs and dont use the newest automake on my box I can do buildconf.sh without errors but the configure command gives me this.

root@bollocks native2 # ./configure --with-apxs=/usr/sbin/apxs
checking build system type... i386-unknown-freebsd5.2.1
checking host system type... i386-unknown-freebsd5.2.1
checking target system type... i386-unknown-freebsd5.2.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
scripts/build/unix/ltconfig: scripts/build/unix/ltconfig: No such file or directory
configure: error: libtool configure failed

its looking for a file not in the package, what gives?

Chrysalis
10-25-2004, 03:25 PM
going back to the cvs I get this during buildconf.sh

rm autom4te.cache
libtoolize --force --automake --copy
aclocal
autoheader
automake -a --foreign --copy
configure.in: 8: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
autoconf
rm autom4te.cache

configure works

then this in make

gcc -DUSE_APACHE_MD5 -I ../common -I /include -I /include/ -I/usr/include/apache -DHARD_SERVER_LIMIT=32768 -DFD_SETSIZE=32768 -funsigned-char -DMOD_SSL=208121 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -g -O2 -I../common -c -fPIC -DPIC -o .libs/mod_jk.lo
gcc: No input files specified
*** Error code 1

Stop in /usr/local/java/jakarta-tomcat-connectors/jk/native/apache-1.3.
*** Error code 1

Stop in /usr/local/java/jakarta-tomcat-connectors/jk/native.

Chrysalis
10-25-2004, 03:36 PM
compiled now with gmake, incidently if I manage to finish I will post all of what I needed to do to get step8 to work on FreeBSD.

nebukazar
10-25-2004, 03:44 PM
greetings,

thanks !

I am working on an auto-installer that will install/update tomcat. This auto-installer will be available for purchase under a license system.

It will update/install the current version of tomcat (you will be prompted to install tomcat 4 or tomcat5).
It will install some software like javamail.
It will install a bunch of libraries.
and more to come...

Chrysalis
10-25-2004, 03:53 PM
ok got all the way to the end but this tomcatd bin seems to be linux only not fbsd compatible I get this when starting it.

/usr/local/sbin/tomcatd: line 20: /etc/rc.d/init.d/functions: No such file or directory
/usr/local/sbin/tomcatd: line 23: /etc/sysconfig/network: No such file or directory
/usr/local/sbin/tomcatd: line 26: [: =: unary operator expected
Starting Tomcat: Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java/java

touch: /var/lock/subsys/tomcatd: No such file or directory

nebukazar
10-25-2004, 03:55 PM
Hi,

Did you tried to create the missed directory as well as "touching" the file ?

Chrysalis
10-25-2004, 05:16 PM
sorry yeah this is what I changed in the binary.

#!/usr/local/bin/bash
(as bash isnt in /bin/bash in freebsd)

# Source function library.
. //usr/local/etc/rc.d/functions
(I have no idea if this is the same as the linux version but I pointed to where I have the same type of file)

# Source networking configuration.
. /etc/rc.conf
(this is where ip's etc. are set in freebsd)

touch /usr/compat/linux/var/lock/subsys/tomcatd
(i have linux compat installed so used the linux compat path which stopped the last error)

with all these changes when I run the command there is no errors on the screen but unfortenatly it doesnt stay running so I guess it simply isn't runnable in freebsd but I will have another look at it tommorow after some sleep. I will also post what other stuff I changed to get it working on FBSD, mostly part 8, thanks for the grea guide tho, I believe this tomcatd is all I need to get thru to have it working. :)

nebukazar
10-25-2004, 05:19 PM
glad to here you bypassed this error :)

if tomcatd fails when it starts, you should take a look at $CATALINA_HOME/logs/catalina.out
and see if something goes wrong when it initiates.

Chrysalis
10-26-2004, 01:38 PM
attaching the file

nebukazar
10-26-2004, 01:40 PM
Hi,

Make sure the created contexts in your server.xml file are correctly set.

Chrysalis
10-26-2004, 02:32 PM
I pasted in what you shown in this thread is that wrong?

nebukazar
10-26-2004, 03:15 PM
it must point to an existent directory.

This server.xml file is being used for example on howto add JSP support to a specified domain name.

regards,

Chrysalis
10-27-2004, 12:29 PM
I see yeah, was kind of dumb what I did but now its corrected and still doesnt stay running.

<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/admin/logs" prefix="context_log." suffix=".log" timestamp="true"/>

is the above classname ok if not what it should it be set to?

Chrysalis
10-27-2004, 12:33 PM
StandardServer.await: create[8005]: java.net.BindException: Address already in $
java.net.BindException: Address already in use

could that be why its failing, looks like a port/ip conflict.

Chrysalis
10-27-2004, 12:35 PM
an aweful lot of processes, is this tomcatd or something else?

root java 8666 8 tcp4 *:8009 *:*
root java 8666 10 tcp4 127.0.0.1:8005 *:*
root java 8665 8 tcp4 *:8009 *:*
root java 8665 10 tcp4 127.0.0.1:8005 *:*
root java 8664 8 tcp4 *:8009 *:*
root java 8664 10 tcp4 127.0.0.1:8005 *:*
root java 8663 8 tcp4 *:8009 *:*
root java 8663 10 tcp4 127.0.0.1:8005 *:*
root java 8662 8 tcp4 *:8009 *:*
root java 8662 10 tcp4 127.0.0.1:8005 *:*
root java 8661 8 tcp4 *:8009 *:*
root java 8661 10 tcp4 127.0.0.1:8005 *:*
root java 8660 8 tcp4 *:8009 *:*
root java 8660 10 tcp4 127.0.0.1:8005 *:*
root java 8659 8 tcp4 *:8009 *:*
root java 8659 10 tcp4 127.0.0.1:8005 *:*
root java 8658 8 tcp4 *:8009 *:*
root java 8658 10 tcp4 127.0.0.1:8005 *:*
root java 8657 8 tcp4 *:8009 *:*
root java 8657 10 tcp4 127.0.0.1:8005 *:*
root java 8656 8 tcp4 *:8009 *:*
root java 8656 10 tcp4 127.0.0.1:8005 *:*
root java 8655 8 tcp4 *:8009 *:*
root java 8655 10 tcp4 127.0.0.1:8005 *:*
root java 8654 8 tcp4 *:8009 *:*
root java 8654 10 tcp4 127.0.0.1:8005 *:*
root java 8653 8 tcp4 *:8009 *:*
root java 8653 10 tcp4 127.0.0.1:8005 *:*
root java 8652 8 tcp4 *:8009 *:*
root java 8652 10 tcp4 127.0.0.1:8005 *:*
root java 8649 8 tcp4 *:8009 *:*
root java 8649 10 tcp4 127.0.0.1:8005 *:*
root java 8648 8 tcp4 *:8009 *:*
root java 8648 10 tcp4 127.0.0.1:8005 *:*
root java 8647 8 tcp4 *:8009 *:*
root java 8647 10 tcp4 127.0.0.1:8005 *:*
root java 8646 8 tcp4 *:8009 *:*
root java 8646 10 tcp4 127.0.0.1:8005 *:*
root java 8645 8 tcp4 *:8009 *:*
root java 8645 10 tcp4 127.0.0.1:8005 *:*
root java 8644 8 tcp4 *:8009 *:*
root java 8644 10 tcp4 127.0.0.1:8005 *:*
root java 8643 8 tcp4 *:8009 *:*
root java 8643 10 tcp4 127.0.0.1:8005 *:*
root java 8642 8 tcp4 *:8009 *:*
root java 8642 10 tcp4 127.0.0.1:8005 *:*
root java 8641 8 tcp4 *:8009 *:*
root java 8641 10 tcp4 127.0.0.1:8005 *:*
root java 8638 8 tcp4 *:8009 *:*
root java 8638 10 tcp4 127.0.0.1:8005 *:*

Chrysalis
10-27-2004, 02:22 PM
<%
String name = "Hello World";
%>

<p>Testing : <%= name %> !</p>

works

nebukazar
10-27-2004, 03:14 PM
great !

Just kill those tomcatd process and restart tomcatd.

Then see if your jsp files are working correctly.

Chrysalis
10-28-2004, 08:53 AM
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?

Chrysalis
10-28-2004, 08:59 AM
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'.

nebukazar
10-28-2004, 10:19 AM
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.

Chrysalis
10-30-2004, 04:01 PM
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

nebukazar
10-31-2004, 08:35 AM
You will have to create a new user/pass for this user in the tomcat-users.xml file and then, restart tomcatd.

Chrysalis
10-31-2004, 10:23 AM
I guessed something like that but how do I assign that user/pass to his dir?

nebukazar
10-31-2004, 10:30 AM
you don't need to assign a directory.

tomcat will load the assigned apps, context by default.

alex2k
10-31-2004, 10:38 PM
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.

Chrysalis
11-01-2004, 06:55 AM
Originally posted by nebukazar
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 :(

nebukazar
11-01-2004, 07:21 AM
@ alex : Yes, it is normal since tomcat use a lot of RAMs.

@ Chrysalis : I would recommend you to take a look at : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html and http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html for more information.

PCONLINE
11-17-2004, 08:58 AM
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

magaf
11-17-2004, 10:01 AM
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

nebukazar
11-17-2004, 11:11 AM
@ 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"/>

PCONLINE
11-18-2004, 01:52 AM
Hi,

i guess it is symlink. i am on fedora 1.0.

regards,
Simon

nebukazar
11-18-2004, 10:02 AM
make sure the symlink points to the correct location or the directory is not empty.

PCONLINE
11-19-2004, 01:23 AM
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

nebukazar
11-19-2004, 10:12 AM
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.

bublers
12-13-2004, 08:57 PM
Hi,
Is there any manual similiar o the last linux manual to set up my machine so it can support JSP please.
Thanks.:(

nebukazar
12-13-2004, 09:01 PM
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.

bublers
12-13-2004, 09:08 PM
Hi Nebukazar,
Does this mean the tomcat is up ?

-bash-2.05b# tomcat4ctl
Usage: tomcat4ctl [ start | stop | restart ]
-bash-2.05b# tomcat4ctl start
>> Reading PID file (/var/run/tomcat4.pid)... [ DONE ]
>> Starting Jakarta Tomcat 4.0.6... [ DONE ]
>> Writing PID file... [ DONE ]
-bash-2.05b# :D

nebukazar
12-13-2004, 09:09 PM
looks like to be up...

however, do a ps aux |grep java and show me the output

bublers
12-13-2004, 09:11 PM
I dont think so ..

-bash-2.05b# ps aux |grep java
bublers 33244 0.0 0.2 2840 2476 p2 Is+ 10:28AM 0:00.12 BitchX -S java.w
-bash-2.05b#

its only my bitchx running on java :p

is there anything i didnt do yet ?

nebukazar
12-13-2004, 09:12 PM
hmm,

I couldn't say. Is everything have been installed correctly?

bublers
12-13-2004, 09:16 PM
I've installed this trough ports,

/usr/ports/java/jdk14

it does ask me to get several files from sun

- really impressed by your quick reply

bublers
12-13-2004, 09:19 PM
-bash-2.05b# pwd
/usr/local/jakarta-tomcat4.0/bin
-bash-2.05b# ./startup.sh
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
-bash-2.05b#

bublers
12-13-2004, 09:26 PM
-bash-2.05b# ls
COPYRIGHT README.html include man
LICENSE bin jre src.zip
README demo lib
-bash-2.05b# pwd
/usr/local/jdk1.4.2
-bash-2.05b#

which file should i use to run this app ?

nebukazar
12-13-2004, 09:29 PM
I would recommend you to start over and try to install tomcat step by step using the howto. When you get an error, you can send me a PM and I will see what I can do.

bublers
12-13-2004, 09:30 PM
will do
thanks :D

bublers
12-13-2004, 10:21 PM
-bash-2.05b# pwd
/usr/local/java/jakarta-tomcat-connectors/jk/native
-bash-2.05b# ./configure --with-apxs=/usr/sbin/apxs
configure: error: cannot run /usr/local/bin/bash scripts/build/unix/config.sub
-bash-2.05b#

now stuck here ..

bublers
12-14-2004, 12:39 AM
-bash-2.05b# tomcatd start
[: =: unexpected operator
Starting Tomcat: Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java

-bash-2.05b#

i cant find what the error stand for.

bublers
12-14-2004, 01:27 AM
Hi Nebukazar,
Just ignore everything that i had paste up there together with the latest priv msg, with your help, we had already suceeded using tomcat on apache. Thanks !

brew
12-17-2004, 02:57 PM
HI Nebukazar,

i already installed tomcat, after started tomcatd, found this error when try to open the .jsp

type Status report

message /spm/index.jsp

description The requested resource (/spm/index.jsp) is not available.

"I am so SURE that the file existed"

Please..

nebukazar
12-17-2004, 04:01 PM
hi,

it looks like you didn't created a new context for this domain name.

Make sure you create a new context for this domain in $CATALINA_HOME/conf/server.xml

eeeek
12-17-2004, 08:35 PM
So, is it possible to get a .war to deploy on a tomcat restart?

I am trying to get one to deploy on a user account.

nebukazar
12-17-2004, 08:37 PM
well,

you will have to deploy the application manually.

You could deploy using WAR deployment but since it is a "shared" jvm, you will have to configure the context for it and restart tomcat everytime you need to configure your WAR apps.

eeeek
12-17-2004, 09:10 PM
*whoosh

Right over my head.

Heh, my only JSP experience, is Resin, which we manually install on cPanel servers at work...

Directadmin, Tomcat, all new to me.

Btw, thanks for the quick reply, I really didnt expect one so soon =P

Edit:

ps. I'm still trying to login to admin area of tomcat....

eeeek
12-18-2004, 08:10 PM
I got .war's to auto deploy by doing this in the server.xml:

<Host name="www.domain.com" appBase="/home/user/domains/domain.com/public_html" unpackWARs="true" autoDeploy="true">
<Alias>domain.com</Alias>
<Context path="" docBase="/home/user/domains/domain.com/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/admin/logs" prefix="context_log." suffix=".log" timestamp="true"/>
</Host>

Probably isn't correct, but seemed to do the trick.

Chrysalis
12-19-2004, 03:26 AM
thanks

jep
01-10-2005, 08:24 AM
Hi Guys,

I've installed tomcat using the the howto, and this is running:

[root@bc bin]# ps aux | grep tomcat
root 3194 0.5 5.3 235560 27424 pts/0 Sl 22:58 0:04 /usr/local/java/java/bin/java -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath /usr/local/java/java/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start
root 3314 0.0 0.1 5060 676 pts/0 S+ 23:11 0:00 grep tomcat
[root@bc bin]#

That's fine.

My questions are:

- Where can I see the tomcat online manager? I see that tomcat uses 8005 but I cannot get a connection on it.
- Can I use JSP on my normal apache? My server-version-string doesn't show anythig about tomcat now, and it doesn't parse .jsp pages.

Can anybody tell me how to use it? I just want to have my .jsp parsing working.

magaf
01-10-2005, 09:31 AM
hi
at first set up some vhost on your server.xml config
then add some user
nexy http://host/manager/html or just http://host/manager/

nebukazar
01-10-2005, 10:02 AM
- Where can I see the tomcat online manager? I see that tomcat uses 8005 but I cannot get a connection on it.
-- You can get to the manager by using the URL : http://somedomain.com/manager/list
However, I think I forgot to enable the HTML gui for the manager. It is quite simple to enable the HTML GUI. I will write the 2 steps needed when I will be at home.

- Can I use JSP on my normal apache? My server-version-string doesn't show anythig about tomcat now, and it doesn't parse .jsp pages.
-- You won't be able to serve JSP pages with apache. You need to make sure mod_jk is enabled.

Can anybody tell me how to use it? I just want to have my .jsp parsing working.
-- If you follow the howto, you should be able to install tomcat correctly. If it doesn't work, you can PM me and I will take a look at it.

jep
01-10-2005, 10:42 AM
Hi,

Thanks for you response, this is my server.xml:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5"
maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0"
connectionTimeout="20000" useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"/>
<Host name="zichtbc.exonet.nl">
<Alias>some-site.com</Alias>
<Context path="" docBase="/home/zichtbc/public_html/" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/username/logs"
prefix="context_log." suffix=".log" timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>

When I surf to zichtbc.exonet.nl, I just see the default page for that ip. That means that this virtualhost (?) doesn't work.

What did I do wrong? Or, what can be wrong?

nebukazar
01-10-2005, 01:21 PM
hi,

Context path="" docBase="/home/zichtbc/public_html/" debug="0"/

Try to remove the "/" at the end of public_html.

Does the public_html directory exist ?
Did you created a JSP file to test it out ?

regards,

jep
01-11-2005, 03:06 AM
As you can see, http://zichtbc.exonet.nl/ still goes to my default host/ip. It doesn't work as an virtualhost.

I've removed the trailing slash..

This is my include in httpd.conf:

# JK!!
Loadmodule jk_module /usr/lib/apache/mod_jk.so
AddModule mod_jk.c
Include "/usr/local/jakarta-tomcat-4.1.30/conf/mod_jk.conf"

And this is that mod_jk.conf:

<IfModule !mod_jk.c>
LoadModule jk_module /usr/lib/apache/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/jakarta-tomcat-4.1.30/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat-4.1.30/logs/mod_jk.log"

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
JkMount /*.do ajp13
JkMount /manager/* ajp13
JkLogLevel emerg

What can be wrong? :)

jep
01-11-2005, 03:48 AM
P.s mod_jk.log is not there, and .jsp does nothing. It seems what apache doesn't do much with the tomcat include. However, the file is correctly included.

nebukazar
01-11-2005, 05:24 AM
check your PM :)

jep
01-11-2005, 11:38 AM
Check yours. :) Thanks in advance!!

magaf
01-20-2005, 09:02 AM
does anyone has managed to run tomcat 5 and mod_jk on da machine ?:)

alex2k
02-06-2005, 10:30 AM
Originally posted by magaf
does anyone has managed to run tomcat 5 and mod_jk on da machine ?:)

I need it also :D

nebukazar
02-06-2005, 10:44 AM
Hi,

I didn't tried to install tomcat5 yet, but it shouldn't be too difficult to install it since it uses the same backend.

nebukazar
02-07-2005, 08:49 AM
hi,

make sure you created the tomcat user.

If it doesn't work, pm me and I will take a look at it.

itman21
02-07-2005, 11:47 PM
Hello, Many thanks for the time

This is the thing I would like to share...

SITUATION root@server bin]# ./startup.sh
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program

SOLUTION : open /usr/local/tomcat/bin/catalina.sh and make it look like below. Bold is the added one. This is in addition to /etc/profile insertion.

# $Id: catalina.sh,v 1.35 2003/05/08 08:19:58 jfclere Exp $
# -----------------------------------------------------------------------------

JAVA_HOME=/usr/local/java/java

# OS specific support. $var _must_ be set to either true or false.
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;


Now, all in good shape :)

bublers
02-16-2005, 10:35 PM
tomcatd -Xmx256m -Xms128m
will this do the trick ?

noose
03-10-2005, 12:41 AM
how to install Tomcat in FreeBSD 4.10 ?? I have a lot of problems ;((((

nebukazar
03-10-2005, 12:45 AM
Originally posted by bublers
tomcatd -Xmx256m -Xms128m
will this do the trick ?

Unfortunately, it will not work. You have to edit the startup script so it can use the $JAVA_OPTS var with the specified value.

As for tomcat under freeBSD, I didn't had the chance to give it a try. However, I think some DA users were able to compile tomcat with some tweaks.

Chrysalis
03-10-2005, 03:58 AM
I posted the changes for getting this to work on FreeBSD it is possible to do. Read the whole thread.

noose
03-10-2005, 01:45 PM
Hi !
I just install the tomact with your patches ;)
But I have problems with start :(

sserver# cat /usr/sbin/tomcatd
#!/usr/local/bin/bash
#
# Startup script for Tomcat
#
# chkconfig: 345 84 16
# description: Tomcat jakarta JSP server



TOMCAT_HOME=/usr/local/tomcat
TOMCAT_START=$TOMCAT_HOME/bin/startup.sh
TOMCAT_STOP=$TOMCAT_HOME/bin/shutdown.sh

#Necessary environment variables
export JAVA_HOME="/usr/local/java/java"
export CATALINA_HOME="/usr/local/tomcat"
#export LD_KERNEL_ASSUME="2.2.5"

# Source function library.
. /usr/local/etc/rc.d/functions

# Source networking configuration.
. /etc/networks ## THAT ISN'T CORRECT PATH :(

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

#Check for tomcat script
if [ ! -f $TOMCAT_HOME/bin/catalina.sh ]
then
echo "Tomcat not available..."
exit
fi

start() {
echo -n "Starting Tomcat: "
$TOMCAT_START
echo
touch /var/lock/subsys/tomcatd
# We may need to sleep here so it will be up for apache
sleep 3
#Instead should check to see if apache is up by looking for httpd.pid
}

stop() {
echo -n $"Shutting down Tomcat: "
su - tomcat -c $TOMCAT_STOP
rm -f /var/lock/subsys/tomcatd
echo
}

status() {
ps ax --width=1000 | grep "[o]rg.apache.catalina.startup.Bootstrap start" | awk '{printf $1 " "}' | wc | awk '{print $2}' > /tmp/tomcat_process_count.txt
read line < /tmp/tomcat_process_count.txt
if [ $line -gt 0 ]; then
echo -n "tomcatd ( pid "
ps ax --width=1000 | grep "[o]rg.apache.catalina.startup.Bootstrap start" | awk '{printf $1 " "}'
echo -n ") is running..."
echo
else
echo "Tomcat is stopped"
fi
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 3
start
;;
status)
status
;;
*)
echo "Usage: tomcatd {start|stop|restart|status}"
exit 1
esac


touch: /var/lock/subsys/tomcatd: No such file or directory
server# mkdir /var/lock
server# mkdir /var/lock/subsys
server# mkdir /var/lock/subsys/tomcatd
server# tomcatd start
/usr/sbin/tomcatd: line 6: your-net: command not found
/usr/sbin/tomcatd: line 7: your-netmask: command not found
/usr/sbin/tomcatd: line 12: subnet1: command not found
/usr/sbin/tomcatd: line 13: subnet2: command not found
/usr/sbin/tomcatd: line 26: [: =: unary operator expected
Starting Tomcat: The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

In catalina.sh I wrote JAVA_HOME=....
:(
Please... HELP !

system:
FreeBSD 4.10-RELEASE-p5

webquarry
04-21-2005, 10:25 AM
did the install and apache won't start now.

Starting httpd: Syntax error on line 72 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/mod_jk.so into server: /usr/lib/apache/mod_jk.so: undefined symbol: stricmp

Any ideas anyone?

tklaver
04-25-2005, 04:18 AM
gcc -I/usr/include/apache -g -O2 -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -O2 -I /include -I /include/ -c jk_connect.c -fPIC -DPIC -o .libs/jk_connect.o
jk_connect.c: In function `jk_shutdown_socket':
jk_connect.c:485: error: `SD_SEND' undeclared (first use in this function)
jk_connect.c:485: error: (Each undeclared identifier is reported only once
jk_connect.c:485: error: for each function it appears in.)
gmake[1]: *** [jk_connect.lo] Error 1
gmake[1]: Leaving directory `/usr/local/java/jakarta-tomcat-connectors/jk/native/common'
gmake: *** [all-recursive] Error 1


what can be wrong?

ejai
04-26-2005, 08:50 PM
gcc -I/usr/include/apache -g -O2 -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -O2 -I /include -I /include/ -c jk_connect.c -fPIC -DPIC -o .libs/jk_connect.o


i also have the same problem when compiling >.< .. can anyone help me .. i am using fedora core 2

zuijberknaf
05-05-2005, 01:10 PM
Hello

I've got a problem with installing tomcat on my debian machine. I've used the instructions as mentioned at the beginning of this thread.

I'm using the newest java 1.5 version and tomcat 5.5.9.

But when I try to start the tomcat I get the following error in the log file.

5-mei-2005 20:54:22 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

The problem is, that I tried many possible things to solve it, but all failed.

Can someone help me to solve it.

Thanx!

PS: Problem solved.

ethanhoo
06-07-2005, 10:27 PM
Hi, I tried to install Tomcat following the instructions, did a:

# tomcatd start
Starting Tomcat: Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java/java
# tomcatd status
Tomcat is stopped

In catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Jun 8, 2005 12:15:41 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jun 8, 2005 12:15:41 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jun 8, 2005 12:15:42 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Catalina.start: LifecycleException: Context startup failed due to previous errors
LifecycleException: Context startup failed due to previous errors
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException: Coyote connector has not been started
LifecycleException: Coyote connector has not been started
at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
at org.apache.catalina.core.StandardService.stop(StandardService.java:499)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

Thanks

ethanhoo
06-07-2005, 10:45 PM
Sorry, I figured it out it's syntax error in server.xml.

Thanks. It's now running.

noose
06-08-2005, 01:06 AM
Anybody can help Us ??

Making all in apache-1.3
gmake[1]: Entering directory `/usr/local/java/jakarta-tomcat-connectors/jk/native/apache-1.3'
mode=compile gcc -DUSE_APACHE_MD5 -I ../common -I /include -I /include/ -I/usr/include/apache -DHARD_SERVER_LIMIT=32768 -DFD_SETSIZE=32768 -funsigned-char -DMOD_SSL=208122 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -DJK_PREFORK -g -O2 -I../common -c mod_jk.c -o mod_jk.lo
gmake[1]: *** No rule to make target `../common/jk_ajp12_worker.lo', needed by `mod_jk.la'. Stop.
gmake[1]: Leaving directory `/usr/local/java/jakarta-tomcat-connectors/jk/native/apache-1.3'
gmake: *** [all-recursive] Error 1

I'm using freebsd 4.11

laurent
08-29-2005, 10:06 AM
When I test Java :
/usr/java/java/bin/java -version

I have the error :
/usr/java/jdk1.3.1_16/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

Laurent

inderp
09-08-2005, 03:24 PM
I am getting the same error when i am trying to restart new instance of tomcat with same binary distrbution.
you mentioned you were able to correct this problem with syntax correction in server.xml ... what was the change

can anyone help please

nebukazar
09-13-2005, 09:22 PM
Hi,

I can take a look @ your server.xml file. Just send it to ltellier@eenix.com

FastAttack
09-14-2005, 02:11 PM
One more thing to add on this line

- Download the script at http://www.linuxjava.net/howto/weba...l_files/tomcatd
- mv tomcatd /usr/sbin
- chmod 700 /usr/sbin/tomcatd
- vi or pico -w /usr/sbin/tomcatd
- Locate any lines that contain the text : su - tomcat -c $TOMCAT_START and replace it by : $TOMCAT_START

make sure you replace su -tomcat -c $TOMCAT_STOP with just $TOMCAT_STOP

boonchuan
09-18-2005, 01:26 PM
Wonder when will DA have official support for Tomcat?

Sorantis
09-29-2005, 02:02 AM
I've followed given steps installing Tomcat.
But I can't start it.
when I write ./startup.sh
the respond is
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java/java

but tomcat won't start .
when I type http://myhost:8081
it throws me "This page cannot be displayed"
I manually changed port to 8081.

Here is my server.xml


<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="75" enableLookup
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"/>
<Host name="wcat.boom.ge">
<Alias>wcat.boom.ge</Alias>
<Context path="" docBase="/home/stats/domains/wcat.boom.ge/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/username/logs" prefix="context_log." suffix=".log"
</Host>
</Engine>
</Service>
</Server>

SeLLeRoNe
11-11-2005, 05:21 PM
hi, i've freebsd 5.4-release.. can someone gimme the step in a pm? thanks a lot

kunal
11-16-2005, 03:50 PM
Originally posted by zuijberknaf
Hello

I've got a problem with installing tomcat on my debian machine. I've used the instructions as mentioned at the beginning of this thread.

I'm using the newest java 1.5 version and tomcat 5.5.9.

But when I try to start the tomcat I get the following error in the log file.

5-mei-2005 20:54:22 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

The problem is, that I tried many possible things to solve it, but all failed.

Can someone help me to solve it.

Thanx!

PS: Problem solved.


Hi,
How did you fix this?

Kunal

zuijberknaf
05-18-2006, 07:47 AM
Since version 5.5.16 of Tomcat they have added the following feature.
Deploy folders which don't have a WEB-INF, and return an error when a context file does not contain a Context element (remm)
Does someone know how to disable this feature, because it is causing problems for one of my customers.

I've already searched google for it and the documentation that is provided with Tomcat, but no luck at all.

I'm currently using 5.5.17

Greetings,

Frank Buijze
FraJa WeB

www.daforum.(nl|be)
www.frajaweb.(nl|be|eu)

linuxnewbie
06-01-2006, 11:03 AM
how come i can't login at step 8, it shows connect to cvs.apache.org... failed: connection refused ???

8- Download the Java Connector from CVS and build / install mod_jk
- cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login password: anoncvs (When prompted for a password, just hit ENTER)

lawman123
07-06-2006, 09:08 PM
Hi i am trying to install tomcat to work with DirectAdmin.

All went well until this step:

Step 8

cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login password: anoncvs (When prompted for a password, just hit ENTER)

I used the command above and when promoted for password, i hit ENTER.

This is the error message i get:

"cvs [login aborted]: connect to cvs.apache.org(140.211.166.113):2401 failed: Connection refused"

What could be the problem?

I am running Linux Enterprise 3.0

gcypher
07-07-2006, 12:04 PM
this is really nice !!

Kod
04-26-2007, 07:27 AM
Hi,
I'm also stuck at step 8 :


Logging in to :pserver:anoncvs@cvs.apache.org:2401/home/cvspublic
CVS password:
cvs [login aborted]: connect to [cvs.apache.org]:2401 failed: Connection refused

Any ideas welcome.

Jackiegoal
11-18-2007, 06:55 AM
For the steps where you need to install mod_jk:

The instructions are obsolete (what do you expect after 3 years), however, you might want to be able to install tomcat anyway ;)

Apache uses modules. mod_jk is a module as well. You can easily install the module by following Apache's instructions for this specific module on the appropriate page.

The rest of the installation instructions will work out fine, I guess...