Re: RH9's Apache 2 and Tomcat 4

2003-10-13 Thread John Turner
My reasons:

- source has the fixes first...critical on production servers, 
especially for security fixes.  With source, you don't wait for Red Hat 
to release something.  A lag of several days can mean the difference 
between weathering a storm and spending the weekend scrolling through 
logs and compiling forensic evidence for lawyers.  The most recent 
OpenSSH fix is a perfect example of this...all of my Red Hat servers 
were patched by 9 AM the morning after the fix by building from 
source...it was several days before Red Hat got around to releasing the 
RPM for the same thing.

- source means you don't fight with everyone else in the world to 
download the RPM when RH releases it on the Red Hat network.  Many 
organizations have policies that prohibit installing RPMs from any other 
source...a corporate security officer would be nuts to let admins 
install RPMs with doubtful pedigrees.  Imagine someone setting up a RPM 
mirror site that has the RPM you need, only its their special 
version.  How would you know?  Most people don't know how to check.

- source means you put the files where you want them to be.  Everyone 
has their own system, as does every company (or they should).  With 
RPMs, the files go where the RPM maintainer wants to put them...this may 
or may not fit your environment...it rarely does on my systems.  You can 
spend more time reconciling the differences (and dependencies) than you 
do just building from source.

- source means you know EXACTLY what was done to your system, you are 
not relying on someone else...this is key if you are sleeping next to a 
pager every night.

- source means you keep your installation tracking with the 
authoritative source.  I spent almost an hour explaining to an auditor 
why my Apache's version numbers didn't match Red Hat's...the auditor 
felt that RH's version number was the safest version number and that 
any later versions released by Apache.org were beta.  His port scanner 
found a later version number and kicked out a red flag.  I don't have an 
hour to hold someone's hand. 

RPMs are great.  I use them for things I don't really want to spend the 
time to learn inside and out, like GNOME or whatever, typically 
desktop-level packages.  Package maintenance systems are necessary for 
any environment with a multitude of systems.  However, when it comes to 
publicly accessible web services (Apache, BIND, MTAs, etc), I build from 
source.  Its not right or wrong, its just right for me.  I think I got 
spoiled after administering a slew of *BSD systems for a couple of 
years...the ports tree is the shiznit.

John

Mike Millson wrote:

I have not had any problems integrating tomcat w/ RH9 and Apache 2. Here
is my write up on how to do this:
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

Granted, I'm not using mod_jk2, so maybe that is why I had no trouble. 

I have always heard it's better to compile Apache from source vs. using
the rpms, but no one has ever quantified the advantages to doing this.
Until someone does, and the advantages of compiling from source outweigh
the advantages I've listed below for using the rpms, I still recommend
using the rpms.
There must be advantages to compiling Apache from source. Anyone want to
be the advocate for this and explain why/when to compile from source?
Thank you,
Mike
On Sun, 2003-10-05 at 12:09, Chong Yu Meng wrote:
 

Hi Mike !

I guess the best way to test my theory is to try integrating Tomcat with 
Apache 2 yourself. There are real benefits for using RH's rpms, but if 
the integration takes too much effort, it may not be worth it. I haven't 
touched Tomcat for about 4 months now, but when I was working on my 
document for integrating Tomcat and Apache way back in May, I remember 
having considerable trouble with RH9's Apache 2, which led me to use 
Falsehope's rpms instead.

Regards,
pascal chong
Mike Millson wrote:

   

There are two compelling benefits to installing the RedHat rpms:
1) Updates and bug fixes can be installed automatically from the Red Hat
Network (https://rhn.redhat.com/).
2) Startup and shutdown scripts are already configured and available.
I would like to weigh these benefits against any specific disadvantages
to using the RedHat rpms.
I know, this is a tomcat list, but I think it's relevant.

Thank you,
Mike
On Sun, 2003-10-05 at 10:38, [EMAIL PROTECTED] wrote:

 

I am using RH9 with the Apache2 that comes with it. Recently I've installed
Tomcat5 with mod_jk2 without too many problems (jakarta-tomcat-5.0.7.tar.gz and
mod_jk2-ap20-2.0.1-1jpp.i386.rpm). Proper configuration of workers2.properties
and jk2.properties is essential I believe. I got a few sites running as virtual
hosts on Apache2 as well as on Tomcat5 and everything seems to be fine so far.
http://archive.apache.org/dist/jakarta/tomcat-5/v5.0.7-alpha/bin/
http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/v2.0.1/rpms/
- 

[ANN] Updated Apache + Tomcat RH HOWTO

2003-10-13 Thread John Turner
Apache 2 HTTP + Tomcat + JK.

Updated with the most recent JK source version, 1.2.5.

http://localhost/johnturner/howto/apache2-tomcat4127-jk-rh9-howto.html

Virtual hosting HOWTO coming soon.

Comments and suggestions welcome.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat and virtual hosts

2003-10-01 Thread John Turner
Host name=www.site1.com appBase=/export/home/webroot/site1
   
   Context path= docBase=/export/home/webroot/site1/ROOT
   
   /Context
/Host
Better yet, make the Context docBase = ROOT so it is relative to the 
Host's appBase.

Put JSP in /export/home/webroot/site1/ROOT.  Put WEB-INF in the same 
location.  Do the same for site 2.

John

Johan Louwers wrote:

I have set up tomcat and apache... bind them with a JK2 connector both on
port 80. I have 2 domains running on the machine. I made the virtual hosts
work in apache with editting httpd.conf  The apache docs are located on the
following location:
/export/home/webroot/site1 (www.site1.com)
/export/home/webroot/site2 (www.site2.com)
I would like to access jsp files on both the website's like
www.site1.com/index.jsp and www.site2.com/index.jsp and store the jsp files
at the same location as the html docs. This means locate them in
/export/home/webroot/site1 and /export/home/webroot/site2
How do I make tomcat understeand that it must be running jsp files on this
locations. Anybody knows how to do this? You have to add some things to
server.xml i know that buth what and do  have to edit httpd.conf in some way
to make this work? A working example of a server.xml/httpd.conf file is
welcome and also any tip hint and clue :-)
Thanks already,
Johan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: new build of isapi_redirector2.dll

2003-09-26 Thread John Turner
Thanks!

John

David Boyer wrote:

The current Jakarta release version is 2.0.2 which is from Fall 2002. If
anyone is interested in trying something newer, I've posted a build on
my web site:
 
http://web.bvu.edu/staff/david/tcservcfg/isapi_redirector2.zip
 
This based on the Tomcat 4.1.27 source code with the current Apache
httpd PCRE and APR source. I have no environment in which to test this,
so I make no guarantees about if it work, etc., but it did compile
without any warnings.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-26 Thread John Turner
20 pages?  What else is in there besides connector configuration?  Just 
curious

John

Bhaskar Marthi wrote:

dean,
As said by lot of members, it would be great if you can post your document
in the mailing list.  BTW, did anyone try resin?  How does it compare to
tomcat?  

Thanks,
Bhaskar

The information contained in this communication may be confidential or
legally privileged and is intended only for the recipient named above. If
the reader of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication or its contents is strictly prohibited. If you have received
this communication in error, please immediately advise the sender and delete
the original and any copies from your computer system.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: (Apache Tomcat) || (Tomcat with CGI Support)?

2003-09-26 Thread John Turner
I've never tried it, but change the path to c:\progra~1.

John

Lawence wrote:

Dear All,
 
I need to accomondate some old cgi scripts on my website but primarily it uses java. I am wondering which comb is better in terms of simplicity and usability. 
 
By the way, I tried to enable CGI support with Tomcat, but since the installation path of Tomcat contains white space, it complaind that c:\programs does not exist (actually it is c:\program files). Anybody had the same experience?
 
Charlie

-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Realizing a search functionality

2003-09-05 Thread John Turner
AFAIK, Lucene indexes files.  How then, do you index a dynamic site? 
The only files that exist on a dynamic site are source code files. 
Servlets would never be indexed...how then do you index the content 
returned from the servlet?  Can Lucene do this?

The Lucene site is pretty sparse in information.  Not having worked with 
it, and not knowing every option available when using it, I think there 
might be some other alternatives.  I've used Verity in the past, but 
that is a commercial product.  The other tool I've used in the past to 
great success is Atomz (http://www.atomz.com).  The trial is 
never-ending, so an index of up to 500 pages is free.  Pages also = 
URL.  The nice thing about Atomz is that it will spider your site and 
index the content returned, thus it works quite well for dynamic sites.

In other words, it will take a URL like 
http://your.domain.com/content.jsp?id=512view=full; and index the 
content returned from that, not the actual text string of the URL.

The only requirement is that you display the Atomz logo on the search 
results page.  You can pay a small annual fee to have that removed.  All 
indexes and collections are kept on the Atomz site, not yours, and you 
can define the stylesheet and template that is used to display the 
search results, as well as define the frequency of indexing.

John

Schalk wrote:
Marco

You may to have a look at Lucene (OpenSource Jakarata project) at:
http://jakarta.apache.org/lucene/docs/index.html
Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Marco Tedone [mailto:[EMAIL PROTECTED]
:: Sent: Friday, September 05, 2003 12:32 AM
:: To: Tomcat Users List
:: Subject: [OT] Realizing a search functionality
:: 
:: Hi, I must admit that I don't know anything about how to realize a search
:: functionality. The only thing that I know is that most sites have a
search
:: functionality which, when searching for something, return a list of links
:: more or less involved in the search string.
:: 
:: The only things I know are:
:: 
:: 1) An index of the web site contents should be created somehow
:: 2) The search 'action' (I'm talking in Struts terms, but I think it could
be
:: anything) should interact with this index to match the required string
:: 3) A list (which form does it assume) containing all the links related to
:: the query string should be created, eventually read and displayed to the
:: client
:: 
:: Did anyone of you realized succesfully a search functionality in its
site?
:: Could you please address me towards some good software (possibly
:: open-source, possibly Jakarta, possibly java-oriented) and  patterns to
use
:: to realize  a search functionality?
:: 
:: Many thanks,
:: 
:: Marco
:: 
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat Performance Handbook

2003-09-05 Thread John Turner
That's why...they're no longer being printed.  Anything you see on 
shelves or in stores is backstock.  Peer Information Services, which 
owned Wrox and several other publishing houses (like Friends of Ed) 
liquidated in March, 2003.

Apress and Wiley picked up most of the assetsthe books that will be 
supported will be reprinted using Apress and Wiley covers and get a new 
ISBN.  A perfect example of this is Beginning Java Objects by Jacquie 
Barker...it was a very popular Wrox book, it is now available as an 
Apress book with a different cover, different typesetting, different 
editorial team, etc.  The content is the same, and the copyright is 
still 2000.

Soif you see a Wrox book at full price, you can probably deal with 
the seller to get a discount if one isn't already offered.  The sad 
thing is, the authors will never see any of that money, so if you really 
want to support the authors and encourage similar titles, buy the Apress 
or Wiley version instead.

John

Darryl L. Pierce wrote:

John Turner wrote:

The book was never published.  The original publisher (Wrox) went out 
of business and liquidated assets.


Was this recently? Just this past weekend I picked up a Wrox press book 
(Java Data) and it was 50% off. All of their books at Borders were 50% off.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Memory leaks?

2003-09-05 Thread John Turner
Tim Funk wrote:

The JDBC spec states that when a connection is closed, all dependent 
assets should also be closed. So if you are using a pool, make sure your 
pool is compliant since the connection is never closed until the pool 
closes it.
So, that means that if you have a pool of ten connections, and you use 
each of those ten connections ten times with 2 ResultSets, you have 200 
ResultSets sitting in memory, assuming you don't close them yourself?

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Realizing a search functionality

2003-09-05 Thread John Turner
Thanks for the clarification.

John

Tim Funk wrote:

Lucene indexes documents. A document is composed of fields and does 
not need (and it actuually is not) to be a physical file.

In the simplistic example of a site consisting of a single dynamic web 
page backed by a database. You would create documents based on the 
database data where the db data goes into named fields. Then when you 
construct your query, it will return a list of documents. When you 
iterate through each document, you need to pull the appropriate field 
out of the document to reconstruct the appropriate URL.

In a nutshell, it can do what you want, but there is a lot of setup work 
to construct documents and a lot of work to display results from 
documents from queries.

-Tim

John Turner wrote:

AFAIK, Lucene indexes files.  How then, do you index a dynamic site? 
The only files that exist on a dynamic site are source code files. 
Servlets would never be indexed...how then do you index the content 
returned from the servlet?  Can Lucene do this?

The Lucene site is pretty sparse in information.  Not having worked 
with it, and not knowing every option available when using it, I think 
there might be some other alternatives. 
John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Realizing a search functionality

2003-09-05 Thread John Turner
Ulrich Mayring wrote:

Lucene is not a search engine, but an API for writing a search engine, 
so it can do everything that you can write in Java. By itself it does 
nothing, like the JDK.
Thanks for the clarification.

I can only recommend Lucene, it is vastly superior to any pre-packaged 
search engine, because you do not depend on specific features or 
behavior, but can customize everything to your needs.
Assuming you have time, money, skills, etc. to do so, which is not 
always the case.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Realizing a search functionality

2003-09-05 Thread John Turner
Ulrich Mayring wrote:

John Turner wrote:

Ulrich Mayring wrote:

I can only recommend Lucene, it is vastly superior to any 
pre-packaged search engine, because you do not depend on specific 
features or behavior, but can customize everything to your needs.


Assuming you have time, money, skills, etc. to do so, which is not 
always the case.


Skills is the key issue. It took me all of one week to write our own 
custom search engine and I doubt that anyone would be able to install 
and configure a third-party product any faster than that. I had no prior 
exposure to Lucene, but of course knew my way around Java.
Hmmm...I had Atomz working for several clients by lunch one day. ;) I'm 
not arguing, just emphasizing that some of us are not Java developers. 
Granted, the question was somewhat in a context of using Java and not 
using Tomcat, but not every Tomcat user is a developer.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SSL/Verisign Confusion

2003-09-05 Thread John Turner
I always use openssl myself, but from the sound of this thread, it sure 
sounds like it is desperately needed!  Thanks!

John

Lawrence, Gabriel wrote:

I'm working on a tool to pull out the private key. It should be done by
the end of the day. I will send something to the list when I have it
finished. Kind of funny how just as I'm getting around to a project that
has been on my plate all week someone else needs it too ;-)
-gabe

-Original Message-
From: Dave Wood [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2003 8:07 AM
To: Tomcat Users List
Subject: RE: SSL/Verisign Confusion

I realize you can't do this with keytool.  Is there no way to do it at
all?
I'm beginning to think I might be totally hosed here.

Thanks,
Dave
-Original Message-
From: Jay Garala [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 8:37 AM
To: 'Tomcat Users List'
Subject: RE: SSL/Verisign Confusion
NOTE: You cannot export private key from keystore.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat startup failure

2003-09-05 Thread John Turner
Sounds to me like a permissions/environment problem.  For example, 
starting Tomcat as root manually, but then the script tries to start 
tomcat as some non-root user.  If Tomcat starts as root, log files are 
owned by root and non-root users cannot write to them.  It should throw 
an error somewhere, though maybe its getting swallowed by a redirect to 
/dev/null or something.

I would verify the script and doublecheck that the script environment 
(variables, user account, etc) matches exactly with the way you start 
Tomcat manually.

John

Noel Rappin wrote:

I have a set up where tomcat is supposed to start on boot via an rc 
shell script on a Linux system (tomcat 4.1.18).  I have this 
intermittent failure mode where tomcat fails to start up on reboot.
I can _always_ trigger this failure by deleting all tomcat log files, 
and then rebooting.  After the reboot, the only thing in the log 
directory is a zero-length catalina.out file, and the java process is 
not running.  Invoking the tomcat startup again at this point causes it 
to work normally.

I can find no evidence that the tomcat java process exits, and no matter 
how much I turn up debugging, I get no logged output.  Is there any 
possible mechanism that could be causing this failure, or at least some 
place or some way I could get better debugging information?

Noel



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 book

2003-09-04 Thread John Turner
Yes.  I know for sure one is due early Q1 2004.  It is being written 
from scratch for Tomcat 5, it will not be a Tomcat 4 book refreshed or 
tweaked to support Tomcat 5.

John

Marco Tedone wrote:
Hi, is there in prevision any book about Tomcat 5?

Marco



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat grabbing all requests from Apache

2003-09-04 Thread John Turner
Can't do anything without your config files.

Help us help you.

John

Patrick Zeiler wrote:

Hi list,

I am having slight problems with configuring tomcat to work with apache. 

Used Versions:
Apache/2.0.47 + mod_jk2 + Tomcat/4.1.27
The configured contexts work fine and as supposed. The problem I have is that Tomcat grabs all requests that are going to the server.

Example:

http://192.168.1.17/  results in: 
The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.

In my workers2.properties is no  uri like [uri:/*] defined, so i don't get it why Tomcat gets the request at all. Apache should just list the directory index in that situation.

I need to run a mixed environment of static (.html) directories, .php and .jsp applications.

Any ideas would be appreciated...

Regards,
Patrick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache/Tomcat Appbase

2003-09-04 Thread John Turner
As long as you protect your WEB-INF and META-INF directories with the 
appropriate Apache directives, and your connector mapping is correct, 
and you don't use the Invoker servlet, you're good to go.

All of my virtual hosts have the Apache DocumentRoot setup that way.

John

Chad Arimura wrote:

I'm new to tomcat so this question might not make sense.

Is it a security risk (or a bad practice) to make the appbase of both
apache httpd and Tomcat the same?  To me, it seems logical because then
I can serve .jsp files through Tomcat, and all other content through
httpd without having to put these contents in different directories...
(eg /var/www/myApp and /usr/tomcat/myApp).
I'm using Tomcat 4.1, Apache 2, and jk2.

Thanks,
Chad Arimura
AllDorm Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat Performance Handbook

2003-09-04 Thread John Turner
The book was never published.  The original publisher (Wrox) went out of 
business and liquidated assets.

The rights to the performance handbook (and many other former Wrox 
titles including the security handbook) were picked up by Apress.  The 
rights to the rest were picked up by Wiley.  I think Wiley is running 
wrox.com right now.

From the conversations I've had with Apress, the future of the 
performance book is undecided, though that could change at any moment. 
I for one think there is a need for such a book, but with Tomcat 5 
coming out, it might need to be rewritten to address the new release.

John

Flat Juas wrote:

Hi!

 I'm looking for the Apache Tomcat Performance
Handbook, but in every shop I check it's out of
print. There are no used copies in ebay neither. Where
can I get a copy of this book (I don't mind if it's a
used one) or buy a pdf version of it ? Can you
recommend me other books about tomcat performance or
guide me to online resources about this subject ?
Thanks in advance

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 book

2003-09-04 Thread John Turner
The one I know about, no.  Its possible O'Reilly has one in the works, 
but I don't know anything about it.

John

[EMAIL PROTECTED] wrote:

O'Reilly ?



John Turner wrote:

Yes.  I know for sure one is due early Q1 2004.  It is being written
from scratch for Tomcat 5, it will not be a Tomcat 4 book refreshed or
tweaked to support Tomcat 5.
John

Marco Tedone wrote:

Hi, is there in prevision any book about Tomcat 5?

Marco





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat Performance Handbook

2003-09-04 Thread John Turner
Well, I guess we have to be more clear.  Wrox did not go out of 
business.  Peer Information Services did.  Wrox was just one of many 
names that Peer used to publish materials.

So, while there were lots of titles and lots of great Wrox books, that 
is separate from whether the company called Peer Information Services 
was managed efficiently and wisely.

I'm no MBA, but if I were to call it, I would say it was a simple matter 
of too big, too many, too fast.  They had offices in three countries 
(England, India, and US), lots of people, and lots of hurry up and 
wait.  The overhead of managing all those titles had to be huge, and I 
can tell you from firsthand experience that every book probably had 30 
or 40 people involved (counting the authors) in getting it to press. 
For example, my contract was FedEx'd back and forth to India twice.  Not 
a lot of money, but 3-6 authors per title and several hundred titles and 
it starts to add up.  Even something as niche-oriented as the security 
handbook I worked on had 18 people and 5 authors for about 225 pages.

Without going into specifics, I can also say that Peer's royalty 
schedule was pretty poor in comparison to other publishers, so in that 
light they should have had more money to work with than one of the other 
companies, but apparently that didn't make a difference.

John

Matt Fury wrote:

How could Wrox go out of business? That doesn't sound
right. They have 1001 titles and write great books!
Are you sure?

--- John Turner [EMAIL PROTECTED] wrote:

The book was never published.  The original
publisher (Wrox) went out of 
business and liquidated assets.

The rights to the performance handbook (and many
other former Wrox 
titles including the security handbook) were picked
up by Apress.  The 
rights to the rest were picked up by Wiley.  I think
Wiley is running 
wrox.com right now.

From the conversations I've had with Apress, the
future of the 
performance book is undecided, though that could
change at any moment. 
I for one think there is a need for such a book, but
with Tomcat 5 
coming out, it might need to be rewritten to address
the new release.

John

Flat Juas wrote:


Hi!

I'm looking for the Apache Tomcat Performance
Handbook, but in every shop I check it's out of
print. There are no used copies in ebay neither.
Where

can I get a copy of this book (I don't mind if
it's a

used one) or buy a pdf version of it ? Can you
recommend me other books about tomcat performance
or

guide me to online resources about this subject ?

Thanks in advance

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site
design software

http://sitebuilder.yahoo.com



-

To unsubscribe, e-mail:
[EMAIL PROTECTED]

For additional commands, e-mail:
[EMAIL PROTECTED]




-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat Performance Handbook

2003-09-04 Thread John Turner
Also, while the Wrox side of the business seemed to be thriving, there 
were several other publishing arms that may not have been doing much 
more than soaking up profits with little return.  As I said, Wrox was 
just one of many publishing names used by Peer.

John

John Turner wrote:
Well, I guess we have to be more clear.  Wrox did not go out of 
business.  Peer Information Services did.  Wrox was just one of many 
names that Peer used to publish materials.

So, while there were lots of titles and lots of great Wrox books, that 
is separate from whether the company called Peer Information Services 
was managed efficiently and wisely.

I'm no MBA, but if I were to call it, I would say it was a simple matter 
of too big, too many, too fast.  They had offices in three countries 
(England, India, and US), lots of people, and lots of hurry up and 
wait.  The overhead of managing all those titles had to be huge, and I 
can tell you from firsthand experience that every book probably had 30 
or 40 people involved (counting the authors) in getting it to press. For 
example, my contract was FedEx'd back and forth to India twice.  Not a 
lot of money, but 3-6 authors per title and several hundred titles and 
it starts to add up.  Even something as niche-oriented as the security 
handbook I worked on had 18 people and 5 authors for about 225 pages.

Without going into specifics, I can also say that Peer's royalty 
schedule was pretty poor in comparison to other publishers, so in that 
light they should have had more money to work with than one of the other 
companies, but apparently that didn't make a difference.

John

Matt Fury wrote:

How could Wrox go out of business? That doesn't sound
right. They have 1001 titles and write great books!
Are you sure?

--- John Turner [EMAIL PROTECTED] wrote:

The book was never published.  The original
publisher (Wrox) went out of business and liquidated assets.
The rights to the performance handbook (and many
other former Wrox titles including the security handbook) were picked
up by Apress.  The rights to the rest were picked up by Wiley.  I think
Wiley is running wrox.com right now.
From the conversations I've had with Apress, the
future of the performance book is undecided, though that could
change at any moment. I for one think there is a need for such a 
book, but
with Tomcat 5 coming out, it might need to be rewritten to address
the new release.

John

Flat Juas wrote:


Hi!

I'm looking for the Apache Tomcat Performance
Handbook, but in every shop I check it's out of
print. There are no used copies in ebay neither.


Where

can I get a copy of this book (I don't mind if


it's a

used one) or buy a pdf version of it ? Can you
recommend me other books about tomcat performance


or

guide me to online resources about this subject ?

Thanks in advance

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site


design software

http://sitebuilder.yahoo.com



-

To unsubscribe, e-mail:


[EMAIL PROTECTED]

For additional commands, e-mail:


[EMAIL PROTECTED]




-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Compilation of mod_jk

2003-09-04 Thread John Turner
[EMAIL PROTECTED] wrote:

Hi,

I am using Apache 1.3.19 with Tomcat 4.1.24
I need to do a 64 bit compilation of mod_jk .
I tried to do a 32 bit compilation but there were some problems in the
Makefile.
What problems?

I need to know following things.
1. Where to get the source code for mod_jk.
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

2. Detailed compilation procedures.

Not sure I can help other than to suggest that you be more specific. 
What OS, etc.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread John Turner
If http://your.url:8080/yourApp doesn't work, you have to fix Tomcat 
first (server.xml).

If http://your.url/yourApp doesn't work and http://your.url:8080/yourApp 
does work, you have to fix mod_jk (or rather the JK settings in Apache's 
httpd.conf).

HTH

John

Denise Mangano wrote:

Ok I'm a dope - sorry.  I didn't realize that I had changed my
ServerName in my apache httpd.conf and forgot to change it in my
server.xml .  However, now I am getting a bad request error.  I am no
longer getting the HTTP 404 resource not available error.  I'm not
really sure if that means Tomcat is working or not though...  

Both mod_jk.log and catalina.out look normal.  My apache logs don't say
anything about the request... The strangest thing is that I have all my
logging set to debug, but there is nothing showing in my apache log.
They don't say much of anything besides my server starting and
stopping...
Thanks.

-Original Message-
From: Denise Mangano 
Sent: Thursday, September 04, 2003 1:00 PM
To: Tomcat Users List
Subject: Urgent - strange tomcat /mod jk (?) problem going on

I have a major problem and I am hoping you can help.  I have a web app
which serves the first few pages through apache, then the last 4 secure
pages through tomcat.  This was all working at one point, but I've had
to rebuild since - and I'm experiencing some new problems.
I have apache 1.3.28, Tomcat 4.1.27, mod_jk 1.3.  My apache part of the
site works fine.  It appears that Tomcat (and possibly mod_jk) are
working. 

1.  When I go to  www.mysite.com:8080 I get a page cannot be displayed 
2.  Anytime I try to go to www.mysite.com/index.jsp or any other Tomcat
page I get HTTP Status 404 - The requested resource
(/CCPayments/7D/CCPayment.jsp) is not available.

Also, there is no mention of this request in the apache error logs to
indicate that the server is attempting to serve that page through
Apache.  

Mod_jk finds the match for /CCPayments/ but doesn't do anything with it.
This is the output in mod_jk.log: [Thu Sep 04 12:26:04 2003]
[jk_uri_worker_map.c (477)]: Attempting to map URI
'/CCPayments/7D/CCPayment.jsp' [Thu Sep 04 12:26:04 2003]
[jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a context match ajp13 - /CCPayments/ [Thu Sep 04 12:26:04 2003]
[jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Sep 04
12:26:04 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, done  found
a worker [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c
(1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last
request = 31 seconds [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c
(1116)]: Into jk_endpoint_t::service [Thu Sep 04 12:26:04 2003]
[jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Sep 04 12:26:04
2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Thu Sep 04
12:26:04 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #674 [Thu Sep
04 12:26:04 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2: request
body to send 0 - request body to resend 0 [Thu Sep 04 12:26:04 2003]
[jk_ajp_common.c (729)]: received from ajp13 #109 [Thu Sep 04 12:26:04
2003]  [jk_ajp_common.c (483)]:
ajp_unmarshal_response: status = 404
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (488)]:
ajp_unmarshal_response: Number of headers is = 2
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (532)]:
ajp_unmarshal_response: Header[0] [Content-Type] =
[text/html;charset=ISO-8859-1] [Thu Sep 04 12:26:04 2003]
[jk_ajp_common.c (532)]:
ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Thu Sep
04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13 #753
[Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (729)]: received from ajp13
#2 [Thu Sep 04 12:26:04 2003]  [jk_ajp_common.c (1382)]: Into
jk_endpoint_t::done, recycling connection
Any clue what else to check for? I guess it seems that mod_jk is doing
its thing like its supposed to but Tomcat isn't working, but I won't
know for sure until I at least get Tomcat working.  Also - I started
Tomcat first and waited a whole minute before starting Apache.
Thanks,

Denise Mangano



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [SOLVED] Urgent - strange tomcat /mod jk (?) problem going on

2003-09-04 Thread John Turner
Glad I could help.  Relaxing is good advice. ;)  Have fun!

John

Denise Mangano wrote:

There were a few things going on there... I should have taken a step
back and relaxed and given everything another look before I posted... My
apologies for that ... I panicked because of the bind that I am in.
1.  ServerName httpd/conf did not match the value of the name attribute
in the Host Element of server.xml
2.  Was trying to access a jsp page through http:// when I only set up
the JkMount for https://
3.  Somehow when I restored my application files, one of the directories
got copied over as 7d instead of 7D and the application was looking for
the latter.
Everything is actually all good, and running fine.  Surprisingly enough
mod_jk worked without a hitch (unlike last time when it took me two
weeks to get it working).  This time I followed your how-to pretty much
to a T... Thanks for having that available!!
Denise 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and multiple processors

2003-09-04 Thread John Turner
Matt Raible wrote:

1.  Does it support multiple processors?  We have a Tomcat instance in
production on a NT box with 4 processors, but Tomcat only seems to use one.
Does the 1.4.2 JVM support MP?
Yes, at least on Sun hardware with Solaris 8, and Intel hardware with RH
Linux 7.x (duals only...we don't have quads).  Don't know about Windows.
2.  We have IIS on the front end, and we are currently not able to migrate
to Apache.  We'd like to use the connectors (jk or jk2) to do load-balancing
and failover.  Do these connectors provide the support we need?  Should be
use a clustering architecture like JavaSpaces
(http://www.onjava.com/lpt/a/2422) instead?
The connectors can load balance, but unfortunately the IIS versions are
sort of a crapshoot in my mind.
3.  We plan on deploying 42+ applications to a number of Tomcat servers.
Since each application will support 1 customer - I think it's a good idea to
have 1 app - 1 tomcat - so if Tomcat crashes, it only affects that customer
- rather than all customers.  I've heard of setting up a CATALINA_BASE to
share Tomcat's core files, and then setup webapps directories for each
customer.  Does this sound reasonable?  Have have others done something like
this?
I agree with Yoav. All the way back with Tomcat 3.1 we had ours setup
this way:
1 virtual host = 1 Tomcat instance = 1 VM = 1 application

We've had a couple dozen set up like this for a long time, works like a
charm.  I prefer this over using CATALINA_BASE, as I can treat each
virtual host separately from any other, including giving each different
JVM memory settings, etc.  Admittedly, we're an ASP, so we can dictate
how many web apps go with each virtual host, but I would think having
completely separate Tomcat instances would make sense in most real
production environments.  The only thing you lose with multiple Tomcat
instances is disk space, and disk is cheap.
John





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [SOLVED]Re: Problem with a page redirecting to a non-existent page

2003-09-04 Thread John Turner
Funky.  Glad you got it solved!

John

Norris Shelton wrote:

We figured out the problem.  He was working on a problem where
deployed .jsp files were not being picked up.  He removed all
the work files and restarted tomcat from that directory.  The
script that we use (why, because IT wrote it and says we have to
use it) includes . in the classpath.
Hence, his work files were available to everyone.  Luckily most
of his URLs were unique to his (imagine if he had a normal
/index.jsp).
--- Norris Shelton [EMAIL PROTECTED] wrote:

Oh, great.  It gets even more interesting.

One of my coworkers has a problem with her search.jsp in
another
context and we just found that another coworder has a
search.jsp
and a dis_timeout.jsp.
Each of the contexts is defined within their own service.  How
can one context affect another?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can not get SSL Client Certificate

2003-09-03 Thread John Turner
First thing I would try is putting your LoadModule line ABOVE every line 
that uses Jk*, such as:

JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT
As positioned in your post, the lines shown above would have no effect 
if Jk wasn't loaded until later.

John

Elif Akten wrote:
Hi,
I have been trying to get SSL client certificate during a client 
authenticated SSL session. I am using Apache 2.0 with Tomcat 4.1.27. 
Everything works succesfully: when I want to open a SSL protected JSP 
page my browser asks for my client certificate and verifies it. But when 
I try to get client certificate using 
request.getHeader(SSL_CLIENT_CERT) it returns null. Also 
request.getAuthType() and request.getUserPrincipal() return null value. 
Following is the relevant part from our httpd.conf file:

VirtualHost dune.net:443
SSLEngine On
SSLCipherSuite 
ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl/server.crt
SSLCertificateKeyFile conf/ssl/server.key

JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT
/VirtualHost
SSLVerifyClient require
SSLVerifyDepth 2
SSLCACertificateFile C:/Program Files/Apache 
Group/Apache2/conf/ssl/ca.cer
SSLCACertificatePath C:/Program Files/Apache Group/Apache2/conf/ssl
SSLCACertificateFile C:/Program Files/Apache 
Group/Apache2/conf/ssl/rootca.cer

IfModule !mod_jk.c
LoadModule jk_module C:/Program Files/Apache 
Group/Apache2/modules/mod_jk.dll
/IfModule

JkWorkersFile C:/Program Files/Apache Tomcat 4.0/conf/workers.properties
JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log
JkLogLevel info
JkMount /examples/* ajp13
Also our ssl.conf file includes the following lines :

SSLOptions +StdEnvVars +ExportCertData
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkMount /demo/* ajp13
JkExtractSSL On
JkEnvVar SSL_CLIENT_CERT UNSET
What should I do to read the client certificate? Any help is welcome...

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to get tomcat to autostart on linux

2003-09-03 Thread John Turner
Courtesy of Oscar Carrillo:

http://daydream.stanford.edu/tomcat/install_web_services.html#daemons

You need to download his tomcatd script, and copy it to /etc/rc.d/init.d.

Then execute: /sbin/chkconfig --del tomcatd

Then execute: /sbin/chkconfig --add tomcatd

Note you will need to modify the tomcatd script to meet your needs, such 
as changing the paths, etc.

John

[EMAIL PROTECTED] wrote:

Greetings,
I need to know how to get tomcat to autostart on a redhat linux 8 box - can
anyone tell me?
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can't stop tomcat with shutdown.bat - bug 17193

2003-09-03 Thread John Turner
Jon Skeet wrote:

I think a jk2 release (v1.2.5 I believe) is very close, and 
has this bug fixed.  


That's excellent news. When it's released, will I be able to just dump a new tomcat-jk2.jar in server/lib, and everything should spring to life, or is there more to it than that?

The release that Yoav is referencing is a new mod_jk, which is an Apache 
DSO module, not a JAR file.  So yes, I guess you will be able to sub in 
the new DSO as soon as you can build one or find a binary, but don't 
confuse it with a JAR file.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Which is the best way to install an application with connection p ooling

2003-09-03 Thread John Turner
If you are using a WAR file, put your entire Context block into a file 
called (your-webapp).xml and stick it in META-INF.  Whatever is legal in 
a Context block in server.xml is also legal there.  Then you can deploy 
the WAR file using the manager app froma  remote system.

The admin and manager apps themselves do the same thing, check out 
admin.xml etc in the default distribution.

John

Kevin Passey wrote:

John,

I can easily deploy a basic app using the manager. But when it comes to
deploying something that needs additional Context information I come
un-stuck.
I basically have an app that I want to connect to an AS/400 database using
connection pooling.
The only way I can get it to work is to manually insert the entries in the
server XML file and then re-start.
Any other pointer greatly appreciated.

Regards

Kevin

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: 02 September 2003 13:45
To: Tomcat Users List
Subject: Re: Which is the best way to install an application with
connection p ooling


There are a number of ways.

If autoDeploy = true then you can just drop the WAR file in the Host's 
appBase directory.

You can also use the manager app's various tasks (install, deploy, etc):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

This is easily accomplished with ant.

John

Kevin Passey wrote:


I have normally stopped the server - edited the server XML file, put my
war

file in the webapps folder and re-started tomcat.

Using the manager app - is there a way I can do this 1)from a remote
system

and 2)without manually editing the server XML file.

I've have tried putting the jndi info using the admin console but I keep
getting NULL driver exceptions.
Thanks

Kevin





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring jk2 for Apache 4.0.23/TomCat 4.0.27

2003-09-03 Thread John Turner
You don't have a shared memory file configured in your properties files, 
or if you do, it isn't accessible or writable.

John

Raj Dasgupta wrote:

After adding jk2 to my apache's httpd.conf,  I see these errors on startup.
Any ideas on what this error indicates?
 

[Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
[Wed Sep 03 10:35:32 2003] [error] mod_jk child init 1 -2
[Wed Sep 03 10:35:32 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.2
configured -- resuming normal operations
[Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
[Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
[Wed Sep 03 10:38:38 2003] [error] jk2_init() Can't find child 27367 in
scoreboard
[Wed Sep 03 10:38:38 2003] [error] shm.init(): No file
[Wed Sep 03 10:38:38 2003] [error] mod_jk child init 1 -2
[Wed Sep 03 10:57:18 2003] [error] shm.init(): No file
[Wed Sep 03 10:57:19 2003] [error] jk2_init() Can't find child 27482 in
scoreboard
[Wed Sep 03 10:57:19 2003] [error] shm.init(): No file
[Wed Sep 03 10:57:19 2003] [error] mod_jk child init 1 -2
[Wed Sep 03 10:57:19 2003] [error] jk2_init() Can't find child 27483 in
scoreboard
[Wed Sep 03 10:57:19 2003] [error] shm.init(): No file
[Wed Sep 03 10:57:19 2003] [error] mod_jk child init 1 -2
 
Thanks
Raj
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with my first webapp

2003-09-03 Thread John Turner
$CATALINA_HOME/webapps/myApp
$CATALINA_HOME/webapps/myApp/hello.jsp
$CATALINA_HOME/webapps/myApp/WEB-INF
$CATALINA_HOME/webapps/myApp/WEB-INF/classes
$CATALINA_HOME/webapps/myApp/WEB-INF/lib
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml
hello.jsp:

%

String myVar = new String(Hello World);
out.println(div align=centerh2 + myVar = /h2/div);
%

http://localhost/myApp/hello.jsp

Post back when you are ready for servlets.

John

Damien wrote:

Can somebody provides me a complete tree with a simple application to
start working on ? I think it would be a good idea if somebody
'tar/gzip' the directory strutcure found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
so a beginner is able to start with a clean project.
Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with my first webapp

2003-09-03 Thread John Turner
oops, that should be:

out.println(div align='center'h2 + myVar = /h2/div);

My bad.

John

John Turner wrote:

$CATALINA_HOME/webapps/myApp
$CATALINA_HOME/webapps/myApp/hello.jsp
$CATALINA_HOME/webapps/myApp/WEB-INF
$CATALINA_HOME/webapps/myApp/WEB-INF/classes
$CATALINA_HOME/webapps/myApp/WEB-INF/lib
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml
hello.jsp:

%

String myVar = new String(Hello World);
out.println(div align=centerh2 + myVar = /h2/div);
%

http://localhost/myApp/hello.jsp

Post back when you are ready for servlets.

John

Damien wrote:

Can somebody provides me a complete tree with a simple application to
start working on ? I think it would be a good idea if somebody
'tar/gzip' the directory strutcure found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
so a beginner is able to start with a clean project.
Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can't stop tomcat with shutdown.bat - bug 17193

2003-09-03 Thread John Turner
I defer to Yoav, as it is entirely possible (though not probable) that I 
am on crack.  But the thread referenced is most definitely talking about 
mod_jk.

John

Jon Skeet wrote:

The release that Yoav is referencing is a new mod_jk, which 
is an Apache DSO module, not a JAR file.  So yes, I guess you will be able 
to sub in the new DSO as soon as you can build one or find a binary, but don't 
confuse it with a JAR file.


In that case I can't see how it's going to help - I'm not running under apache, I'm running a standalone Tomcat, which can't shut itself down...

Jon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Any Recommended Java/Servlet Books

2003-09-03 Thread John Turner
Archives, this has come up before.

John

Jim Si wrote:

Hello Everyone,

Could anyone tell me some good reference books related to java
servlets?  In
addition,  any java books related to the Multimedia like showing
pictures,
playing videos and etc.
Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: adding a servlet to my webapp

2003-09-03 Thread John Turner
You have to map your servlet in web.xml.

FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

Jason Jesso wrote:

When I go to my servlet I get HTTP Status 404 - 
/jasonTest/servlet/foo/HelloWorld

The url is:
http://neptune/jasonTest/servlet/foo/HelloWorld
My config is as follows:  (What is wrong here??)

I have a webapp defined in server.xml as

===
  Context path=/jasonTest
   docBase=jasonTest
   debug=0
   reloadable=true
   crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=jasonTest suffix=.out/
   /Context
===

My webapp directory structure looks like:
===
neptune:root ls -lR jasonTest/
total 16
drwxr-sr-x   4 root software512 Sep 03 10:18 WEB-INF
-rw-r--r--   1 root software 43 Sep 03 10:10 index.html
jasonTest/WEB-INF:
total 24
drwxr-sr-x   3 root software512 Sep 03 11:12 classes
drwxr-sr-x   2 root software512 Sep 03 10:09 lib
-rw-r--r--   1 root software328 Sep 03 14:22 web.xml
jasonTest/WEB-INF/classes:
total 8
drwxr-sr-x   2 root software512 Sep 03 10:31 foo
jasonTest/WEB-INF/classes/foo:
total 8
-rw-r-   1 root software815 Sep 03 10:31 HelloWorld.class
jasonTest/WEB-INF/lib:
total 0
neptune:root
===
My web.xml looks like:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

servlet
   servlet-nameHelloWorld/servlet-name
   servlet-class/servlet/foo/HelloWorld/servlet-class
/servlet
/web-app




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: adding a servlet to my webapp

2003-09-03 Thread John Turner
Yes, exactly.

The way you have it now is trying to use the Invoker servlet.

You are missing the servlet mapping in web.xml, as explained in option 
#3 of this post which is linked from the FAQ section:

http://marc.theaimsgroup.com/?l=tomcat-userm=103945394724196w=2

John

Jason Jesso wrote:

But,  I don't want to use the invoker.  I want to be able to specify 
the servlet itself in web.xml.

The invoker is evil according to the link you gave me.



John Turner wrote:

You have to map your servlet in web.xml.

FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

Jason Jesso wrote:

When I go to my servlet I get HTTP Status 404 - 
/jasonTest/servlet/foo/HelloWorld

The url is:
http://neptune/jasonTest/servlet/foo/HelloWorld
My config is as follows:  (What is wrong here??)

I have a webapp defined in server.xml as

===
  Context path=/jasonTest
   docBase=jasonTest
   debug=0
   reloadable=true
   crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=jasonTest suffix=.out/
   /Context
===

My webapp directory structure looks like:
===
neptune:root ls -lR jasonTest/
total 16
drwxr-sr-x   4 root software512 Sep 03 10:18 WEB-INF
-rw-r--r--   1 root software 43 Sep 03 10:10 index.html
jasonTest/WEB-INF:
total 24
drwxr-sr-x   3 root software512 Sep 03 11:12 classes
drwxr-sr-x   2 root software512 Sep 03 10:09 lib
-rw-r--r--   1 root software328 Sep 03 14:22 web.xml
jasonTest/WEB-INF/classes:
total 8
drwxr-sr-x   2 root software512 Sep 03 10:31 foo
jasonTest/WEB-INF/classes/foo:
total 8
-rw-r-   1 root software815 Sep 03 10:31 
HelloWorld.class

jasonTest/WEB-INF/lib:
total 0
neptune:root
===
My web.xml looks like:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

servlet
   servlet-nameHelloWorld/servlet-name
   servlet-class/servlet/foo/HelloWorld/servlet-class
/servlet
/web-app




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JKMount, virtual hosts, and avoiding the webapp name

2003-09-03 Thread John Turner
Mike Curwen wrote:

I define an Apache Virtual Host in httpd.conf:
VirtualHost xxx.xxx.xxx.xxx
   JKMount /ATM tomcat1
   JKMount /ATM/* tomcat1
I wouldn't do /ATM without a wildcard or something after it.

   DocumentRoot /home/webhome/atm/htdocs/
   ServerName www.foo.com
   ServerAlias foo.com
   ErrorLog /var/log/atm/error_log
   CustomLog /var/log/atm/access_log combined
/VirtualHost
And in Tomcat server.xml:
(inside the localhost 'host' element)
Context path=/ATM
	 docBase=/home/webhome/atm/
	 defaultSessionTimeOut=60
   reloadable=true 
/Context
 

So now to access regular static pages with apache, I just say:
http://www.foo.com/xyz.html
http://www.foo.com/pages/morepages/foo.html
 
And to do servlet/jsp stuff:
http://www.foo.com/ATM/servletFoo
http://www.foo.com/ATM/foo.jsp
http://www.foo.com/ATM/administer/admin.jsp
 
This works fairly well, I suppose, but what about sites where MOST
content is jsp/servlet based?
 
I'd like my URLS to not require the /ATM token.
You don't need it.

 
So then I thought to do this (in apache):
VirtualHost xxx.xxx.xxx.xxx
   JKMount /*.jsp tomcat1
   JKMount /*/*.jsp tomcat1
   JKMount /servletFoo tomcat1
   DocumentRoot /home/webhome/atm/htdocs/
   ServerName www.foo.com
   ServerAlias foo.com
   ErrorLog /var/log/atm/error_log
   CustomLog /var/log/atm/access_log combined
/VirtualHost
Double wildcards is illegal.  /*.jsp is equivalent to /*/*.jsp 
since the second / is covered by the * in /*.jsp.

But  how do I match up the requests from apache's virtual host
www.foo.com to the /ATM context in Tomcat?  Am I looking at creating a
new Host in Tomcat for each VirtualHost in apache?
Yes.

And then the default webapp for each of my TC Hosts would be the /ATM
application?
You mean sharing Contexts across Hosts?  I don't think so.

Your Context path is just  with the same docBase.  Then your JkMounts are:

JkMount /*.jsp worker-name
JkMount /something-typically-servlet/* ajp13
John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JKMount, virtual hosts, and avoiding the webapp name

2003-09-03 Thread John Turner
Mike Curwen wrote:

So it's gonna be something like:

The Apache Vhost:
VirtualHost xxx.xxx.xxx.xxx
   JKMount /*.jsp tomcat1
   JKMount /fooservlet tomcat1
   DocumentRoot /home/webhome/atm/htdocs/
   ServerName www.foo.com
   ServerAlias foo.com
   ErrorLog /var/log/atm/error_log
   CustomLog /var/log/atm/access_log combined
/VirtualHost
relates to the TC Host:
Host name=www.foo.com debug=0 appBase=webapps unpackWARs=true
 Aliasfoo.com/Alias
 Context path= docBase=home/webhome/atm debug=0
reloadable=true/
/Host
Yeah, but I typically make DocumentRoot = ROOT docBase.  So on my 
servers I have something like this:

Host name=www.VIRTHOST.com debug=1 appBase=VIRTHOST 
unpackWARs=true autoDeploy=true
Context path= docBase=VIRTHOST debug=0 reloadable=true
/Context
/Host

and

VirtualHost *
ServerName www.VIRTHOST.aas.com
DocumentRoot /usr/local/jakarta-tomcat-4.1.27/VIRTHOST/VIRTHOST
# Static files
Alias / /usr/local/jakarta-tomcat-4.1.27/VIRTHOST/VIRTHOST
Directory /usr/local/jakarta-tomcat-4.1.27/VIRTHOST/VIRTHOST
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
Location /WEB-INF/*
AllowOverride None
deny from all
/Location
Location /META-INF/*
AllowOverride None
deny from all
/Location
JkMount /* ajp13
/VirtualHost
Which makes the following dir structure possible:

appBase
$CATALINA_HOME/VIRTHOST
Apache DocumentRoot, and TC root Context, path=, docBase=VIRTHOST:
$CATALINA_HOME/VIRTHOST/VIRTHOST
other Context, path=/SOME_OTHER_APP, docBase=SOME_OTHER_APP:
$CATALINA_HOME/VIRTHOST/SOME_OTHER_APP
Yes, #2 above is redundant with having the same dir name twice, but it 
makes sense to me.  You could just as easily change it to ROOT or 
something else, but in my case, with many virtual hosts, I found myself 
saying ok, this is ROOT, but WHICH ROOT?.  Using the domain name as 
the actual name of the directory for the root web app gets rid of this 
problem.

For other Contexts, you just add additional Alias commands to httpd.conf 
to get Apache to recognize dirs on the same level as the DocRoot instead 
of sub-dirs.

Is that correct?  In this case, I'm replacing /ATM and /BDG apps with to
Hosts under TC, with the default Context set to be a separate instance
of that 'common' app.
Pretty much, I would just watch the DocumentRoot and Alias in 
httpd.conf, they can play tricks on you if you have them pointing to 
directories one level above or below your Context's docBase.

I'm wondering about this from workers.properties:

  worker.list=tomcat1
  worker.tomcat1.host=localhost
 
Will I need to define a new work for each new host in TC,or can I supply
a comma separated list to the worker.tomcat1.host entry?
No, you only need one worker.  .host = location of machine running 
Tomcat, it does not need to match any virtual host name.  I used to 
think it did, back in the day, but I have since seen the error of my 
ways and have come back to the straight and narrow.  A basic 4-line 
workers.properties will work for many virtual hosts.  I have servers 
with 5, 8, and 22 virtual hosts, all using one worker per physical 
server with no problems.

 
Thanks very much John. :)
Glad to help, if I am.  Have fun.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TC 4.1.24 can't find my servlet-classes?

2003-09-02 Thread John Turner
http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

Kenneth Ahn Jensen wrote:

After using Tomcat for a long time, I seem to be getting into trouble
lately. My Tomcat suddenly does not automatically find the servlets in
context-dir/WEB-INF/classes - so I have to make a web.xml file for each
context.
My server.xml is pretty much like the original, except for the user contexts
which all look like this:
 Context path=/user/testuser docBase=user/testuser debug=0
  reloadable=true crossContext=true/
The servlets are then placed like:
{$CATALINA_HOME}/webapps/user/testuser/WEB-INF/classes/HelloWorld.class
However, I get a 404 error when requesting
http://ip:port/user/testuser/servlet/HelloWorld - which I'm pretty sure
worked until a month ago (when the system crashed). Also I know for a fact
that it works on TC 4.04.
The {$CATALINA_HOME}/webapps/user/testuser/index.jsp gets loaded just fine
from the URL http://ip:port/user/testuser/index.jsp, so Tomcat has noticed
the context.
Any input will be much appreciated, as I have been trying to make this work
for some time now and I don't seem to get closer... :-(
The server is running students servlets on a university, and a lot of them
are just beginning on programming, so they shouldn't care about deployment
details (at least thats what the teachers tell me, the sysadmin :-).
I'm running Tomcat 4.1.24 with Sun Java 1.4.2 on Redhat 8.0 (and Mandrake
9.1).


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: $CATALINA_HOME/shared/lib is Ignored, Doc Grip

2003-09-02 Thread John Turner
FAQ/archives (at least weekly if not daily)

NoClassDefFoundError != ClassNotFound

John

Tony LaPaso wrote:

Hi all,

I'm seeing behavior that seems contrary to the TC Documentation (seems to
happen a lot).
I'm running TC 5.0.9 on Win 2k, J2SDK 1.4.2_01.

I have some JAR files (for JavaMail) in the  $CATALINA_HOME/shared/lib
directory. I expect my web app will be able to use classes out of these JARs
with no problem. Unfortunately, I get a NoClassDefFoundError when refering
to classes in these JARs.
If I move the JAR files to the $CATALINA_HOME/common/lib directory, however,
the classes are found with no problem.
According the (often innacurate) Tomcat documention, the
$CATALINA_HOME/shared/lib should be searched.
See:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
Does anyone have an explanation for why $CATALINA_HOME/shared/lib is not
being searched? And just what the heck is the difference between
$CATALINA_HOME/shared/lib vs. $CATALINA_HOME/common/lib??
angry-gripe
The TC documentation refers to a directory, $CATALINA_HOME/lib and says
that the following JARs are located there: jasper-compiler.jar,
jasper-runtime.jar and naming-factory.jar. This is just another example of
the shoddy TC documentation. These JAR files are all located in
$CATALINA_HOME/common/lib. In fact, $CATALINA_HOME/lib doesn't even
exist!
/angry-gripe
Thanks!

Tony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: http://172.20.15.188(local ip:8080 did work ,but http://localhost:8080/didnotwork!!

2003-09-02 Thread John Turner

THIS IS BAD. PUT IT BACK and DON'T CHANGE IT.

John

  wrote:

 Hi,
 I have edited my /etc/hosts file ,changed 127.0.0.1 to
 172.20.15.188,and http://localhsot:8080/
  still doesnot work.
 
 
 
 
 ---   [EMAIL PROTECTED]  Hi,I have
 installed rpm version of tomcat 4.1.24 on
 
Red hat Advanced Server.When I
visited:http://172.20.15.188:8080,it did
work(172.20.15.188 is my real lcoal network ip),but
when I visited http://localhost:8080/,it didn't
work.

Can you help me out?

Thankyou.


 
 _
 
Do You Yahoo!? 

 
 []+
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com
 

 -
 
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
 _
 Do You Yahoo!? 
 []+
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Which is the best way to install an application with connectionp ooling

2003-09-02 Thread John Turner
There are a number of ways.

If autoDeploy = true then you can just drop the WAR file in the Host's 
appBase directory.

You can also use the manager app's various tasks (install, deploy, etc):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

This is easily accomplished with ant.

John

Kevin Passey wrote:

I have normally stopped the server - edited the server XML file, put my war
file in the webapps folder and re-started tomcat.
Using the manager app - is there a way I can do this 1)from a remote system
and 2)without manually editing the server XML file.
I've have tried putting the jndi info using the admin console but I keep
getting NULL driver exceptions.
Thanks

Kevin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: permissions for Tomcat+Apache integration

2003-09-02 Thread John Turner
Could you clarify?

If you are using Apache, and you have *.jsp mapped correctly, your 
programming resources won't be shown to the world.

Since all servlets are under WEB-INF, all you have to be concerned about 
are JSP.  Properties files, etc. go under WEB-INF, as well.  Applciation 
architecture best practices says don't put anything critical in a JSP, 
so what's the big risk?

Going back to your earlier question, I simply set up a certain user 
account for both Apache and Tomcat.  webuser or whatever.  That user 
has restricted permissions and is a member of its own group (also 
webuser or whatever).  Apache and Tomcat run as this user.  Since 
developers should never have access to the command line on a production 
server, there's no problem.

John

Sonja Löhr wrote:

You are very right in that my greatest problem is to work out a pattern
where to find the static content hides that Apache could perhaps serve a
bit faster.  Unfortunately, I can't tell Apache to serve .gif etc. but
must come the other way round, perhaps ending up with URLs to single
servlets.
Many people cite security-reasons for the integration of the two, but all
I've been bothered up to now is how to prevent Apache to show my programming
ressources to the world (those unfortunately not located in WEB-INF).
I'll be thinking about doing it separately, you really calmed me down :-)
thanks very much
Sonja


- Original Message - 
From: Eric J. Pinnell [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 01, 2003 4:28 PM
Subject: Re: permissions for Tomcat+Apache integration

Hi,

The question is do you need to secure your application from the outside
world or do you need to secure it from users that might be logging on to
your system?  Or both?
Usually you want to go with the both scenerio.

But to keep it simple, pick a user that you want tomcat to run as.  Untar
Tomcat and chown -R tomcat jakarta-4.x.x  (if the user is named tomcat
which isn't a bad name for the Tomcat user ;)
Then just run it.  It will be ok just like that.  If you are running
Tomcat and Apache on the same machine really look at why you are running
Apache at all.  It's a popular misconception that you _must_ run Apache in
front of Tomcat.  That couldn't be more wrong.  Running Tomcat alone will
save you the hassle of Apache and the connectors.  However you do need to
run Apache if you are going to use load balanceing and the apache
modules.  However most times people just have Apache pipe everything back
to Tomcat.  In this case you don't need Apache at all.
-e

On Mon, 1 Sep 2003, [iso-8859-1] Sonja Löhr wrote:


Hello!

Here is my second question, now concerning Apache+Tomcat integration on
Linux:
Could someone tell me a reasonable users, groups and file permissions
structure for apache, the tomcat-files itself and a typical webapp?  -
Java

security aside.

1. Is it a good idea at all to place the webapps under apache's document
root, having to care about all WEB-INF and other sensible directories with
deny from all ?
2. Which account in which group?
Apache needs access to static files somewhere in the webapp. (Which may be
very dispersed f.e. in case of cocoon).
If a tomcat user and the apache user account are in the same group
with

restricted permissions, I can't assign permissions to a group of
developers,

just another owner (me ;-).  Ok, may it be. Additionally, if tomcat
unpacks

war files, all resulting directories are owned by tomcat alone. So should
I

put the apache user into the tomcat group?

3.How paranoid must I be about tomcat-files (server-directory f.e)?
Tomcat needs write access to some directories, but certainly I don't know
all processes tomcat.
You probably guess by now that I'm not grown up with Unix-systems.
Spent my whole sunday with chmod and chown, now I would be very happy if
someone told me something SIMPLE  :-)
Thank you,
Sonja


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Win2003 IIS6 ISAPI filter problem

2003-09-02 Thread John Turner
Excellent.  Thank you for posting this, many IIS users have posted to 
the list trying to get the redirector to work with IIS 6.

John

Nick Tatham wrote:

I posted this thread back in June-03 as I was having problems making the ISAPI redirector work under IIS 6 on Windows 2003. Now thanks entirely to Andrew Duey of TerraScan Inc., I now have this working.

If you are using IIS V6, which ships with Windows Server 2003, you must allow the Web Service Extension to operate. Earlier versions of IIS did not require this step. 

Using the IIS Internet Services Manager, click on the Web Services Extensions item in the left hand pane. In the right hand pane add a new Web Service Extension called, say, Tomcat ISAPI and browse and set the required file for this extension to the isapi_redirect.dll and set the status to allowed. Then restart IIS.

It appears that no changes are needed to the standard Tomcat ISAPI redirector for this version of IIS.

I hope this helps someone else.

Nick

--
Nick Tatham
Peramon Technology Limited
+44 118 984 0506
www.peramon.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 404 error on Tomcat 4.1.27...

2003-09-02 Thread John Turner
What's the difference between your production environment and your laptop?

Symlinks enabled?  Invoker enabled?  Etc.

John

Darryl L. Pierce wrote:

My company has been using 4.0.6 for about a year now and we've recently 
upgraded to 4.1.27. On our production server, all works just fine: we 
can copy the WAR file into webapps, start Tomcat and all is well and good.

However, on my development laptop, when I do the same thing with the 
same distribution, WAR file and configuration, I *always* get a 404 
error. I checked inthe webapps directory and the servlet's context has 
been created (the WAR file is unpacked) and the class I'm trying to hit 
is there, but Tomcat is complaining that the resource is not available.

This is also happening on a plain vanilla Tomcat installation. I 
unpacked the tarball, changed the server.xml to listen on the correct 
ports, and nothing, I get a 404 error.

Any ideas? I'm running Debian GNU/Linux and am using J2SDK 1.4.1.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Urgent !!! Problem to get TOMCAT/4.1.24 cluster running withsticky session support.

2003-08-29 Thread John Turner
A couple of things:

1.  Your workers.properties file (to me) seems needlessly complex.  I 
would cut it down to match Pascal's example.

2.  In your server.xml, you have jmvRoute.  I don't load balance, but 
as far as I know it should be jvmRoute (note spelling).

3.  You only sent one server.xml...there should be two.

John

[EMAIL PROTECTED] wrote:
Hi people, I still have no any progress , I've installed the newest 
version of tomcat 4.1.27 and build mod_jk from the sources.
Still the same : all requests are sent to one tomcat , but if I shutdown 
it apache redirects the work to another one
No error messages, in mod_jk.log I see that two balanced workers were 
found.
Lots of  web links say that load-balancing work , but in reallity they all 
point to one from Pascal Forget. 

I even cannot see anything added by tomcat to my session cookie. 



There are some conf files bellow.

Any help or suggestion would be highly appreciated.

P.S. My topic is still not in tomcat-users list. So what are criterias to 
put it there?
--
Yefym 



MOD_JK.LOG

[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/ping/servlet/=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.jsp=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.do=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 33 rules
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (88)]: Into wc_open
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (222)]: Into build_worker_map, 
creating 3 workers
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 
172.31.7.20:5007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-01 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-02 contact is 
172.31.7.12:6007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-02 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance loadbalancer of lb
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (586)]: Into lb_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (420)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, 

Re: need help in apache tomcat 4.0

2003-08-29 Thread John Turner
This describes exactly where you should put files:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

And you also might find the ClassLoader HOWTO helpful:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

John

sheba Tasaduque wrote:

hi
ERROR
v:http://localhost:8080/examples/servlet/UploadServlet (fetch post)
E: Event error.badfetch:line13:java.io.FileNotFoundException: http://localhost:8080/examples/servlet/UploadServlet
==
I want to ask about correct path for addition in apache tomcat 4.0.Actaully i want to get sound file through servlet and for this i have downloaded the class, MultipartRequest, written by Jason Hunter which is available for download at http://www.servlets.com/cos/index.html.you can read Complete documentation for the class at http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html.
After downloading now i am facing problem of placing the classes and etc.I have downloaded cos-05Nov2002.zip and in this zip i got classes folder+doc folder+src folder+upload.war+cos.jar.
now i dont understand where i put these things in apache tomact 4.0 and jdk1.3.0_02.IN jdk1.3 i have putted servlet.jar+cos.jar in jre\lib\ext\.through this i have successfully compiled my servlet but now after putting the class files of servlets in apache tomcat\webapps\examples\web-inf\classes whenever i submit record file from recordmessege  to Uploadmessege then i m getting error of file not found as given above.
=recordmessege.java===
initial code 
---
---
submit next=\http://localhost:8080/examples/servlet/UploadServlet\; enctype=\multipart/form-data\  namelist=\messege\ method=\post\ /
---
---
and from net i got following submit but i dont know about that upload.cgi thats why i have putted 
http://localhost:8080/examples/servlet/UploadServlet.
   submit src=upload.cgi namelist=recording
 method=post enctype=multipart/form-data/
  
UploadServlet.java===
import javax.servlet.*; 
import javax.servlet.http.*; 
import java.io.*; 
import com.oreilly.servlet.MultipartRequest;
public class UploadServlet extends HttpServlet { 
 public void doPost(HttpServletRequest req, HttpServletResponse res) 
  throws ServletException, IOException 
 { 
  // Get output stream. 
  ServletOutputStream out = res.getOutputStream(); 
  // establish directory in which to save recordings and 
   5MB upload limit 
  MultipartRequest multi = new MultipartRequest(req,/recordings/, 5242880); 
  // Send a response back to VXML client. 
  res.setContentType(text/xml); 
  out.println(?xml version=\1.0\?); 
  out.println(vxml version=\1.0\formblock);
  out.println(promptYour greeting was saved./promptexit//block/form/vxml); 
  out.flush(); 
  out.close(); 
 }
}
=
Regard
SHEBA TASADUQUE
n

-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie:web application

2003-08-29 Thread John Turner
ROFL

Shapira, Yoav wrote:

Howdy,
Thank you for the clear instructions ;)  I believe I have a fairly firm
grasp on webapp structure as well as the rest of tomcat ;)  But I'm sure
the original poster whose question I answered will find your response
beneficial.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:30 AM
To: 'Tomcat Users List'
Subject: RE: Newbie:web application


Yoav

Ok, first your webapp folder structure:
Tomcat/webapps/myApp
Tomcat/webapps/myApp/WEB-INF/
Tomcat/webapps/myApp/WEB-INF/classes/  # ALL class files go here
Tomcat/webapps/myApp/WEB-INF/lib/  # All .jar files goes here
Tomcat/webapps/myApp/WEB-INF/web.xml  # This is your deployment
descriptor



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Context

2003-08-28 Thread John Turner
Robert Charbonneau wrote:
It's not working as the root of the tomcat server on port 8080, but I wasn't 
expecting it to.  I want the root of the domain being able to serve JSPs and 
Servlets so I don't have to create a subdirectory off of the root for this 
purpose.
That won't work.  You must create a subdirectory.  All webapps live in 
directories, that's just how it works.

The root context looks like this:

Context path= docBase=someDir
/Context
Here's how I do it (YMMV).

URL= http://some.domain.com

Host name=some.domain.com appBase=some.domain.com
  Context path= docBase=some.domain.com
   
  /Context
/Host
Then index.jsp goes in $CATALINA_HOME/some.host.com/some.host.com.  A 
little redundant, but for me it is a good reminder.  So you end up with:

$CATALINA_HOME
$CATALINA_HOME/some.domain.com
$CATALINA_HOME/some.domain.com/some.domain.com
$CATALINA_HOME/some.domain.com/some.domain.com/index.jsp
$CATALINA_HOME/some.domain.com/some.domain.com/WEB-INF
$CATALINA_HOME/some.domain.com/some.domain.com/WEB-INF/web.xml
$CATALINA_HOME/some.domain.com/some.domain.com/WEB-INF/classes
$CATALINA_HOME/some.domain.com/some.domain.com/WEB-INF/lib
This lets other webapps in the same Host node be subdirs without 
confusing things.

As shown in server.xml, you can also follow the convention of naming the 
docBase of the root webapp ROOT, in which case index.jsp would go in 
$CATALINA_HOME/some.domain.com/ROOT and you would have something like:

$CATALINA_HOME
$CATALINA_HOME/some.domain.com
$CATALINA_HOME/some.domain.com/ROOT
$CATALINA_HOME/some.domain.com/ROOT/index.jsp
$CATALINA_HOME/some.domain.com/ROOT/WEB-INF
$CATALINA_HOME/some.domain.com/ROOT/WEB-INF/web.xml
$CATALINA_HOME/some.domain.com/ROOT/WEB-INF/classes
$CATALINA_HOME/some.domain.com/ROOT/WEB-INF/lib
Remember that the actual directory name is transparent to the user...the 
only person who will ever know that something is in a subdir is the 
administrator.  Users can still get to http://some.domain.com/whatever.jsp.

Once you have that set up, you can add welcome-file/welcome-file to 
your web.xml file and set it to index.jsp, and turn off directory 
listings as well.

Also try path=, not path=/ for your Context.

Sorry about that, most mailing lists I belong to are pretty free form.  I'll 
keep an eye on the amount of data sent in the future.
We're pretty casual here as well...we just see the same files posted 
over and over (server.xml, httpd.conf, etc), so scrolling through 200 
lines that aren't changed from the default and checking every line to 
see if its the same as the default or not is pretty tedious.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple Virtual Hosts on 1 instance of Tomcat

2003-08-28 Thread John Turner
Caveat: I don't use IIS.  I don't use JK2.

You need full setup in uriworkermap.properties for the second virtual host.

You also need some sort of virtual directory or something created within 
the webroot (again, I don't use IIS but that is what I remember from 
reading numerous posts on this list).

Basically, as far as I know, everything you did for localhost or 
host1 you have to do again for each successive virtual host, short of 
installing the redirector.

John

[EMAIL PROTECTED] wrote:

I'm not sure what configuration the IIS connector would need.  I'm using the
redirector plug in 2.0 that points to the workers file.  I thought that was
all I needed for the IIS part.
As for doesn't work.  I get a 404-error page from IIS when I go to the web
page.
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 4:15 PM
To: Tomcat Users List
Subject: Re: Multiple Virtual Hosts on 1 instance of Tomcat
Can you be more specific than doesn't work?

Have you done all of the configuration with your IIS connector required
for the second virtual host?
John

[EMAIL PROTECTED] wrote:


Hello.  Thanks for taking the time to read this.  First of all, I am
assuming that virtual hosts are where you have more than one url pointing
to

a web server.  Each url has it's own data.  Not redirection.

I have a web server that handles 5 virtual hosts using IIS.  I've
configured

tomcat to work with IIS and serve JSP pages for 1 of the virtual hosts.  I
used the default server.xml file that came with the installation. 

So my server.xml file looks like this.

   Engine name=Standalone defaultHost=localhost debug=0
   
Host name=www.site1.com debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true

   Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=psc_log. suffix=.txt
   timestamp=true/
Context path= docBase=E:/Inetpub/wwwroot/www.site1.com debug=0
reloadable=true /
/Host

Host name=www.site2.com debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
   Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=psc_log. suffix=.txt
   timestamp=true/
   Context path= docBase=E:/Inetpub/wwwroot/www.site2.com
debug=0 reloadable=true /
 /Host
/Engine
Site1 works.  Site 2 doesn't.  Any idea what I'm doing wrong?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: simple workers.properties question (John Turner's how-to)

2003-08-28 Thread John Turner
It just needs to equal location of tomcat.  I used to think it had to 
match the ServerName...it doesn't.  It's merely a pointer to the machine 
that is running Tomcat.  If Apache and Tomcat are on the same machine, 
then localhost is fine.

John

Denise Mangano wrote:

According to the how-to, I created the workers.properties file.  My
question is simple:
 
Is it ok to leave:
worker.ajp13.host = localhost
 
or should I change it to:
worker.ajp13.host = www.mydomain.com
 
In my httpd.conf my ServerName is www.mydomain.com, and in my server.xml
the Host name is www.mydomain.com
 
Thanks :)
 
Denise



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First mod_jk problem - can't start apache with Include statement(revisited)

2003-08-28 Thread John Turner
I woudl skip the Include statement and modify httpd.conf manually as you 
have.  For anything but a simple configuration, you have to do it 
anyway, so there's no real loss.

John

Denise Mangano wrote:

Not really sure if this is a problem as of yet.  I currently cannot test
my configuration ... But I just wanted to write again regarding this
issue.  As I followed the how-to, I did things a little out of order.
Before changing Tomcat, and while Tomcat was not running, I added the
LoadModule and Include statements into httpd.conf.  I then ran an
apachectl configtest.  The configtest executed fine and I was returned
an error message that the file mod_jk.conf could not be found.  This was
right, because the file was not generated yet.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First mod_jk problem - can't start apache with Include statement(revisited)

2003-08-28 Thread John Turner
A good test would be to create a file called test.conf in 
APACHE_HOME/conf.

In that file, put the following:

###
### this is an apache comment
###
Change the Include line in httpd.conf to include the file test.conf and 
NOT mod_jk.conf.

Then start Apache or run configtest and see what happens.  If it hangs, 
its definitely an Apache issue.

John

Denise Mangano wrote:

Not really sure if this is a problem as of yet.  I currently cannot test
my configuration ... But I just wanted to write again regarding this
issue.  As I followed the how-to, I did things a little out of order.
Before changing Tomcat, and while Tomcat was not running, I added the
LoadModule and Include statements into httpd.conf.  I then ran an
apachectl configtest.  The configtest executed fine and I was returned
an error message that the file mod_jk.conf could not be found.  This was
right, because the file was not generated yet.
I then set up server.xml and created my workers.properties and started
Tomcat, which started no problem.
I then went back to apache and ran another configtest, and surprise...
It hangs... And so does apachectl start ...So we're back to the same
issue.  I am having a hard time at this point believing it is an Apache
issue, because the configtest executed fine with the include before
Tomcat was started and before the mod_jk.conf was created.
So what I did next was one at a time, I added in the Jk statements into
the httpd.conf to rule out this being an issue with the mod_jk
module(?).  First I added in the JkWorkersFile, then ran a configtest.
Then added in the JkLogFile and ran a configtest.  Lastly added in some
JkMount statements and ran a configtest.  At each of these points, the
configtest executed and was successful.  I can also start and stop
apache no problem.
As I mentioned, I cannot test whether or not mod_jk works just yet
(network issues)... There were no errors when starting either Tomcat or
apache.  But I do find it strange that I can't start apache just because
I have the Include statement.
Any further thoughts on this?  The output of httpd -l just lists
mod_core and mod_so.  I have all other modules added as DSO's.
Thanks :)
DEnise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 11:08 AM
To: Tomcat Users List
Subject: Re: [OFF-TOPIC] Re: First mod_jk problem - can't 
start apache with Include statement



Cool.  My typical Apache build is:

./configure --enable-so --enable-ssl
make
make install
John

Denise Mangano wrote:


Yes I am.  The problem (right now) definitely appears to be some 
issues with Apache.  Unfortunately, the Apache list isn't 
as heavily 

trafficked, or as quick to response, so I'm still waiting on some 
replies while I search the archives.  I think I have to recompile 
Apache.  I added in a few extra flags when I did this yesterday to 
make it more secure but I think I am better off just 
keeping it as 

is, then taking out what I don't need later...

Won't be able to determine if I have a mod_jk problem at 
all until I 

get my Apache running properly.



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:47 AM
To: Tomcat Users List
Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
apache with Include statement



Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined
that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:



Yeah, it appears to be my apache.  I still get that
SSLMutex error.  I


have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
  suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise




-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with
Include statement


Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all 
other JK 

stuff

from httpd.conf, your Apache starts up properly, with no errors?


What is the output of httpd -l?

John

Denise Mangano wrote:




OK, I tried adding the Jk directives directly into the 
httpd.conf 

file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module
is needed



to support the Include statement?

So now the problem is that although apache starts, it does
not start



properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00

Re: Using

2003-08-28 Thread John Turner
Raj Dasgupta wrote:

I am a novice with Tomcat and am trying to connect Tomcat to our Iplanet Web
Server 4.11  on Solaris using the JK2 connector.  Here are my questions:
1.  How do I download the JK2 connector?  Everytime I try to download from
 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
2/src/
I get a jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz that has a .tar.tar
extension that seems to be corrupt.
Its corrupt because you're most likely using Solaris tar to extract the 
files.  GNU projects require GNU tar.  GNU tar and Solaris tar are 
incompatible.  Try extracting with GNU tar.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk and Tomcat Lose Touch

2003-08-27 Thread John Turner
Sounds to me like an OS resource issue.  Total number of allowed open 
connections, etc.  Since it worked on 7.x and not on 9, I would consider 
that a default changed somewhere, somehow.

John

Also, the same Apache 1.3.X and Tomcat 3.X and 4.X configurations worked
perfectly on Red Hat 7.3, it was not until RH 9 that this began occuring.
The behavior is consistent with Apache 1.3 and Apache 2 on RH 9.  I've tried
re-compiling and all the usual tricks.
...


Do you use multiple Apaches on the server? 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
Hi -

Things I would check:

- apache's access and error log - is Apache trying to handle the 
request instead of Tomcat?

- Tomcat's log - is Tomcat even getting the request?

- move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
Then change JkLogLevel to debug or info (I forget which..try info 
first) and check mod_jk.log for more info

- verify a Connector on port 8009

- doublecheck your workers.properties file, especially the .host parameter

John

Denise Mangano wrote:

I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.
Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.
Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.
Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
	  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x  
 

If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.
Denise

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: vhosts and workers

2003-08-27 Thread John Turner
Christopher Garrett wrote:

Home appBase=/home/vhost1/public_html/webapps/...
...
Home appBase=/home/vhost2/public_html/webapps/...
- setting the docBase/path attributes in the child Context tag to some
directory within the appBase path:
Home appBase=/home/vhost1/public_html/webapps/...
Context docBase=app1 path=/app1...
...
Home appBase=/home/vhost2/public_html/webapps/...
Context docBase=app1 path=/app1...
I'm assuming you mean Host instead of Home.

My questions:
1: Would the aforementioned configuration properly serve JSPs/Servlets from
locations beneath vhost1 and vhost2's home directories?
Yes.

2: What exactly do the docBase and path attributes define within the Context
tag? What is the distinction?
Path = URL.  docBase = webapp root.  If you have a virtual host 
www.domain.com, and path = /demo with a docBase of demo, then the 
webapp called demo will be reached by:

http://www.domain.com/demo

and the webapp will be located at appBase/demo.

3: It is possible to have a single worker handle requests for more than one web
application belonging to more than one virtual host/user. How beneficial would
it be to have a single worker handle requests sent to it from Apache for more
than one virtual host? Would it be more efficient to have one worker for each
virtual host and have a load balancing worker to manage those subordinate
workers?
Yes. Mostly. No...load balancing is typically for multiple Tomcat 
instances.  If you have just one, stick with one worker.  I run several 
dozen virtual hosts, each with several Contexts (webapps) and have no 
problems whatsoever with one worker under significant load.

4: What sort of mechanisms to workers use to handle requests? Does a worker
receive a request, fork(), child process handles the request, communicates with
the Tomcat JVM, and returns the result to the requesting client, while the
parent simply sits and listens for more connections? If this is the case, would
a load balancer really serve to benefit anything if all this is taking place on
a single machine, given that all the workers would be of type ajp13?
If a single Tomcat instance, no.  If multiple Tomcat instances, 
possibly, but the only definite answer is test and see for yourself 
since everyone's configuration is different.  From my experience, one 
worker and a single instance of Tomcat 4.1.x is just fine.  If I went to 
multiple instances of Tomcat, I would use separate machines.

I'm trying to achieve and optimal, secure configuration. One that would allow
the users to manage their own web applications within their home directories so
I don't have to open up rwx access to the world beneath the $TOMCAT_HOME
directory. Granted, I'll still have to amend server.xml to insert new contexts
for users adding new WARs, but this is trivial. I've read a number of articles
and even the manual describing configuration options, etc., but it seems that
there are just a few points missing that would really put things into
perspective for me, so I'm sending these, probably simple, questions to the
list, as my last resort. Any information or links would be greatly appreciated,
and hopefully I'll be able to get everything organized efficiently and securely.
If you train your users to use Tomcat's manager application (and ideally 
ant) then you won't ever have to do anything...they can deploy, stop, 
start, and restart their web applications as they wish, without your 
intervention, the only thing you would have to manage is the 
tomcat-users.xml file to give them the appropriate access permissions 
and the Host nodes in server.xml.  Contexts (webapps) can be autodeployed.

HTH

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
What's the output of APACHE_HOME/bin/apachectl configtest?

John

Denise Mangano wrote:

John -

I just realized that I explained it slightly wrong.  When I comment
the Include statement, apache starts ok.  When I uncomment apache will
not start.
I checked what you suggested.  As Bill suggested, I am including my conf
files as well.
1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.
2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties
Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.
3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...
4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:
!-- Define a Coyote/JK2 AJP1.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=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- Define an AJP1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--
5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties
Thanks, 

Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 8:19 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hi -

Things I would check:

- apache's access and error log - is Apache trying to handle the 
request instead of Tomcat?

- Tomcat's log - is Tomcat even getting the request?

- move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
Then change JkLogLevel to debug or info (I forget 
which..try info 
first) and check mod_jk.log for more info

- verify a Connector on port 8009

- doublecheck your workers.properties file, especially the 
.host parameter

John

Denise Mangano wrote:


I've been following John Turner's how-to (diff apache 
version but the 

instructions can still apply).  I think they problem is a 
permission 

issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the 
steps, and 

added the Listeners, and the LoadModule and Include 
statement at the 

end of my httpd.conf.  When I uncomment the Include 
statement apache 

starts up no problem.  When I try to use it, my system just 
hangs as I 

try to start apache.

Tomcat is running under user tomcat, and all directories from 
/usr/local/tomcat down have rwx for tomcat, and r only for 
all others. 

However, Apache runs as user 'www'.  I tried changing 
permissions to 

be executable by all but that didn't seem to do the trick.  
The system 

still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
  --local  drwxr-xr-x
--apache  drwxr-xr-x
--tomcat  drwxr-xr-x
	  --conf  drwxr-xr-x
 --auto  drwxr-xr-x
 mod_jk.conf -rwxr-xr-x


If its not a permissions issue, then I'm quite clueless as 
to what it 

can be.  I can't even run a config test.  Any suggestions/advice is 
greatly appreciated.

Denise



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM

Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
configtest doesn't return an error?  It just hangs?  That is very funky.

Can you post your mod_jk.conf?

John

Denise Mangano wrote:

The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 9:20 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



What's the output of APACHE_HOME/bin/apachectl configtest?

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Context

2003-08-27 Thread John Turner
Sure, as soon as you give us insight such as:

- what's wrong, exactly
- what error messages you're getting
- what version of Tomcat
- what version of Apache, what connector
- whether its working in Tomcat standalone, without Apache
- what URL you are trying to use
Specific information is best.  Saying it doesn't work doesn't help us 
help you.  Also, there is more involved in Apache + Tomcat than just 
server.xml, so you will need to give us that information as well (please 
don't post entire files...just snippets showing deviations from defaults 
is sufficient).

John

Robert Charbonneau wrote:

I was trying to setup Tomcat to allow Apache to serve *.jsp files from the 
DocumentRoot of Apache.  I had setup the following:

Context path=/ docBase=/jsps/global/root debug=9 
reloadable=true 
  Loader checkInterval=3/
  Logger className=org.apache.catalina.logger.SystemOutLogger 
timestamp=true/
/Context

  /Host

/Engine

  /Service

/Server

I'm wondering if anyone can give me any insight as to how I can make this work 
properly.

Thanks.

--
Robert Charbonneau
[EMAIL PROTECTED]
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all other JK stuff 
from httpd.conf, your Apache starts up properly, with no errors?

What is the output of httpd -l?

John

Denise Mangano wrote:

OK, I tried adding the Jk directives directly into the httpd.conf file,
and apache at least starts.  So the problem is the include statement.
Is it possible that I don't have whatever module is needed to support
the Include statement?  

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the question
still remains why using the Include statement would prevent Apache from
starting at all?
Thanks for your help :)
Denise


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OFF-TOPIC] Re: First mod_jk problem - can't start apache with Includestatement

2003-08-27 Thread John Turner
Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:

Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.
This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all 
other JK stuff 
from httpd.conf, your Apache starts up properly, with no errors?

What is the output of httpd -l?

John

Denise Mangano wrote:


OK, I tried adding the Jk directives directly into the httpd.conf 
file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module 
is needed 

to support the Include statement?

So now the problem is that although apache starts, it does 
not start 

properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
And needless to say I can't get to my web page.  Now again I am 
getting those error messages in both my error_log and 
ssl_engine_log:

	[error]mod_ssl: Child could not open SSLMutex lockfile 
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
	[error]System: Permission denied (errno: 13)	

So apparently I have a problem with mod_ssl, which I guess I didn't 
resolve yesterday and should post to the apache list.  But the 
question still remains why using the Include statement 
would prevent 

Apache from starting at all?

Thanks for your help :)
Denise


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OFF-TOPIC] Re: First mod_jk problem - can't start apache withInclude statement

2003-08-27 Thread John Turner
Cool.  My typical Apache build is:

./configure --enable-so --enable-ssl
make
make install
John

Denise Mangano wrote:

Yes I am.  The problem (right now) definitely appears to be some issues
with Apache.  Unfortunately, the Apache list isn't as heavily
trafficked, or as quick to response, so I'm still waiting on some
replies while I search the archives.  I think I have to recompile
Apache.  I added in a few extra flags when I did this yesterday to make
it more secure but I think I am better off just keeping it as is, then
taking out what I don't need later...  

Won't be able to determine if I have a mod_jk problem at all until I get
my Apache running properly.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:47 AM
To: Tomcat Users List
Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
apache with Include statement



Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined 
that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:


Yeah, it appears to be my apache.  I still get that 
SSLMutex error.  I 

have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
   suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all
other JK stuff 

from httpd.conf, your Apache starts up properly, with no errors?

What is the output of httpd -l?

John

Denise Mangano wrote:



OK, I tried adding the Jk directives directly into the httpd.conf
file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module 
is needed


to support the Include statement?

So now the problem is that although apache starts, it does
not start


properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
And needless to say I can't get to my web page.  Now again I am
getting those error messages in both my error_log and 
ssl_engine_log:


[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the 
question still remains why using the Include statement 
would prevent


Apache from starting at all?

Thanks for your help :)
Denise



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Limit local connections

2003-08-27 Thread John Turner
When in doubt, check the docs.

Remote Address Filter and Remote Host Filter:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html

John

Mario Moroni wrote:

In order to develop in peace i'd like to limit my tomcat only to local
connections.
is it possible?
How?
..or should I make a control for every page requested?

_Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Consigli su piante, fiori e bonsai? Affidati a Mr. Green, clicca qui!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=749d=27-8
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and IIS 6 - Please HELP

2003-08-27 Thread John Turner
Many people have the same problem (archives!).

As far as I know, there is no redirector built and available for IIS 6. 
 You either have to build it yourself, or wait for someone else to 
build it.  Even if you build it, there's no guarantee the source that 
works with IIS 5 will work unmodified for IIS 6, so you will then need 
to wait for someone savvy enough in IIS 6 internals to make the 
appropriate changes and post the changes to CVS.

Economic incentives might speed this process up...I doubt anything else 
will.

John

Renato Romano wrote:

I'm trying to configure IIS (6) to forward requests to Tomcat (4.1.18):
the configuration works fine with IIS 5, but with IIS 6, though I don't
get error messages, and the ISAPI filter shows the green upward arrow,
the browsere gets a 404 error.
I'm pretty sure there is no config error, because I copied the
configuration from a working installation with IIS 5, so I think the
problem is the IIS version. I could not find any help on the net...
Does anyone had the same problem ??
Thanks
Renato

Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and IIS 6 - Please HELP

2003-08-27 Thread John Turner
FAQ

http://jakarta.apache.org/tomcat/faq/connectors.html

and

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=tomcat+iis+5btnG=Google+Search

which would eventually lead you to:

http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

John

J Raf wrote:

Hi,

I also have a similar question.

Where is the documentation for making IIS 5. work with Tomcat 4.1.18 or 
4.1.27? The documentation I was able to find reference 3.X. My Tomcat 
4.X installation does not include any files such as workers2.properties.

Thank you for your help.


From: Renato Romano [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: Tomcat and IIS 6 - Please HELP
Date: Wed, 27 Aug 2003 17:33:19 +0200
I'm trying to configure IIS (6) to forward requests to Tomcat (4.1.18):
the configuration works fine with IIS 5, but with IIS 6, though I don't
get error messages, and the ISAPI filter shows the green upward arrow,
the browsere gets a 404 error.
I'm pretty sure there is no config error, because I copied the
configuration from a working installation with IIS 5, so I think the
problem is the IIS version. I could not find any help on the net...
Does anyone had the same problem ??
Thanks
Renato

Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can't access tomcat pages with https://

2003-08-27 Thread John Turner
Denise Mangano wrote:

Apache is configured for SSL and http://localhost and https://localhost

Tomcat :  I can access http://localhost:8080 but not
https://localhost:8080
Why would this be the case?  
Because Tomcat doesn't have SSL setup by default.

Check the SSL HOWTO in the docs for more info.

If you do get it set up, it would be https://localhost:8443

I would like to get this resolved before I move back to setting up
mod_jk.  Or wait a second... is it because of mod_jk that I was able to
go from http://localhost/index.jsp to https://localhost/index.jsp ??
Actually, if your plan is to use Apache and a connector, there is no 
gain in setting up SSL for Tomcat other than experience and knowledge. 
In an Apache + connector + Tomcat environment, the only SSL 
configuration is done in Apache.  Tomcat has no SSL configuration in 
that environment, since all requests come in via AJP on standard port 
like 8009.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can't access tomcat pages with https://

2003-08-27 Thread John Turner
Yes.  You wouldn't do it in a connector environment.

John

Denise Mangano wrote:

Even though I don't plan on using Tomcat as a standalone?  My intention
is to run it behind Apache using mod_jk.  All incoming traffic will be
coming in to my site from port 80 or port 443 which is configured on
Apache's site.  If I configured Tomcat for port 443 as well, wouldn't
that cause a conflict?
Thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie

2003-08-27 Thread John Turner
Without more specific information, my guess is you don't have a JkMount 
for /examples in your SSL VirtualHost for localhost.

John

Tran, Khiem (NIH/CIT) wrote:

Hi,

I am a newbie to Apache Tomcat.  I got the instruction of the following URL.
http://myweb.cableone.net/kdubuisson/Install.PDF
I installed and it worked fine.  I tried https://localhost/examples but it
did not work.
Please help me.  
Thanks in advance.

-KT

Packages installed

Red Hat Linux 7.3
httpd-2.0.47.tar.gz
j2sdk-1_4_1_04-linux-i586.bin
jakarta-tomcat-4.1.24.tar.gz
jakarta-tomcat-connectors-4.1.18-src.tar.gz
openssl-0.9.7.tar.gz
-
Worked fine
---
https://localhost/ 
https://kt.domainname/
http://localhost/examples


Did not work
---
https://localhost/examples
Not Found

The requested URL /examples was not found on this server.
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b mod_jk/1.2.2-dev Server
at localhost Port 443
---




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple Virtual Hosts on 1 instance of Tomcat

2003-08-27 Thread John Turner
Can you be more specific than doesn't work?

Have you done all of the configuration with your IIS connector required 
for the second virtual host?

John

[EMAIL PROTECTED] wrote:

Hello.  Thanks for taking the time to read this.  First of all, I am
assuming that virtual hosts are where you have more than one url pointing to
a web server.  Each url has it's own data.  Not redirection. 
 
I have a web server that handles 5 virtual hosts using IIS.  I've configured
tomcat to work with IIS and serve JSP pages for 1 of the virtual hosts.  I
used the default server.xml file that came with the installation.  
 
So my server.xml file looks like this.
 
Engine name=Standalone defaultHost=localhost debug=0
 
Host name=www.site1.com debug=0 appBase=webapps 
   unpackWARs=true autoDeploy=true
 
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=psc_log. suffix=.txt
timestamp=true/
 
Context path= docBase=E:/Inetpub/wwwroot/www.site1.com debug=0
reloadable=true /
 
/Host
 
Host name=www.site2.com debug=0 appBase=webapps 
   unpackWARs=true autoDeploy=true
 
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=psc_log. suffix=.txt
timestamp=true/
 
Context path= docBase=E:/Inetpub/wwwroot/www.site2.com
debug=0 reloadable=true /
 
 
  /Host
/Engine
 
Site1 works.  Site 2 doesn't.  Any idea what I'm doing wrong?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4.1.27 rpm files

2003-08-26 Thread John Turner
To uninstall Tomcat:

rm -rf $CATALINA_HOME

John

Purvis Robert wrote:

I have been waiting for the RPM format files to appear on the Tomcat
download site, but they don't seem to be there yet. Is there any plan to
make Tomcat 4.1.27 available as RPMs? I personally always prefer installing
from RPM as its much easier to control the uninstall process.
Rob

---
Robert Purvis
e-mail: [EMAIL PROTECTED]

This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: The requested resource (/admsite/servlet/servlet.servletAdmSite)is not available

2003-08-26 Thread John Turner
??? = whatever you put in url-pattern.  That is Yoav's point...it is up 
to you.  Your choice.

John

L.Karam wrote:

Well, my servlet is in the directory: /admsite/servlet and is named
servletAdmSite.
What should be typed here: url-pattern???/url-pattern
And what is the URL to be adressed to, i.e: http://localhost:8080/???
Tks



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:18 AM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available


Howdy,
With your mapping the URL to access your servlet is simply /admsite not
/admsite/servlet/servlet.servletAdmSite.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: L.Karam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 9:17 AM
To: [EMAIL PROTECTED]
Subject: The requested resource
(/admsite/servlet/servlet.servletAdmSite)

is not available

Hi,
When I try to access a servlet I get the following message:

HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
---


-

type Status report
message /admsite/servlet/servlet.servletAdmSite
description The requested resource
(/admsite/servlet/servlet.servletAdmSite)
is not available.
---


-

Apache Tomcat/4.1.24

I have verified in the tomcat manager that my application is correctly
started.
I have also created the WEB.XML in the Web-Inf folder, and it looks as
this:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
   servlet-nameservletAdmSite/servlet-name
   servlet-classservlet.servletAdmSite/servlet-class
/servlet
 servlet-mapping
  servlet-nameservletAdmSite/servlet-name
  url-pattern/admsite/url-pattern
 /servlet-mapping
/web-app

My directory tree:
webapps/admsite/web-inf/classes/servlet
Please, can anybody help me solve this?

Thanks

Leandro Karam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring Tomcat to NOT run as Root

2003-08-26 Thread John Turner
Tomcat runs as whatever user executes the startup scripts in 
$CATALINA_HOME/bin.

If that user is root, then Tomcat runs as root.  If that user is 
nobody, then Tomcat's effective user is nobody.  There's no 
(current) facility in Tomcat to switch UID as Apache does after startup.

As root, something like:

su - SOMEUSER -c $CATALINA_HOME/bin/startup.sh

will run Tomcat as the user defined by SOMEUSER.

John

Scott W Ricketts wrote:

I am helping set up a Citrix NFuse server running on Solaris, using Tomcat 
and Apache 1.3.  The default install for NFuse 1.7 does not fire up 
Apache, rather it calls Tomcat to start alone.  The default also has this 
running as root, something I am very uncomfortable with.  I have Googled 
and searched archives, and whenever mentioned, it sounds rather trivial 
but I cannot find where in my config files to set this to run as 'nobody'.

I am totally clueless with Tomcat, can anyone help?




This email has been scanned for all viruses by the MessageLabs SkyScan
service.___
Note:  Please update your email address for this user to reflect the
new MeadWestvaco Corporation.  MeadWestvaco employee email addresses
are in the format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure.  The
information is intended to be used solely by the recipient(s)
named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited.  If you have
received this transmission in error, please notify MeadWestvaco
immediately at [EMAIL PROTECTED]
___


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 VirtualHosts now work, mod_jk not

2003-08-26 Thread John Turner
The DocumentRoot is /.

Host name=myHost appBase=myHost

Context path= docBase=se ($CATALINA_HOME/myHost/se)
Context path=/rwtransform docBase=rwtransform 
($CATALINA_HOME/myHost/rwtransform)

DocumentRoot /some/path/to/myHost

Please understand that DocumentRoot is for Apache only.  It instructs 
Apache where to find files that ARE NOT covered by your JkMount. 
DocumentRoot does nothing for Tomcat.

Thus, put index.html, etc. in $CATALINA_HOME/myHost.

Alternatively, setup a root context:

Context path= docBase=ROOT ($CATALINA_HOME/myHost/ROOT)

In that context, setup a welcome-file in web.xml as index.jsp.  In 
index.jsp, do a forward/redirect to myHost/se.

Then your se Context would look like:

Context path=/se docBase=se ($CATALINA_HOME/myHost/se)

I really, really, really, really suggest getting all of this to work 
with Tomcat alone first, then worrying about Apache.

John

David Wynter wrote:

Hi,

Thanks for the example. One final thing is puzzling me. I have 2 webapps
under my domain so if I use this
DocumentRoot /some/path/to/tomcat/webappname1
How do I then reach the second webappname2? Ideally I want to have
www.stpenable.com hit www.stpenable.com/se/servlet/se/templates/index.vm and
have www.stpenable.com/rwt hit
www.stpenable.com/rwtransform/servlet/rwtransform/templates/index.vm
i.e. in httpd.conf

VirtualHost *
ServerName www.stpenable.com
ServerAlias localhost

Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se
DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se
Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/se
Options Indexes FollowSymLinks
DirectoryIndex index.vm index.html
/Directory
Location /WEB-INF/*
AllowOverride None
deny from all
/Location
Location /META-INF/*
AllowOverride None
deny from all
/Location
JkMount /* ajp13

Alias /rwtransform /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform

Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform
Options Indexes FollowSymLinks
DirectoryIndex index.vm index.html
/Directory
??

/VirtualHost

In my Host section of the server.xml I have 2 Contexts one with path=/
pointing to docBase=/se and one with path=/rwtransform and
docBase=/rwtransform.
With the DocumentRoot pointing at the specific webapp se I cannot see how I
can have a JkMount that effectively looks like ../rwtransform/*?
thanks

David


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: 22 August 2003 18:07
To: Tomcat Users List
Subject: Re: 2 VirtualHosts now work, mod_jk not


I would try setting:

Alias /webappname /some/path/to/tomcat/webappname
DocumentRoot /some/path/to/tomcat/webappname
Then:

JkMount /servlet/* ajp13

Then your URL of

http://some.host.com//webappname/servlet/webappname/templates/index.vm

should work.  Even this should work:

Alias / /some/path/to/tomcat/webappname
DocumentRoot /some/path/to/tomcat/webappname
JkMount /*.vm ajp13
The * in this case means /webappname/servlet/webappname/templates.

I don't know anything about Turbine, so I can't help with specifics.
You might just be better off using Tomcat alone.
John

David Wynter wrote:


I have long URLs because I am using the Apache Turbine project
to develop my

webapps. Here is an article on how to shorten them, which gives me the
impression that i am stuck with these long URLs
http://jakarta.apache.org/turbine/turbine-2.2.1/howto/url-rewritin
g-howto.ht
ml unless I follow this method.

This URL is a standard Turbine app URL -
/webappname/servlet/webappname/templates/index.vm .
It always seemed to me that the /webappname/servlet/webappname should be
replaceable by Aliases, but it is not clear to me how.
The web.xml supplied with Turbine does not have a mapping to
.vm files. Here

it is.

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
web-app
 servlet
   servlet-namese/servlet-name
   servlet-classorg.apache.turbine.Turbine/servlet-class
   init-param
 param-nameapplicationRoot/param-name
 param-valuewebContext/param-value
   /init-param
   init-param
 param-nameproperties/param-name
param-value/WEB-INF/conf/TurbineResources.properties/param-value

   /init-param
   load-on-startup1/load-on-startup
 /servlet
 security-constraint
   web-resource-collection
 web-resource-nametemplates/web-resource-name
 url-pattern/templates/*/url-pattern
   /web-resource-collection
   web-resource-collection
 web-resource-namelogs/web-resource-name
 url-pattern/logs/*/url-pattern
   /web-resource-collection
   auth-constraint
 role-nameadmin/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodBASIC/auth-method
   realm-nameTemplates/realm-name
 /login-config
/web-app
What is not clear is how the JkMount works in the context of
the long URLs

for Turbine

Re: Dynamically update server.xml httpd.conf

2003-08-26 Thread John Turner
Tomcat 4 = no
Tomcat 5 = I believe so
Apache = yes ($APACHE_HOME/bin/apachectl graceful OR 
$APACHE_HOME/bin/apachectl restart)

John

Lars Nielsen Lind wrote:

Hi.

Is it possible to update and implement changes in server.xml and httpd.conf while Apache/Tomcat is running?

I want to be able to add 'sites' to my server without restarting Apache/Tomcat.

Are there other solutions?



Lars Nielsen Lind


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dynamically update server.xml httpd.conf

2003-08-26 Thread John Turner
Yep, its a restart.  If you use restart then all open connections will 
be dropped.  If you use graceful, Apache will block new requests, and 
wait until all open connections are closed before restarting.

So yes should probably be maybe. :)

John

Shapira, Yoav wrote:

Howdy,


Apache = yes ($APACHE_HOME/bin/apachectl graceful OR
$APACHE_HOME/bin/apachectl restart)


But doesn't this do an apache restart, i.e. doesn't swap the changes
in-memory?  Of course, the apache restart is so quick it might not
matter ;)
Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Which mod_jk to install?

2003-08-26 Thread John Turner
Hi -

If you have Apache 1.3 and your Apache has mod_ssl installed, you want EAPI.

If no mod_ssl, then no EAPI.

If Apache 2, then neither, use the mod_jk for Apache 2.

The binary should be fine.

HTH

John

Denise Mangano wrote:

Hi all.. Its been a while since I've posted... I'm in a pretty big bind
right now, and I remembered how helpful everyone was here, so I thought
I'd post as I begin my mod_jk venture.  (Have to rebuild entire server
by tomorrow )...
To start, I finally finished rebuilding a RH 7.3 box with Apache 1.3.28
and Tomcat 4.1.27.  Both are working just as they should.  

I'm anticipating the trouble I'm going to have with mod_jk (had TONS
last time), so I'm trying to minimize the pain by asking ahead of time
which mod_jk version I should install - I'm guessing mod_jk-1.2.4?  Then
the next question would be do I want to compile from source or is using
the binary ok?  Lastly, if the binary is ok, do I want mod_jk-1.2.4.so
or the mod_jk.1.4.0-eapi.so?
Thanks for your help :)
Denise
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ Apache / Tomcat ]

2003-08-25 Thread John Turner
Dan McCullough wrote:

I have not ever had any problems doing Tomcat/Apache/JDBC/MySQL/SSL, except these last 
few times
at it has been problems with corupt downloads and incompatible mod_jk, and its a pain 
trying to
find any mod_jk.  So if you find it make sure it is compatiable with your version of 
Apache, or it
wont work.
BTW has anyone seen the verison for Apache 2.0.40?
You have to build it from source.  The only binaries you will find on 
the Jakarta site are binaries built against standard Apache 
distributions.  Red Hat's Apache says it is 2.0.40 but it is 
not...what it really means is that it is 2.0.40 with patches applied 
from later releases that RH feels are needed.  RH does not update the 
version number, nor can you be really sure that they've applied the 
fixes (.41 through .47) correctly.  Thus, Apache 2.0.40 in a Red Hat 
context equals Our version of Apache which we call 2.0.40 which may or 
may not be equal to any other standard Apache distribution.  I think 
you'd have to install the httpd-source RPM and diff it against the 
Apache 2.0.47 source to really figure out what's different or if they 
are identical.  I don't know of anyone who has done that...it's much 
easier to just download Apache and build it...takes about 90 seconds on 
a P3.

So, the answer to your question: build it from source.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ Apache / Tomcat ]

2003-08-25 Thread John Turner
The HOWTO will work for all versions of Red Hat (and probably any other 
Linux).  The only gotcha is getting the correct mod_jk.so binary. 
Everything else is the same as far as I can tell.

John

Michele Neylon:: Blacknight Solutions wrote:
Which version of Apache?
Which OS?
If it's RH with 1.3* have a look at John Turner's howto:
http://www.johnturner.com/howto/apache-tomcat-howto.html
M

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.com
#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Quickly get Tomcat running with Apache on Solaris?

2003-08-25 Thread John Turner
Glad you got it working.  Incidentally, GNU tar handles all of the GNU 
software and is 100% compatible with any other archive, even those built 
using Solaris tar.  So, you can avoid this in the future by making sure 
your path brings in GNU tar ahead of Solaris tar by default.  You won't 
have any problems then and won't notice any difference.

John

Jim Chase wrote:

Bingo. 

I must admint I doubted you John. But you were right.
I untarred it with GNU tar and it worked immediately.
Thanks!

Jim

--- John Turner [EMAIL PROTECTED] wrote:

Don't use Solaris tar to unpack GNU software.  GNU
software requires GNU 
tar.  GNU tar and Solaris tar are incompatible.

Tomcat is a Java application.  A binary Java
application is a binary for 
ALL operating systems, there are no distinctions.

Did you download and install the JDK?

The easiest way to get Tomcat running on Solaris is:

1. download and install the JDK
2. set JAVA_HOME to the location of the JDK from
step #1
3. download the Tomcat binary
4. unpack it to /usr/local
5. set CATALINA_HOME to location of Tomcat
(something like 
/usr/local/jakarta-tomcat-4.1.27 or
/usr/local/tomcat if you're clever 
and used ln to link /usr/local/tomcat to
/usr/local/jakarta-tomcat-4.1.27)
6. execute $CATALINA_HOME/bin/startup.sh
7. view http://localhost:8080

John


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 VirtualHosts working other stuff not

2003-08-25 Thread John Turner
David Wynter wrote:

So if I have a Context path=
docBase=/usr/local/jakarata-tomcat-4.1.12/webapp2/se / DocumentRoot
should be /usr/local/jakarata-tomcat-4.1.12/webapp2/se. If this case then
what about the other webapp in
/usr/local/jakarata-tomcat-4.1.12/webapp2/rwtransform how will I get to
that?
I wasn't aware that you wanted two separate webapps on the same Virtual 
Host.

I'm honestly not sure how I can be more clear.

My ultimate suggestion for you is to get AWAY from using absolute paths.

My second suggestion for you is get it working with Tomcat first, no 
Apache.  Then worry about Apache.

In your configuration, as I understand it, the DocumentRoot in 
httpd.conf would be equal to your server.xml Host's appBase.

Then, you would access your webapps like:

http://my.host.com/webapp1
http://my.host.com/webapp2
and your homepage would be

http://my.host.com/index.html

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Reg: Connector or Apache and Tomcat

2003-08-25 Thread John Turner
Tomcat is perfectly capable of serving HTML documents.  Set up a Host in 
server.xml, and in that Host set up a Context to handle your static content.

If you're not using Apache now, there's no reason to use it in the 
future just for serving static files.

John

[EMAIL PROTECTED] wrote:
Hi
I am running a few struts-based webapp using tomcat. I access them using
www.xyz.org/webappA, www.xyz.org/webappB, www.xyz.org/webappC. We have an
old website consisting of static html. we want to merge this old website
to the tomcat. The old webiste had stuff something in this format
www.old.org/ModA, www.old.org/ModB, www.old.ModC etc..I would like it to
be so that i can all the entire content from one IP like
www.xyz.org/webappA,www.xyz,org/webappB, www/xyz.org/modA(static HTML
module), www.xyz.org/modB(static HTML module. Plz. let me know how i can
do this. I dont even know if i should use connectors for this. I am not
getting any resources on this plz. help me
Thank you

Mohan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: default apps for tomcat + apache

2003-08-22 Thread John Turner

Try /*.jsp, not */*.jsp.  I'm surprised the latter ever worked at all.

John

lcl wrote:

 Hi all here ,
 
 I have integrated tomcat4.1.27 and apache2.0.47 using mod_jk2, and work
 fine, because I have set my apps souko as the default apps in tomcat, and
 I want so in apache, so I define the following uri in workers2.properties
 [uri:*/*]
 ..
 
 it is ok, because I can access the souko from the url : http://localhost/
 , but Now, when I want only redirect jsp or servlet request to tomcat and
 apache will response for all static pages, so I want to change the uri to :
 [uri:*/*.jsp]
 but it can not work!
 
 Could you give me any instruments to do so ? Thank you very much.
 
 Appreciate for any help.
 lichunlin
 China
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Folder Permissions taken over by Tomcat 4

2003-08-22 Thread John Turner
You're saying Tomcat runs around and changes the directory permissions? 
 I find that really hard to believe...I'm running Tomcat 3.1, 4.1.12, 
4.1.18, and 4.1.27 in various places and have never seen this behavior.

John

Hertenstein Alain wrote:

Hello,

We have a Red Hat Linux 7.2 Server with Tomcat v4.0.3 installed, and a web
application configured, let's say myApps.
In this webapps/myApps folder, there are folders which we have shared
through SMB so that Windows users can access them, and we have also changed
the folder's permissions, so that these users can modify their contents.
Everything works fine.
The problem here is when we have to restart Tomcat 4, all permissions under
that webapps/myApps folder are restored this way - User : Tomcat 4, Group :
Tomcat 4.
So this means that all our permissions settings are cleared ! And we have to
set them back again each time we restart Tomcat 4 (in case of a server
reboot, or major application change, etc), which is quite annoying.
Is there a way to avoid this ?
Thank you very much
Alain
**
 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
David Wynter wrote:

Hi,

It seems that the second VirtualHost I have set up for my second domain name
is not paasing the requests through mod_jk to Tomcat. It is not even clear
that you can support 2 virtualhosts for different domains with the same IP
address and port 80.
This is a separate problem to the www.stpenable.com not redirecting to
www.stpenable.com/se/servlet/se/templates/index.vm but it still affects me.
You can support many virtual hosts on the same IP address.  I have 
production environments with 6, 9, and 12 virtual hosts working just fine.

Is the only way I can support a second virtual host is by setting up a
second Service with its own Engine and Ajp13 connector listening on a
separate port (say 8007 instead of 8009?). I assume I then setup a second
worker on the port I have introduced. And in this case do both sevices also
have a listener for port 8080, or do I need one on that port at all since
all my trafic will be on port 80?
No, this is incorrect.  You only need one Service.

Your problems are related to your httpd.conf file, not the connector and 
not Tomcat.  You have to instruct Apache appropriately.  Its more than 
just JkMount, you also have to get your Alias and your DocumentRoot 
directives correct in httpd.conf...getting them wrong will cause Apache 
to miss the mod_jk match.

I just tried it without a listener on port 8080, and a service with a
connector on 8007 for one virtual host and a separate service with connector
on 8009 for the other, nothing worked, so I suppose that answers my
question.
I am kinda surprised that on the whole internet there is not a configuration
example of running different webapps on 2 domains on the same Tomcat
instance, there must be hundreds of people doing it?
There are.  I've posted an example to this list twice in the past 4 
months or so.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
Advice:

Forget about servlets.  Forget about serving all content from a servlet. 
 Too many variables, causing you too much confusion.

Take it one step at a time.

First:  set up Tomcat so that you have 2 virtual hosts.  Each virtual 
host needs a SEPARATE appBase.  If BOTH virtual hosts are to be 
IDENTICAL, then DON'T use a separate Host node for the second one (or a 
separate appBase), instead set up one Host node and use the Alias 
directive in server.xml to alias the second hostname to the first.

Second: Create your Contexts.  Root, subdir, whatever, set it up as you 
plan to use them in your URLs.

Third: Create a SIMPLE JSP, like hello world or whatever.  Put that in 
the appropriate Context.  Stop Tomcat.  Delete EVERYTHING in the work 
directory (but not the work directory itself).  Start Tomcat.

Fourth:  Verify that http://host1:8080/yourContext1/yourSimple.jsp works 
as expected.

Fifth: Verify that http://host2:8080/yourContext2/yourSimple.jsp works 
as expected.

Then, and only then, worry about Apache.  If you get to this step, then 
you know Tomcat is OK and your problems are Apache related.  Right now 
you are fudging with both ends of the equation, and being wrong in 
either or both can make the whole thing fall apart with zero indication 
of which end is causing the problem.

Sixth: create a VirtualHost in httpd.conf.  Set the DocumentRoot to be 
equal to the Context in server.xml.  Thus, everything you do from that 
point on in your app has to be relative to the webapp root and URLs for 
static and dynamic content will be the same.

Seventh: Setup your JkMount.  If your DocumentRoot is set correctly, and 
your Contexts are set correctly, you should be able to get what you want 
with:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
assuming your servlets are in /servlet.  You might also want to consider 
putting an extension on your servlets, as in Struts, like *.do or 
something.  This makes JkMount even easier.

This is only for testing.  Once you have it working, and you want to 
generate everything with a servlet, then change your JkMount to /*.

John

David Wynter wrote:

Hi,

I have read dozens of archived posts on virtualhost. I have distilled my
httpd.conf and server.xml back to what seems to be the recommended approach,
see below. But now I can see no sites on any URL. I have a suspicous End
event threw exception in the catalina.out log, which suggests a problem
with server.xml, but reading it I cannot see any illegal XML, so assume it
is a configuration value error. At the end of the exception it also has
...IllegalArguementException: Servlet mapping specifies an unknown servlet
name rwsite which suggests it doesn't like my second Host configuration.
But I copied and pasted it from a posted version that worked and just
changed the appBase and servername to appropriate values?
In my error_log I get 2 types of errors:
1.  Directory Index forbidden by rule:
/usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite - there is that same
troublesome rwsite again.
2. File does not exist:
/usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite/servlet it's not a file but
a directory? and I get File does not exist:
/usr/local/jakarta-tomcat-4.1.12/webapp2/se/servlet, referer:
http://www.stpenable.com/se/servlet/se/template/solutions%2Cmdmanage.vm;
which is real.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 VirtualHosts now work, mod_jk not

2003-08-22 Thread John Turner
David Wynter wrote:

Now I am getting somewhere.

I had left out the Directory directives in httpd.conf in my previous post
because I had editted it from the Tomcat site vhost example, one that had a
global directive, not for each VirtualHost. I found that the web.xml file
for the rwsite ahd a different servlet name and thus the catalina.out error.
Now I use a index.html in each of the webapp directories (/se, /rwtransform
 /rwsite) in each it has a
body
onload=location='http://www.domainname.com:8080/webappname/servlet/webappna
me/templates/index.vm';
This overcomes the lack of mod_jk working. I'd still like to do away with
this redirect if I can. Any pointers? I have a feeling it is something to do
with the JkMount directives, which are redirect everything to Tomcat from
nmy understanding.
I have no idea why you are trying to do this.  This isn't necessary at all.

Do you understand that your httpd.conf is confused?  You have a URL like:

/webappname/servlet/webappname/templates/index.vm

when it should be:

/webappname/servlet/templates/index.vm

or even better:

/webappname/index.vm

Then you just need to map *.vm in web.xml to your servlet, and your 
JkMount would be:

/webappname/*.vm ajp13

JkMount /usr/local/jakarta-tomcat-4.1.12/webapp2/se/*  ajp13
This is major confusion for mod_jk.

Location /rwtransform/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /rwtransform/META-INF/*
AllowOverride None
deny from all
/Location
Ditto...this should be something like /META-INF not 
/someDir/META-INF.  the purpose of Alias and DocumentRoot is to get 
you away from using absolute paths in places like Location and JkMount.

I get the feeling no one is reading these, but hopefully some other poor
soul will find this helpful in the archives.
Are you serious?  Say the word and I'll stop all this typing.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to apply the hotfix of 4.1.27?

2003-08-22 Thread John Turner
Huh?  4.1.27 is a separate distribution.  What do you mean by why isn't 
there a new build?  Just download it.

John

Vernon Smith wrote:

Is the only way to apply the patch by the following procedure:

1. unzip the jar file *
2. replace the class in the hotfix
3. zip into the jar file ago.
* which one of the three jar files is the jar file?

Any better way to get it done? And why don't get a new build with the fix?

v.


Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: two ports with apj13

2003-08-22 Thread John Turner
Hi -

AJP13 doesn't do SSL.

You set up multiple ports for a Tomcat Connector in server.xml.  Copy 
the one that is already there (CoyoteConnector on port 8009) and change 
the port number to whatever you want.

Workers.properties:

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
A doc that describes setting up more than one worker is here:
http://www.ubeans.com/tomcat/
If you want to use SSL, you set this up in Apache...there is no Tomcat 
setup if you are using Apache with a connector.  Communications between 
Apache and Tomcat via mod_jk or mod_jk2 are in the clear, that is, 
sans SSL.

John

Shannon Scott wrote:

Hello,

How do I set up my workers.properties so the apj13 protocol can listen on more than 
one port?
I want to set it up for 8443 for ssl.
Where is the doc describing hwo to set up the workers.properties?

Apache 1.3.27
mod_jk
Tomcat 4.1.24
Thank You.
Shannon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
For grins, I decided to setup an example.  Here it is.

The server has multiple virtual hosts.  There are currently 6 working, 
this configuration describes how I added a seventh by copying a config 
from one of the other 6 and changing values as needed.

The scenario:

One Tomcat instance (4.1.12, yes I know its old but its an internal 
play server so not that important)

Multi-virtual hosts, each one has its own appBase ($CATALINA_HOME/hostname).

Each virtual host has a root context ($CATALINA_HOME/hostname/hostname).

Apache 2, mod_jk.so.

The goal:

http://hostname/test.jsp works
http://hostname/test.html works
To setup the new virtual host, I did the following:

- in server.xml, added:

Host name=www.DOMAIN.com debug=1 appBase=DOMAIN
  unpackWARs=true autoDeploy=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=DOMAIN_com. suffix=.log
timestamp=true/
Context path= docBase=DOMAIN debug=0 reloadable=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=DOMAIN. suffix=.log timestamp=true /
Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
parameter
namemail.smtp.host/name
valuelocalhost/value
/parameter
/ResourceParams
/Context
/Host
- created $CATALINA_HOME/DOMAIN, $CATALINA_HOME/DOMAIN/DOMAIN, 
$CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF, 
$CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF/classes, 
$CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF/lib, 
$CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF/web.xml where $CATALINA_HOME = 
/usr/local/jakarta-tomcat-4.1.12

- chown -R tomcat:tomcat $CATALINA_HOME/DOMAIN

- created $CATALINA_HOME/DOMAIN/DOMAIN/test.html and 
$CATALINA_HOME/DOMAIN/DOMAIN/test.jsp

in Apache httpd.conf, added:

VirtualHost *
ServerName www.DOMAIN.com
DocumentRoot /usr/local/jakarta-tomcat-4.1.12/DOMAIN/DOMAIN
# Static files
Alias / /usr/local/jakarta-tomcat-4.1.12/DOMAIN/DOMAIN
Directory /usr/local/jakarta-tomcat-4.1.12/DOMAIN/DOMAIN
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /WEB-INF/*
AllowOverride None
deny from all
/Location
Location /META-INF/*
AllowOverride None
deny from all
/Location
JkMount /* ajp13

/VirtualHost

- stopped Tomcat.  stopped Apache.  Removed contents of 
$CATALINA_HOME/work/Standalone.  Started Tomcat.  Started Apache.

- verified that http://www.DOMAIN.com/test.jsp and 
http://www.DOMAIN.com/test.html work, and that 
http://www.DOMAIN.com/WEB-INF/web.xml returns a 403.

Wherever you see DOMAIN in the above, substitute the domain name that 
you want to use, or anything else, as long as you stay consistent.

I decided to use a JkMount of /* only because that's what you said you 
wanted to do by having a servlet generate all content...I could have 
just as easily made the JkMount be /*.jsp or whatever.  Your servlets 
now go in $CATALINA_HOME/DOMAIN/DOMAIN/WEB-INF, and you can adjust your 
web.xml appropriately to map them to a URL starting with / as in 
http://www.DOMAIN.com/SERVLET-URL.

Thus, things like /WEB-INF in the Location directive are RELATIVE to 
things like Alias, as is JkMount..if you get Alias wrong (and/or 
DocumentRoot) you're going to have lots of problems, and messing with 
your Contexts in server.xml or putting strange onLoad Javascript 
redirects in your pages isn't going to make it any better.

I'm not sure how much clearer I can be than the above, but I am always 
open to suggestions/corrections.

HTH

John

David Wynter wrote:

Hi,

It seems that the second VirtualHost I have set up for my second domain name
is not paasing the requests through mod_jk to Tomcat. It is not even clear
that you can support 2 virtualhosts for different domains with the same IP
address and port 80.
This is a separate problem to the www.stpenable.com not redirecting to
www.stpenable.com/se/servlet/se/templates/index.vm but it still affects me.
Is the only way I can support a second virtual host is by setting up a
second Service with its own Engine and Ajp13 connector listening on a
separate port (say 8007 instead of 8009?). I assume I then setup a second
worker on the port I have introduced. And in this case do both sevices also
have a listener for port 8080, or do I need one on that port at all since
all my trafic will be on port 80?
I just tried it without a listener on port 8080, and a service with a
connector on 8007 for one virtual host and a separate service with connector
on 8009 for the other, nothing worked, so I suppose that answers my
question.
I am kinda surprised that on the whole internet there is not a configuration
example of running different webapps on 2 domains on the same Tomcat
instance, there must be hundreds of people doing it?
Thanks

David

-Original 

Re: 2 VirtualHosts now work, mod_jk not

2003-08-22 Thread John Turner
I would try setting:

Alias /webappname /some/path/to/tomcat/webappname
DocumentRoot /some/path/to/tomcat/webappname
Then:

JkMount /servlet/* ajp13

Then your URL of

http://some.host.com//webappname/servlet/webappname/templates/index.vm

should work.  Even this should work:

Alias / /some/path/to/tomcat/webappname
DocumentRoot /some/path/to/tomcat/webappname
JkMount /*.vm ajp13
The * in this case means /webappname/servlet/webappname/templates.

I don't know anything about Turbine, so I can't help with specifics. 
You might just be better off using Tomcat alone.

John

David Wynter wrote:

I have long URLs because I am using the Apache Turbine project to develop my
webapps. Here is an article on how to shorten them, which gives me the
impression that i am stuck with these long URLs
http://jakarta.apache.org/turbine/turbine-2.2.1/howto/url-rewriting-howto.ht
ml unless I follow this method.
This URL is a standard Turbine app URL -
/webappname/servlet/webappname/templates/index.vm .
It always seemed to me that the /webappname/servlet/webappname should be
replaceable by Aliases, but it is not clear to me how.
The web.xml supplied with Turbine does not have a mapping to .vm files. Here
it is.
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
web-app
  servlet
servlet-namese/servlet-name
servlet-classorg.apache.turbine.Turbine/servlet-class
init-param
  param-nameapplicationRoot/param-name
  param-valuewebContext/param-value
/init-param
init-param
  param-nameproperties/param-name
  param-value/WEB-INF/conf/TurbineResources.properties/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet
  security-constraint
web-resource-collection
  web-resource-nametemplates/web-resource-name
  url-pattern/templates/*/url-pattern
/web-resource-collection
web-resource-collection
  web-resource-namelogs/web-resource-name
  url-pattern/logs/*/url-pattern
/web-resource-collection
auth-constraint
  role-nameadmin/role-name
/auth-constraint
  /security-constraint
  login-config
auth-methodBASIC/auth-method
realm-nameTemplates/realm-name
  /login-config
/web-app
What is not clear is how the JkMount works in the context of the long URLs
for Turbine apps as opposed to the short URLs for the example jsp. Why did I
use the alias name in my Location and JkMount directives? Because the
archive is littered with examples doing just that eg.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg98299
According to this thread the solution was not changing what he had in the
JkMount so I cannot but help take it as an example, sorry.
Thanks John, you are the only one who is replying to these.

David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE : Folder Permissions taken over by Tomcat 4

2003-08-22 Thread John Turner
I still don't believe it.

The reason I don't believe it is simple:  if I change the permissions in 
my Context or one of its subdirectories or files to something that 
prevents Tomcat from using the resources (JSP file or whatever), Tomcat 
does not change the permissions back to what it needs to work, instead 
my apps fail and throw errors like crazy.

If Tomcat is doing what you say it is doing, I would never get errors, 
because Tomcat would just merrily go around and change permissions on 
resources so that it was happy, which is what you say it is doing.

If anything, it isn't Tomcat that's doing it to you...if I had to guess, 
it would be samba or something on one of the Windows clients like some 
goofy tool Microsoft has like a fast indexer or some other munged up 
app (much more likely).

John

Hertenstein Alain wrote:

Yes I do confirm it again (at least on Linux Red Hat 7.2, as long as the OS
has anything to do with it).
Ok I repeat :
- have a web application configured on Tomcat 4.0.3, in a folder like
webapps/myApps
- share an application's sub-folder (f.ex. webapps/myApps/documents), and
try to set permissions (read  write) and ownership for specific user
accounts which will access this sub-folder through SMB.
- restart Tomcat 4 : all these permissions in the webapps/myApps/documents
folder are gone. And furthermore, the folder's Ownership (maybe the problem
lies here actually...) is set to user : tomcat4, and group : tomcat4
I can send screenshots if you don't believe this...
Nobody heard of this before !?
Alain
-Message d'origine-
De : John Turner [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi, 22. août 2003 14:40
À : Tomcat Users List
Objet : Re: Folder Permissions taken over by Tomcat 4



You're saying Tomcat runs around and changes the directory permissions? 
  I find that really hard to believe...I'm running Tomcat 3.1, 4.1.12, 
4.1.18, and 4.1.27 in various places and have never seen this behavior.

John

Hertenstein Alain wrote:


Hello,

We have a Red Hat Linux 7.2 Server with Tomcat v4.0.3 installed, and a 
web application configured, let's say myApps. In this webapps/myApps 
folder, there are folders which we have shared through SMB so that 
Windows users can access them, and we have also changed the folder's 
permissions, so that these users can modify their contents. Everything 
works fine.

The problem here is when we have to restart Tomcat 4, all permissions 
under that webapps/myApps folder are restored this way - User : 
Tomcat 4, Group : Tomcat 4. So this means that all our permissions 
settings are cleared ! And we have to set them back again each time we 
restart Tomcat 4 (in case of a server reboot, or major application 
change, etc), which is quite annoying.

Is there a way to avoid this ?
Thank you very much
Alain
**
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify 
the system manager.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: newbie needs help - root context not working with apache

2003-08-22 Thread John Turner
It's not working for a couple reasons, not least of which there is no 
servlet mapping in ROOT's web.xml file, and no entry for the default 
Invoker.

Also, you haven't told us how you changed your JK2 properties file to 
match the new URL, that is, if you did so (you need to).

Sooo...maybe you can repost with a little more detail about what it is 
that you want to do, what URL you want to use, etc.  You might also 
consider not using Apache and JK2 at all...its not required.

John

Steve Veltman wrote:

I am running Tomcat 4.1.27 with Apache 2.0.47, using the jk2 2.0.43 connector and j2sdk 1.4.2  I connected Tomcat to Apache using the instructions at 

http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

I can open  localhost/examples/servlet/HelloWorldExample

If I move HelloWorldExample.class into the ROOT contexts WEB-INF folder, I can open it using

localhost:8080/servlet/Hello...

but I cannot open it using

localhost/servlet/Hello...

The Tomcat Root Context section in server.xml has been uncommented, but that hasn't helped.

I NEED this to work, but I really don't know how to get this new Tomcat version to do it.  What am I missing?  Can anyone point me to documentation where this is covered?







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: E-Mail to CompuServe Customer Service

2003-08-22 Thread John Turner
This list is automated, there is no human managing it.

Filter = yes.

Complain = no.

John

Kannan Sundararajan wrote:

Normally there would be someone verifies the email before going inot users
group.. But seems no one is verifying.. It is flooding already in my inbox..
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 1:33 PM
To: 'Tomcat Users List'
Subject: RE: E-Mail to CompuServe Customer Service
Is this
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
tml
??




-Original Message-
From: CompuServe Customer Service [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2003 12:27 PM
To: Tomcat Users List
Subject: E-Mail to CompuServe Customer Service


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: E-Mail to CompuServe Customer Service

2003-08-22 Thread John Turner
You've obviously never read a Microsoft EULA.

John

Mark R. Diggory wrote:

Typical Microsoft! Isn't it about time some of these companies that are 
complaining about loosing so much money to these virus' sued Microsoft 
for negligence.

Really, if all these companies are loosing so much money to these 
downright stupid email exploits that a 6th grader could write, you'd 
think they'd be dragging MS into court all the time to recover their 
losses.

-M.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: two ports with apj13

2003-08-22 Thread John Turner
What do you mean by doesn't work?  What happens?  Whats the error message?

John

Shannon Scott wrote:

John,
Thank you much for responding.
That is great news... I though with mod_jk the ssl was all handled by
Apache.
I have set up many virtual hosts... they all work except the https one.
So I thought I needed to redirect those requests to another port with a
connector that includes the:
scheme=https secure=true
parameters.
My httpd.conf snip is below. Do you understand why it doesn't work?
What could be wrong?
Thanks again for your kind help.
Shannon
VirtualHost _default_:443
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
Alias /ssl /var/tomcat4/webapps/ROOT/ssl
JkMount /ssl/servlet/* ajp13
JkMount /ssl/*.jsp ajp13
SSL stuff...
/VirtualHost
- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 22, 2003 10:26 AM
Subject: Re: two ports with apj13


Hi -

AJP13 doesn't do SSL.

You set up multiple ports for a Tomcat Connector in server.xml.  Copy
the one that is already there (CoyoteConnector on port 8009) and change
the port number to whatever you want.
Workers.properties:

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
A doc that describes setting up more than one worker is here:
http://www.ubeans.com/tomcat/
If you want to use SSL, you set this up in Apache...there is no Tomcat
setup if you are using Apache with a connector.  Communications between
Apache and Tomcat via mod_jk or mod_jk2 are in the clear, that is,
sans SSL.
John

Shannon Scott wrote:


Hello,

How do I set up my workers.properties so the apj13 protocol can listen
on more than one port?

I want to set it up for 8443 for ssl.

Where is the doc describing hwo to set up the workers.properties?

Apache 1.3.27
mod_jk
Tomcat 4.1.24
Thank You.
Shannon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache-Tomcat-Struts 404 Not Found

2003-08-21 Thread John Turner
Yes, they do.  AFAIK, if they are outside the VirtualHost block, they 
only apply to those requests NOT matched by a ServerName, which would 
not be the case in the example below.

John

James Harman wrote:

Don't the JkMount lines need to be inside the
VirtualHost tags?
--- Johan Wasserman - CPX Mngd Services
[EMAIL PROTECTED] wrote:
Nope, that didn't solve the problem.  But let it be
known that I'm not
realy a guru when it comes to configuring this lot.
Heres some extracts:
httpd.conf-
VirtualHost *
   ServerAdmin [EMAIL PROTECTED]
   ServerName localhost
   ErrorLog logs/local-error.log
   CustomLog logs/local-access.log common
/VirtualHost
VirtualHost *
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot C:\Apache\Tomcat
5.0\webapps\itdiv
   ServerName www.itdiv.com
   ErrorLog logs/www.itdiv.com-error.log
   CustomLog logs/www.itdiv.com-access.log common
/VirtualHost
### Tomcat 5 Connector 
include C:/Apache/Tomcat 5.0/conf/mod_jk.conf
mod_jk.conf-
#
JkMount /* ajp13
JkMount /*.do ajp13
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

http://localhost/struts-example/logon.do-   results
in a 404.
http://localhost:8080/struts-example/logon.do   -
works!
http://www.itdiv.com/logon.do   -   results in a
404.
http://www.itdiv.com:8080/logon.do  -   works!
Regards, and thanks.
Johan.
-Original Message-
From: Johan Wasserman - CPX Mngd Services 
Sent: Wednesday, August 20, 2003 7:42 AM
To: Tomcat Users List
Subject: RE: Apache-Tomcat-Struts  404 Not Found

Thanks John, no I didn't.  But I did have JkMount /*
ajp13, wouldn't
that do it?
I'll try specifying it the way you suggest.

Thanks again.
Johan.
-Original Message-
From: John Turner
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 10:30 PM
To: Tomcat Users List
Subject: Re: Apache-Tomcat-Struts  404 Not Found



Tomcat 4 and Tomcat 5 configuration with mod_jk are
the same.
Do you have something like this in your httpd.conf
file?
JkMount /*.do ajp13

John

Johan Wasserman - CPX Mngd Services wrote:


Hi,

I got Tomcat and Apache configured according to
documentation (still

referencing TC4x) I found on the web.  It seemed
to work fine but 

while testing struts I found that the actions
(*do) resulted in a 404 

Not found.  When I test via Tomcat only
(localhost:8080) it works 

fine.

I have probably only been looking in the wrong
places but cannot seem

to find documentation or a download area for
mod_jk to do a config on 

the following versions: Tomcat v.  5.0.3
Apache v. 2.0.46
So, my curent versions are configured using Tomcat
v 4x documentation

(and mod_jk).

Have anyone done this successfully on the newer
versions, and where

can I download the required bin's and doc's?

Thanks!
Johan.




-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


=
Choose the Sprite when the Coke is placed before you...
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Starting tomcat from init scripts (HP/UX)

2003-08-21 Thread John Turner
It's the former.  The latter doesn't occur on this list in my experience.

John

Lott, Carey wrote:

Since nobody has responded does this mean nobody has any more ideas on the
problem or am I getting the You idiot.  The answer is staring you in the
face. silent treatment?  If it is the latter, I will admit being an idiot
if someone will enlighten me.  If it is the former, I want to say thank you
for the help I have received to this point because I am farther along then I
was, and if I figure out a solution short of a cron entry I'll post it.  
Thanks again for the help.
Carey

-Original Message-
From: Lott, Carey 
Sent: Friday, August 15, 2003 11:18 AM
To: 'Tomcat Users List'
Subject: RE: Starting tomcat from init scripts (HP/UX) 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Quickly get Tomcat running with Apache on Solaris?

2003-08-21 Thread John Turner
Don't use Solaris tar to unpack GNU software.  GNU software requires GNU 
tar.  GNU tar and Solaris tar are incompatible.

Tomcat is a Java application.  A binary Java application is a binary for 
ALL operating systems, there are no distinctions.

Did you download and install the JDK?

The easiest way to get Tomcat running on Solaris is:

1. download and install the JDK
2. set JAVA_HOME to the location of the JDK from step #1
3. download the Tomcat binary
4. unpack it to /usr/local
5. set CATALINA_HOME to location of Tomcat (something like 
/usr/local/jakarta-tomcat-4.1.27 or /usr/local/tomcat if you're clever 
and used ln to link /usr/local/tomcat to /usr/local/jakarta-tomcat-4.1.27)
6. execute $CATALINA_HOME/bin/startup.sh
7. view http://localhost:8080

John

Jim Chase wrote:

Solaris 9 has Apache and Tomcat loaded by default. I
got Apache running but Tomcat needed more work. So I
tried to download it from Jakarta at:
http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/

I gunzipped it and un-tarred it. Then I did what it
said to do in the docs...
* Unpack the binary distribution into a convenient
location so that the
 distribution resides in its own directory
(conventionally named
 jakarta-tomcat-4.0).  For the purposes of the
remainder of this document,
 the symbolic name ${catalina.home} is used to refer
to the full
 pathname of the release directory.
(2) Start Up Tomcat 4.0

There are two techniques by which Tomcat 4.0 can be
started:
* Via an environment variable:
 - Set an environment variable CATALINA_HOME to the
path of the directory
   into which you have installed Tomcat 4.0.
 - Execute the shell command:
 %CATALINA_HOME%\bin\startup (Windows)

 $CATALINA_HOME/bin/startup.sh   (Unix)

* By modifying your current working directory:
 - Execute the following shell commands:
 cd %CATALINA_HOME%\bin  (Windows)
 startup (Windows)
 cd $CATALINA_HOME/bin   (Unix)
 ./startup.sh(Unix)
NOW - It won't run. I'm not even sure it was a Solaris
Binary.
This is what I get in the catalina.out file:

$ cat catalina.out
Exception in thread main
java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap
Whats the easiest way to get Tomcat running with
Apache on Solaris 9? 

Thanks!

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   3   4   5   6   7   8   9   10   >