Tomcat restart leaving mod_jk threads in CLOSE_WAIT status

2005-05-20 Thread Mike Millson
There was an issue where using mod_jk with the AJP13 protocol and
restarting Tomcat left the mod_jk connections from Apache to Tomcat in
CLOSE_WAIT status. The only thing that would free them was if you
restarted Apache.

I have in my notes that this issue was fixed w/ the 1.2.6 connector
release. However, I am still seeing this behavior on Solaris running
Apache 1.3.27 + mod_jk 1.2.6 (binary version downloaded from Jakarta
website) + Tomcat 4.1.30.

I know that I don't have this problem on RedHat Enterprise Linux 3. I
can restart Tomcat w/o having to restart Apache. Is this a bug related
to the Solaris version of mod_jk? Anyone out there able to successfully
restart Tomcat on Solaris w/o having to restart Apache?

Thank you,
Mike



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



Re: Tomcat + Apache Web Server

2005-04-07 Thread Mike Millson
> Well the Coyote connector for one definitely has compression available
> and compresses content nicely, even dynamic content. 

OK, I see this now. And I see that you can configure the MIME types you
want to compress. Very good.

> I'm not sure of
> the specifics of the caching mechanisms used internally to Tomcat but
> it achieves caching nicely giving 304 not modified responses where
> applicable and often the browser will cache the static content so a
> request isn't even made.

I just test Tomcat standalone and checked the 5.0 code, and there is
nothing that sets the expires or cache-control max-age. Content will not
be pulled from local cache unless these are specified, unless your
browser is performing some magic. So it looks to me the best you can do
w/ Tomcat is achieve a 304 response.

304 responses are inefficient for truly static content like images,
style sheets, external JavaScript files, and perhaps some html and/or
test pages. These resources should be served from the browser cache
directly w/o connecting to the server. A server is only able to handle
so many connections, so it limits scalability.

But I have seen filters that do this w/ Tomcat. If Tomcat would allow a
configurable out-of-box way to set headers for static content, I may be
out of arguments for why I personally like to use Apache to handle
static content.

Mike


Merit Online Systems, Inc.
http://www.meritonlinesystems.com



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



RE: Tomcat + Apache Web Server

2005-04-06 Thread Mike Millson
On Wed, 2005-04-06 at 07:18, Pete Stevens wrote:
> > Consider the following Apache modules:
> > mod_headers
> > mod_expire
> > mod_deflate
> >
> > I've never seen a web application that wouldn't benefit from one or all
> > of these modules. And the performance improvements would likely more
> > than outweigh any overhead.
> >
> > If Tomcat provides any of the functionality of mod_headers, mod_expire,
> > or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a
> > filter) when this functionality is available in Apache?
> >
> > I'm still unconvinced that running Apache in front of Tomcat isn't
> > almost always a good thing. But I'm listening if someone can convince me
> > otherwise.
> 
> Configuring Tomcat is a challenge. Configuring Tomcat + mod_jk + apache is
> even more of a challenge (see the number of posts on this list alone!). The
> chance of you dropping a security screw-up into the more complicated setup is
> much higher than the simple set up.[*] Unless you really need the performance
> benefit of the above modules - and many many people don't - why go to the
> extra setup effort, and extra risk of making mistakes?
> 
 
Every web application can benefit from compressing and caching static
resources. It decreases the number of connections your server must
handle. To not have caching, I think, is to ignore a best practice. Or
at the very least ignore the opportunity to improve the user experience
with faster response times. It's not that hard to integrate Apache w/
Tomcat, and I still benefits to this approach that standalone Tomcat
does not offer.

Mike
-- 
Merit Online Systems, Inc.
http://www.meritonlinesystems.com



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



RE: Tomcat + Apache Web Server

2005-04-05 Thread Mike Millson
On Tue, 2005-04-05 at 18:42, Caldarale, Charles R wrote:
> > From: Jorge Davila [mailto:[EMAIL PROTECTED] 
> > Subject: RE: Tomcat + Apache Web Server
> > 
> > Are you suggesting that we can drop apache and only use 
> > tomcat in some cases?
> 
> Certainly.  Think of the overhead being _added_ by passing a request
> through httpd just to get to Tomcat.  If the vast majority of the
> requests are for static content and only very few for dynamic, then
> using httpd in front of Tomcat makes sense; but if a significant
> fraction of the requests are targeting JSPs or servlets, then standalone
> Tomcat 5.5 may well result in better overall response time.
> Front-ending a set of Tomcats with Apache httpd for load-balancing or
> redundancy is also a highly appropriate (and relatively inexpensive)
> approach.
> 

Consider the following Apache modules:
mod_headers
mod_expire
mod_deflate

I've never seen a web application that wouldn't benefit from one or all
of these modules. And the performance improvements would likely more
than outweigh any overhead.

If Tomcat provides any of the functionality of mod_headers, mod_expire,
or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a
filter) when this functionality is available in Apache?

I'm still unconvinced that running Apache in front of Tomcat isn't
almost always a good thing. But I'm listening if someone can convince me
otherwise.

Mike

-- 
Merit Online Systems, Inc.
http://www.meritonlinesystems.com



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



Re: mod_jk2 Ready/Recommended For Production?

2004-10-14 Thread Mike Millson
On Thu, 2004-10-14 at 05:56, Antony Paul wrote:
> Do you mean Apache dont have any security holes. I dont know about
> hacking a system. But in terms of security Tomcat is far better than
> Apache since it dont have any security vulnerabilities.
> 

But if you run tomcat standalone, you have to run tomcat as root. Apache
does not run as root, so if you run Apache in front of tomcat, you can
avoid exposing the root account.

Mike


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



Re: mod_jk2 Ready/Recommended For Production?

2004-10-13 Thread Mike Millson
On Wed, 2004-10-13 at 13:42, Joseph Shraibman wrote:
>  From the tomcat-devel list:
> 
>  >> So is JK2 dead because of proxy_ajp? Why doesn't JK2 just replace JK?
>  >>
> 

Ah, I see. This message from tomcat-devel shows the JK ToDo list:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg63908.html

It is indeed dead. It looks like the plan is to roll jk2 features into
jk.



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



mod_jk2 Ready/Recommended For Production?

2004-10-12 Thread Mike Millson
The Tomcat FAQ page still says that "mod_jk is great and should be used
for production" and mod_jk2 "may not be production worthy for everyone."

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

Is this still accurate, or is mod_jk2 now ready/recommended for
production?

Thank you,
Mike



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



Re: Context Based Jars Loading

2004-04-18 Thread Mike Millson
You could take commons-logging out of /common/lib, and place the version
you want to use for each app in /WEB-INF/lib.

app1/WEB-INF/lib/commons-logging-ver1.jar
app2/WEB-INF/lib/commons-logging-ver2.jar
/app3/WEB-INF/lib/commons-logging-ver1.jar

etc.

That way you could control the version of commons-logging that goes w/
each application.

Mike

On Sat, 2004-04-17 at 17:25, Mike Sowka wrote:
> Blu,
> 
> I'm sorry, You've lost me a while back... but I have a hunch your 
> suggesting I start Tomcat wihtout loading the "offending" jar file... 
> and my concern is: I don't want to do that, because some of my apps 
> depend on it.
> 
> Oh, and BTW, I'm running on Linux.
> 
> Mike
> 
> [EMAIL PROTECTED] wrote:
> 
> >try, just pluming the line in the Tomcat.exe or program file of your
> >sys?? may be able to get in there?? Have u tried ??
> >On Sat, 17 Apr 2004 16:58:02 -0400 Mike Sowka <[EMAIL PROTECTED]> writes:
> >  
> >
> >>Blu,
> >>
> >>Thanx, that is an idea... but it's essentially the same as just 
> >>deleting 
> >>the file. The point being, I want to use the jar file in other 
> >>web-apps... it seems rediculous that I can't at least set the class 
> >>path 
> >>order in Tomcat & Context...
> >>
> >>Anyone?
> >>Mike
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>
> >>>you might use a dos based .bat file to exclude tomcat in the use 
> >>>  
> >>>
> >>of
> >>
> >>
> >>>common\loggin.*,  might come out looking like a mini "Basic 
> >>>  
> >>>
> >>Program" but
> >>
> >>
> >>>should work, not two sure if you can load it at the same time as
> >>>atuoecec.bat, or "Tomcat", may require some one with source code, 
> >>>  
> >>>
> >>or
> >>
> >>
> >>>getting some one  with Tomcat  code,,, to write it and put in for 
> >>>  
> >>>
> >>you??
> >>
> >>
> >>>good luck...  but do try .bat  ... they are simple, just in case 
> >>>  
> >>>
> >>you have
> >>
> >>
> >>>never wrote them..  look on line for Dos.hlp... someone will have 
> >>>  
> >>>
> >>it.. 
> >>
> >>
> >>>maybe even M.S.
> >>>
> >>> 
> >>>simple thought's from a simple mind 
> >>>  
> >>>
> >> 
> >>
> >>
> >>>   -
> >>>as always   
> >>>  
> >>>
> >> 
> >>
> >>
> >>>  
> >>>blu
> >>>
> >>>
> >>>
> >>>On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka <[EMAIL PROTECTED]> 
> >>>  
> >>>
> >>writes:
> >>
> >>
> >>> 
> >>>
> >>>  
> >>>
> Hello Everyone,
> 
> I wrote last night to the list with some frustration as I couldn't 
> 
> 
> load 
> up an app put together in Websphere into good'ol Tomcat4.1. Well I 
> 
> 
> think 
> I now know what the problem is, but don't know how to resolve it.
> 
> It turns out that the IBM packaged jars "require" an older version 
> 
> 
> (1.0.1-dev) of org.apache.commons.logging... this package is 
> supplied in 
> the form of the commons-logging.jar placed in the WEB-INF/lib. In 
> 
> 
> the 
> case of Tomcat, the package also appears in 
> common/lib/commons-logging-api.jar... So the big question:
> 
> How do I tell Tomcat to not load the jar file out of common/lib for 
> 
> 
> this 
> particular Context and use the one out of WEB-INF/lib? (Obviously, 
> 
> 
> >>I 
> >>
> >>
> don't want to delete it... )
> 
> Thank You,
> Mike
> 
> -
> 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]


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



RE: Problem with the memory of the tomcat

2004-03-19 Thread Mike Millson
Is this true even on RedHat Linux 9 and RHEL 3, which use NPTL (native
posix thread library)? Tomcat shows up as 1 thread with top, and if I
remember correctly, prior to RHL 9, it showed up as multiple threads.

Mike

On Fri, 2004-03-19 at 15:23, Shapira, Yoav wrote:
> Hi,
> Top on linux shows java threads as OS-level processes, which is wrong.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: software [mailto:[EMAIL PROTECTED]
> >Sent: Friday, March 19, 2004 3:15 PM
> >To: Tomcat Users List
> >Subject: Re: Problem with the memory of the tomcat
> >Importance: High
> >
> >Every thread that these application open use share the total memory
> that
> >specified in this parameters,  beacuse i have tomcat 4.0.3 installed in
> >a linux server and i can see when i only start the tomcat without load
> >any application  i can see a main process with 16 threads i've
> specified
> >Xms128MB and i have a server with a 1 GB of RAM...what do you recomend
> me
> >
> >Thanks a lot
> >
> >Fabian
> >
> >Shapira, Yoav wrote:
> >
> >>Hi,
> >>The -Xms and -Xmx parameters control the JVM heap size.  The JVM heap
> is
> >>shared by all applications/processes within the JVM.  So all 7 of your
> >>web applications are sharing this memory.
> >>
> >>Yoav Shapira
> >>Millennium Research Informatics
> >>
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: software [mailto:[EMAIL PROTECTED]
> >>>Sent: Friday, March 19, 2004 3:05 PM
> >>>To: Tomcat Users List
> >>>Subject: Problem with the memory of the tomcat
> >>>Importance: High
> >>>
> >>>Hi, i have 7 application in our tomcat, sometimes i can see that the
> >>>
> >>>
> >>web
> >>
> >>
> >>>access to the applications is very slowly and sometimes we can not to
> >>>get access to these applications, the cuestion is whe i start the
> >>>
> >>>
> >>tomcat
> >>
> >>
> >>>and i've configured the Xms, Xmx parameter in catalina.sh the
> >>>application are using  every one the memory that i specified in this
> >>>file (i mean this the total memory for the every application and its
> >>>threads that it generate) or is for every thread use this size of
> >>>
> >>>
> >>memory
> >>
> >>
> >>>individually
> >>>
> >>>Thanks a lot for you help
> >>>
> >>>Fabian
> >>>
> >>>
> >>>
> >>>-
> >>>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]
> >>
> >>
> >>
> >>
> 
> 
> 
> 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]



mod_jk or mod_jk2 for production

2004-03-19 Thread Mike Millson
Is the statement in the link below on the Tomcat FAQ page regarding the
stability of mod_jk vs mod_jk2 still valid? Is mod_jk2 still not stable
enough for production environments, or is this info out of date?

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

Mike


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



Re: Context mapping and war

2004-03-18 Thread Mike Millson
I have no problem unpacking wars on Tomcat 4.1.x.

I set the Host appBase to the absolute (not relative) path of the
directory where the war will be located. For example:



In this case you would put mywebapp.war in /home/tomcat/struts/.

Then you can use the following Context:



Make sure the mywebapp directory does not exist; otherwise, the war will
not unpack.

On Thu, 2004-03-18 at 09:41, Jesse Vitrone wrote:
> When I try to install my application, I put the war file in the webapps
> directory, and in the server.xml I add a  mapping.  When I start
> Tomcat, my war file isn't getting extracted.
>  
> Unpack wars is set to true:
>  
>   unpackWARs="true" autoDeploy="true">
>  
> If I comment out my , the war gets extracted, but I need the
> context mapping.  Once the war is extracted, I can put the  mapping
> in and everything works fine.  
>  
> Any idea why my war isn't getting extracted when the mapping is in there?
>  
> My mapping looks like this:
>  
>  reloadable="true">
>  type="javax.sql.DataSource"/>
> 
> 
> factory
>  
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
>  
> 
> maxActive
> 50
> 
>  
> 
> maxIdle
> 5
> 
>  
> 
> maxWait
> 1
> 
>  
> 
> logAbandoned
> true
> 
>  
> 
> removeAbandoned
> true
> 
>  
> 
> removeAbandonedTimeout
> 60
> 
>  
> 
> username
> user
> 
> 
> password
> pass
> 
> 
> driverClassName
> com.jnetdirect.jsql.JSQLDriver
> 
> 
> url
> jdbc:JSQLConnect://mydb/database=name
> 
> 
> 
> 
> 
> Any suggestions would be greatly appreciated.
>  
> Thanks,
> Jesse
>  


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



RE: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2

2004-01-02 Thread Mike Millson
I have never had a problem building either. Maybe this article will
help:

http://www.meritonlinesystems/docs/apache_tomcat_redhat.html

On Fri, 2004-01-02 at 18:12, Enils Bashi wrote:
> Hi,
> 
> I am sure everyone has seen the good work John has done with his how-to's;
> but I am supprised at some people's denial when it comes to admitting
> building problems on Redhat 9. I have tried building mod_jk and mod_jk2 from
> source many times for tomcat 4.1.27 and apache-2.0.44; but it is impossible.
> I am sure numerous users are having the same problems, but they are directed
> to how-to's that don't deliver. I am curious to know whether someone has
> succeeded in building mod_jk of any kind for Redhat 9 with tomcat 4 and
> apache2.
> 
> 
> Enils
> 
> 
> -Original Message-
> From: Mark Eggers
> To: Tomcat Users List
> Sent: 1/2/2004 3:59 PM
> Subject: Re: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2
> 
> John's excellent instructions are written for mod_jk
> 
> mod_jk2 is different.
> 
> There are several How-To's available.
> 
> [link]  Tomcat-Apache using JK2 connector
> 
> from the FAQ page or
> 
> http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb
> 
> are two good sources of information.
> 
> HTH
> /mde/
> just my two cents . . . .
> 
> 
> __
> Do you Yahoo!?
> Find out what made the Top Yahoo! Searches of 2003
> http://search.yahoo.com/top2003
> 
> -
> 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 2.0.48 and Tomcat 4.1.29 and JK2

2003-12-05 Thread Mike Millson


On Fri, 2003-12-05 at 10:33, Asif Chowdhary wrote:
> As far as I know. Tomcat has to be started first and then the apache web server. 
> Also in server.xml you have to define coyote connector
> listening on port 8009 or some other port.

That was my understanding until recently. I think it was true at one
time but no longer the case. My experience w/ the latest version of
4.1.x are that tomcat and apache can be started in any order.


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



Re: JK2 in server.xml with 4.1.29

2003-11-26 Thread Mike Millson
I'm using Red Hat Linux 9, and my experience has been the opposite. When
I used CoyoteConnector I got errors like this in catalina.out:

java.net.SocketException: Broken pipe

Also, I got this:

INFO: Jk running ID=0 time=2/85 
config=/usr/local/jakarta-tomcat/conf/jk2.properties

Why the heck am I getting messages about jk2.properties when I'm using
mod_jk?

In mod_jk.log I saw things like this:

jk_connect.c (233)]: jk_open_socket, connect() failed errno = 111

When I use Ajp13Connector, I get no errors in any of the logs and
everything operates smoothly. 

Granted, my application did work with CoyoteConnector, so maybe the
errors were not important, but seeing them didn't give me any confidence
in it. 

I have had no problem shutting down Tomcat.

My intuition is that the connector made for mod_jk is more compatible
than the one made for mod_jk2. If I were to use CoyoteConnector, I would
use mod_jk2. It just makes more sense to me to match old with old and
new with new.

Maybe a TC developer can jump in and provide some clarity?

Mike

On Wed, 2003-11-26 at 12:37, Jeff Tulley wrote:
> Really?
> 
> With all due respect, I have to totally disagree.  You can use the
> Coyote Connector with mod_jk, and really should do so.  The
> Ajp13Connector has had an exception at startup time and problems
> shutting down since about 4.1.18.  It is an easy fix - I submitted a
> patch for it, only a simple change to an XML document.  But, I was told
> at the time that since the connector is deprecated and that the Coyote
> connector works quite well, that it would not be fixed.
> 
> Our experience with the Coyote Connector and mod_jk has been fine so
> far.  We are using Apache as the web server.
> 
> >>> [EMAIL PROTECTED] 11/26/03 9:48:14 AM >>>
> If you are going to use the mod_jk connector, I would stick with the
> old
> AJP connector. If you are going to use the mod)jk2 connector, use the
> newer Coyote connector.
> 
> On Wed, 2003-11-26 at 08:44, Antony Paul wrote:
> > Hi,
> > I am trying configure Tomcat 4.1.27 + IIS on win2k. In server.xml
> there
> > are two entries namely
> >  and 
> > which one is to uncommented.
> > 
> > rgds
> > Antony Paul.
> > 
> >
> -
> > 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] 
> 
> 
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.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: JK2 in server.xml with 4.1.29

2003-11-26 Thread Mike Millson
If you are going to use the mod_jk connector, I would stick with the old
AJP connector. If you are going to use the mod)jk2 connector, use the
newer Coyote connector.

On Wed, 2003-11-26 at 08:44, Antony Paul wrote:
> Hi,
> I am trying configure Tomcat 4.1.27 + IIS on win2k. In server.xml there
> are two entries namely
>  and 
> which one is to uncommented.
> 
> rgds
> Antony Paul.
> 
> -
> 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]



Qs on Workers HowTo Document

2003-11-25 Thread Mike Millson
In the Workers HowTo
(http://www.jajakarta.org/tomcat/jk2/en/docs/jk/workershowto.html) it in
the jni worker properties section it has the following:

worker.wrkjni.class_path=/var/tomcat3/lib/tomcat.jar

What does tomcat.jar equate to in version 4.1.29? Is this
$CATALINA_HOME/common/lib/servlet.jar?

Also it has the following:
worker.wrkjni.bridge=tomcat33

What is the bridge for version 4.1.29? Is it "tomcat41"?

Mike


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



Best Connector for mod_jk + 4.1.x

2003-11-25 Thread Mike Millson
I am using Tomcat 4.1.24 on Red Hat Linux 9 with the mod_jk (ajp13)
connector to forward requests from Apache 2.0.

There are 2 connectors that will handle mod_jk/ajp13:
(1) org.apache.ajp.tomcat4.Ajp13Connector
(2) org.apache.jk.server.JkCoyoteHandler

What are the advantages/disadvantages of using one over the other? Or,
is one clearly preferable? 

Mike


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



Re: Start Tomcat on boot

2003-10-09 Thread Mike Millson
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

On Thu, 2003-10-09 at 16:59, Eduardo Vazquez wrote:
> Being new to Linux\Tomcat I've scoured the internet looking for a
> step-by-step showing how to enable tomcat to start on boot with no real
> success. I'm running Red Hat 9.0 w/Jakarta-tomcat-4.1.27. Anyone.
> 
> 
> -
> 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: Integrating Tomcat and Apache on RedHat 9.0

2003-10-07 Thread Mike Millson
Hi,

Try this doc and see if it helps:

http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf

This was the prelude work to my article and was done on RH7.1 and Apache
1.3.x, so it should be in line w/ your system.

Mike
On Tue, 2003-10-07 at 20:56, Curley, Thomas wrote:
> Hi,
> 
> First good doc.
> 
> However I got to the build of mod_jk and got the following error:
> 
> # make
> ...
> ...
> ...
> TH=/var/run/httpd.mm -g -O2 -I /usr/java/j2sdk1.4.1/include -I 
> /usr/java/j2sdk1.4.1/include/ -c jk_uri_worker
> _map.c -fPIC -DPIC -o .libs/jk_uri_worker_map.lo
> jk_uri_worker_map.c: In function `map_uri_to_worker':
> jk_uri_worker_map.c:493: parse error before `char'
> jk_uri_worker_map.c:495: `url_rewrite' undeclared (first use in this function)
> jk_uri_worker_map.c:495: (Each undeclared identifier is reported only once
> jk_uri_worker_map.c:495: for each function it appears in.)
> make[1]: *** [jk_uri_worker_map.lo] Error 1
> make[1]: Leaving directory 
> `/usr/src/jakarta-tomcat-connectors-4.1.27-src/jk/native/common'
> make: *** [all-recursive] Error 1
> [EMAIL PROTECTED] native]# ls -l
> 
> Also prior to this on 
> 
> # ./configure got
> 
> configure.in:24: AC_PROG_CPP was called before AC_PROG_CC
> 
> 
> I'm running RH 7.3 AIS on i386, Tomcat 4.1.27 / Apache 1.3.27
> 
> 
> Would appreciate any ideas on this
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Lawence [mailto:[EMAIL PROTECTED]
> Sent: 02 October 2003 20:08
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Integrating Tomcat and Apache on RedHat 9.0
> 
> 
> 
> 
> Thanks for sharing.
>  
> 
> Mike Millson <[EMAIL PROTECTED]> wrote:
> FYI, below is an article I wrote on integrating tomcat and apache on
> RedHat 9.0 that might be of interest.
> 
> http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
> 
> It has a lot of general configuration info as well. It has been fairly
> well tested recently by a number of individuals who have provided
> feedback.
> 
> It was published this month by Linux Gazette, but the link above has the
> latest and greatest w/ typos fixed and clarifications added. As much as
> I proofread the copy I sent to Linux Gazette, a few issues and typos
> were brought to my attention after I submitted it.
> 
> http://linuxgazette.com/issue95/millson.html
> 
> Mike
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> *
> This email and any attachments are confidential and intended for the sole use of the 
> intended recipient(s).If you receive this email in error please notify [EMAIL 
> PROTECTED] and delete it from your system. Any unauthorized dissemination, 
> retransmission, or copying of this email and any attachments is prohibited. 
> Euroconex does not accept any responsibility for any breach of confidence, which may 
> arise from the use of email. Please note that any views or opinions presented in 
> this email are solely those of the author and do not necessarily represent those of 
> the Company. This message has been scanned for known computer viruses. 
> *


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



Tomcat logs

2003-10-07 Thread Mike Millson
Is the following statement true or false?

Tomcat only logs to catalina.out when the startup and shutdown scripts
are run (i.e. when tomcat starts or stops).

Mike 


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



Re: RH9's Apache 2 and Tomcat 4

2003-10-05 Thread Mike Millson
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/
> >>-> http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/v2.0.1/doc/
> >>
> >>Cheers,
> >>Bart
> >>
> >>Quoting Mike Millson <[EMAIL PROTECTED]>:
> >>
> >>
> >>
> >>>I have heard the claims before about not using the default Apache that
> >>>comes w/ RH 9, but I have never seen any concrete evidence for not doing
> >>>this. Do you have any specifics such as articles or facts that show the
> >>>downside of using the default Apache that comes w/ RH?
> >>>
> >>>Thank you,
> >>>Mike
> >>>
> >>>On Sat, 2003-10-04 at 21:54, Chong Yu Meng wrote:
> >>>  
> >>>
> >>>>Hi Dave,
> >>>>
> >>>>Do NOT use the default Apache that comes with RH9 ! According to some 
> >>>>reports, there are some serious bugs inside it. I'm using RH9, but my 
> >>>>Apache comes from Falsehope.com 
> >>>>(http://ftp.falsehope.com/home/gomez/apache2/). It takes a bit of 
> >>>>tweaking, but you can get the Falsehope rpm to play nice with Tomcat.
> >>>>
> >>>>Regards,
> >>>>pascal chong
> >>>>
> >>>>
> >>>>
> >>>>
> 
> 
> 
> -
> 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: RH9's Apache 2 and Tomcat 4

2003-10-05 Thread Mike Millson
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/
> -> http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/v2.0.1/doc/
> 
> Cheers,
> Bart
> 
> Quoting Mike Millson <[EMAIL PROTECTED]>:
> 
> > I have heard the claims before about not using the default Apache that
> > comes w/ RH 9, but I have never seen any concrete evidence for not doing
> > this. Do you have any specifics such as articles or facts that show the
> > downside of using the default Apache that comes w/ RH?
> > 
> > Thank you,
> > Mike
> > 
> > On Sat, 2003-10-04 at 21:54, Chong Yu Meng wrote:
> > > Hi Dave,
> > > 
> > > Do NOT use the default Apache that comes with RH9 ! According to some 
> > > reports, there are some serious bugs inside it. I'm using RH9, but my 
> > > Apache comes from Falsehope.com 
> > > (http://ftp.falsehope.com/home/gomez/apache2/). It takes a bit of 
> > > tweaking, but you can get the Falsehope rpm to play nice with Tomcat.
> > > 
> > > Regards,
> > > pascal chong
> > > 
> > > 
> > > Dave Thomas wrote:
> > > 
> > > >We have an application that we have been suing Apache 1.3 with Tomcat
> > > >3.3 with for a while and I would like to test out using our app with
> > > >Tomcat 4 and RedHats default install of Apache 2. I have found a few
> > > >'how tos' on the subject but they all seem to be a bit dated and do not
> > > >apply to the current release of Tomcat and mod_jk2. Can anyone suggest
> > > >any docs or offer any info on this subject?
> > > >
> > > >Also, how if the performance for Tomcat 4 vs Tomcat 3?
> > > >
> > > >Thanks for any info,
> > > >Dave Thomas
> > > >[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]
> > 
> > 
> 
> 
> 
> http://WWW.ADVENTUREFORUM.NET - Forum on World Travel and Adventure -
> 
> http://WWW.ADVENTUREFORUM.NET/worldfacts
> 
> http://WWW.ADVENTUREFORUM.NET/worldnews
> 
> 
> -
> 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: RH9's Apache 2 and Tomcat 4

2003-10-05 Thread Mike Millson
I have heard the claims before about not using the default Apache that
comes w/ RH 9, but I have never seen any concrete evidence for not doing
this. Do you have any specifics such as articles or facts that show the
downside of using the default Apache that comes w/ RH?

Thank you,
Mike

On Sat, 2003-10-04 at 21:54, Chong Yu Meng wrote:
> Hi Dave,
> 
> Do NOT use the default Apache that comes with RH9 ! According to some 
> reports, there are some serious bugs inside it. I'm using RH9, but my 
> Apache comes from Falsehope.com 
> (http://ftp.falsehope.com/home/gomez/apache2/). It takes a bit of 
> tweaking, but you can get the Falsehope rpm to play nice with Tomcat.
> 
> Regards,
> pascal chong
> 
> 
> Dave Thomas wrote:
> 
> >We have an application that we have been suing Apache 1.3 with Tomcat
> >3.3 with for a while and I would like to test out using our app with
> >Tomcat 4 and RedHats default install of Apache 2. I have found a few
> >'how tos' on the subject but they all seem to be a bit dated and do not
> >apply to the current release of Tomcat and mod_jk2. Can anyone suggest
> >any docs or offer any info on this subject?
> >
> >Also, how if the performance for Tomcat 4 vs Tomcat 3?
> >
> >Thanks for any info,
> >Dave Thomas
> >[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]



Integrating Tomcat and Apache on RedHat 9.0

2003-10-02 Thread Mike Millson
FYI, below is an article I wrote on integrating tomcat and apache on
RedHat 9.0 that might be of interest.

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

It has a lot of general configuration info as well. It has been fairly
well tested recently by a number of individuals who have provided
feedback.

It was published this month by Linux Gazette, but the link above has the
latest and greatest w/ typos fixed and clarifications added. As much as
I proofread the copy I sent to Linux Gazette, a few issues and typos
were brought to my attention after I submitted it.

http://linuxgazette.com/issue95/millson.html

Mike


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



class files being cached?

2003-09-06 Thread Mike Millson
I have a tomcat 3.3.1 application that I suspect might be caching old
class files.

The application consists of about 50 servlet classes (I'm using straight
servlets, not JSPs) deployed as a jar file. When I update the jar file,
I think some of the old classes are not being replaced w/ the new ones.

Will any of the following cause servlet classes to be cached between
stop/starts:

1) Not clearing the /work directory. Can this directory have anything to
do with servlets being cached? Or does tomcat strictly use it to compile
JSPs?

2) Storing old jar files in the WEB-INF/lib with extensions other than
.jar. For example, can I rename app.jar to app.jar.20030906 and leave it
in WEB-INF/lib along with the new app.jar file, or could this cause
servlet caching issues?

Mike


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



Re: Problem in Integrating Tomcat with Apache

2003-08-14 Thread Mike Millson
On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote:
> Hi, Mike
> 
> Thanks a lot!!! I also searched some documents online. One of them said,
> when we install the Apache, we need to set the "domain name" and "server
> name" as "localhost". I simply left them in default values. So I am
> reinstalling the apache. Do you think that will make difference?

If you see the Apache default install page when you type
http://localhost in your browser then apache is working and there's no
need to reinstall it, just set up the configuration to achieve what you
want.

What operating system are you using?

> 
> I will check out the artiles you forwarded. Thanks!
> 
> 
> Lance
> 
> 
> - Original Message - 
> From: "Mike Millson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, August 10, 2003 1:27 PM
> Subject: Re: Problem in Integrating Tomcat with Apache
> 
> 
> > No, it doesn't appear you have integrated tomcat. When you access tomcat
> > via port 8080, you are accessing tomcat directly. When you are accessing
> > tomcat through apache, apache communicates w/ tomcat via port 8009.
> >
> > I think the best way to approach integrating tomcat w/ apache for the
> > 1st time is to forget about all the examples and config files that come
> > w/ tomcat and start w/ a bare bones approach. This document may prove
> > helpful:
> >
> > pdf:
> > http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf
> >
> > OpenOffice doc:
> > http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw
> >
> > Mike
> >
> >
> > On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote:
> > > Hi,
> > >
> > > I tried to integrate Tomcat (on port 8080) with Apache (on port 80).
> When I tested on the local machine(192.168.2.3), the following two urls
> pointed to the same page:
> > > http://localhost/examples/jsp/dates/date.jsp
> > > http://localhost:8080/examples/jsp/dates/date.jsp
> > >
> > > However, when I tested on another computer, only this url works:
> > > http://192.168.2.3:8080/examples/jsp/dates/date.jsp
> > >
> > > The other address:
> > > http://192.168.2.3/examples/jsp/dates/date.jsp says "page cannot be
> found"
> > >
> > > Did I sucessfully intergrate Tomcat with Apache? Help me!
> > >
> > > Lance
> >
> >
> > -
> > 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: integration of apache2.0.40 & tomcat4.1.27

2003-08-14 Thread Mike Millson
You can download these packages from RedHat's site.

>From the redhat home page (www.redhat.com), click the download link on
the right of the red header. Then, scroll down to the bottom of the
downloads page and enter "httpd-devel" into the "Find latest rpms" form
"By keyword" text box. Choose your architecture, and hit Search.

I'm assuming you have Intel x386 architecture, so the one you need is
called httpd-devel 2.0.40 - 21.3.

Better yet, use the up2date utility. From the command line as root
enter:
up2date -i httpd-devel

It will install any dependencies needed.

I don't install packages outside up2date because up2date works so well.
It's one of the advantages of using RedHat, so you might as well use it.

If you don't have a subscription to up2date, buy one. It will pay for
itself in time saved.

Mike


On Tue, 2003-08-12 at 09:32, Aditya Kapur wrote:
> I have been struggling for past few days to integrate apache with tomcat
> 4.1.27 on my red hat 9.0 and I found your document very useful.
> I have a problem. I don't have apache-devel package installed. Can you tell
> me how/where to get it from? I don't have kpackage and gnome-rpm
> applications installed on my red hat either.
> Thanks,
> Adi
> 
> -Original Message-
> From: Mike Millson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 11, 2003 10:59 AM
> To: Tomcat Users List
> Subject: Re: integration of apache2.0.40 & tomcat4.1.27
> 
> 
> Here is my documentation on integrating apache + tomcat on RH 9.0. For admin
> simplicity, I keep the RedHat apache install.
> 
> http://www.meritonlinesystems.com/docs/
>  
> 
> On Mon, 2003-08-11 at 09:18, John Turner wrote:
> > unplug wrote:
> > 
> > >I have installed RH9 and it contains apache2.0.40.  Then I 
> > > installed tomcat4.1.27 by binary.  After that I want to integrate 
> > > them to work together by using jk2.  What is the easy way to 
> > > integrate them?
> > 
> > Use a connector.
> > 
> > http://jakarta.apache.org/tomcat/faq/connectors.html
> > 
> > >  Any
> > > document that shows step by step integration?
> > 
> > http://jakarta.apache.org/tomcat/faq/connectors.html
> > 
> > >I found jakarta site have a related document about it.  But I 
> > > can't find the bin mod_jk2 for 2.0.40 in jakarta site.  Where can I 
> > > find mod_jk2 for 2.0.40?  Any guide line to build it myself?  I 
> > > wonder why jakarta site doesn't have mod_jk2-2.0.40 for download.
> > 
> > Because the 2.0.40 included with RH default installations is a munged
> > Apache distribution.
> > 
> > In my opinion, you shouldn't use it, and instead should build and
> > install Apache from source.  But that's me.
> > 
> > If you want to use RH's 2.0.40, you will need to download the 
> > connector
> > source from here:
> > 
> > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
> > 
> > and build your .so file yourself against the 2.0.40 distribution that
> > you have.  You will need to know the location of apxs.  Typcially, the 
> > steps for building the .so files from source are:
> > 
> > 1. unpack source
> > 2. find buildconf.sh
> > 3. execute buildconf.sh
> > 4. execute configure like this:
> > 
> > ./configure --with-apxs=/some/path/to/apxs
> > 
> > 5. make
> > 6. make install
> > 
> > If step #6 doesn't work for you, and step #5 was successful, then do a
> > "find" for "mod_jk*.so" and when you find it, copy it to your Apache 
> > modules directory.
> > 
> > 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]
> 
> -
> 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: integration of apache2.0.40 & tomcat4.1.27

2003-08-14 Thread Mike Millson
On Mon, 2003-08-11 at 11:14, John Turner wrote:
> Nice doc.
> 
> Question:
> 
> - is there a reason you used the 4.1.24 connectors source, and not the 
> source from http://jakarta.apache.org/builds/jakarta-tomcat-connectors?

I initially tried the jakarta-comcat-connectors source and I got an
error when I ran make. Attached is a file that shows the output that I
get when I run make and also config.log. So I tried the version-specific
connector source, and it worked fine.

> 
> Also, I see that you had problems with specifying the location of 
> mod_jk.so.  You can add this as a parameter to the Listener element in 
> server.xml, which should make RH's Apache installation happy.

Thanks, John, I will give this a try.

> 
> John
> 
> Mike Millson wrote:
> 
> > Here is my documentation on integrating apache + tomcat on RH 9.0. For
> > admin simplicity, I keep the RedHat apache install.
> > 
> > http://www.meritonlinesystems.com/docs/
> >  
> > 
> > On Mon, 2003-08-11 at 09:18, John Turner wrote:
> > 
> >>unplug wrote:
> >>
> >>
> >>>   I have installed RH9 and it contains apache2.0.40.  Then I installed
> >>>tomcat4.1.27 by binary.  After that I want to integrate them to work
> >>>together by using jk2.  What is the easy way to integrate them?
> >>
> >>Use a connector.
> >>
> >>http://jakarta.apache.org/tomcat/faq/connectors.html
> >>
> >>
> >>> Any
> >>>document that shows step by step integration?  
> >>
> >>http://jakarta.apache.org/tomcat/faq/connectors.html
> >>
> >>
> >>>   I found jakarta site have a related document about it.  But I can't
> >>>find the bin mod_jk2 for 2.0.40 in jakarta site.  Where can I find
> >>>mod_jk2 for 2.0.40?  Any guide line to build it myself?  I wonder why
> >>>jakarta site doesn't have mod_jk2-2.0.40 for download.
> >>
> >>Because the 2.0.40 included with RH default installations is a munged 
> >>Apache distribution.
> >>
> >>In my opinion, you shouldn't use it, and instead should build and 
> >>install Apache from source.  But that's me.
> >>
> >>If you want to use RH's 2.0.40, you will need to download the connector 
> >>source from here:
> >>
> >>http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
> >>
> >>and build your .so file yourself against the 2.0.40 distribution that 
> >>you have.  You will need to know the location of apxs.  Typcially, the 
> >>steps for building the .so files from source are:
> >>
> >>1. unpack source
> >>2. find buildconf.sh
> >>3. execute buildconf.sh
> >>4. execute configure like this:
> >>
> >>./configure --with-apxs=/some/path/to/apxs
> >>
> >>5. make
> >>6. make install
> >>
> >>If step #6 doesn't work for you, and step #5 was successful, then do a 
> >>"find" for "mod_jk*.so" and when you find it, copy it to your Apache 
> >>modules directory.
> >>
> >>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]
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure --with-apxs=/usr/sbin/apxs

## - ##
## Platform. ##
## - ##

hostname = alice.meritonlinesystems.com
uname -m = i686
uname -r = 2.4.20-19.9
uname -s = Linux
uname -v = #1 Tue Jul 15 17:18:13 EDT 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = i686
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr

Re: Problem in Integrating Tomcat with Apache

2003-08-14 Thread Mike Millson
No, it doesn't appear you have integrated tomcat. When you access tomcat
via port 8080, you are accessing tomcat directly. When you are accessing
tomcat through apache, apache communicates w/ tomcat via port 8009.

I think the best way to approach integrating tomcat w/ apache for the
1st time is to forget about all the examples and config files that come
w/ tomcat and start w/ a bare bones approach. This document may prove
helpful:

pdf:
http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf

OpenOffice doc:
http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw

Mike


On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote:
> Hi, 
> 
> I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested 
> on the local machine(192.168.2.3), the following two urls pointed to the same page:
> http://localhost/examples/jsp/dates/date.jsp
> http://localhost:8080/examples/jsp/dates/date.jsp
> 
> However, when I tested on another computer, only this url works:
> http://192.168.2.3:8080/examples/jsp/dates/date.jsp
> 
> The other address: 
> http://192.168.2.3/examples/jsp/dates/date.jsp says "page cannot be found"
> 
> Did I sucessfully intergrate Tomcat with Apache? Help me! 
> 
> Lance 


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



Re: integration of apache2.0.40 & tomcat4.1.27

2003-08-14 Thread Mike Millson
Here is my documentation on integrating apache + tomcat on RH 9.0. For
admin simplicity, I keep the RedHat apache install.

http://www.meritonlinesystems.com/docs/
 

On Mon, 2003-08-11 at 09:18, John Turner wrote:
> unplug wrote:
> 
> >I have installed RH9 and it contains apache2.0.40.  Then I installed
> > tomcat4.1.27 by binary.  After that I want to integrate them to work
> > together by using jk2.  What is the easy way to integrate them?
> 
> Use a connector.
> 
> http://jakarta.apache.org/tomcat/faq/connectors.html
> 
> >  Any
> > document that shows step by step integration?  
> 
> http://jakarta.apache.org/tomcat/faq/connectors.html
> 
> >I found jakarta site have a related document about it.  But I can't
> > find the bin mod_jk2 for 2.0.40 in jakarta site.  Where can I find
> > mod_jk2 for 2.0.40?  Any guide line to build it myself?  I wonder why
> > jakarta site doesn't have mod_jk2-2.0.40 for download.
> 
> Because the 2.0.40 included with RH default installations is a munged 
> Apache distribution.
> 
> In my opinion, you shouldn't use it, and instead should build and 
> install Apache from source.  But that's me.
> 
> If you want to use RH's 2.0.40, you will need to download the connector 
> source from here:
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
> 
> and build your .so file yourself against the 2.0.40 distribution that 
> you have.  You will need to know the location of apxs.  Typcially, the 
> steps for building the .so files from source are:
> 
> 1. unpack source
> 2. find buildconf.sh
> 3. execute buildconf.sh
> 4. execute configure like this:
> 
> ./configure --with-apxs=/some/path/to/apxs
> 
> 5. make
> 6. make install
> 
> If step #6 doesn't work for you, and step #5 was successful, then do a 
> "find" for "mod_jk*.so" and when you find it, copy it to your Apache 
> modules directory.
> 
> 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: integration of apache2.0.40 & tomcat4.1.27

2003-08-14 Thread Mike Millson
Thanks again John. I didn't know that tomcat saves sessions across
restarts. This explains some behavior I've seen in the past!

Mike

On Mon, 2003-08-11 at 11:15, John Turner wrote:
> Also, a suggestion:
> 
> - add a cleanout of the work directory on restarts or stops.
> 
> John
> 
> Mike Millson wrote:
> 
> > Here is my documentation on integrating apache + tomcat on RH 9.0. For
> > admin simplicity, I keep the RedHat apache install.
> > 
> > http://www.meritonlinesystems.com/docs/
> >  
> > 
> > On Mon, 2003-08-11 at 09:18, John Turner wrote:
> > 
> >>unplug wrote:
> >>
> >>
> >>>   I have installed RH9 and it contains apache2.0.40.  Then I installed
> >>>tomcat4.1.27 by binary.  After that I want to integrate them to work
> >>>together by using jk2.  What is the easy way to integrate them?
> >>
> >>Use a connector.
> >>
> >>http://jakarta.apache.org/tomcat/faq/connectors.html
> >>
> >>
> >>> Any
> >>>document that shows step by step integration?  
> >>
> >>http://jakarta.apache.org/tomcat/faq/connectors.html
> >>
> >>
> >>>   I found jakarta site have a related document about it.  But I can't
> >>>find the bin mod_jk2 for 2.0.40 in jakarta site.  Where can I find
> >>>mod_jk2 for 2.0.40?  Any guide line to build it myself?  I wonder why
> >>>jakarta site doesn't have mod_jk2-2.0.40 for download.
> >>
> >>Because the 2.0.40 included with RH default installations is a munged 
> >>Apache distribution.
> >>
> >>In my opinion, you shouldn't use it, and instead should build and 
> >>install Apache from source.  But that's me.
> >>
> >>If you want to use RH's 2.0.40, you will need to download the connector 
> >>source from here:
> >>
> >>http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
> >>
> >>and build your .so file yourself against the 2.0.40 distribution that 
> >>you have.  You will need to know the location of apxs.  Typcially, the 
> >>steps for building the .so files from source are:
> >>
> >>1. unpack source
> >>2. find buildconf.sh
> >>3. execute buildconf.sh
> >>4. execute configure like this:
> >>
> >>./configure --with-apxs=/some/path/to/apxs
> >>
> >>5. make
> >>6. make install
> >>
> >>If step #6 doesn't work for you, and step #5 was successful, then do a 
> >>"find" for "mod_jk*.so" and when you find it, copy it to your Apache 
> >>modules directory.
> >>
> >>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]
> > 
> 
> 
> 
> -
> 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 in Integrating Tomcat with Apache

2003-08-14 Thread Mike Millson
On Sun, 2003-08-10 at 14:25, Xingqun Jiang wrote:
> Hi, Mike
> 
> I followed this article to do the set-up:
> 
> http://www.johnturner.com/howto/winxp-howto.html

I don't use windows, but I have seen John help countless people. I would
re-read his instructions and try again, following what he says very
closely.

> 
> But the problem still exists. I cannot open the jsp page from another
> computer, without adding port number. :-(
> The article you forwarded to me is for Linux, Is there any for WindowsXP?
> Thanks
> 
> Lance
> - Original Message - 
> From: "Mike Millson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, August 10, 2003 1:51 PM
> Subject: Re: Problem in Integrating Tomcat with Apache
> 
> 
> > On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote:
> > > Hi, Mike
> > >
> > > Thanks a lot!!! I also searched some documents online. One of them said,
> > > when we install the Apache, we need to set the "domain name" and "server
> > > name" as "localhost". I simply left them in default values. So I am
> > > reinstalling the apache. Do you think that will make difference?
> >
> > If you see the Apache default install page when you type
> > http://localhost in your browser then apache is working and there's no
> > need to reinstall it, just set up the configuration to achieve what you
> > want.
> >
> > What operating system are you using?
> >
> > >
> > > I will check out the artiles you forwarded. Thanks!
> > >
> > >
> > > Lance
> > >
> > >
> > > - Original Message - 
> > > From: "Mike Millson" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Sunday, August 10, 2003 1:27 PM
> > > Subject: Re: Problem in Integrating Tomcat with Apache
> > >
> > >
> > > > No, it doesn't appear you have integrated tomcat. When you access
> tomcat
> > > > via port 8080, you are accessing tomcat directly. When you are
> accessing
> > > > tomcat through apache, apache communicates w/ tomcat via port 8009.
> > > >
> > > > I think the best way to approach integrating tomcat w/ apache for the
> > > > 1st time is to forget about all the examples and config files that
> come
> > > > w/ tomcat and start w/ a bare bones approach. This document may prove
> > > > helpful:
> > > >
> > > > pdf:
> > > > http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf
> > > >
> > > > OpenOffice doc:
> > > > http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw
> > > >
> > > > Mike
> > > >
> > > >
> > > > On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote:
> > > > > Hi,
> > > > >
> > > > > I tried to integrate Tomcat (on port 8080) with Apache (on port 80).
> > > When I tested on the local machine(192.168.2.3), the following two urls
> > > pointed to the same page:
> > > > > http://localhost/examples/jsp/dates/date.jsp
> > > > > http://localhost:8080/examples/jsp/dates/date.jsp
> > > > >
> > > > > However, when I tested on another computer, only this url works:
> > > > > http://192.168.2.3:8080/examples/jsp/dates/date.jsp
> > > > >
> > > > > The other address:
> > > > > http://192.168.2.3/examples/jsp/dates/date.jsp says "page cannot be
> > > found"
> > > > >
> > > > > Did I sucessfully intergrate Tomcat with Apache? Help me!
> > > > >
> > > > > Lance
> > > >
> > > >
> > > > -
> > > > 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: FORBIDDEN access

2003-08-02 Thread Mike Millson
Does the directory above your Apache DocumentRoot directory have execute
permissions?

For example, if DocumentRoot = /home/tomcat/your_app, then /home/tomcat
needs to have execute permissions.

chmod u+x /home/tomcat/your_app

Does the user that tomcat runs under own the directory and files
/home/tomcat/your_app?

chown -R tomcat.tomcat /home/tomcat/your_app

Change the above to match your installation.

Mike

On Sat, 2003-08-02 at 08:49, Bradberry, Rick wrote:
> Hi,
>  
> This may be a bit os specific but I would appreciate any help. I am trying
> to get apache and tomcat
> talking on Mandrake 9.0 using the default installation. Each server work
> independently. When I try 
> access examples through apache I get a "FORBIDDEN , you do not have
> permissions to access example 
> on this server." error message. However, I can get to the ~home pages.
>  
> Is there some security I can turn off. Can you give me an idea of where to
> look or what to look for.
>  
> Here is the versions that are installed
> apache 1.3.26
> tomcat 4.1.18
> mod_jk 1.3
>  
> Thanks for any help
> Rick


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



RE: Start tomcat before apache on RedHat7.3

2003-01-14 Thread Mike Millson
I have a howto document in pdf and sxw (Open Office) format that may be of
help.

http://www.atsga.com/docs/

Mike

-Original Message-
From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Arcadius A.
Sent: Tuesday, January 14, 2003 9:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Start tomcat before apache on RedHat7.3



"Turner, John" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Then the delay shouldn't need to be more than 5 or 10 seconds.
>

Ok John,
I'm not asking you to do the whole thing for me
but could you give me an example of a script that could do what you're
talking about?

This problem is realy strange I have TomCat 3.2 running on FreeBSD with
apache3.27 and mod_jk (automatic config)  when I reboot, tomcat and
apache start quite fine without the need of any special script  but I
cannot see why I'm having troubles on RedHat.

regards.




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: difference between apache and tomcat webserver

2003-01-10 Thread Mike Millson
This is a valuable security feature of unix/linux/solaris/free bsd/etc.
Because it impacts tomcat config shouldn't be misinterpreted as some kind of
limitation w/ the operating system. Windows may have caught up in some
respects, but these type features are why unix/linux/etc are more secure
than windows in a server environment.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 8:04 AM
To: 'Tomcat Users List'
Subject: RE: difference between apache and tomcat webserver



On UNIX/Linux, ports less than 1024 are privileged ports.  To run a service
on them, you have to run the service as root.  Running services as root is
generally a bad idea:  an exploit like a buffer overflow can allow access to
the operating system via that service, and since the service is running as
root, the exploiter now has root access.

Apache starts up as root, but uses child processes running as a non-root
user with (preferably) very limited access to actually serve HTTP and HTTPS
requests.  Tomcat does not do this, and even though there are security
measures built-in to the JVM, many people do not feel comfortable running
Tomcat as root on a publicly accessible port like port 80.  So, they use
Apache on port 80, and "hide" Tomcat "behind" Apache.

John


> -Original Message-
> From: Deepa Raja [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 4:38 AM
> To: Tomcat Users List
> Subject: RE: difference between apache and tomcat webserver
>
>
> Hi Julius
>
> could you please enlighten me on the following line please.
>
> 'Feels safer when using port < 1024 on linux/unix.'
>
> Thanks
> Deepa
>
> -Original Message-
> From: Julius Davies [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 09, 2003 10:28 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: RE: difference between apache and tomcat webserver
>
>
>
> krip pane,
>
> > I was under the impression that apache is needed to
> > serve the jsp pages - looks like not.
>
> Too many people are under that impression.
>
> > what is the advantage or disadvantage of
> > installing/using apache as your webserver and
> > installing some connector (i.e. mod_jk) to use with
> > tomcat.
>
> Advantages of using apache with tomcat:
>
> - Feels safer when using port < 1024 on linux/unix.
> - Works together very well with lots of other web stuff (cgi,
> perl, php).
> - All the extra modules, for example: https.
> - Everybody's doin' it.
>
> Notice that I don't include "speed of serving static files
> and images".
> This is because, frankly, if you're hosting a dynamic web
> site, static files
> are the least of your problems.  Tomcat is just as fast at
> sending a "304 -
> Unmodified" response as Apache is, and that's all that matters.
>
> Disadvantages of using apache with tomcat:
>
> - Much, much harder to get everything working.  As you've
> discovered, it
> takes about 2 minutes to get Tomcat up and running!  You will
> spend hours,
> if not days, learning to pair Tomcat up with Apache.  At
> least judging from
> this mailing list.  I've never done it!
>
> yours,
>
>
> Julius Davies, Programmer, CUCBC
> Email: [EMAIL PROTECTED], Ph: 604.730.6385
>
> The contents of this message are my own personal opinions,
> and not those of
> CUCBC.
>
>
> > -Original Message-
> > From: krip pane [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 09, 2003 2:05 PM
> > To: tomcat
> > Subject: difference between apache and tomcat webserver
> >
> >
> > All,
> >
> > I hope I am understanding and asking this answer
> > correctly.  I recently installed tomcat 4.1 with
> > default values and was able to server jsp pages.
> >
> > I was under the impression that apache is needed to
> > serve the jsp pages - looks like not.  So the question
> > is what is the advantage or disadvantage of
> > installing/using apache as your webserver and
> > installing some connector (i.e. mod_jk) to use with
> > tomcat.
> >
> > Thanks
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 4.x and Java Processes

2003-01-07 Thread Mike Millson
On Linux "ps -fx" will not show the tomcat processes if tomcat is run under
a different account. I think "ps -fx" just shows processes running under
root??? To see all processes, I had to do "ps -fxa" to see my tomcat
processes running under the tomcat4 account.

Mike

-Original Message-
From: Rob A. Augustinus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.x and Java Processes



Not sure if someone mentioned this but you cat try "ps fx"
To see which process is the parent and which are the childs..

Rob

-Original Message-
From: Troy J. Kelley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 12:21
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.x and Java Processes


Yes, sorry, I forgot to mention that.  Are there options for threading
on linux?  I think on Solaris, you can do "green" or native threads.  If
so, would a change in this setting reduce the JVM to a single pid?

Thanks for the quick reply!

-Troy

-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 3:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.x and Java Processes

Are you using Linux? Linux shows in-process threads as processes. If you
are running Linux, then you are seeing threads within the Java process.
You would expect to see a number of threads even with your simple
config.

Ben Ricker

On Tue, 2003-01-07 at 14:07, Troy J. Kelley wrote:
> I've been looking all over for the answer to this and can't seem to
find
> a good answer.
>
> My basic question is that when I start up a *very* basic tomcat config

> (JMX Support, HTTP Listener, one engine, one host, once context) I get

> several java processes that look the same:
>
>
> root  5865  0.0  5.7 227380 29548 ?  S15:02   0:02
> /usr/java/jdk/bin/java -Djava.endorsed.dirs= -classpath
> /usr/java/jdk/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
> -Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
> -Djava.io.tmpdir=/var/tomcat4/temp
org.apache.catalina.startup.Bootstrap
> start
>
> So, why are there so many processes?  I set minProcessors="1"
> maxProcessors="1" for the Coyote HTTP connector to reduce the number
of
> JVMs related to this...
>
> In the WebSphere world a JVM is synonymous with an "Application
Server",
> which services the requests for the modules (WAR/EAR) "installed" into

> the appserver.
>
> Any insight would be greatly appreciated.
>
> -Troy
> [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

--
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: running tomcat as a non-root user?

2002-12-30 Thread Mike Millson
I have a howto document in pdf and sxw (Open Office) format that may be of
help.

http://www.atsga.com/docs/

Mike

-Original Message-
From: waimun [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 10:25 AM
To: [EMAIL PROTECTED]
Subject: running tomcat as a non-root user?


Hi,

Has anybody tried running tomcat as a non-root user in Linux? If so, how do
you proceed (ie. making script setuid doesn't work for me). Pls advice.

Thanks alot!

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Negatives to reloadable=true

2002-11-21 Thread Mike Millson
Are there any downsides/negatives to setting reloadable=true in a context?
e.g. Are there security or performance implications?

Thank you,
Mike


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I implement favicon.ico using catalina?

2002-06-13 Thread Mike Millson

If you name it favicon.ico you don't have to worry about setting up links in
your html; the browser automatically finds it. Browsers that have the
capability to display favicon.ico automatically request this file when you
bookmark a page. You may have noticed requests in your log files for this
file. So, just put a copy of favicon.ico in each directory that you want to
have this feature enabled. In my experience, the best way to test your
favicon file is using Konqueror. IE is incredibly buggy about caching files
and displaying the icon. There is no rhyme or reason to what it does.
Favicon is horribly implemented and broken in IE from my experience.

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:39 PM
To: Tomcat Users List
Subject: RE: How do I implement favicon.ico using catalina?



yes,I think it should work as it's the browser that checks for it, it has
"nothing" to do with the webserver.

for somereason I feel like it should be favico.ico but not favicon.ico ..
can it be correct ?

hope it helps
-reynir



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 13. júní 2002 18:21
> To: Tomcat Users List
> Subject: How do I implement favicon.ico using catalina?
>
>
> I tried dropping a favicon.ico into my webapps/myapp directory to no
> avail... Is this supported?
>
> Dave
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Security - Attack

2002-06-13 Thread Mike Millson

I think it makes sense to filter these out. They're easy to identify by
looking for the .exe extension. I think its less demanding on the server to
do a redirect than it is to display an error page and write an entry to the
log file. Why should I let my log files fill up w/ garbage? And what better
place to redirect them to than M$?

Mike

-Original Message-
From: Cato, Christopher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 9:11 AM
To: 'Tomcat Users List'
Subject: RE: Security - Attack


a simple purpose - since it's my home machine, i did it just for fun. Since
M$ allowed Code Red and similar viruses to thrive on Windows systems, while
saying that "Windows is perfectly secure", why not try a redirect to their
systems. At least I got a laugh out of it.

christopher - a bored guy.

> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]]
> Sent: den 13 juni 2002 15:04
> To: Tomcat Users List
> Subject: Re: Security - Attack
>
>
> Warning: this may start flame war - but its my opinion.
>
> What is the purpose of detecting and trying to prevent these
> attacks? If
> someone code reds (or similar) you - they get a 404 error.
> Why waste the
> extra processing power and  extra config maintenance on
> something that
> does "no harm". When the next type of attack comes out - should the
> config be changed to address that? Its a waste of time.
>
> -Tim
>
> Jim Urban wrote:
> >>create a bunch of mod_rewrite filters (in httpd.conf - for
> Apache) that
> >
> > redirects
> >
> >>all those requests to www.microsoft.com
> >
> > Can you provide an example?
> >
> > Jim
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Protecting a page with SSL

2002-06-12 Thread Mike Millson

I think you can use Apache URL rewriting to do this. If you're using Apache,
check the Apache documentation.

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 9:24 AM
To: 'Tomcat Users List'
Subject: RE: Protecting a page with SSL


Can somebody please answer this please...
Donie

 -Original Message-
From:   Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent:   12 June 2002 12:59
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL

Thanks Adam

It sort of works now. I have a URL mapped as /info

I can access it as https://nysa/info and it works
If I use http://nysa/info I get HTTP 500 Internal Server Error

I want the request from http to re-direct to https. What am I doing wrong?
Thanks
Donie

Here is my web.xml

  
info
/onm/index.jsp
  

  
info
/info
  

  
  
  secure
  /info
  

  
  CONFIDENTIAL
  
  

And here is part of my server.xml

  










  
  
  


  
  


  


 -Original Message-
From:   Sefton, Adam [mailto:[EMAIL PROTECTED]]
Sent:   12 June 2002 12:28
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL


Within your web.xml, inside the  tag, add:


 
CONFIDENTIAL
 


This will force the connection for the application.

If you want to force the connection for all applications across the Tomcat
instance, then place this in the /conf/web.xml instead.

Hope this helps

Adam

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2002 12:21
To: 'Tomcat Users List'
Subject: Protecting a page with SSL


Hi all

I've setup SSL on tomcat but I can't find in the docs how to protect a .jsp
page or servlet mapping to force the connection over SSL

Please point me in the right direction.
Thanks
Donie

--
To unsubscribe, e-mail:

For additional commands, e-mail:



**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.

**


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




context param is null outside doGet

2002-06-08 Thread Mike Millson

Why is it that context parameters are null outside the doGet block of a
servlet?

For example, suppose I have the following in web.xml:


basepath
bob


Why does Servlet 1 below print out "bob" while Sevlet 2 gives me a
NullPointerException error? Why isn't the context parameter available
outside the doGet block?

Servlet 1
==
public class Hello extends HttpServlet{

public void doGet(HttpServletRequest request HttpServletResponse response)
throws IOException, ServletException{

PrintWriter out = response.getWriter();
out.println(getServletContext()getInitParameter("basepath"));
out.close();
}
}

Servlet 2
==
public class Hello extends HttpServlet{

private String basepath = getServletContext()getInitParameter("basepath");

public void doGet(HttpServletRequest request HttpServletResponse response)
throws IOException, ServletException{

PrintWriter out = response.getWriter();
out.println(basepath);
out.close();
}
}

Thank you,
Mike


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Answer: Reloading classes WITHOUT using shutdown.sh & startup.sh (newbies should read)

2002-06-05 Thread Mike Millson

I don't use javabeans; I know it works for servlets. Anything in
WEB-INF/classes and WEB-INF/lib should be automatically be reloaded when a
change is detected, so it should work (according to the documentation).

Here's my httpd.conf:

WebAppConnectionconnwarplocalhost:8008


ServerAdmin [EMAIL PROTECTED]
ServerName alberta.tomcat
DocumentRoot /usr/local/jakarta-tomcat-4.0.1/webapps/
WebAppDeployexamplesconn/examples


Here's my server.xml:











Note: I put an entry in the hosts file of the computer accessing the server
that relates the domain alberta.tomcat to 192.168.1.1, so any time I enter
http://alberta.tomcat it gets sent to 192.168.1.1, where the server is
listening on another machine.

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 1:40 PM
To: Tomcat Users List
Subject: RE: Answer: Reloading classes WITHOUT using shutdown.sh &
startup.sh (newbies should read)



This reloadable parameter has been the real crux of all the discussion. It
seems like there's at least five postings a week asking "I set reloadable
="true" but it still doesn't reload my classes." I'm not sure I've ever
heard a reliable answer concerning this... most people seem to think it
just plain doesn't work. (Possibly it only works for classes that extend
HttpServlet, as JRun used to do). That in turn seems to cascade into a lot
of confusion about whether the manager/reload?path= functionality
you discovered works either (it does of course).  I think it's all
definitely something for the FAQ... if there is a FAQ...




  Adam Pfeiffer
  , [EMAIL PROTECTED]
  ahoo.com>cc:
   Subject: RE: Answer:
Reloading classes WITHOUT using shutdown.sh & startup.sh (newbies
  06/05/2002 11:01 should read)
  AM
  Please respond
  to "Tomcat Users
  List"






Mike,
>From my experience, javabean will not be reloaded even with reloadable
="true".  I have
reloadable="true" on my web app, and it would not reread the classes until
I used shutdown.sh and
startup.sh.  Maybe I didn't have something set up right.  Here is a snipet
from my server.xml:


  


Let me know if you see anything wrong.  Thanks.

--- Mike Millson <[EMAIL PROTECTED]> wrote:
> You could also set reloadable="true" in the Context element, but that
> requires significant overhead and is not recommended for production
> environments.
>
> Mike
>
> -Original Message-
> From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: Answer: Reloading classes WITHOUT using shutdown.sh &
> startup.sh (newbies should read)
>
>
> I have been on this list for about a month and have see this question
many
> time (myself included).
>  I have finally figured out how you can get a class to reload (e.g.
Included
> JavaBean) without
> having to stop/start tomcat using shutdown.sh and startup.sh.  First,
follow
> the directions in
> "Manager App HOW-TO" included with the tomcat documentation.  Once this
is
> done, you can use the
> manager app reload function to reload the web app.  This also refreshes
any
> newly compiled classes
> (e.g. javabeans) that you may have included in the JSPs.  To use the
reload,
> do the following:
>
> http:///manager/reload?path=
>
> You can also use the manager to deploy new web apps, un-deploy web apps,
> start/stop web apps.
> This may be common sense to those tomcat veterans, but this was very
helpful
> to me once I learned
> how to use it.
>
> Adam
>
> P.S.  If I have made any errors, please correct me.  Thanks.
>
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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






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



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




RE: Answer: Reloading classes WITHOUT using shutdown.sh & startup.sh (newbies should read)

2002-06-05 Thread Mike Millson

You could also set reloadable="true" in the Context element, but that
requires significant overhead and is not recommended for production
environments.

Mike

-Original Message-
From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 11:37 AM
To: [EMAIL PROTECTED]
Subject: Answer: Reloading classes WITHOUT using shutdown.sh &
startup.sh (newbies should read)


I have been on this list for about a month and have see this question many
time (myself included).
 I have finally figured out how you can get a class to reload (e.g. Included
JavaBean) without
having to stop/start tomcat using shutdown.sh and startup.sh.  First, follow
the directions in
"Manager App HOW-TO" included with the tomcat documentation.  Once this is
done, you can use the
manager app reload function to reload the web app.  This also refreshes any
newly compiled classes
(e.g. javabeans) that you may have included in the JSPs.  To use the reload,
do the following:

http:///manager/reload?path=

You can also use the manager to deploy new web apps, un-deploy web apps,
start/stop web apps.
This may be common sense to those tomcat veterans, but this was very helpful
to me once I learned
how to use it.

Adam

P.S.  If I have made any errors, please correct me.  Thanks.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: xml - unspecified error in IE 5.5, Tomcat 3.2.1

2002-04-10 Thread Mike Millson

If encoding isn't specified, the encoding should default to utf-8 (per the
W3C xml spec). I don't know of any reason not to use utf-8.

Thank you,
Mike Millson
Web Systems Engineer
Sun Certified Programmer for Java2 Platform

AableTech Solutions, Inc.
770.414.8834
404.219.3177 cell
770.414.8206 fax
http://www.atsga.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 5:43 PM
To: Tomcat Users List
Subject: Re: xml - unspecified error in IE 5.5, Tomcat 3.2.1



i tried MSXML 3.0 SP2 and MSXML 4.0. For both these guys, the browser
displayed the error message - "System does not support the specified
encoding". The servlet that sends the xml back doesn't set any encoding or
anything. I tried adding the various encoding values in the  tag of the xml document. But the same error
message.

RS





Ingo Bruell <[EMAIL PROTECTED]> on 04/09/2002 04:44:27 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Re: xml - unspecified error in IE 5.5, Tomcat 3.2.1

Hi Tomcat,


rtc> Anyone has an idea why IE 5.5 displays the following error when Tomcat
rtc> 3.2.1 (servlet) sends back xml to the browser.
rtc> "The XML page cannot be displayed. Please check the error and try
again.
rtc> Unspecified error"
rtc> The same program works on JRun. I suspect the content type could be a
rtc> problem. But ain't sure. Anyone experienced this. If I use an XSLT
rtc> processor (Xerces) on the server-side and then send back HTML it works
rtc> fine. So the xml transformed to HTML works allright. It's just that
XML
rtc> doesn't display on IE 5.5. Do you know any other browser that displays
XML?
rtc> By the way I also use Apache in front of Tomcat.
rtc> Any solutions/ideas/comments?
Have you installed the msxml patch from microsoft ? I do not know the
url but look at http://www.microsoft.com/

so long


Ingo Bruell

---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E
E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>









--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




How to manage log files?

2002-04-03 Thread Mike Millson

What is the philosophy behind managing Tomcat log files? Why is it that log
files can only be created with the date attached? This makes it impossible
to manage the files using logrotate like you can w/ Apache. Instead of a
single log file name that you can rotate, you get a file for every day of
the year.

Is it set up this way because the logging is only for development purposes?
Is it expected that tomcat logging will be turned off and Apache logging
used instead? What is the reason for having the log files have the date
attached so they cannot be logrotated?

Or, if the log files are meant for production use, how are people managing
these files? Surely the way isn't to have hundreds of log files. Is there
some tool that aggregates them so they can be logrotated?

Thank you,
Mike Millson
Web Systems Engineer
Sun Certified Programmer for Java2 Platform

AableTech Solutions, Inc.
770.414.8834
404.219.3177 cell
770.414.8206 fax
http://www.atsga.com



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




WARP Connector for Free BSD

2002-03-13 Thread Mike Millson

Is there a binary for the WARP connector for Free BSD? I looked in the
release builds and didn't see one. Will the Linux version work on Free BSD?
Or is a binary not available for Free BSD and the only solution is to
compile one from the source code?

Thank you,
Mike


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: HOW TO start tomcat on linux boot

2002-03-06 Thread Mike Millson

What distro of Linux are you using?

Mike

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:57 PM
To: 'Tomcat Users List'
Subject: RE: HOW TO start tomcat on linux boot


Is CATALINA_HOME set?
IS JAVA_HOME set?
what about CATALINA_BASE?

Also, I don't personally like running things as root - you might want to
install your webapps as another user (I just called it appuser), and su to
that before executing tomcat.

- Brett

-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 9:52 AM
To: Tomcat Users List
Subject: HOW TO start tomcat on linux boot


hello, im trying to start tomcat on linux boot...

but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local

it only works when I type it on prompt..

anyone can help ?

thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Error Using 4.0.1 Manager

2002-03-06 Thread Mike Millson

OS: RH7.1
Apache: 1.3.22
Tomcat: 4.0.1

I added the following to /conf/tomcat-users.xml in the  block:


I added the following to httpd.conf:
WebAppDeploy manager conn /manager/

I enter this URL:
http://myserver/manager/reload?path=/examples

The authentication box comes up and I enter my username and password, then I
get the following error:

javax.servlet.ServletException: Error allocating a servlet instance
ManagerServlet is privileged and cannot be loaded by this web application

There is nothing in Catalina.out.

I saw searching JGuru that someone else posted this question on 1/10/2002,
but there was no followup answer. Does anyone have any ideas what I need to
do to get this working or any steps I can take to narrow down where the
problem may be?

Thank you,
Mike Millson
Web Systems Engineer
Sun Certified Programmer for Java2 Platform

AableTech Solutions, Inc.
770.414.8834
404.219.3177 cell
770.414.8206 fax
http://www.atsga.com



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Just trying to get things stright...

2002-03-01 Thread Mike Millson

No, I don't think you can get Apache to do anything from inside server.xml.
That file only impacts the configuration of Tomcat. The HttpConnector
settings basically says "Tomcat will handle http requests on port 8080." The
WarpConnector settings basically say "Tomcat will handle Warp requests on
port 8008."

Apache is UPSTREAM of Tomcat, so if you want to integrate Tomcat into
Apache, you have to change your Apache settings in the httpd.conf file.

What Apache can do is look at the URL of the request and determine based on
the URL how it gets processed. In httpd.conf you can set up URL patterns
that tell Apache which request get forwarded to Tomcat using the Warp
connector. (The README file that comes w/ Tomcat explains how to do this,
plus many other places.).

Mike

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 7:34 AM
To: [EMAIL PROTECTED]
Subject: Just trying to get things stright...


Good morning, afternoon, and evening,


 Just one little clarification.

  If I want apache to handle all html, php, cgi requests, I use:

  


in my server.xml file.

   And if I want the web_app module to handle "java" request I use:






I am having trouble distinguishing the difference between the Connectors
and how Apache handles html requests as compared to "java" requests.


Thanks
-chad

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread Mike Millson

I think this is another shortfall of the documentation. You can change the
Engine name to "Bob" and it will still work, at least if you don't use host
names and access via IP address. From reading the documentation, I get the
impression the Engine name property is only used for errors and logging id.

Mike

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 9:06 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


I've managed to get TomCat 4.0.1 and Apache 1.3 working with mod_WebApp/WARP
on Solaris 8. I didn't run into that many difficulties either! Does strike
me as odd that TC will work with and without a host. There'll no doubt be a
logical explanation :)

I've mentioned this before but...
The server.xml has this line:




But there's no "localhost" to replace! In the "server-noexamples.xml.config"
file the line becomes:




Which makes more sense!! When trying to interpret the documentation, this is
partly what swung it in favour of specifying  and defaultHost.

>From the list, it seems that many people think that the  name and
 name need to match, but they don't. In  "name" is purely
logical, but in  it defines the name of the host - another area of
confusion! I.e. two attributes with the same name (i.e. name) but different
meanings.

Try http://localhost/examples/ i.e. put a slash on the end.

Thanks,

John


-Original Message-
From: Frank [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2002 13:47
To: Tomcat Users List
Subject: Re: tomcat 4 + apache 1.3 + WarpConnection


I'm also stuck in this information warp.  I've tried the documented
solutions as well as those proposed here and and I still can't access
examples e.g. with http://host/examples.  still works with :8080 of course.



[EMAIL PROTECTED] wrote:

> It would be "nice" if the developers provided a complete TomCat-Apache
> Service example - one without the misleading comments :)
> I read the documentation (more than most) and ended up more confused than
> when I started! For the  element, the following is written as an
> explanation of the "defaultHost" attribute:
>
> - The default host name, which identifies the Host that will process
> requests directed to host
> - names on this server, but which are not configured in this configuration
> file. This name MUST
> - match the name attributes of one of the Host elements nested immediately
> inside.
>
> The documentation further clarifies (!) things:
>
> - You can nest one or more Host elements inside this Engine element, each
> representing a
> - different virtual host associated with this server. At least one Host is
> required, and one of
> - the nested Hosts MUST have a name that matches the name specified for
the
> defaultHost
> - attribute, listed above.
>
> It's as clear as mud, which just goes to show that developers should never
> write documentation :)
> I ended up with these questions:
>
> In what circumstances would a request have a host specified that didn't
> match a host in server.xml - wouldn't it be cleaner/wiser to have a 
> for every "virtual" host?
> Is defaultHost necessary? I.e if every "virtual" host has a 
>
> The two paragraphs imply that a  and matching defaultHost are
> necessary but this isn't clear and it's open to (mis)interpretation. It's
> also implied that specifying one necessitates the specification of the
other
> - i.e. if you have a  you must have a defaultHost and vice versa.
>
> In the end I took the cautious approach and specified a  and
matching
> defaultHost!
>
> Thanks,
>
> John
>
>
> -Original Message-
> From: Mike Millson [mailto:[EMAIL PROTECTED]]
> Sent: 13 February 2002 12:50
> To: Tomcat Users List
> Subject: RE: tomcat 4 + apache 1.3 + WarpConnection
>
>
> I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip
> address, I don't think you need any hosts. This is contrary to the Tomcat
> documentation, which says you have to have at least 1 host, but all the
host
> element is doing is relating an ip address to a name. So it makes sense to
> me if you don't use domain names (say on a test server), you don't need
> hosts. However, I'd like to hear other people's thoughts on this and learn
> more.
>
> Mike
>
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 6:25 AM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4 + apache 1.3 + WarpConnection
>
>
> AFAIK, in TomCat 4, every engine needs at least one host. Set engine's
> "defau

RE: Tomcat 4.0.2 with mod_jk or mod_webapp with EAPI under Linux

2002-02-13 Thread Mike Millson

I think you can still run mod_webapp even though you get the "requires EAPI"
error from Apache. See the Sun Best Practices article that mentions this.

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

Mike

-Original Message-
From: Michael Donaghy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 2:49 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.2 with mod_jk or mod_webapp with EAPI under Linux


Is there a precompiled version of either mod_jk or mod_webapp for Red
Hat Linux 7.1 that is compiled with EAPI?  Over the past 2 hours I've
attempted to compile both & been unsuccessful.  I've seen non-EAPI
binaries available, but I really need EAPI binaries since Apache has
mod_ssl & I'd like to keep apache & its modules RPM based.
Apache=1.3.22

Thanks for any help.

Michael

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread Mike Millson

I don't have a defaultHost attribute in my Engine tag, and Tomcat 4.0.1
seems to be working fine. I'm finding the same challenges w/ the
documentation that you are - stumbling along. I'm guessing that what they
meant to say is the following:

Neither the Engine defaultHost property nor the Host container are required
to access Tomcat via an IP address. If you wish to access Tomcat via a host
name, you will have to specify one or more Host containers. If the Engine
specifies a defaultHost, there must be a Host container whose name property
matches the Engine's defaultHost property. If one or more Host containers
are specified, the Engine defaultHost property must be defined, and it must
match the name property of one of the Host containers.

But, I'm just guessing and would appreciate any further clarification on
this.

Mike

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:14 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


It would be "nice" if the developers provided a complete TomCat-Apache
Service example - one without the misleading comments :)
I read the documentation (more than most) and ended up more confused than
when I started! For the  element, the following is written as an
explanation of the "defaultHost" attribute:

- The default host name, which identifies the Host that will process
requests directed to host
- names on this server, but which are not configured in this configuration
file. This name MUST
- match the name attributes of one of the Host elements nested immediately
inside.

The documentation further clarifies (!) things:

- You can nest one or more Host elements inside this Engine element, each
representing a
- different virtual host associated with this server. At least one Host is
required, and one of
- the nested Hosts MUST have a name that matches the name specified for the
defaultHost
- attribute, listed above.

It's as clear as mud, which just goes to show that developers should never
write documentation :)
I ended up with these questions:

In what circumstances would a request have a host specified that didn't
match a host in server.xml - wouldn't it be cleaner/wiser to have a 
for every "virtual" host?
Is defaultHost necessary? I.e if every "virtual" host has a 

The two paragraphs imply that a  and matching defaultHost are
necessary but this isn't clear and it's open to (mis)interpretation. It's
also implied that specifying one necessitates the specification of the other
- i.e. if you have a  you must have a defaultHost and vice versa.

In the end I took the cautious approach and specified a  and matching
defaultHost!

Thanks,

John


-Original Message-
From: Mike Millson [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2002 12:50
To: Tomcat Users List
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip
address, I don't think you need any hosts. This is contrary to the Tomcat
documentation, which says you have to have at least 1 host, but all the host
element is doing is relating an ip address to a name. So it makes sense to
me if you don't use domain names (say on a test server), you don't need
hosts. However, I'd like to hear other people's thoughts on this and learn
more.

Mike

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 6:25 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


AFAIK, in TomCat 4, every engine needs at least one host. Set engine's
"defaultHost" attribute to match the "name" attribute of the host element. I
assume that earlier versions of TomCat will follow the same logic. Have a
read of the TomCat documentation on the engine and host elements.

John


-Original Message-
From: Domenico Piol [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2002 08:29
To: tomcat-user
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


well, on my opinion i would need that when i would use virtual hosts, but
i don't is my opinion wrong ?

> Your server.xml needs a host - something like this:
>
> Server port="8005" shutdown="SHUTDOWN" debug="0">
>
>  
>
>className="org.apache.catalina.connector.warp.WarpConnector"
> port="8008" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="10" debug="0"/>
>
> name="Apache" defaultHost="myserver.domain.com" debug="0"
> appBase="webapps">
>
>  
>   unpackWARs="true">
>
>
> directory="logs&quo

RE: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread Mike Millson

I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip
address, I don't think you need any hosts. This is contrary to the Tomcat
documentation, which says you have to have at least 1 host, but all the host
element is doing is relating an ip address to a name. So it makes sense to
me if you don't use domain names (say on a test server), you don't need
hosts. However, I'd like to hear other people's thoughts on this and learn
more.

Mike

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 6:25 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


AFAIK, in TomCat 4, every engine needs at least one host. Set engine's
"defaultHost" attribute to match the "name" attribute of the host element. I
assume that earlier versions of TomCat will follow the same logic. Have a
read of the TomCat documentation on the engine and host elements.

John


-Original Message-
From: Domenico Piol [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2002 08:29
To: tomcat-user
Subject: RE: tomcat 4 + apache 1.3 + WarpConnection


well, on my opinion i would need that when i would use virtual hosts, but
i don't is my opinion wrong ?

> Your server.xml needs a host - something like this:
>
> Server port="8005" shutdown="SHUTDOWN" debug="0">
>
>  
>
>className="org.apache.catalina.connector.warp.WarpConnector"
> port="8008" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="10" debug="0"/>
>
> name="Apache" defaultHost="myserver.domain.com" debug="0"
> appBase="webapps">
>
>  
>   unpackWARs="true">
>
>
> directory="logs"  prefix="localhost_access_log."
> suffix=".txt"
> pattern="common"/>
>
> directory="logs"  prefix="apache_log." suffix=".txt"
>   timestamp="true"/>
>
>
> debug="0" privileged="true"/>
>
>  
>
>  
>  
>
>
>
>  
>
> 
>
> Don't know if it'll help!
>
> John
>
>
> -Original Message-
> From: Domenico Piol [mailto:[EMAIL PROTECTED]]
> Sent: 11 February 2002 09:14
> To: tomcat-user
> Subject: tomcat 4 + apache 1.3 + WarpConnection
>
>
> hi
> i'm trying to get my tomcat installation work together with apache
> 1.3... without success. tomcat works fine as standalone, but with
> WarpConnection i get an error:
>
> *** error
> 
> 2002-02-11 08:51:53 [org.apache.catalina.connector.warp.WarpConnection]
> Exception on socket
> java.io.IOException: Premature packet header end
>at
>org.apache.catalina.connector.warp.WarpConnection.recv(Unknown
> Source)
>at org.apache.catalina.connector.warp.WarpRequestHandler.handle
> (Unknown Source)
>at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
> Source)
>at java.lang.Thread.run(Thread.java:484)
>
> 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConnector]
> Connection from localhost/127.0.0.1:2394 to localhost/127.0.0.1:8008
> 2002-02-11 08:51:54
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (2)
> 2002-02-11 08:51:54
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (0)
>
***
>
> i don't use a virtual host in my apache config, is that the problem ?
> my configs look as follwows:
>
> *** server.xml
> *** 
>  
>
>className="org.apache.catalina.connector.warp.WarpConnector"
> port="8008" minProcessors="5" maxProcessors="75"
> enableLookups="false" appBase="webapps"
> acceptCount="10" debug="0"/>
>
>
>prefix="apache_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>  
>
>
>
>  
>
**
>
> *** httpd.conf
> *** ...
> ServerName arakis.local
> ...
> LoadModule webapp_module  /usr/lib/apache/mod_webapp.so
> AddModule mod_webapp.c
> ...
> DocumentRoot "/usr/local/httpd/htdocs"
>
> ### NOT in a virtual host 
> WebAppConnectionconnwarplocalhost:8008
> WebAppDeploywebdav  conn/webdav
> WebAppDeployexamplesconn/examples
>
> WebAppInfo  /webapp-info
> ...
>
**
>
> tomcat runs as user wwwrun, as well as apache.
>
> i'm thankfull for any hint...
>
> domenico
> ---
> domenico piol  infometis ag
> eidg. dipl.zuerich
> wirtschaftsinformatikerswitzerland
>
> email: [EMAIL PROTECTED]
> www:   http://www.infometis.ch/u

logrotate log files

2002-02-12 Thread Mike Millson

What is the reasoning behind having Tomcat generate daily log files? How can
I set up logrotate if the name of the log file changes every day. Can
someone who has set up logrotate to rotate their files share how they did
this.

Thank you,
Mike


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: IMPOSSIBLE? Tomcat w/ Apache Mixed ????

2002-02-12 Thread Mike Millson

As far as I can tell, you cannot do what you're trying to do. Not yet
anyway. I did just as you did, specified a matching pattern in the
WebAppDeploy directive, and Apache would serve the static content, but when
it came time to pass off a request to Tomcat, I got the doc not found error.
Evidently, it's an all or nothing proposition at this point on a directory
by directory basis. You can either specify a directory and have Apache serve
the content or specify a directory and have Tomcat serve the static +
dynamic content.

If you set up an Access Log Valve and serve a static page from Tomcat, you
will set a request in the Tomcat log and an identical request in the Apache
log 1 second later. What apparently is happening is the request is processed
twice.

Here is a link from an earlier post that this is a known issue w/ Tomcat
4.0.2 (and 4.0.1 for that matter).
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/RELEASE-N
OTES

Mike
-Original Message-
From: Yoav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 12:30 PM
To: Tomcat Users List
Subject: IMPOSSIBLE? Tomcat w/ Apache Mixed 


Hi,

I have a SINGLE documentRoot that has a tree with both JSP and HTML docs all
around.
In a previous Tomcat 3.2.3 installation, using JkMount, I was able to have
Apache serve all the html, images and static content - and servlets/Jsp's
were compiled and served by Tomcat.

Example:
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

NOW, Trying to upgrade to Tomcat 4.0.2 using warp connector the same way -
and it just won't work!!!

WebAppConnection conn  warp  127.0.0.1:8008
WebAppDeploy ROOT conn /*.jsp

Anyone ??

Oh, and don't tell me (RTFM) "go read the docs" - I already know them by
heart !!

Thanks!!


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Processes

2002-02-12 Thread Mike Millson

If rebooted my Linux (2.4.9-21) RH7.1 box and did a pstree -p. I see this
for java:
|-java---java---31*[java]

Can anyone explain what causes the grandparent java process, then what
causes the parent java process, then what causes the 31 java children
processes? For example, are these 31 instances of Tomcat ready to accept
requests? Or is it 31 instance of processes need to make Tomcat run?

If I do the same for Apached, I see that there is one httpd parent and 8
children. The 8 children, I believe, tie back to my StartServers=8 directive
in my http.conf file. The way I understand it, I have 8 httpd processes
ready to accept requests.

How do the grandparent java process, parent java process, and 31 child java
processes relate to the server.xml file?

Also, how can I identify Tomcat error leaks by looking at these processes?

Thank you,
Mike


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.1 rpm install - test fails??

2002-02-10 Thread Mike Millson

I initially tried to install it using the rpms and got the same result as
you - it didn't work. I'm also using RH 7.1. I finally gave up and installed
a binary distro from the 4.0.1 release. It works fine - you just have to
write your own init.d script or just start and stop it using the .sh files.
If I recall correctly the rpm distro left out a lot of files, e.g. the
/TOMCAT_HOME/bin folder was empty and I think some other folders. I was
meaning to ask this list if anyone has gotten those rpms to work

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 10, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.1 rpm install - test fails??


I used the rpm install for Tomcat 4.0.1 onto RHLinux 7.1, and I can
start/stop
Tomcat using /etc/rc.d/init.d/tomcat start|stop|restart.  I don't receive
any errors doing this.

However, when I go to test the tomcat installation using my browser:
http://localhost:8080

I don't get the site, I get redirected to Netscape's page (where it
redirects
if it can't find a page).  I can get to http://localhost just fine, so
Tomcat
isn't picking up port 8080.

I have tried to find tomcat error logs, but haven't found them (where do
they get logged?)

What step have I left out on the install (I just installed the rpm: rpm -Uvh
...)?

I have looked at the tomcat4.conf file located in /etc/tomcat4/conf dir --
here's what that looks like:

# tomcat /etc/rc.d script example configuration file
# Use with version 1.07 of the scripts or later

# Where your java installation lives
#JAVA_HOME=/usr/java/jdk1.3.1
JAVA_HOME="/opt/IBMJava2-13"

# You can pass some parameters to java
# here if you wish to
#JAVACMD="$JAVA_HOME/bin/java -Xminf0.1 -Xmaxf0.3"

# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
CATALINA_HOME="/var/tomcat4"
JASPER_HOME="/var/tomcat4"

# What user should run tomcat
TOMCAT_USER="tomcat4"

# You can change your tomcat locale here
#LANG=en_US

# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)

Any suggestions or help would be appreciated.

Kim




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: java.lang.StackOverflowError

2002-02-08 Thread Mike Millson

It supposedly isn't an issue w/ the IBM jdk, so installing jdk1.4 might not
solve your particular problem.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:50 PM
To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: java.lang.StackOverflowError


Thanks for the reply mike and randy.

Iam using IBMJava2-122 .Is this the problem.Because tomcat4.0.1 just hangs
.I know its for sure it is not an application issue as this happens with
"examples" web application too.so if i install jdk1.4 if it solve this
problem i will do that.tomcat run only for brief period and hangs(does not
respond).
Also iam using modweb_app and warp connector for communication between
apache and tomcat.is this setup stable?

I just want tomcat4.0.1 to run ,becuase we are using it in production system
for every 20-30 minutes manually we are shutting down and restarting the
tomcat.

some times even shutdown.sh is not working properly,then explicitly i have
to kill the process(kill pid).

-
- Original Message -----
From: "Mike Millson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 8:15 AM
Subject: RE: java.lang.StackOverflowError


> Are you using jdk 1.3? If so, this is a known issue (see tomcat
> documentation), and you should start using j2sdk1.4. It's beta, but I
> haven't had any issues w/it, and it solved this problem for me. You can
keep
> 1.3 on your machine. Just install 1.4 and update your JAVA_HOME
environment
> variable to point to 1.4.
>
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 7:18 AM
> To: 'Tomcat Users List'
> Subject: RE: java.lang.StackOverflowError
>
>
>
> StackOverflowError Java Doc states:
> "Thrown when a stack overflow occurs because an application recurses too
> deeply"
>
> So I would suggest that you look at your application at the point of
> when the error is thrown.  If you don't see anything, post the stack trace
> with the exception and someone here should be able to point out your
> problem.
>
> Randy
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 07, 2002 11:56 PM
> > To: Tomcat Users List
> > Subject: java.lang.StackOverflowError
> >
> >
> > Hi,
> >   I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam
> > using HTML,JSP and Servlets for application developement.when
> > i start the tomcat and apache it is working fine,but after
> > some time it hangs and does not respond.It is a tomcat issue
> > as i checked out apache is rendering pages which does not
> > require tomcat.
> >  when i checked the" catalina.out"  what i found this line
> > "java.lang.StackOverflowError".is there any way to get rid of
> > this problem.Is there any configuration parameters to be set?
> > Any help is greatly appreciated.
> >
> > Thanks
> > Ahmed
> > -
> >
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: java.lang.StackOverflowError

2002-02-08 Thread Mike Millson

Are you using jdk 1.3? If so, this is a known issue (see tomcat
documentation), and you should start using j2sdk1.4. It's beta, but I
haven't had any issues w/it, and it solved this problem for me. You can keep
1.3 on your machine. Just install 1.4 and update your JAVA_HOME environment
variable to point to 1.4.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 7:18 AM
To: 'Tomcat Users List'
Subject: RE: java.lang.StackOverflowError



StackOverflowError Java Doc states:
"Thrown when a stack overflow occurs because an application recurses too
deeply"

So I would suggest that you look at your application at the point of
when the error is thrown.  If you don't see anything, post the stack trace
with the exception and someone here should be able to point out your
problem.

Randy



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 11:56 PM
> To: Tomcat Users List
> Subject: java.lang.StackOverflowError
>
>
> Hi,
>   I have tomacat4.0.1 and apache 1.3.0 running on RH7.1.Iam
> using HTML,JSP and Servlets for application developement.when
> i start the tomcat and apache it is working fine,but after
> some time it hangs and does not respond.It is a tomcat issue
> as i checked out apache is rendering pages which does not
> require tomcat.
>  when i checked the" catalina.out"  what i found this line
> "java.lang.StackOverflowError".is there any way to get rid of
> this problem.Is there any configuration parameters to be set?
> Any help is greatly appreciated.
>
> Thanks
> Ahmed
> -
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: WarpConnector: how to enable static content below dynamic content?

2002-02-06 Thread Mike Millson


In my experience, this isn't possible. If someone knows how to do it, I sure
would like to know also.

Mike

-Original Message-
From: Michel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 11:10 AM
To: Tomcat Users List
Subject: WarpConnector: how to enable static content below dynamic
content?


Howdy!

I'm Using Tomcat 4 with Apache 1.3 using the WarpConnector on RH7.2

Because the index page of my website is a JSP, I mapped the root of my
website to a tomcat webapp using:
WebAppDeploy mywebsite warpConnection /

Now I can't use any of the static pages from Apache, like /usage, /doc, etc,
even AFTER I define new aliases to explicitly define /usage etc. to their
locations.

Apparently everything below / is passed to tomcat regardlessly.

Does anyone have a better solution to allow the root index.jsp but still
allows for  static content from / and below?

TIA

gr. Michel


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache + Tomcat ... some questions

2002-02-04 Thread Mike Millson

Someone please correct me if I'm wrong, but as far as I can tell using the
Warp connector, you cannot do what you're talking about below. What I see
happening is that you can specify directories that you want Tomcat to serve
and directories you want Apache to serve. You cannot put html pages and jsp
pages in the same directory and have Tomcat serve the jsp and Apache serve
the html.

-Original Message-
From: Adrian Caneva [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 11:25 AM
To: Tomcat Users List
Subject: Apache + Tomcat ... some questions


Hi,
I have some questions related to Tomcat+Apache:

[Platform : Tomcat 4.0.1+mod_webapp+Apache 1.3.22]

* Apache handling static contents
How can I know if static contents are being served by Apache or Tomcat in my
configuration ?
I installed my web application under:

%TOMCAT_HOME%/webapps/my_application

at httpd.conf:


DocumentRoot %TOMCAT_HOME%/webapps/my_application
ServerName my_virtual_host
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy my_application warpConnection /


What I believe is that the WebAppDeploy line is telling Apache that Tomcat
will handle ALL contents under http://my_virtual_host/ ... or not ? So
http://my_virtual_host/my_page.html will be served by Tomcat and not Apache
as I wanted.
The site is starting with index.jsp so Tomcat should take control starting
from the root, buth there are a lot of mixed .html and images.
Any ideas on how to configure the site just to take the best from Apache and
Tomcat ?


* Which are the differences between Warp and AJP connectors ?

thanks very much in advance,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




startup script

2002-02-01 Thread Mike Millson

I have installed final release 4.0.1 binary on my RH7.1 Linux ver. 2.4.9-21
system and am splicing together a startup script from some examples I have
found. A couple of questions:

My script references a file called  /var/run/tomcat.pid. I don't have this
file on my system. Do I need to create it? It looks like it's just a file w/
a # in it, the process id I gather? What process id should I give tomcat?

Also, the script references /var/lock/subsys/tomcat4, another file I don't
have. Do I need to create it? If so, what goes inside this file?

Thank you,
Mike



--
To unsubscribe:   
For additional commands: 
Troubles with the list: