Re: TOMCAT SUCKS

2001-06-27 Thread Michael Jennings

> Hi guys,
>
> I really think that TOMCAT SUCKS so bad. I'm not against the open source
> community but this is why I think that TOMCAT sucks:
>
> 1. The documentation for Tomcat is so bad and it covers only the basic
> server installation. HELL - usually for production purposes people
have
> load balancers, virtual hosts, etc.

As far as I understand it, there is nothing to stop a user from adding
documentation
to the tomcat project themselves. I'm amazed at how good the documentation
is
seeing as how no one was paid to do it.

> I really think that TOMCAT is OK for testing purposes. Trust me - for
complex
> configurations it sucks.
> If you want to use a good production application server - take a look at
> WebLogic, Resin, Allaire JRun, etc.

I've found it okay for my purposes. Then again, I've never run into any
major problems
with tomcat and I've never tried to set it up for load balancing.
It's too bad your experience has been negative. Perhaps you could consider
adding
some of the ease-of-use ideas from JRun et al to the tomcat project?

-Mike




Re: jre or jdk

2001-06-15 Thread Michael Jennings

Bonjour!

The only thing tomcat needs out of the JDK is the tools.jar file. If you
take a tools.jar
file from a JDK and put it in your CLASSPATH, you can use a JRE to launch
tomcat.

The problem with the 8007 I don't know. I think by default tomcat listens
on port 8080. The thing to do is make sure tomcat works on port 8080
then try to get it working with apache.

Hope this helps!
-Mike


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 10:18 AM
Subject: jre or jdk


I use a apache1.3.9, tomcat 3.2.2 and the mod_jserv.so module :
I only want to run servlet not jsp!
Should I get JDK or only jre?

Just because the URL http://localhost:8007 give me :
HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
java.io.IOException: Stream broken
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)



Is the http://localhost:8007 a JSP
Thanks
__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr







Re: Does Tomcat support Server Side Includes

2001-06-14 Thread Michael Jennings

Tomcat is a JSP engine, and the JSP standard has an "include" directive.
Check out the tomcat example JSPs, they show you the source code for
a lot of simple JSP tricks.

Hope this helps!
-Mike

- Original Message -
From: "kevin ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 9:25 AM
Subject: Does Tomcat support Server Side Includes


> Hi, I'm new to Tomcat and I'm not having any luck with implementing SSI
with
> respect to Tomcat. Can anyone tell me does Tomcat support SSI and if so
can
> you point me to existing documentation that describes how-to or provide an
> example. I have read the Tomcat User's Guide, but did not find any
specific
> information on SSI.
>
> Thank you in advance.
>
> Respectfully,
> [EMAIL PROTECTED]
>
>
>




Re: advice on setting up server for student projects?

2001-06-11 Thread Michael Jennings

Hi,

I have done this before on my Linux server, but only by manually
modifying server.xml to explicitly add contexts that point to
something off of each user's home directory.

For example, in my server.xml file (tomcat 3.2.2) I've got the following:



So that my friend Craig can play with JSP's in his public_html directory.
Since I rely on mod_jk.conf-auto, I have to restart tomcat to regenerate
the newer mod_jk.conf-auto then I have to restart apache to re-read
mod_jk.conf-auto

What you probably want to do, is copy AutoSetup.java to something like
HomeDirSetup.java then modify HomeDirSetup.java such that it automatically
adds
contexts from /home/*/public_html/jsp
so that each user gets a tomcat context.

Was this clear? Didn't sound clear when I typed it. Hope it made sense!
-Mike

- Original Message -
From: "Daphne Tregear" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 9:59 AM
Subject: advice on setting up server for student projects?


> Hello.
>
> Does anyone have any advice to offer on setting up an Apache/Tomcat
> server for student projects? Currently our students can just ask for
> CGI permission if they need it for their project and we enable their
> ~/public_html/cgi-bin directory.  Is there a way I can just enable
> ~/public_html/javapages (say) on an ad-hoc basic without giving myself
> major amounts of reconfiguration to do each time?
>
> If you have any suggestions, please let me know -- thanks.
>
> --
> Daf Tregear Department of Computer Science
> Systems Manager University of Manchester
> E-mail: [EMAIL PROTECTED] Oxford Road
> Tel: +44 (0)161 275 6227 Manchester
> Fax: +44 (0)161 275 6236 United Kingdom  M13 9PL
>




Re: j_security_check

2001-06-11 Thread Michael Jennings

Mark,

The mod_jk stuff doesn't matter if you are talking to tomcat directly. Have
you
checked out the security example that comes with tomcat 3.2.2?
Does that work? (You might need to modify your server.xml file)

-Mike Jennings

- Original Message -
From: "Mark Muffett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 8:04 AM
Subject: Re: j_security_check


> Peter
>
> Can I check what version of Tomcat you're using?  Mine still doesn't work.
>
> Thanks
>
> Mark
>
> - Original Message -
> From: "P.Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 11, 2001 1:58 PM
> Subject: Re: j_security_check
>
>
> > Hi Mark,
> >
> > I send you attached the parts of mod_jk.conf , web.xml which works for
> > me;
> > belonging to directory structure
> > c:\tomcat\webapps\tute6\form\protected.jsp
> > c:\tomcat\webapps\tute6\secure\login.jsp & error.html
> > c:\tomcat\webapps\tute6\WEB-INF\web.xml
> >
> > set   > verbosityLevel = "DEBUG"
> > path="logs/tomcat.log"/>
> >
> > in your server.xml so you can see if there are any mod_jk errors while
> > invoking tomcat.
> >
> > Hth
> >
> > Peter
>
>
> --
--
> 
>
>
> > ÿþ# The following line makes apache aware of the location of the /tute6
> context
> > #
> > Alias /tute6 "C:/tc/webapps/tute6"
> > 
> > Options Indexes FollowSymLinks
> > 
> >
> > #
> > # The following line mounts all JSP files and the /servlet/ uri to
tomcat
> > #
> > JkMount /tute6/servlet/* ajp13
> > JkMount /tute6/*.jsp ajp13
> > JKMount /tute6/form/*.jsp ajp13
> > JKMount /tute6/secure/j_security_check ajp13
> > #
> > # The following line prohibits users from directly accessing WEB-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case
matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > #
> > # The following line prohibits users from directly accessing META-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case
matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > ###
> > # Auto configuration for the /tute6 context ends.
> > ###
> >
>
>
> --
--
> 
>
>
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >
> > 
> >
> >
> >tomcat
> >
> >
> >   
> >protect
> >   /form/protected.jsp
> >   
> >
> >   TESTAPPROLE
> >   tomcat
> >
> >
> >
> >
> >
> >   tute6
> >   /tute6/servlet/*
> >
> >
> >
> >   
> >  My Protected Area
> >  /form/*
> >  DELETE
> >  GET
> >  POST
> >  PUT
> >   
> >   
> >  tomcat
> >   
> >
> >
> >
> >   FORM
> >   Form Based Authentication
> >
> >   /secure/login.jsp
> >   /secure/error.html
> >   
> >
> >
> > 
> >
>




Re: Servlet Aliasing

2001-06-06 Thread Michael Jennings

Hi,

To the best of my understanding (which might not be great)
any entries in your context's web.xml file basically tell
tomcat "hey, if you happen to be handling the current request, I've got
a servlet whose URI is file://xxx/yyy "

The thing is, tomcat might not be handling the request in the first place.
Best thing to try is let tomcat listen on port 8080 (the default config does
this I think)
then see if your servlets work. If they do, then you're halfway there, you
just need
to adjust whatever file httpd.conf is Include-ing.

-Mike

- Original Message -
From: "ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 3:20 PM
Subject: Servlet Aliasing


> I am running tomcat 3.22, with mod_jk, and apache 1.3.20.  Apache serves
my
> static context and tomcat does my jsp.  All works well but I am now trying
> to migrate my old jserv set up over to my tomcat box.  In my jserv set up
I
> have zones set up to access a package of servlets that are accessed like
> http://www..com/AServletName
>
> I can get it to work if called like so:
> http://www..com/TomcatContext/Servlet/AServletName
> I need to lose the TomcatContext/Servlet stuff.  I have tried adding
entries
> to my web.xml like so:
>
>
>   
>   AServletName
>   
>   
>   com.packagename.AServletClass
>   
> 
> 
> 
>   AServletName
> 
> 
> /AServletName
> 
> 
>
> to no avail.  There must be another step I am missing but I can find no
docs
> on it anywhere. Please Help
> ryan
>




Re: Tomcat Startup Error

2001-06-06 Thread Michael Jennings



Hi,
 
What operating system are you using? Which version 
of Java are you launching it with?
What version of tomcat are you using?
What user are you logged in as when you try to 
launch it?
When you say you started tomcat on port 80, do you 
mean you
modified the configuration file or files to use 
port 80?
Do you prefer pepsi or coke?
Any information you can send along 
helps!
-Mike
 
 

  - Original Message - 
  From: 
  Mike Alba 

  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 06, 2001 2:55 
  PM
  Subject: Tomcat Startup Error
  
  Hi,
   
    Sorry for the beginner question but at 
  least it is a tomcat
  question ;)
    Anyway when I try to start tomcat on port 
  80
  I get a 
   
  java.net.BindException: Permission 
  denied
   
  Error and it fails can someone please tell me 
  why?
   
  Thanks in advance for yor 
help!


Re: how to put jsp files in regular apache root?

2001-06-04 Thread Michael Jennings

I'm not sure about that one...

Try using a context path of "", also, you could try "*.jsp" that might also
work.
You could also try just running tomcat as your web server! Just change the
"8080"
in server.xml to "80"

Have you read through the tomcat docs?
-Mike

- Original Message -
From: "Gerald Koh" <[EMAIL PROTECTED]>
To: "Michael Jennings" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 4:06 PM
Subject: RE: how to put jsp files in regular apache root?


> Thanks for the info.. one more question... I would like to be able to run
> jsps in the root, as well as in several subfolders.  Do the contexts
inherit
> to each subfolder, or should  I explicitly declare all subfolders as new
> contexts?
>
>
> Here's what I'm looking at:
>
>  docBase="/var/www/html/"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> to try to be able to put jsps in the root (like index.jsp, for example).
I
> will have several subfolders for projects that may also have jsps in them.
>
> Will this work?
>
> Thanks for your help!
>
> g
>
> --
> Gerald Koh  |  Site Building  |  Tumo Solutions  |  Vail, Colorado
> v: 970.949.4111 x15   |  e: [EMAIL PROTECTED]
>
> --
>
> "The only source of knowledge is experience" -  Albert Einstein
>
> -Original Message-
> From: Michael Jennings [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 3:23 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: how to put jsp files in regular apache root?
>
> Just have a look at $TOMCAT_HOME/server.xml
>
> you'll see an entry that looks like:
>
>  docBase="webapps/examples"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> Just make another entry right after it with a different docBase and path,
> for example:
>
>  docBase="/home/gerald/jsp"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> then the next time you restart tomcat, it'll make a new
> conf/mod_jk.conf-auto that'll have all
> of the stuff that mod_jk.so needs to intercept any urls that look like
> "/geraldjsp"
> You'll need to restart apache so that apache will re-read httpd.conf,
which
> in in turn
> make apache re-read the mod_jk.conf-auto
>
> Hope this helps!
> -Mike
>
>
> - Original Message -
> From: "Gerald Koh" <[EMAIL PROTECTED]>
> To: "Tomcat User" <[EMAIL PROTECTED]>
> Sent: Monday, June 04, 2001 12:23 PM
> Subject: how to put jsp files in regular apache root?
>
>
> > Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now
it
> > is working, but there are a few outstanding issues. Please keep my
> > newbieness in mind when answering:
> >
> > 1. I think tomcat is serving the static pages as well as the jsps.
There
> > are directions on how to change this, but read #2 first.
> > 2. the jsp's currently need to reside in the webapps directory, I think.
> I
> > need to hold the jsps in the same directory as the html. Can I do this?
> >
> > Thanks in advance!
> >
> > g
> >
> > --
> > Gerald Koh  |  Site Building  |  Tumo Solutions  |  Vail, Colorado
> > v: 970.949.4111 x15   |  e: [EMAIL PROTECTED]
> >
> > --
> >
> > "The only source of knowledge is experience" -  Albert Einstein
> >
> >
>




Re: how to put jsp files in regular apache root?

2001-06-04 Thread Michael Jennings

Just have a look at $TOMCAT_HOME/server.xml

you'll see an entry that looks like:

   


Just make another entry right after it with a different docBase and path,
for example:

   


then the next time you restart tomcat, it'll make a new
conf/mod_jk.conf-auto that'll have all
of the stuff that mod_jk.so needs to intercept any urls that look like
"/geraldjsp"
You'll need to restart apache so that apache will re-read httpd.conf, which
in in turn
make apache re-read the mod_jk.conf-auto

Hope this helps!
-Mike


- Original Message -
From: "Gerald Koh" <[EMAIL PROTECTED]>
To: "Tomcat User" <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 12:23 PM
Subject: how to put jsp files in regular apache root?


> Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now it
> is working, but there are a few outstanding issues. Please keep my
> newbieness in mind when answering:
>
> 1. I think tomcat is serving the static pages as well as the jsps.  There
> are directions on how to change this, but read #2 first.
> 2. the jsp's currently need to reside in the webapps directory, I think.
I
> need to hold the jsps in the same directory as the html. Can I do this?
>
> Thanks in advance!
>
> g
>
> --
> Gerald Koh  |  Site Building  |  Tumo Solutions  |  Vail, Colorado
> v: 970.949.4111 x15   |  e: [EMAIL PROTECTED]
>
> --
>
> "The only source of knowledge is experience" -  Albert Einstein
>
>




mod_jk.so built for Solaris-Sparc

2001-06-04 Thread Michael Jennings

Hi everyone!

I have successfully built and tested mod_jk.so for Solaris-Sparc.

The following file works with tomcat version 3.2.2:

http://southgatesoftware.com/mod_jk/solaris/sparc/apache1.3/mod_jk.so

Could someone with the power maybe post this somewhere on java.apache.org
for the benefit of Solaris users? It was quite a hassle for a relative
Unix-newbie
like myself to get it to work, so I figured it might help out others.

Thanks.
-Mike

__
Mike Jennings
Southgate  Software Ltd.
250-382-6851 (ph)
250-382-6800 (fax)
[EMAIL PROTECTED]




Re: problem installing mod_jk

2001-06-04 Thread Michael Jennings


Sounds like a permissions problem. Apache usually runs as user "nobody"
or user "apache". Just make sure that the user apache runs as can
"read" ..mod_jk.conf-auto.

Try copying the generated mod_jk.conf-auto to the same directory
that your httpd.conf file lives, then restart tomcat and apache.
If everything then works, you know that it is not a problem with
mod_jk.so etc.

-Mike Jennings

- Original Message -
From: "Jacek Kempski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 11:14 AM
Subject: problem installing mod_jk


> Hello,
>
> i am new to tomcat; try to configure apache with tomcat using mod_jk.
> I run SuSE Linux 7.1, Apache 1.3.14, JDK 1.3
>
> I have built mod_jk.so and put it to the libraries directory.
> I can start tomcat with no problems
> I've included mod_jk.conf-auto in the httpd.conf
> and included  in the server.xml
> Starting apache brings an error "cannot open ...mod_jk.conf-auto" (with
the
> right path to the mod_jk.conf-auto which by the way exists after tomcat's
start)
>
> how can i fix it?
>
> thanks in advance,
>
> jacek
>




Re: ** JVM and Processes

2001-06-01 Thread Michael Jennings
Title: RE: ** JVM and Processes



My understanding of green vs. native threads is as 
follows:
With native threads, an actual system thread is 
created when a Java thread is created.
On linux a system thread takes the form of another 
process, but one that shares memory
etc. with another process. This is why if you 
create a program that allocates 100 megs of memory,
then spins off 10 threads, it looks like 10 
processes each taking up 100 megs of memory, when in
fact the amount of memory is 100 megs + 10*overhead 
for each thread (not much more than 100 megs).
 
On WIN32 systems, threads do not show up as 
separate processes, they are separate threads of execution
inside the same process (essentially the same as 
the Linux implementation with differences too subtle to care about)
 
Green threads on the other hand use timers, 
signals, setjmp etc. voodoo to "simulate" threads within one 
process.
Essentially taking over the scheduling from the 
kernel.
 
I believe the command-line option for green threads 
is simply "-green" as in
java -green MyThreaddedApp
 
If you have a multi-cpu system, green threads will 
only take advantage of one cpu, whereas native threads
will use all the cpus on your system (that's the 
theory anyway)
 
I've heard of problems with blocking I/O with green 
threads, but have no first hand knowledge.
 
Hope this helps.
-Mike Jennings
 

  - Original Message - 
  From: 
  BARRAUD Valérie 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, June 01, 2001 9:01 AM
  Subject: RE: ** JVM and Processes
  
  http://java.sun.com/products/jdk/1.1/packs/native-threads/README 
  
  
-Message d'origine- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] 
Date:   vendredi 1 juin 2001 17:46 À:  [EMAIL PROTECTED] 
Objet:  RE: ** JVM and Processes 
Randy, 
Thanks for the advice. Could you be a little more 
specific, though, about how to use green 
threads instead of native threads and possibly differences between the two? Thanks. 
 - Adam 
At 10:59 AM 6/1/2001 -0400, you wrote: 
> >   Don't use ps - these are 
actually threads.  ps is showing them as >processes because that is what it does.  If you use green 
thread (as opposed >to the native 
threads you are using now), the display will go away, but you 
>will experience a slowdown (how much depends 
on your operating system and >other 
activity on the system). > 
>   
Randy > > >> -Original 
Message- >> From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >> Sent: 
Friday, June 01, 2001 10:37 AM >> 
To: [EMAIL PROTECTED] >> Subject: ** JVM and Processes >> >> >> Hi, >> 
>> For a particular web server we 
are running with Tomcat 3.1, >> we 
are having >> an issue with the 
java servlets that are running. What appears to be >> happening is that each time a servlet is called 
from the web >> site, a new 
>> process is created to run the java 
program. When I view >> processes 
with "ps >> ax", I see dozens of 
instances of: >> 
/usr/java/jdk1.3/bin/i386/native_threads/java >>  >> It was 
briefly stated in Java Servlet Programming by Hunter & >> Crawford, (c) >> Oreilly that 'most servlet containers execute all servlets 
in >> a single JVM >> ... the exception being high-end containers that 
support >> execution across 
>> multiple backend servers...' 
>> >> We are only using 1 web server with an average weekly load 
of >> a couple of >> hundred visitors. >> >> Any ideas as to 
why we would be seeing so many identical >> processes and if >> 
so, how to modify that? >> 
>> Thanks in advance. 
>> >>   -Adam >> >> > > 



Re: form-based authentication tomcat->apache

2001-05-27 Thread Michael Jennings

It worked!
Thanks!
-Mike

- Original Message -
From: "Andrew Robson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 26, 2001 8:14 PM
Subject: Re: form-based authentication tomcat->apache


> Try putting
> JkMount  /examples/jsp/security/login/j_security_check ajp13
> into httpd.conf
>
> andrew
>
> On Sun, 27 May 2001, you wrote:
> > Hi everyone,
> >
> > Has anyone been able to get the form-based authentication example to
work
> > with tomcat? I can get it to work if I connect to tomcat's own
http-server
> > on port 8080
> > but when I connect to the same example via apache (via mod_jk to tomcat)
> > after I log in I get
> > http://localhost/examples/jsp/security/login/j_security_check
> >
> > with a message saying "the page cannot be found".
> > Is this a known bug in tomcat? Is there some subtle configuration thing
> > I've missed?
> >
> > -Mike Jennings
> >
> > __
> > Mike Jennings
> > Southgate  Software Ltd.
> > 250-382-6851 (ph)
> > 250-382-6800 (fax)
> > [EMAIL PROTECTED]
> -




form-based authentication tomcat->apache

2001-05-26 Thread Michael Jennings

Hi everyone,

Has anyone been able to get the form-based authentication example to work
with tomcat? I can get it to work if I connect to tomcat's own http-server
on port 8080
but when I connect to the same example via apache (via mod_jk to tomcat)
after I log in I get
http://localhost/examples/jsp/security/login/j_security_check

with a message saying "the page cannot be found".
Is this a known bug in tomcat? Is there some subtle configuration thing
I've missed?

-Mike Jennings

__
Mike Jennings
Southgate  Software Ltd.
250-382-6851 (ph)
250-382-6800 (fax)
[EMAIL PROTECTED]




Re: Install problems in FreeBSD 4.2

2001-05-23 Thread Michael Jennings

That's a jdk configuration problem, not a tomcat problem.
If you can successfully get run a simple command like:
java -version
then you can move on to the tomcat-related stuff.

I've never gotten jdk 1.3 to work in BSD,
but you should make sure that the following files exist:
/usr/bin/expr
/usr/bin/dirname
/usr/bin/cut
/usr/bin/head

If they exist somewhere else (eg. /bin/cut ) then copy them to the expected
location (or link them)
Hope this helps!
-Mike Jennings


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 2:33 PM
Subject: Install problems in FreeBSD 4.2


>
> Hi,
>
> I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I
> followed the instructions included with the jakarta-tomcat README which
> indicated that I needed to set an environment variable of
> JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The
> instructions indicate that I should set the CLASSPATH if needed, but I do
> not know if it is needed, or what it should be set to. When I try to run
> ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is
> next step in setup of tomcat) I get:
>
> /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found
> Error: can't find libjava.so.
>
> The same messages pops up if I try to run ./build.sh for tomcat without
> first installing ant.
>
> The jdk was installed from j2sdk-1_3_1-linux-i386.bin.
>
> How do I get past this error message to the next error message?
>
> I have been unable to find documentation for setting this up in FreeBSD,
so
> if someone can point me in the direction of some, I would greatly
> appreciate it.
>
> Thanks.
>
>




Re: How to use Tomkat with apache.

2001-05-23 Thread Michael Jennings

Bonjourno!

I managed to get tomcat working on my computer, here is what I
did.
1) Make sure you have JDK 1.3 installed on your computer
(to verify, type in java -version)
In order to make JDK 1.3 run properly on RedHat 7.1, in your
/etc/profile file put in a line saying:
ulimit -s 2000

also, make sure that the following files exist:
/usr/bin/expr
/usr/bin/dirname
/usr/bin/cut
/usr/bin/head

Those files are used by the "java" script that launches the actual JVM.
For instance, on my computer, my java 1.3 sdk is installed at
/usr/j2sdk1_3_0

so if I type in "more /usr/j2sdk1_3_0/bin/java" it shows the shell script
used
to launch the JVM.

2) download the tomcat binaries (3.2.1 is the latest non-beta)
3) unzip the tomcat binaries somewhere appropriate
For example: on my computer I put tomcat in /usr/local/jakarta-tomcat-3.2.1

4) edit the startup script(s) in the bin subdirectory of your tomcat
installation
on my computer: /usr/local/jakarta-tomcat-3.2.1/bin

5) launch tomcat and have fun!

Hope this helps!
-Mike Jennings


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 1:40 PM
Subject: How to use Tomkat with apache.


> I'm new to tomkat and I'd like to use JSP with apache.
> I use Red Hat 7.1
>
> I try to find somebody, something, sites , books but nothing explain how
> configure the machine to use tomkat for using JSP.
> Please ... say me where can I find how configure and use tomkat or explain
> how do that.
> Thank you in advance, Mario.





Re: How to use Tomkat with apache.

2001-05-23 Thread Michael Jennings

Bonjourno!

I managed to get tomcat working on my computer, here is what I
did.
1) Make sure you have JDK 1.3 installed on your computer
(to verify, type in java -version)
In order to make JDK 1.3 run properly on RedHat 7.1, in your
/etc/profile file put in a line saying:
ulimit -s 2000

also, make sure that the following files exist:
/usr/bin/expr
/usr/bin/dirname
/usr/bin/cut
/usr/bin/head

Those files are used by the "java" script that launches the actual JVM.
For instance, on my computer, my java 1.3 sdk is installed at
/usr/j2sdk1_3_0

so if I type in "more /usr/j2sdk1_3_0/bin/java" it shows the shell script
used
to launch the JVM.

2) download the tomcat binaries (3.2.1 is the latest non-beta)
3) unzip the tomcat binaries somewhere appropriate
For example: on my computer I put tomcat in /usr/local/jakarta-tomcat-3.2.1

4) edit the startup script(s) in the bin subdirectory of your tomcat
installation
on my computer: /usr/local/jakarta-tomcat-3.2.1/bin

5) launch tomcat and have fun!

Hope this helps!
-Mike Jennings


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 1:40 PM
Subject: How to use Tomkat with apache.


> I'm new to tomkat and I'd like to use JSP with apache.
> I use Red Hat 7.1
>
> I try to find somebody, something, sites , books but nothing explain how
> configure the machine to use tomkat for using JSP.
> Please ... say me where can I find how configure and use tomkat or explain
> how do that.
> Thank you in advance, Mario.