Re: URGENT: javax.net.ssl.SSLException: error while writing to socket

2002-11-21 Thread Michael Schulz

If this is a production site, you probably shouldn't be using Tomcat 
Version 4.19 on it - isn't this a *very* recent version of Tomcat?  Per 
the jakarta.apache.org website, you should fully test your apps and run 
production apps in stable versions of Tomcat.

-Mike Schulz


Sujith Mathew wrote:

Hello,
I am using tomcat 4.19 +win2000 .We have an ssl site in tomcat which is NOT
self signed. It works fine for some time, but after sometime the follwoing
error occurs.

Please help us because it is urgent.

Regards
Sujith Mathew

 




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




Re: Apache mod_jk's session not sticky

2002-11-12 Thread Michael Schulz
I had a problem like this, and determined that the jvmRoute value in my 
server.xml did not match the names of the tomcat workers in the 
workers.properties file.  If your workers.properties file defines 
workers, t1 and t2, and "worker.loadbalancer.balanced_workers=t1,t2", 
then your server.xml file must use t1 and t2 as the value for jvmRoute= 
in the tomcat configuration.

You may want to test load balancing using a simple .jsp that just prints 
the value of the sessionid on each of the tomcat boxes so you can 
determine if the problem is in basic sticky sessions or in your servlet 
code that switches sessions on the user after authentication.

-Mike Schulz


William Lee wrote:

I'm using Apache 2.0.43, mod_ssl, mod_jk 1.2, and Tomcat 4.1.14 (the 
test release).  I've set up Tomcat so it runs behind the apache.  My 
test of having 1 worker behind a load balancer works perfectly without 
any problem.  However, once I added another machine, it seems like my 
user's session is jumping back and forth between the two machines. 
This, of course creates a big problem.

My servlet involves a form-based login page, in which the login code 
would remove the old session and attach a new one once the user has 
authenticated against the authority.  Would this create a problem?  
I'm wondering how mod_jk handles the stick sessions.  It does seem to 
be pretty random when it jumps back and forth between the two machines 
I have here.

I've turned on the debug log in mod_jk but it doesn't tell me all that 
much.  Is there any other mechanism available for me to debug this?




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




RE: Where to put Java files/classes

2002-10-29 Thread Michael Schulz

Classes that you develop for use with your .jsp pages are normally placed in
the $CATALINA_HOME/webapps/yourwebapp/WEB-INF/classes folder.  This is the
standard place for classes and this requirement is documented in the Java
Servlet Specification Version 2.3, section 9.5, which is available for
download from java.sun.com.  The WEB-INF/classes folder is automatically
added to your webapp classpath by Tomcat when your webapp is deployed.

-Mike Schulz


-Original Message-
From: Andreas Probst [mailto:andpro77@;gmx.net]
Sent: Sunday, October 27, 2002 3:01 AM
To: Tomcat Users List
Subject: Re: Where to put Java files/classes


Hi Ryan,

you shouldn't have your source files mixed up with Tomcat. You
should rather develop somewhere else and use a build tool like
Jakarta Ant to deploy your app to Tomcat.

Craig's App Developer Guide at
tomcathome/webapps/tomcat-docs/appdev/index.html
gives a very good introduction into the development process.

Good luck.

Andreas


On 26 Oct 2002 at 15:17, Ryan Heusinkveld wrote:

> Hi all,
>
> I am trying to configure Tomcat to allow me to import and use classes that
I
> have created within my jsp pages.  I imported them within my page, but I
get
> the error that the classes cannot be found.  I created a directory under
my
> $CATALINA_HOME called 'src', and packaged my classes accordingly under
> there.  What do I need to do to tell Tomcat that the classes are under
> there?  Should I be placing them somewhere else?
> Any help is appreciated.
>
> -Ryan
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Excluding directories from mod_jk mount

2002-10-16 Thread Michael Schulz

If I understand the mod_jk logic correctly then the way it works is that
when Apache gets a request, it attempts to match it to an existing JkMount
directive.  Failing that, Apache attempts to serve the request itself.

So, your directive "JkMount /* balancer" is going to match all requests, so
Apache will never serve your static content.  AFAIK, there is no way to tell
Apache "serve only this resource and send everything else to apache".  You
need to be more specific in your JkMount directives.  Given that Tomcat
serves webapps, you should be able to build JkMount directives for each of
your webapps, such as

JkMount /webapp1/*  balancer
JkMount /webapp2/*  balancer

etc.

-Mike


-Original Message-
From: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 8:36 PM
To: Tomcat Users List
Subject: RE: Excluding directories from mod_jk mount


I'm having difficulty finding a thread with that specific title.  I have
searched the archives, and found many threads relating to static
content, mod_jk, and apache, but none that answer my question.

I'm trying to set up Apache to do two things (and _only_ two things):
load balance, and serve one particular directory of static content
(/static).  I want _all_ other requests sent to Tomcat.

Is this possible?

Alias /static /my/path/to/static
JkMount /* balancer

...doesn't seem to work :-(

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]



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




RE: tomcat 4.1.12 and xml spy

2002-10-15 Thread Michael Schulz


Perhaps you should consider that xml spy might have done something to your
jvm configuration, like changing the default jvm version, or something like
that.

Try uninstalling xml spy and see if things start working again.

-Mike


-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 9:53 AM
To: [EMAIL PROTECTED]
Subject: tomcat 4.1.12 and xml spy


Hi
I have been working with tomcat for a couple of years, but on friday i
downloaded xml spy 5 enterprise edition and now my tomcat server will not
work, it just falls over with out writing anything to catalina.out.  All my
older version will not work  and even the one inside netbeans doesnt work.

I have tried downloading it time and again without success.

Has anybody else heard of this or had the same problems

Glen


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: tomcat 4.1.12 with apache

2002-10-13 Thread Michael Schulz


mod_jk is available for use with Tomcat 4.x.  In fact, many subscribers to
this list are using that very configuration.

There are many HOW-TO's listed about how to integrate Apache and Tomcat
3.x/4.x using mod_jk.  A quick browse through the archives of this list
archive will provide proof of this.

mod_webapp is no longer current and should not be used.  Again, reading the
list archive will prove this as well.

-Mike

-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 13, 2002 5:32 PM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 with apache


the best for tomcat 4.1.12 is the mod_webapps
- Original Message -
From: "Sven Köhler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 13, 2002 11:00 PM
Subject: tomcat 4.1.12 with apache


> hi,
>
> i want my apache to use tomcat to serve JSP-pages and Servlets.
> I googled and found mod_jserv, mod_jk and mod_webapp.
>
> I couldn't find out, which one to use with tomcat 4.0 because:
>mod_jserv is bad compared to mod_jk
>mod_jk is only bundled with tomcat 3.0
>
> What does that mean?
> Am i supposed to use mod_jk?
>
> mod_webapp was mentioned on some pages, but i didn't find any source or
> binary releases.
>
> Where's the page in the tomcat 4.x docs, that mentions hot to use tomcat
> with apache?
>
>
>
>
> --
> 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 Users List - read receipts

2002-10-11 Thread Michael Schulz

Paul, et. al,

Please disable the "read receipt requested" option in your email application
when you are posting to the Tomcat Users List.  You don't really want a read
receipt from every member of the Tomcat Users List, do you?

Thanks,
Mike


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




manager webapp - reload request

2002-10-10 Thread Michael Schulz

If I use the Tomcat 4.x manager webapp to issue a reload request:

http://localhost:8080/manager/reload?path=/mywebapp

what happens to the servlet context for any servlets running in the
webapp -- is it reinitialized?

Also, what happens to session objects? What if the session data includes
instances of objects which are reloaded in the reload request for mywebapp?

Mike Schulz



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




RE: Reloading w/ Manager on cluster?

2002-10-10 Thread Michael Schulz

I am facing a similar issue in terms of updating our tomcat servers in the
cluster.

I was thinking about doing a similar thing...using the http connector (which
is behind a firewall and not accessible to the outside world) on each tomcat
server to communicate with the tomcat manager app
(http://tomcat1:8080/manager/reload?path=/mywebapp).  I would think it would
be easy enough to write a script that uses Lynx to invoke this same URL on
all four servers.  I don't think it is a problem to be restarting tomcat
frequently, at least I have not seen a problem and we've done this quite a
bit in our QA environment.

Ben, may I see the script that you are currently using to restart tomcat on
the multiple servers?  Also, have you done any load testing? If so, what
sort of load is your system able to support?

-Mike Schulz


-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:32 PM
To: [EMAIL PROTECTED]
Subject: Reloading w/ Manager on cluster?


I have a setup with 2 APache servers (1.3.27 on Redhat 7.3) talking to 4
tomcats clustered across two SOlaris 8 boxes running Tomcat 4.0.5. We
have a load balancer across the web servers and, of course, mod_jk 1.2.0
doing the load balancing across the Tomcats.

We have a QA environment where I want the abilty to reload the apps
through the manager application. We cannot do it through the Apache load
balancer because you cannot quarantee what Tomcat you are going to talk
to at any given request.

I thought of having Tomcat use its embedded web server on 8080 and 8081
on each Tomcat server and have the developers call those for reloading,
but they would have to do that 4 times for every reload. Plus, if we
scale to a bigger cluster, the problem becomes worse.

I do have a script that stops and restarts all of the tomcats from a
central location, but is there any danger to be restarting Tomcat
frequently? Has anyone worked around a cluster for the management app?

Thanks,

Ben

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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: LoadBalancing with session problem

2002-10-10 Thread Michael Schulz


Do I understand this correctly: you have two Apache servers and four tomcat
servers?

Please post the contents of your apache workers.properties file and your
tomcat server.xml file.

You have to make sure that the worker name in the jvmRoute parameter of your
server.xml matches exactly the name of the worker as defined in
workers.properties (worker.list).

-Mike


-Original Message-
From: Edmond Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 9:35 PM
To: [EMAIL PROTECTED]
Subject: LoadBalancing with session problem



Hi all,

I'm new to loadbalancing with apache and tomcat. I setting up the 2 apache
and 4 tomcat for loadbalancing environment. I experience that during some
heavy workload. The request will be forward to the wrong tomcat instance
even the worker name are appended to the sessionId (eg.greuiog.workerName)

my config is
Apache 1.3.26 Win32 on win2000
Tomcat 3.2.2 Win32
Mod_JK
mod_ssl 2.8.10
open_ssl 0.9.6d

thx for advance

Edmond


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




RE: Too Many Sessions!

2002-10-09 Thread Michael Schulz

A few questions:

1) does the session listener document when sessions are destroyed?

2) are there other servlets in your web app that might be causing the
activity?

3) what does your access_log indicate in the way of inbound requests?

-Mike


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:29 PM
To: [EMAIL PROTECTED]
Subject: Too Many Sessions!


I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been watching my logs and
I'm noticing a lot of sessions being created for no apparent reason when
there is no user activity on the system and no activity (as far as I can
tell) in my servlet. Here's a sample from the logs...

2002-10-09 11:05:15 SessionListener:
sessionCreated('3A797C529EA64DFE2835FC163C808C74')
2002-10-09 11:06:15 SessionListener:
sessionCreated('62DB4B6BBFD87BD901CD67925BB7BA95')
2002-10-09 11:07:15 SessionListener:
sessionCreated('35769A4EDF71CA68BAA0B14F6B64348B')
2002-10-09 11:08:15 SessionListener:
sessionCreated('D6A1C6EC234A30520747F2F5B09DD202')
2002-10-09 11:09:15 SessionListener:
sessionCreated('8B0C9B610F981455C3FE6AA2F91E21E7')
2002-10-09 11:10:15 SessionListener:
sessionCreated('A1E38AF2FD1205E17D50FF3076AF5321')
2002-10-09 11:11:16 SessionListener:
sessionCreated('86F7A09B20EFE4543C616B06CEC466A5')
2002-10-09 11:12:16 SessionListener:
sessionCreated('D412A5666498AC7AB6BF399528ECEAE3')
2002-10-09 11:13:16 SessionListener:
sessionCreated('C0BE7ED4A39351037FFD3195F2FF')
2002-10-09 11:14:16 SessionListener:
sessionCreated('3A0636F5D4D9792046D34A93B73C0ACC')
2002-10-09 11:15:16 SessionListener:
sessionCreated('E88FF2298D7B759935645E9C1C42DC12')
2002-10-09 11:16:16 SessionListener:
sessionCreated('F7AC12D14074EA64011E68B6F172D11E')
2002-10-09 11:17:16 SessionListener:
sessionCreated('E92ECABF368D493D153C47C226FF866F')
2002-10-09 11:18:16 SessionListener:
sessionCreated('E9F98E0A3EA854651E1B0D4CCF733FC2')
2002-10-09 11:19:16 SessionListener:
sessionCreated('F801FDE7AEEBEE752557FB3643508588')
2002-10-09 11:20:16 SessionListener:
sessionCreated('97C59E7E75185C5827FA884FA11F61FC')
2002-10-09 11:21:16 SessionListener:
sessionCreated('EF50BAF04FE94D93A24F5CD4520BC613')

So you can see that about once per minute a new session is being created. I
can't see (from the listeners) that any of these sessions are ever
destroyed. Can anyone give me an idea of why this is happening and if it's
part of a normal Tomcat process, or might be the result of something stupid
I might be doing in my servlet.

I'd be happy to provide more info.

Thanks

Cindy

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: setting the verbosity level of stderr/stdout?

2002-10-09 Thread Michael Schulz


Look in the Tomcat Manual regarding the server.xml file.  The server.xml
file is located in $CATALINA_HOME/conf folder and most entries in the xml
file, such as server, engine, etc. allow for a debug="n" attribute.  The
higher the value of n, the more verbose the output.  A value of 0 indicates
no logging.

Again, this information is fully documented in the Tomcat docs.

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

-Mike


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 9:47 AM
To: [EMAIL PROTECTED]
Subject: setting the verbosity level of stderr/stdout?


Hi,

I'm running Tomcat 4.0.6 standalone as service on a nt4 box. Is there a way
of explicitly setting the verbosity level for the stderr and stdout logs?
Any help is greatly appreciated.

regards,
Christine

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Apache with Tomcat

2002-10-07 Thread Michael Schulz


You could also search the email list archive where this topic is discussed
ad nauseum on an almost daily basis.  (:o)  It is very possible, and very
well documented.  Search Google for "Apache Tomcat HOWTO".

-Mike


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 2:14 PM
To: [EMAIL PROTECTED]
Subject: Apache with Tomcat


Can I integrate Apahce and  Tomcat if Apache is running in different
machine than Tomcat?
Is this it possible, How can I do that?

Regards.
Alejandro



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Chicken and the egg

2002-10-05 Thread Michael Schulz

Tomcat 4.1.x does support mod_jk as well as mod_jk2.  You just have to
enable the correct connector in your server.xml file.

In fact, I would claim that if you are currently using Tomcat 4.0.4 in
production, I would not upgrade to 4.1.x (yet) -- I would use 4.0.5 instead.
There have been enough people with issues regarding Tomcat 4.1.x that I
would wait on that unless there is something in there that you absolutely
need.

-Mike Schulz


-Original Message-
From: Michael Riess [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 05, 2002 11:52 AM
To: [EMAIL PROTECTED]
Subject: Chicken and the egg


Hi there,

Situation: I built a working configuration of Apache 2.0.35, Tomcat 4.0.4
and mod_jk, now I want to update my system.

I downloaded Apache 2.0.43, downloaded mod_jk2 binary ... just for 2.0.42,
so I downloaded the source ... libtool doesn't know -lapr ... tried to
default to mod_jk ... Tomcat 4.1.12 seems to support jk2 ONLY ... so now I'm
stuck.

Does anybody know a HOWTO that covers the two basic steps:
1. Integrate mod_jk2 in Apache 2.0
2. Get Tomcat to use jk2 (apparently this is the easier job ;-))


Sorry, the procedure is VERY complicated for users who don't do this
everyday. Actually, it is complicated because no documentation exists AND
the binary builds of Apache/jk/jk2 are NEVER compatible.



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: OutOfMemoryError after 88MB on Win2K / Tomcat 4.0.4

2002-10-03 Thread Michael Schulz

Have you changed the default JVM options for Tomcat?

Here are the default JVM options:

-Xmsn
Specify the initial size, in bytes, of the memory allocation pool. This
value must be a multiple of 1024 greater than 1MB. Append the letter k or K
to indicate kilobytes, or m or M to indicate megabytes. The default value is
2MB. Examples:
   -Xms6291456
   -Xms6144k
   -Xms6m

-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This
value must a multiple of 1024 greater than 2MB. Append the letter k or K to
indicate kilobytes, or m or M to indicate megabytes. The default value is
64MB. Examples:
   -Xmx83886080
   -Xmx81920k
   -Xmx80m


There are other JVM options available.  They are documented here:

http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html

For tomcat 4.x on linux, I made my changes in the setclasspath.sh file (I'm
sure others have an opinion on this, but it works for me) by adding a
statement at the top of the file:
JAVA_OPTS="-verbose:gc -Xms64m -Xmx128m"

(The -verbose:gc prints a message to catalina.out whenever a gc occurs).

hth,
Mike Schulz


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: OutOfMemoryError after 88MB on Win2K / Tomcat 4.0.4


We are running a heavily XML-based application on Tomcat 4.0.4 on a dual
P4 1.4 GHz box with 4GB of RAM.  With 9 users hitting the application
continuously, we experience OutOfMemoryErrors after tomcat.exe gets up to
around 88MB of usage.

Has anyone else experienced strange happenings with Tomcat on Win2K JDK
1.3.1 under load?  We're wondering if the JVM is doing this, if there's
something in Tomcat that is causing the memory to continuously creep up
and never go down significantly, or if we're just really overlooking
something in our application framework that is causing objects to not go
out of scope.  We haven't experienced this problem like this on other
platforms (Linux and OS/400) and IBM is testing this application and not
seeing the same kinds of results in WebSphere.

I'd appreciate any feedback from other XML users here...we have a go-live
date just a few days off and these problems are making my life very
difficult.  I'd like to at least be able to explain the situation, even if
it is our fault.  Not knowing is very frustrating.

Thanks for your help!

Jon Brisbin
Sr. App. Developer
EFCO Corporation
www.efcocorp.com
417.235.3193 x2687


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




RE: problems with paths using mod_jk 1.2

2002-10-03 Thread Michael Schulz

Dave,

I have to agree with John.  I spent a great deal of time helping on that
debacle as well...it is really sad to hear that you lost everything as a
result of a corrupt file system...(:<)

You have to know what you want to achieve before I would be willing to lend
more assistance.  How will you get there if you don't know where you are
going?

Apache...Tomcat...port 80...port 8080...meta-redirects...body onload
handlers...this is way more complex than it needs to be.

I think John's idea of running tomcat as root and changing the http
connector listen port from 8080 to 80 is the simplest idea.  Why you would
use apache just to redirect from port 80 to 8080 is beyond me.  Your
situation is exactly what Craig McClanahan was referring to recently when he
made a valid case for using tomcat in a standalone environment.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:43 PM
To: 'Tomcat Users List'
Subject: RE: problems with paths using mod_jk 1.2



Whoa, I think you've got some things mixed up.

If you want to use mod_jk, then requests NEVER go to 8080.  That's the whole
point of a connector.  It connects Apache to Tomcat so that requests are
served on port 80, not port 8080.

I hesitate to get involved, because we went around and around in circles the
last time you had a problem, so I will try and sum things up as clearly as I
can:

- if you are getting some error message from a Turbine servlet, then fix
that error...don't go grabbing at straws

- if you want your app served on port 8080, don't use Apache at all...use
Tomcat in stand-alone mode

- if you want your app served on port 80, and don't mind running Tomcat as
root (some people do mind this) then change server.xml to listen on port 80
and be done with it

- if you want your app served on port 80 with Apache, then setup Apache with
mod_jk.  There are NUMEROUS docs on this available, most of them fairly
good, including the docs from the Tomcat site.

- if you use Apache + mod_jk + Tomcat you DON'T need a refresh in index.html
to redirect to 8080...that just makes Apache and mod_jk completely
irrelevant

- you didn't post your server.xml in any case, but my guess is that whatever
you are trying to do (I'm not exactly sure why you are following the path
you are following) isn't working because your hostnames look pretty
goofy...you're telling Apache to listen on port 8080 (VirtualHost IP:8080)
but then you want to run Tomcat on port 8080, but then you want to serve
content on port 80 with a redirect to 8080 etc. etc. etc. etc.  Too crazy to
even begin sorting it out, to be honest.

My advice:  Either 1) get Apache working on port 80 serving a single static
page, then post back here and explain EXACTLY where you want to go from
there so that people can help, or 2) stop trying to use Apache, use Tomcat
in stand-alone mode and post back here and explain EXACTLY what the error
message that you get from your Turbine servlet is.

I don't mean to sound critical, but you've really got things munged up.  I
know you are desperate, I know your site is down, but you aren't making it
any better.  Slow down, keep it simple, and take things one step at a time.
Follow any of the Apache + mod_jk + Tomcat HOWTOs available...none of them
say anything about setting things up the way you've got them set up.  Don't
wing it, you'll only spin your wheels as a result.

John


> -Original Message-
> From: David Wynter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 03, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: problems with paths using mod_jk 1.2
>
>
> Hi,
>
> I had been redirecting from Apache 2.0.42 index page to Tomcat 4.1.12
> successfully. Then I had a corrupt filesystem and have had to
> do a complete
> installation. This time I am using Apache 1.3.23 with Tomcat
> 4.1.12 and for
> some reason my Turbine based servlet did not like th
> eredicrect and had an
> 'Infinite Redited exception'. So I am forced to get mod_jk working.
>
> What I am trying to achieve is have people who hit my
> 'www.roamware.com' URL
> be directed to 'www.roamware.com:8080/rwsite/servlet/template'
>
> I downloaded the binaries for mod_jk 1.2 and installed them
> successfully.
>
> I have my config files below. I followed an example given by
> a fellow Turbine
> user, but I get a connection refused error.
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: 400 Error Revisited

2002-10-01 Thread Michael Schulz

I didn't see the contents of your server.xml file in the original post, but
what I'm seeing is that apache is correctly sending the request to tomcat
(because of the JkMount), tomcat is analyzing the request and deciding that
it cannot process the request, and sending the 400 back to apache, and of
course, apache sends the 400 back to the browser.  I ask about your
$CATALINA_HOME/conf/server.xml file because that is where the web app
contexts are configured.  If /index.jsp is the correct URL, then I would ask
you to send this request to Tomcat on port 80 and let us know the result of
that request.  It should be a 400 error.  If that is the case, then do you
have a ROOT context configured in Tomcat?  If you did, there would be in
your server.xml similar to the following:



And if all that is configured correctly, then do you have an index.jsp file
in your $CATALINA_HOME/webapps/ROOT folder?

-Mike Schulz


-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 3:09 PM
To: Tomcat Users List
Subject: RE: 400 Error Revisited


On Tue, 2002-10-01 at 14:59, Michael Schulz wrote:
> What is the URL that causes the 400 error?

Dangit...forgot to include that:

hostname:8080/index.jsp

Apache is listening on 8080 as I test this new setup. I have Tomcat
listening on 80 now.

> Also, is this a typo in your message, or is this really in your
> conf/workers.properties file?:
>
>   # Send servlet for context /examples to worker named worker1
>   JkMount /examples/servlet/* oadbalancer
>
> If so, you are missing the "l" in loadbalancer...don't know if that is the
> real cause, but it is something to examine.

Good call! I missed that one. Fixed it and it made no difference

Ben Ricker

> -Original Message-
> From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 01, 2002 2:06 PM
> To: 'Tomcat Users List'
> Subject: 400 Error Revisited
>
>
> I took Henri Gomez's request and tried to download the binary mod_jk
> from the site he mentioned. I got the same undefined symbol. As I am
> using Redhat 7.1 for my Apache server, I decided to take another
> person's advice and built mod_jk from source following the JK
> documentation.
>
> I still get the 400 error thrown into the mod_jk logs. There is no log
> on the Tomcat's side.
>
> 
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.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]>




RE: 400 Error Revisited

2002-10-01 Thread Michael Schulz


What is the URL that causes the 400 error?

Also, is this a typo in your message, or is this really in your
conf/workers.properties file?:

# Send servlet for context /examples to worker named worker1
JkMount /examples/servlet/* oadbalancer

If so, you are missing the "l" in loadbalancer...don't know if that is the
real cause, but it is something to examine.


-Mike Schulz

-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 2:06 PM
To: 'Tomcat Users List'
Subject: 400 Error Revisited


I took Henri Gomez's request and tried to download the binary mod_jk
from the site he mentioned. I got the same undefined symbol. As I am
using Redhat 7.1 for my Apache server, I decided to take another
person's advice and built mod_jk from source following the JK
documentation.

I still get the 400 error thrown into the mod_jk logs. There is no log
on the Tomcat's side.




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




RE: Change JDK after Tomcat install

2002-09-30 Thread Michael Schulz

Kenny,

Look at the catalina.sh file -- there is a JAVA_HOME environment variable
you can change as required.

-Mike


-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:44 PM
To: Tomcat Users List
Subject: Change JDK after Tomcat install


Can you easily change the version of your JDK after Tomcat is installed?  I
need to have a virtual frame buffer, which JDK 1.4 supplies but I have JDK
1.3.1 installed.  Thanks,
Kenny


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: 4th day offline, getting desperate, please help

2002-09-30 Thread Michael Schulz

David,

Have you posted any questions to the turbine users list?  Anyone else there
able to verify your assumption?

Why don't you try Tomcat 4.0.5?

Jetty is just going to be another set of unknown issues.

-Mike


-Original Message-
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 10:11 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: 4th day offline, getting desperate, please help


Hi,

I think that Tomcat 4.1.12 has bug when used with Turbine applications. I
have a valid server.xml, the WAR unpacks correctly, but the application does
not run. Since this is outside my ability to fix I am abandoning Tomcat and
will try Jetty.

Thanks for those who helped.

David


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




RE: New Release JK 1.2.0 not installing

2002-09-27 Thread Michael Schulz

David,

You keep talking about running Tomcat on port 8080.  It is important to
understand that in your (requested) configuration, tomcat is not running on
port 8080.  The only connector you should have defined for Tomcat is the
ajp13 connector, which listens on port 8009.

Also, your workers.properties file should be reduced even further:

workers.properties:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=www.roamware.com
worker.ajp13.type=ajp13

since the worker.list name is your choice, you could even make it more
readable, as follows:

worker.list=tomcat
worker.tomcat.port=8009
worker.tomcat.host=www.roamware.com
worker.tomcat.type=ajp13


Let me just clarify that you are not entering port 8080 in your http url.
Your url is http://ww.roamware.com, correct?

-Mike


-Original Message-
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 1:00 PM
To: Tomcat Users List
Subject: RE: New Release JK 1.2.0 not installing


OK,

I made the changes you and John suggested. I had put in a connector for port
8007 because I had it before with Apache 1.3.23, but now realise it was
associated with ajp12 and is not needed. And yes the rest was the standard
workers.properties.

I have very simple requirements. I need Apache so I can run Webmin to
administer my Linux services easily. I have no static content on my website
it is all served up by my Turbine servlet application. I need Tomcat on port
8080 so I can run my web site which is a Servlet application.




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




RE: New Release JK 1.2.0 not installing

2002-09-27 Thread Michael Schulz

David,

You are all over the place...do you have a specific idea of what you are
trying to do?

Are you trying to integrate apache and tomcat? Do you want to send http
requests directly to tomcat?

Why are you using both ajp12 and ajp13, and load balancing?  And your tomcat
subsystem is configured to run in-process with apache?  Is this really how
you want it to run?

I don't believe this is a default configuration, at least, not one that I
have seen.

You need to simplify...simplify...simplify.

Let's assume that you want a (relatively) simple apache-tomcat
configuration.

That means http requests will ONLY arrive on port 80 - forget about port
8080, that is for running tomcat without apache.

Get rid of the loadbalancing and ajp12 references in your workers.properties
file.

Since tomcat will only be listening for ajp13 requests from apache, you
should remove *ALL* connectors from your tomcat server.xml file except the
ajp13 connector listening on port 8009.

Once you have made all those changes, perhaps we can have some sanity in
terms of trying to figure out what is going wrong.  Please post only your
workers.properties and server.xml files.

-Mike



-Original Message-
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 12:06 PM
To: Tomcat Users List
Subject: RE: New Release JK 1.2.0 not installing


OK, they are all reproduced here, I have not tried to change them because I
am stumped. Based on what I have read the config file s'look' right.

I have Apache running on port 80 but when I try to use www.roamware.com:8080
I get connection refused now.

I successfully built the connectors, followed the tutorial at yolinux but
still cannot get Apache to redirect gets to port 8080 to Tomcat.

Here are the contents of my logs and key config files, I've cut the comments
out to reduce the bulk. Can you see what is
wrong, 'cause I cannot.



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




Apache 2.0.42

2002-09-26 Thread Michael Schulz

>From the Apache 2.0.42 release notes:

"This release is not binary-compatible with previous releases, so all
modules need to be recompiled in order to work with this version. For
example, a module compiled to work with 2.0.40 will not work with 2.0.42."

John Turner, do you plan to recompile mod_jk.so for use with Apache 2.0.42
and Tomcat 4.0.5 on Linux (RH 7.3)?

I'm currently using the Apache 2.0.40/Tomcat 4.0.4 connector that you
graciously provide.

p.s. I'm still working on the howto for this configuration on separate
machines...but I'm still trying to get the load-balancing configuration to
work.  Once that is done, I'll prepare the howto.

Regards,

Michael Schulz


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




RE: jk_ajp errors in mod_jk.log ???

2002-09-23 Thread Michael Schulz


Please post the contents of your workers.properties file.

This error seems to indicate that your apache machine cannot establish a
connection to the tomcat machine.  You are running apache and tomcat on
different machines, correct?

-Mike


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Sunday, September 22, 2002 7:54 PM
To: [EMAIL PROTECTED]
Subject: jk_ajp errors in mod_jk.log ???


Hi All.
The tomcat error log file "mod_jk.log" throws these exceptions:
[jk_ajp_common.c(1158)]: In jk_endpoint_t::service ajp_send_request
failed in send loop 1
[jk_connect.c(151]: jk_open_socket , connect() failed errno=111
[jk_ajp_common.c(844)]: Error connection to Tomcat process
[jk_ajp_common.c(1153)]: In jk_endpoint_t:: service ajp_send_request
failed in send loop 2

And of course cannot get thru to examples.
Can someone gicve me some more hints on what this might mean ?

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Cannot setup tomcat

2002-09-23 Thread Michael Schulz

What are you expecting to see?  There is no separate process or thread for
the connector (on the apache box).  On the tomcat side, the connector is
just a java process that is listening on a port, normally 8009, for requests
from the web server.

-Mike Schulz


-Original Message-
From: Marc [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 6:13 AM
To: Tomcat Users List
Subject: Re: Cannot setup tomcat


After doing stratup.sh, if I do a 'ps -gux', I can see a lot of java
process. Seems that tomcat starts, but
the connectors does not start.

Marc

Kwok Peng Tuck wrote:

> The problem with the shutdown probably has something to do with the fact
> that it didn't start up in the first place. I think we should
> concentrate on why it won't start first. After starting up, do a ps to
> see if java is listed as a process. Then we'll know if tomcat started up
> in the first place.
>
> Marc Vila Pérez wrote:
>
> >Hi!!!
> >I cannot setup Tomcat 4.1.10, on Redhat 7.2 with Apache 1.3.22 and
> >jdk1.4.1. I've followed all the instructions to install it, and seems
> >all it's ok, but when I start tomcat:
> >bash-2.05$$CATALINA_HOME/bin/startup.sh
> >Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0.10
> >Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0.10
> >Using JAVA_HOME: /usr/local/j2sdk1.4.1
> >bash-2.05$ (no errors returned)
> >
> >If I look the catalina.out file, no chars has been written, If I try to
> >connect to my server http://myserver:8080, the browser gives the
> >standard invalid URL error.
> >
> >Then if I try to shutdown tomcat...
> >bash-2.05$$CATALINA_HOME/bin/shutdown.sh
> >Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0.10
> >Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0.10
> >Using JAVA_HOME: /usr/local/j2sdk1.4.1
> >
> >no error returned, but the command not finalizes... after waiting a long
> >time, I must abort the operation (Ctrl + c) and kill the tomcat process
> >manually.
> >
> >Anybody knows what I'm doing wrong? Could it be a OS problem? jdk?
> >tomcat? I've tried with different tomcat versions (3.3.1 and 4.0.4),
> >and continue having the same problem.
> >
> >
> >If  I try to shutdown tomcat with the next sentence:
> >
> >bash-2.05$sh -x catalina.sh stop > shutdown.txt
> >
> >I obtain:
> >
> >+ cygwin=false
> >++ uname
> >+ PRG=catalina.sh
> >+ '[' -h catalina.sh ']'
> >++ dirname catalina.sh
> >+ PRGDIR=.
> >++ cd ./..
> >++ pwd
> >+ CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.10
> >+ '[' -r /usr/local/jakarta-tomcat-4.1.10/bin/setenv.sh ']'
> >+ false
> >+ '[' -r /usr/local/jakarta-tomcat-4.1.10/bin/setclasspath.sh ']'
> >+ BASEDIR=/usr/local/jakarta-tomcat-4.1.10
> >+ . /usr/local/jakarta-tomcat-4.1.10/bin/setclasspath.sh
> >++ '[' -z /usr/local/j2sdk1.4.1/ ']'
> >++ '[' '!' -r /usr/local/j2sdk1.4.1//bin/java -o '!' -r
> >/usr/local/j2sdk1.4.1//bin/jdb -o '!' -r
> >/usr/local/j2sdk1.4.1//bin/javac ']
> >'
> >++ '[' -z /usr/local/jakarta-tomcat-4.1.10 ']'
> >++ '[' '!' -r /usr/local/jakarta-tomcat-4.1.10/bin/setclasspath.sh ']'
> >++
>
>JAVA_ENDORSED_DIRS=/usr/local/jakarta-tomcat-4.1.10/bin:/usr/local/jakarta-
tomcat-4.1.10/common/endorsed
> >
> >++ CLASSPATH=/usr/local/j2sdk1.4.1//lib/tools.jar
> >++ JIKESPATH=
> >+++ uname -s
> >++ '[' Linux = Darwin ']'
> >++ _RUNJAVA=/usr/local/j2sdk1.4.1//bin/java
> >++ _RUNJDB=/usr/local/j2sdk1.4.1//bin/jdb
> >++ _RUNJAVAC=/usr/local/j2sdk1.4.1//bin/javac
> >+ '[' -n '' ']'
> >+
>
>CLASSPATH=/usr/local/j2sdk1.4.1//lib/tools.jar:/usr/local/jakarta-tomcat-4.
1.10/bin/bootstrap.jar
> >
> >+ '[' -z '' ']'
> >+ CATALINA_BASE=/usr/local/jakarta-tomcat-4.1.10
> >+ '[' -z '' ']'
> >+ CATALINA_TMPDIR=/usr/local/jakarta-tomcat-4.1.10/temp
> >+ false
> >+ echo 'Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.10'
> >Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.10
> >+ echo 'Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.10'
> >Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.10
> >+ echo 'Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.10/temp'
> >Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.10/temp
> >+ echo 'Using JAVA_HOME:   /usr/local/j2sdk1.4.1/'
> >Using JAVA_HOME:   /usr/local/j2sdk1.4.1/
> >+ '[' stop = jpda ']'
> >+ '[' stop = debug ']'
> >+ '[' stop = embedded ']'
> >+ '[' stop = run ']'
> >+ '[' stop = start ']'
> >+ '[' stop = stop ']'
> >+ shift
> >+ exec /usr/local/j2sdk1.4.1//bin/java
>
>-Djava.endorsed.dirs=/usr/local/jakarta-tomcat-4.1.10/bin:/usr/local/jakart
a-tomcat-4.1.10/co
> >
> >mmon/endorsed -classpath
>
>/usr/local/j2sdk1.4.1//lib/tools.jar:/usr/local/jakarta-tomcat-4.1.10/bin/b
ootstrap.jar
> >-Dcatalina.base=/us
> >r/local/jakarta-tomcat-4.1.10
> >-Dcatalina.home=/usr/local/jakarta-tomcat-4.1.10
> >-Djava.io.tmpdir=/usr/local/jakarta-tomcat-4.1.10/tem
> >p org.apache.catalina.startup.Bootstrap stop
> >Catalina.stop: java.net.ConnectException: Connection timed out
> >java.net.ConnectException: Connection timed out
> >at java.net.PlainSocke

RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Michael Schulz

Venkat,

Yes, I will give you more details, however, I've got higher priority things
to do at this moment, so it will take me a few hours before I can document
the details.

-Mike Schulz


-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 12:54 PM
To: Tomcat Users List
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk


Hi Michael,
Can you pl be more specific abou how to configure tomcat server.xml  and
how to generate mod_jk.conf manually
Thks in advance
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 12:23 PM
To: Tomcat Users List
Cc:
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed
on diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send. (:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


> -Original Message-----
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:18 PM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> I *just* completed a successful configuration of Apache
> 2.0.40 and Tomcat
> 4.0.4 using the mod_jk.so connector (provided by John Turner,
> thanks John)
> on RedHat Linux 7.3 where Apache and Tomcat are running on separate
> machines.
>
> If Apache is not connecting to tomcat, then you should look
> on the Apache
> box for the cause (assuming that the Tomcat box is running! ).
>
> In your httpd.conf file, there should be two directives, JkLogFile and
> JkLogLevel.  Set the JkLogLevel value to "debug" and restart
> Apache.  Then
> when you make a request, you should be able to see what is
> happening via the
> log file.
>
> Note: If you followed John's instructions for configuring the
> system, you
> will have a problem because those instructions depend on the
> Tomcat listener
> (ApacheConfig) to generate the mod_jk.conf file.  This won't
> work if tomcat
> and apache are on separate boxes, so you'll have to do that
> part manually
> (or copy the generated file from the tomcat box to the apache box).
>
> If your httpd.conf file contains this directive:
>
>   include /usr/local/tomcat/conf/auto/mod_jk.conf
>
> then you will have problems, because tomcat is not on the apache box.
>
>
> -Mike Schulz
>
>
>
> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:56 AM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
> Even though I didn't copy, Atleast Apche should have
> connected to tomcat and
> I should have executed jsp pages existed on tomcat box, here apache is
> serving some static files which are existing on apache boxe,
> but when I
> tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
> /examples/* ajp13) it is supposed to connect to tomcat box and execute
> jsp's, but it is not recognising them, because it is not even
> connected to
> tomcat
>
>
> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thu 9/19/2002 11:46 AM
> To:   Tomcat Users List
> Cc:
> Subject:  RE: problem with connecting Apache2.0.40 and
> Tomcat4.0.4 installed
> on diffrent machines with mod_jk
>
> If you want to put Apache and Tomcat on separate boxes, and
> still run the
> Tomcat examples, you will have to copy the static (.html)
> files from the
> tomcat box to the apache box so that apache can serve them.
>
> -Mike Schulz
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> The lines like "tomcat_home" etc. in workers.properties are optional.
> (thanks Milt!)  You only need the worker definitions (like
> port number,
> etc).
>
> I'm not sure about the Alias /manager question, that is a
> good question.
>
> You don't need mod_jk.so on the Tomcat box, its an Apache module.
>
> John
>
>
> 

RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Michael Schulz

I was getting to that, but I forget to mention it before I hit send. (:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:18 PM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> I *just* completed a successful configuration of Apache
> 2.0.40 and Tomcat
> 4.0.4 using the mod_jk.so connector (provided by John Turner,
> thanks John)
> on RedHat Linux 7.3 where Apache and Tomcat are running on separate
> machines.
>
> If Apache is not connecting to tomcat, then you should look
> on the Apache
> box for the cause (assuming that the Tomcat box is running! ).
>
> In your httpd.conf file, there should be two directives, JkLogFile and
> JkLogLevel.  Set the JkLogLevel value to "debug" and restart
> Apache.  Then
> when you make a request, you should be able to see what is
> happening via the
> log file.
>
> Note: If you followed John's instructions for configuring the
> system, you
> will have a problem because those instructions depend on the
> Tomcat listener
> (ApacheConfig) to generate the mod_jk.conf file.  This won't
> work if tomcat
> and apache are on separate boxes, so you'll have to do that
> part manually
> (or copy the generated file from the tomcat box to the apache box).
>
> If your httpd.conf file contains this directive:
>
>   include /usr/local/tomcat/conf/auto/mod_jk.conf
>
> then you will have problems, because tomcat is not on the apache box.
>
>
> -Mike Schulz
>
>
>
> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:56 AM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
> Even though I didn't copy, Atleast Apche should have
> connected to tomcat and
> I should have executed jsp pages existed on tomcat box, here apache is
> serving some static files which are existing on apache boxe,
> but when I
> tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
> /examples/* ajp13) it is supposed to connect to tomcat box and execute
> jsp's, but it is not recognising them, because it is not even
> connected to
> tomcat
>
>
> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thu 9/19/2002 11:46 AM
> To:   Tomcat Users List
> Cc:
> Subject:  RE: problem with connecting Apache2.0.40 and
> Tomcat4.0.4 installed
> on diffrent machines with mod_jk
>
> If you want to put Apache and Tomcat on separate boxes, and
> still run the
> Tomcat examples, you will have to copy the static (.html)
> files from the
> tomcat box to the apache box so that apache can serve them.
>
> -Mike Schulz
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> The lines like "tomcat_home" etc. in workers.properties are optional.
> (thanks Milt!)  You only need the worker definitions (like
> port number,
> etc).
>
> I'm not sure about the Alias /manager question, that is a
> good question.
>
> You don't need mod_jk.so on the Tomcat box, its an Apache module.
>
> John
>
>
> > -Original Message-
> > From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 10:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
> > installed
> > on diffrent machines with mod_jk
> >
> >
> > Hi,
> >I installed Apache 2.0.40 and Tomcat 4.0.4 on different
> > Linux(RedHat) servers and tried to make apache connect to
> > tomcat with mod_jk module,
> >
> >For this I did the following things
> >1) I installed Apache 2.0.40 on Machine 'A' and built
> > mod_jk.so module (./configure
> > --with-apxs=/usr/local/apache2/bin/apxs
> > --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
> > done and got mod_jk.so
> &

RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Michael Schulz


I *just* completed a successful configuration of Apache 2.0.40 and Tomcat
4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John)
on RedHat Linux 7.3 where Apache and Tomcat are running on separate
machines.

If Apache is not connecting to tomcat, then you should look on the Apache
box for the cause (assuming that the Tomcat box is running! ).

In your httpd.conf file, there should be two directives, JkLogFile and
JkLogLevel.  Set the JkLogLevel value to "debug" and restart Apache.  Then
when you make a request, you should be able to see what is happening via the
log file.

Note: If you followed John's instructions for configuring the system, you
will have a problem because those instructions depend on the Tomcat listener
(ApacheConfig) to generate the mod_jk.conf file.  This won't work if tomcat
and apache are on separate boxes, so you'll have to do that part manually
(or copy the generated file from the tomcat box to the apache box).

If your httpd.conf file contains this directive:

include /usr/local/tomcat/conf/auto/mod_jk.conf

then you will have problems, because tomcat is not on the apache box.


-Mike Schulz



-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:56 AM
To: Tomcat Users List
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk


Even though I didn't copy, Atleast Apche should have connected to tomcat and
I should have executed jsp pages existed on tomcat box, here apache is
serving some static files which are existing on apache boxe, but when I
tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
/examples/* ajp13) it is supposed to connect to tomcat box and execute
jsp's, but it is not recognising them, because it is not even connected to
tomcat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 11:46 AM
To: Tomcat Users List
Cc:
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed
on diffrent machines with mod_jk

If you want to put Apache and Tomcat on separate boxes, and still run the
Tomcat examples, you will have to copy the static (.html) files from the
tomcat box to the apache box so that apache can serve them.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



The lines like "tomcat_home" etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed
> on diffrent machines with mod_jk
>
>
> Hi,
>I installed Apache 2.0.40 and Tomcat 4.0.4 on different
> Linux(RedHat) servers and tried to make apache connect to
> tomcat with mod_jk module,
>
>For this I did the following things
>1) I installed Apache 2.0.40 on Machine 'A' and built
> mod_jk.so module (./configure
> --with-apxs=/usr/local/apache2/bin/apxs
> --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
> done and got mod_jk.so
>
>2)  I installed Tomcat 4.0.4 on machine 'B' and copied
> mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
> (Tomcat machine),
>
> and modified server.xml as per the documenatation
> here Upon start up of tomact I got mod_jk.conf, I copied
> it from machine B to Machine A(Apache Machine)   and included
> it in httpd.conf
>
> Here I did not understand Following things
> 1) in mod_jk.conf  (on Machine 'A' Apache)
>   Alias /manager "/opt/catalina/webapps/manager" -->
> here what I need to put,  because the path mentioned  is
> there on machine 'B'
>
>  2)in workesr.properties (on machine 'A' Apache)
>worker.ajp13.host= machine 'B' I am sure This is ok
>workers.tomcat_home=/opt/catalina
>workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
> I need to set up for these (because catalina_home and
> java_home are there in Machine 'B')
>
> here I didn't get any error in mod_jk.log (on machine 'A')
>
> Any help greatly appreciated
> Thks&Rgds
> Venkat

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


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Michael Schulz


If you want to put Apache and Tomcat on separate boxes, and still run the
Tomcat examples, you will have to copy the static (.html) files from the
tomcat box to the apache box so that apache can serve them.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



The lines like "tomcat_home" etc. in workers.properties are optional.
(thanks Milt!)  You only need the worker definitions (like port number,
etc).

I'm not sure about the Alias /manager question, that is a good question.

You don't need mod_jk.so on the Tomcat box, its an Apache module.

John


> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed
> on diffrent machines with mod_jk
>
>
> Hi,
>I installed Apache 2.0.40 and Tomcat 4.0.4 on different
> Linux(RedHat) servers and tried to make apache connect to
> tomcat with mod_jk module,
>
>For this I did the following things
>1) I installed Apache 2.0.40 on Machine 'A' and built
> mod_jk.so module (./configure
> --with-apxs=/usr/local/apache2/bin/apxs
> --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully
> done and got mod_jk.so
>
>2)  I installed Tomcat 4.0.4 on machine 'B' and copied
> mod_jk.so from machine 'A'(Apache machine) to Machine 'B'
> (Tomcat machine),
>
> and modified server.xml as per the documenatation
> here Upon start up of tomact I got mod_jk.conf, I copied
> it from machine B to Machine A(Apache Machine)   and included
> it in httpd.conf
>
> Here I did not understand Following things
> 1) in mod_jk.conf  (on Machine 'A' Apache)
>   Alias /manager "/opt/catalina/webapps/manager" -->
> here what I need to put,  because the path mentioned  is
> there on machine 'B'
>
>  2)in workesr.properties (on machine 'A' Apache)
>worker.ajp13.host= machine 'B' I am sure This is ok
>workers.tomcat_home=/opt/catalina
>workers.java_home=/opt/java/j2sdk1.4.0_01,   here what
> I need to set up for these (because catalina_home and
> java_home are there in Machine 'B')
>
> here I didn't get any error in mod_jk.log (on machine 'A')
>
> Any help greatly appreciated
> Thks&Rgds
> Venkat
>
>
>
>
>
> --
> 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 won't auto-start on RedHat 7.3

2002-09-18 Thread Michael Schulz

Kenny,

Can you elaborate just a little more for me, a linux novice who wants to do
the same thing? Regarding your script to start Tomcat at run level 5, can
you tell me where you referenced this script in the startup sequence? That
is, into which file did you place the invocation of the script.  And since I
want to set JAVA_HOME and CATALINA_HOME as well, would you mind posting your
final startup script?

Thanks,
Michael Schulz


-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:25 PM
To: Tomcat Users List
Subject: Re: Tomcat won't auto-start on RedHat 7.3


That did it.  Thanks all,
Kenny

- Original Message -
From: "Ben Ricker" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 2:17 PM
Subject: Re: Tomcat won't auto-start on RedHat 7.3


> On Tue, 2002-09-17 at 14:06, Kenny G. Dubuisson, Jr. wrote:
> > Very good question...I bet they aren't.  Do you know where I would set
those
> > for boot (or should I just put them in the script I wrote)?  Thanks,
> > Kenny
>
> Put them in the script.
>
> Ben Ricker
> Wellinx.com
>
> > - Original Message -
> > From: "Turner, John" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 17, 2002 2:04 PM
> > Subject: RE: Tomcat won't auto-start on RedHat 7.3
> >
> > > When run during boot, are JAVA_HOME and CATALINA_HOME set?
> > >
> > > John
> > >
> > > > -Original Message-
> > > > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 17, 2002 3:01 PM
> > > > To: Tomcat Users List
> > > > Subject: Tomcat won't auto-start on RedHat 7.3
> > > >
> > > > I have successfully installed Apache 2.0.40, Tomcat 4.0.4,
> > > > and mod_jk and
> > > > all works fine.  The problem I have is that I wrote a simple
> > > > startup script
> > > > for Tomcat to be executed upon init level 5 entrance.  If I
> > > > run the script
> > > > from a shell prompt, it works fine.  If it runs when Linux is
booting,
> > > > though it says "OK" when starting, Tomcat doesn't actually
> > > > get started.
> > > >
> > > > The script is:
> > > >
> > > > #!/bin/sh
> > > > case "$1" in
> > > >start)
> > > >   echo -n "Starting Tomcat: "
> > > >   /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh
> > > >   echo
> > > >   ;;
> > > >stop)
> > > >   echo -n "Stopping Tomcat: "
> > > >   /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh
> > > >   echo
> > > >   ;;
> > > >restart)
> > > >   $0 stop
> > > >   $0 start
> > > >   ;;
> > > >*)
> > > >   echo "Usage: $0 {start|stop|restart}"
> > > >   exit 1
> > > > esac
> > > > exit 0
> > > >
> > > > Any Ideas?
> > > >
> > > >


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