RE: mod_jk error under load (errno codes)

2002-10-01 Thread Anthony Milbourne

Hi

I just searched through google.  I didn't find any lists of error codes -
which is something that I would find quite useful as well.  All I found was
someone elses post to another forum.

Question for developers  people in the know:

I realise that I could read the source to find this out but I would rather
not have to (I use Tomcat at work and my boss would not appreciate me
spending the time to do this)...
Is there any way of obtaining a list of what these errno's mean?
It might be a handy appendix to future documentation - it would certainly
give competent sys-admins/users more of a clue where to look for the
problem.

Thanks,

Anthony.

 -Original Message-
 From: Marc [SMTP:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:23
 To:   Tomcat Users List
 Subject:  Re: mod_jk error under load
 
 Hi, where can I find a description for each 'errno'?
 I receive errno = 110 when I try to access tomcat connecting to a *.jsp
 page
 through apache.
 
 Thank you!!!
 
 Marc
 
 Anthony Milbourne wrote:
 
  Hi
 
  146 is a socket connection error.
  Try checking your workers.properties file (or the JBoss file that
 generates
  it ?) and making sure that the only connectors mentioned in workers.list
  also have connectors defined in server.xml.  Specifically - check there
  isn't an ajp12 in workers.properties and not in server.xml.
 
  Hope that helps.
 
  Anthony.
 
   -Original Message-
   From: David Ward [SMTP:[EMAIL PROTECTED]]
   Sent: 27 September 2002 17:57
   To:   [EMAIL PROTECTED]
   Subject:  mod_jk error under load
  
   In running an automated load test against our app, we get the
 following
   errors in or jk.log file:
  
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  
   Anyone know what these errors are? I can't find anything conclusive
   about them searching various lists/forums.
  
   We are running Apache 1.3.12 on a Solaris 7 Ultra 10 using
 mod_jk/ajp12
   to talk to JBoss-2.4.7_Tomcat-3.2.3 on a Solaris 7 E250, JDK 1.3.1_02.
  
   The symptoms we see are that the number of httpd processes maxes out
 on
   the web server box, though the CPU is almost completely idle. The
 weird
   thing is that the app server is mostly idle too, and doing a thread
 dump
   on the java (jboss+tomcat in same vm) process shows that there are
 lots
   of threads waiting for work to do. Once we stop the load test, things
   are still messed up until I restart apache, then we can access the app
   again. Note that I didn't have to touch the app server at all.
 Accessing
   URLs that aren't configured to go through mod_jk have no problem,
 until
   the max http children process gets reached, of course...
  
   I haven't gotten a response from the Tomcat forum at JGuru.
  
   Thanks all,
   David
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
 
  **
  This email and any files transmitted with it are confidential and
  intended solely for the use of the individual or entity to whom they
  are addressed. If you have received this email in error please notify
  the system manager.
  This footnote also confirms that this email message has been swept by
  MIMEsweeper for the presence of computer viruses.
  www.mimesweeper.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]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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

RE: Help with test needed.

2002-10-01 Thread Anthony Milbourne

Hi

I had a look from JANET (UK Academic network) which is 10Mbit when we get
it.
Initial page load was slow and some impatient folks might give up (maybe a
please wait message ?).
After that it was all fairly responsive.  Zooming in was fairly quick (The
delay while it went and got the image was less than the time it took to
download the image).
Everyone in my office thought it was a cool site :-).

Anthony.

 -Original Message-
 From: Martin Jacobson [SMTP:[EMAIL PROTECTED]]
 Sent: 01 October 2002 08:31
 To:   Tomcat Users List
 Subject:  Re: Help with test needed.
 
 Robert L Sowders wrote:
 
  I've just about completed a new site and I've been wondering about a few
 
  things, specifically how does the public see it.  It's an ArcIMS site
 and 
  I know it will appear to load a bit slow, (that's just how ArcIMS
 works). 
  I'm hosting the front end in one place and the data at another.  I'm 
  wondering about the network latency that is built in.
  
  If you would go to http://terra.wr.usgs.gov/pilots/wa-id/viewer.htm,
 then zoom in about three 
  times and click on the orthophoto check box that comes up on the right 
  hand side, then hit the refresh button, this final refresh will give you
 
  an idea of the network latency.
  
  I can't see it because I'm on the DOI backbone.
  
  Any help is appreciated.
 
 
 I just tried it - I'm connected @ 10Mb/s to a fast backbone in Italy - 
 and although it takes ~ 10 sec to display the page, the delay BEFORE it 
 starts loading the image is only of the order of a second or two, so 
 it's not too bad. I'm glad I'm not trying this at home via 56K dialup, 
 'though!
 
 HTH,
 
 Martin
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Documentation

2002-10-01 Thread Anthony Milbourne

Hi

-1 for shooting developers :-)

I can see your point John, but in the real world people are slack and miss
bits.  Also, as has been pointed out, writing technical notes for technical
people is a very different skill to writing a user manual for lay-people.  I
would rather have the best developers doing the development and the best
authors writing the docs.  Also a lot of minor patches and fixes are
submitted by people other than the core developers - often without updates
to the docs (if they are needed).

I think the doc project is a good idea.  I don't feel I know enough about
Tomcat to contribute source (I doubt they would take it :-), but I do feel I
have used Tomcat enough to comment on, and maybe even contribute, docs.

I am certainly willing to contribute to a project - although I suspect there
are people more qualified who have already volunteered.

Anthony.

 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 01 October 2002 13:12
 To:   'Tomcat Users List'
 Subject:  RE: Documentation
 
 
  -Original Message-
  From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 6:18 PM
  
  I would tend to agree with the above, those writing the code 
  either don't
  have the inclination or time to write up good documentation.
 
 In my mind, these developers should be shot.  Or at least confined to a
 tiny
 little box for an extended period of time.  Or maybe just put in charge of
 a
 large data center running their software, and their email and cell phones
 the only contact info on the 24/7/365 call list.  Not to rant, but any
 developer, open source or not, that writes code but fails to provide good
 or
 better documentation at the same time is a poor developer, regardless of
 their technical skill, and regardless of their commitment or uncompensated
 participation.  I'm no developer, but even I know that documentation is
 key...I probably spend 60% of my sys-admin time writing recipes and docs
 for
 other people to descibe what and how I did the things I did in the other
 40%. 
 
 I think that the argument that the developers don't have time is a
 cop-out, especially under the Apache style of development and release
 schedules.  There's no pressure to meet release dates in that mode of
 development, so time is technically unlimited.  I would say it's more
 don't
 have the inclination because documentation isn't as cool as code and my
 ego
 gets more of a boost from writing the latest whiz-bang feature or finding
 a
 bug in some other guy's code than it does writing a doc that explains how
 to
 perform an installation.  Which is a shame.
 
 Besides, isn't Java self-documenting? ;)
 
  Have you looked at the latest docs for Tomcat 4.1?  Much 
  better jk documentation,
  existing docs updated, and even some new documents at:
  
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
  
 
 I've been all through them, they're pretty much just a rehash of 4.0 docs
 with a new design template.  The new design is pretty, granted, but that's
 a
 far cry from where the docs should be.  The connector docs are a little
 better, but in my opinion they don't cover nearly the amount of
 information
 they should cover.  If they did, this list wouldn't get 100-150 messages
 every night.
 
 That said, I would gladly participate in any documentation project that is
 started.  I could contribute several hours ( 3  time  10 ) each week.
 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: mod_jk error under load

2002-09-30 Thread Anthony Milbourne

Hi

146 is a socket connection error.
Try checking your workers.properties file (or the JBoss file that generates
it ?) and making sure that the only connectors mentioned in workers.list
also have connectors defined in server.xml.  Specifically - check there
isn't an ajp12 in workers.properties and not in server.xml.

Hope that helps.

Anthony.

 -Original Message-
 From: David Ward [SMTP:[EMAIL PROTECTED]]
 Sent: 27 September 2002 17:57
 To:   [EMAIL PROTECTED]
 Subject:  mod_jk error under load
 
 In running an automated load test against our app, we get the following 
 errors in or jk.log file:
 
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 
 Anyone know what these errors are? I can't find anything conclusive 
 about them searching various lists/forums.
 
 We are running Apache 1.3.12 on a Solaris 7 Ultra 10 using mod_jk/ajp12 
 to talk to JBoss-2.4.7_Tomcat-3.2.3 on a Solaris 7 E250, JDK 1.3.1_02.
 
 The symptoms we see are that the number of httpd processes maxes out on 
 the web server box, though the CPU is almost completely idle. The weird 
 thing is that the app server is mostly idle too, and doing a thread dump 
 on the java (jboss+tomcat in same vm) process shows that there are lots 
 of threads waiting for work to do. Once we stop the load test, things 
 are still messed up until I restart apache, then we can access the app 
 again. Note that I didn't have to touch the app server at all. Accessing 
 URLs that aren't configured to go through mod_jk have no problem, until 
 the max http children process gets reached, of course...
 
 I haven't gotten a response from the Tomcat forum at JGuru.
 
 Thanks all,
 David
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: binary mod_webapp.so for solaris7?

2002-09-30 Thread Anthony Milbourne

Sorry

We have one for Solaris 8 - but that probably won't help.

Anthony.

 -Original Message-
 From: David Bishop [SMTP:[EMAIL PROTECTED]]
 Sent: 27 September 2002 20:53
 To:   Tomcat Users List
 Subject:  binary mod_webapp.so for solaris7?
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 See subject :-)  Anyone have one of those?  I was never able to get the
 module 
 to load correctly with a self-compiled version, even with Solaris 8, but
 the 
 binary modules seem to work fine, when I can get them.  I am running
 Apache 
 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4.
 
 Thanks *very* much.
 - -- 
 A mouse is a device used to point at the xterm you want to type in. 
   --Kim Alm, a.s.r 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.0 (GNU/Linux)
 
 iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH
 tesH8v2Al8zEGXEjzS/S08o=
 =AJT9
 -END PGP SIGNATURE-
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: understanding Jkmount

2002-09-26 Thread Anthony Milbourne

Hi

Try adding the line below:

Jkmount / ajp13

I'm not sure what exactly the difference between these lines is, but I
suspect that it may help your problem.

Anthony.


 -Original Message-
 From: Matthew Hannigan [SMTP:[EMAIL PROTECTED]]
 Sent: 26 September 2002 08:28
 To:   [EMAIL PROTECTED]
 Subject:  understanding Jkmount
 
 
 
 This is a bit puzzling.  In a bid to understand
 the jkmount line in the mod_jk.conf configuration
 file, I set it to:
 
   Jkmount /* ajp13
 
 so that tomcat would serve all content, and removed
 any apache Alias directive from mod_jk.conf that
 pointed to the tomcat instance.  (I'm doing this as a
 prelude to putting them on separate machines)
 
 
 
 This following url is served up by apache.  I presume
 that this is because there is a specific alias
 for index.html in apache's httpd.conf.
 
   http://dev:30080/manual/index.html
 
 but the following is served by apache too!
 
   http://dev:30080/manual/new_features_1_3.html
 
 with broken images, because the image requests are sent to tomcat.
 
 However!  I get a 404 for
 
   http://dev:30080/manual/upgrading_to_1_3.html
 
 because that is directed to tomcat, and of course
 tomcat cannot find it.
 
 The new_features_1_3.html doc and the upgrading_to_1_3.html
 pages are right next to each other in the apache htdocs dir.
 
 Why is one directed to tomcat and the other not!?
 
 (It's not another proxy or local caching doing it; I checked the
 tomcat and apache log files)
 
 Regards,
 Matt
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Apache 2.0.42

2002-09-26 Thread Anthony Milbourne

Hi

Don't get me wrong, binaries are good, but...

I might have missed something but wouldn't it be better to build against
Apache 1.3.26.  I thought this was the recommended version of the 1.3 branch
(as it has security fixes etc.).  Of course mods compiled against 1.3.22 may
work on 1.3.26.

Thanks for your (collective) efforts,

Anthony.

 -Original Message-
 From: Henri Gomez [SMTP:[EMAIL PROTECTED]]
 Sent: 26 September 2002 12:18
 To:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject:  Re: Apache 2.0.42
 
 JK 1.2.0 is tagged (JK_1_2_0_rel) and source tarball is being
 constructed (without webapp, jk/native2, java parts).
 
 I'll provide rpm for Redhat users, against Apache 1.3.22 (with ssl),
 Apache 2.0.42 (also with SSL).
 
 mod_jk.so for Apache 1.3 (with and without SSL), and 2.0.42 will also be 
 provided.
 
 IIS binaries should follow shortly, may be even iSeries V5R1 SAVF.
 
 Stay tuned
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
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-24 Thread Anthony Milbourne

Hi John

I onjy just noticed that this is in your HowTo (Apache 1.3.26 - Tomcat
4.0.4, at least) as well as in the list archives.  The example
wrokers.properties file you have given has a minor error.  It should be:

# BEGIN workers.properties
#
# Setup for apache system
#
# make this equal to CATALINA_HOME
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
#
# make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in
server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties
I have removed ajp12 from line 12 as Tomcat 4.0.4 doesn't need it
(as far as I know) and if you have it there without the appropriate
connector defined in server.xml it causes communication errors.
I hope that helps...
Anthony.


 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 23 September 2002 17:27
 To:   'Tomcat Users List'
 Subject:  RE: jk_ajp errors in mod_jk.log ???
 
 
 Oops.  What's the fixed file, or the fix itself?  I will gladly update
 things.
 
 John
 
 
  -Original Message-
  From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 23, 2002 12:24 PM
  To: 'Tomcat Users List'
  Subject: RE: jk_ajp errors in mod_jk.log ???
  
  
  It looks to me like you may have an extra ajp entry in your 
  config file.
  Try getting rid of the ajp12 connector int the worker list.
  
  John accidentally posted a broken file to this list in a 
  reply to one of my
  questions.  It caused me loads of trouble, although I'm not 
  complaining as
  John (and his HowTo) has solved many problems for me.  
  Unfortunately a lot
  of people must have used it.
  
  Hope that helps,
  
  Anthony.
  
   -Original Message-
   From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
   Sent: 23 September 2002 02:15
   To:   Tomcat Users List
   Subject:  Re: jk_ajp errors in mod_jk.log ???
   
   snip
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?
   Correct, I am running them on different machines.
   Attached hereto the workers.properties in 
  /usr/local/tomcat4/conf/jk 
   File: workers.propertiesFile: ATT553709.txt  
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Running multiple tomcat instances ?????

2002-09-24 Thread Anthony Milbourne

Hi

Thanks for that - my sysadmins told me i couldn't have more than 80
characters of process name.  My previous post was wrong, and that version of
ps is much more useful.

Anthony.

 -Original Message-
 From: Raj Mettai [SMTP:[EMAIL PROTECTED]]
 Sent: 23 September 2002 21:49
 To:   [EMAIL PROTECTED]
 Subject:  RE: Running multiple tomcat instances ?
 
 Thanks John, I will read the doc and try to get that code working, 
 meanwhile,  I have a found att version of ps under /usr/ucb/ps (solaris)
 
 which will give you a whole lot of information about the processes...
 
 example:
 
 # /usr/ucb/ps -auxwww |grep tomcat   
 root  5629  0.0  5.65760827824 ?S   Sep 20  0:27
 /usr/java/bin/../bin/sparc/native_threads/java
 -Djava.endorsed.dirs=/opt/tomcat2/bin:/opt/tomcat2/common/lib -classpath
 /usr/java/lib/tools.jar:/opt/tomcat2/bin/bootstrap.jar
 -Dcatalina.base=/opt/tomcat2 -Dcatalina.home=/opt/tomcat2
 -Djava.io.tmpdir=/opt/tomcat2/temp org.apache.catalina.startup.Bootstrap
 start
 
 -Raj
 
 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Broken Pipe Errors

2002-09-24 Thread Anthony Milbourne

Hi

Thanks for the feedback.  I don't think that, in our case, there are any
direct connections to Tomcat as it is behind a firewall and only Apache is
visible.  Also we put no-cache etc. in the headers - so hopefully IE will
not decide it hasn't changed.

Thanks anyway,

Anthony.

 -Original Message-
 From: Mike Jackson [SMTP:[EMAIL PROTECTED]]
 Sent: 23 September 2002 23:34
 To:   Tomcat Users List
 Subject:  RE: Broken Pipe Errors
 
 In my experience those broken pipe errors seem to happen most often when
 Internet Exploder decided that the page hasn't changed.  So they may or
 may not be a real symtom of your problem.  But I only got those when I
 was directly connecting to tomcat, not when I'm using apache as a front
 end.  Don't know if that'll help, but maybe it will.
 
 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 23, 2002 10:11 AM
 To: 'Tomcat Users List'
 Subject: Broken Pipe Errors
 
 
 Hi
 
 I have an install of Apache 1.3.26 talking over mod_jk (4.0.4) to Tomcat
 4.0.4 on Solaris 8.
 
 All seems to work fine for a while (a couple of days perhaps) - but after
 a
 while I get a lot of broken pipe errors in catalina_out.xxx.txt.  I
 previously thought these were due to a missmatch between the number of
 tomcat processors (maxProcessors) and the number of Apache clients, but
 this
 doesn't seem to be the case.  The errors are as below.
 
 2002-09-23 00:19:30 Ajp13Processor[8009][3] process: invoke
 java.io.IOException: Broken pipe
   at java.net.SocketOutputStream.socketWrite(Native Method)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
   at org.apache.ajp.Ajp13.send(Ajp13.java:525)
   at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
   at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
   at
 org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196
 )
   at
 org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
   at
 org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
   at java.lang.Thread.run(Thread.java:479)
 
 2002-09-23 00:48:51 Ajp13Processor[8009][11] process: invoke
 java.io.IOException: Broken pipe
   at java.net.SocketOutputStream.socketWrite(Native Method)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
   at org.apache.ajp.Ajp13.send(Ajp13.java:525)
   at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
   at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
   at
 org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196
 )
   at
 org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
   at
 org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
   at java.lang.Thread.run(Thread.java:479)
 
 
 Eventually I get the error (lots of times):
 
 2002-09-23 10:02:05 Ajp13Connector[8009] No processor available, rejecting
 this connection
 
 Which is fairly serious as nobody can see the site at this point.
 At this point direct connections to Tomcat (via its HTTP connector on port
 8080) don't get a response either.
 
 If anyone has any experience/info regarding this I would love to hear it.
 
 Thanks,
 
   Anthony.
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: tomcat start up errors

2002-09-23 Thread Anthony Milbourne

Hi 

I had a problem involving errno = 146 (Connection refused).  It turned out
to be because I had an error in my workers.properties file.  Check that this
file only mentions connectors that you actually have.  Specifically: check
that there isn't config for the ajp14 connector in there.  Also check that
the port numbers in this file tally with the port numbers in server.xml.

Hope that helps,

Anthony.

 -Original Message-
 From: Kathleen Flores [SMTP:[EMAIL PROTECTED]]
 Sent: 20 September 2002 17:42
 To:   Tomcat Users List
 Subject:  tomcat start up errors
 
 
 
 Hi All,
 
 When I startup tomcat, I receive the following error multiple
 times...until
 what seems to be within 3 hours, tomcat stops running.  Hence, I need to
 restart tomcat every 3 hours - what a pai! =) Does anyone know what these
 error messages mean and how I can prevent this from happening ?
 
 
 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL par
 ameter
 [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
 NULL p
 arameters
 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL par
 ameter
 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL par
 ameter
 [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
 NULL p
 arameters
 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL par
 ameter
 [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
 NULL p
 arameters
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 
 
 Thanks,
 
 Kat
 
 
 
  ERG Group --
  The contents of this email and any attachments are confidential
  and may only be read by the intended recipient.
 -
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: jboss-tomcat and apache integration.

2002-09-23 Thread Anthony Milbourne

Hi

I'm not sure you want the ajp12 connector in the worker list, unless you
actually have an ajp12 connector defined in server.xml.  Try using:

worker.list=ajp13

Hope that helps,

Anthony.


 -Original Message-
 From: Nani Jon [SMTP:[EMAIL PROTECTED]]
 Sent: 20 September 2002 21:33
 To:   tomcat users
 Subject:  jboss-tomcat and apache integration.
 
 
 Hello:
 
 I have the jboss-3.0.0_tomcat-4.0.3 bundle which I am trying to integrate
 with apache2, the latest version. I followed all the steps based on one of
 the HOWTOs.
 
 I have placed the mod_jk2.dll in the /conf directory of apache. I have
 created a workers2.properties file with the following contents:
 
 # Start setup file
 #
 workers2.tomcat_home=D:\\Programs/jboss-3.0.0_tomcat-4.0.3\\catalina
 workers2.java_home=D:\\j2sdk1.4.0
 ps=\\
 worker.list=ajp12, ajp13
 
 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 #
 # End setup file
 
 
 I put the line:
 
 LoadModule jk2_module modules/mod_jk2.dll
 
 in the httpd.conf for apache. When I start apache, it finds the
 workers2.properties file, but when I check the error.log file for apache
 the following errors are generated during startup:
 
  
 
 [notice] Parent: Created child process 1780
 [error] env.createBean2(): Error getting factory for
 [workers2.tomcat_home] (null)
 [error] config.update(): Can't create workers2.tomcat_home
 [error] env.createBean2(): Error getting factory for [workers2.java_home]
 (null)
 [error] config.update(): Can't create workers2.java_home
 [error] env.createBean2(): Error getting factory for [ps] (null)
 [error] config.update(): Can't create ps
 [error] env.createBean2(): Error getting factory for [worker.list] (null)
 [error] config.update(): Can't create worker.list
 [error] env.createBean2(): Error getting factory for [worker.ajp13.port]
 (null)
 [error] config.update(): Can't create worker.ajp13.port
 [error] env.createBean2(): Error getting factory for [worker.ajp13.host]
 (null)
 [error] config.update(): Can't create worker.ajp13.host
 [error] env.createBean2(): Error getting factory for [worker.ajp13.type]
 (null)
 [error] config.update(): Can't create worker.ajp13.type
 [error] shm.init(): No file
 [notice] Child 1780: Child process is running
 [error] shm.init(): No file
 [notice] Child 1780: Acquired the start mutex.
 [notice] Child 1780: Starting 250 worker threads.
 
 
  
 
 Any help will be greatly appreciated.
 
 Regards,
 
 Nani Jon.
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
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 Anthony Milbourne

It looks to me like you may have an extra ajp entry in your config file.
Try getting rid of the ajp12 connector int the worker list.

John accidentally posted a broken file to this list in a reply to one of my
questions.  It caused me loads of trouble, although I'm not complaining as
John (and his HowTo) has solved many problems for me.  Unfortunately a lot
of people must have used it.

Hope that helps,

Anthony.

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: 23 September 2002 02:15
 To:   Tomcat Users List
 Subject:  Re: jk_ajp errors in mod_jk.log ???
 
 snip
  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?
 Correct, I am running them on different machines.
 Attached hereto the workers.properties in /usr/local/tomcat4/conf/jk 
 File: workers.propertiesFile: ATT553709.txt  


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Running multiple tomcat instances ?????

2002-09-23 Thread Anthony Milbourne

Hi John

I don't think this option is available under Solaris :-(.

Anthony.

 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 23 September 2002 16:17
 To:   'Tomcat Users List'
 Subject:  RE: Running multiple tomcat instances ?
 
 
 Not sure about Solaris, but on Linux you can add --cols=XXX to the ps
 command, where XXX is a numeric column width.  So, while ps -ef
 doesn't
 show much, ps -ef --cols=300 will show you everything you need to know.
 
 
 John
 
 
  -Original Message-
  From: Raj Mettai [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 23, 2002 11:14 AM
  To: [EMAIL PROTECTED]
  Subject: Running multiple tomcat instances ?
  
  
  Hi,
  
  what is the best way to run multiple tomcat instances on 
  single solaris
  box ? 
  
  1) Is it Installing multiple tomcats physically.
  
  or else 
  
  2) Installing once and use different server.xml files to 
  start different
  instances.
  
  any advantages for one over the other ?
  
  Also, if I do use 2nd process, and if one of the tomcat crashes, how
  would I know which tomcat is 
  running and which one crashed, because ps -ef|grep tomcat listing is
  identical for both instances.
  
  how do you know which instance is using which server.xml ?
  
  
  thanks 
  
  -Raj
  
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




Broken Pipe Errors

2002-09-23 Thread Anthony Milbourne

Hi

I have an install of Apache 1.3.26 talking over mod_jk (4.0.4) to Tomcat
4.0.4 on Solaris 8.

All seems to work fine for a while (a couple of days perhaps) - but after a
while I get a lot of broken pipe errors in catalina_out.xxx.txt.  I
previously thought these were due to a missmatch between the number of
tomcat processors (maxProcessors) and the number of Apache clients, but this
doesn't seem to be the case.  The errors are as below.

2002-09-23 00:19:30 Ajp13Processor[8009][3] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)

2002-09-23 00:48:51 Ajp13Processor[8009][11] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)


Eventually I get the error (lots of times):

2002-09-23 10:02:05 Ajp13Connector[8009] No processor available, rejecting
this connection

Which is fairly serious as nobody can see the site at this point.
At this point direct connections to Tomcat (via its HTTP connector on port
8080) don't get a response either.

If anyone has any experience/info regarding this I would love to hear it.

Thanks,

Anthony.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: mod_jk log file errors

2002-09-20 Thread Anthony Milbourne

Hi 

We had similar looking errors to you (including some broken pipe messages in
catalina_log) and did a lot of searching for solutions.  There are a lot of
people posting about this sort of thing and no definitive answers that we
could find.

but...

We found a suggested solution which I will repeat.  We have implemented this
(along with other changes) and are in the process of checking whether it has
worked.

The suggestion was (and I would love someone to confirm this) that Apache is
accepting and passing to Tomcat more concurrent requests than Tomcat has
threads to deal with them.  Apache has a setting in httpd.conf called
MaxClients which is 150 by default - but the AJP Connector element in
Tomcats server.xml file defines the maxProcessors attribute to be 75 by
default.  The quickest fix is to up the maxProcessors value to 150.

If anyone can confirm that this mismatch could cause communication problems
over the mod_jk connector that would be very helpful.

I hope that helps,

Anthony.

 -Original Message-
 From: Ago Meister [SMTP:[EMAIL PROTECTED]]
 Sent: 18 September 2002 18:10
 To:   Tomcat Users List
 Subject:  mod_jk log file errors
 
 Hello there,
 
 My mod_jk log file contains many error messages?
 We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2.
 Does anybody any ideas or has experience with similar problems?
 
 
 errors are:
 
 [Mon Sep 16 15:38:18 2002]  [jk_ajp_common.c (933)]: Error
 ajp_process_callback - write failed
 [Mon Sep 16 15:38:20 2002]  [jk_ajp_common.c (933)]: Error
 ajp_process_callback - write failed
 [Mon Sep 16 15:43:27 2002]  [jk_ajp_common.c (933)]: Error
 ajp_process_callback - write failed
 [Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
 ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
 [Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
 jk_endpoint_t::service, ajp_get_reply failed in send loop 0
 [Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
 ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
 [Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
 jk_endpoint_t::service, ajp_get_reply failed in send loop 0
 [Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (652)]:
 ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (1013)]: Error reading reply
 
 and
 
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
 jk_endpoint_t::service, ajp_send_request failed in send loop 2
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
 ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1150)]: In
 jk_endpoint_t::service, ajp_get_reply failed in send loop 1
 [Mon Sep 16 15:44:22 2002]  [jk_connect.c (151)]: jk_open_socket,
 connect()
 failed errno = 111
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (599)]: In
 jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (844)]: Error connecting to
 the
 Tomcat process.
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
 jk_endpoint_t::service, ajp_send_request failed in send loop 2
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
 ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply
 
 kind regards,
 Ago Meister
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Virtual Hosting and Contexts

2002-09-19 Thread Anthony Milbourne

Hi

I have been trying to get Tomcat Contexts mapped to the root of an Apache
VirtualHost.  I did what you did too (under instruction from this list), and
used:
Context path= ... /
Which successfully mapped the context to the root of the VirtualHost if I
connected direct to Tomcat.  It didn't seem to work for connections via
Apache though.  I then discovered that the auto-generated config file for
mod_jk didn't have any mappings for my root context.  If I changed the path
to a non empty string then mappings were generated.  This seems to be a bug
but I may have just done something wrong.

The way I got round it was to use a non-empty path in order to get Tomcat to
generate some mappings.  Then I cut and pasted those mappings into
httpd.conf and edited them to what I wanted.  It is a cludge but it is
working as far as I can see.

I hope that helps,

Anthony.

 -Original Message-
 From: Brian Topping [SMTP:[EMAIL PROTECTED]]
 Sent: 17 September 2002 15:03
 To:   Tomcat Users List (E-mail)
 Subject:  Virtual Hosting and Contexts
 
 Good day,
 
 I'm rather new to setting up vhosting on Tomcat, but am quite familiar
 with
 it on Apache.  I am having some problems understanding the correct
 configuration to set up a root context on each apache virtual host, and
 was
 hoping someone here might be able to offer some pointers.
 
 Basically, I would like to have a different Tomcat context mapped to the
 root
 of each Apache VirtualHost/.  I am able to map a context with a
 different
 name to each site, in other words, one url http://a.foo.com/a-context/ and
 another http://b.foo.com/b-context, but not simply http://a.foo.com where
 the
 root goes to a-context and http://b.foo.com where the root goes to
 b-context.
 Httpd and Tomcat are on separate machines, for development httpd is on
 SuSE
 and Tomcat is on W2K, for deployment both with be on SuSE.
 
 I've taken a look at the autoconfiguration stuff, but it's leaving me lost
 in
 the weeds, and I don't mind maintaining the stuff manually anyway, so if
 you
 could, please help me focus on that.  I'm using httpd 1.3.36 with Tomcat
 4.0.4 and the mod_jk 4.0.4 connectors under DSO with EAPI.  
 
 Of course what I have below isn't working.  Can someone help me understand
 what I am missing?  My problem is in the context mapping stuff, otherwise
 all
 the connectors are confirmed to be working.
 
 Thanks a million for your consideration!!
 
 Brian
 
 #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
 
 Server
   Service name=JBoss-Tomcat
   Engine name=MainEngine defaultHost=a.digidemic.com
   Logger
 className=org.jboss.web.catalina.Log4jLogger verbosityLevel=trace
 category=org.jboss.web.localhost.Engine/
   Host name=a.digidemic.com
   Valve
 className=org.apache.catalina.valves.AccessLogValve
 prefix=localhost_access suffix=.log pattern=common
 directory=../server/default/log/
   Context path=
 docBase=C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/root.war
 debug=0/
   /Host
   Host name=b.digidemic.com
   Valve
 className=org.apache.catalina.valves.AccessLogValve
 prefix=localhost_access suffix=.log pattern=common
 directory=../server/default/log/
   Context path=
 docBase=C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/jmx-console
 .wa
 r debug=0/
   /Host
   /Engine
   !-- A HTTP Connector on port 8080 --
   Connector
 className=org.apache.catalina.connector.http.HttpConnector port=80
 minProcessors=3 maxProcessors=10 enableLookups=true acceptCount=10
 debug=5 connectionTimeout=6/
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=11009 minProcessors=5 maxProcessors=75 acceptCount=10/
   /Service
 /Server
 
 #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
 
 VirtualHost a.digidemic.com
 DocumentRoot /usr/local/httpd/htdocs/a.digidemic.com
 ServerName a.digidemic.com
 Alias /dav /usr/local/httpd/htdocs/a.digidemic.com
 Location /dav
 DAV On
 Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
 UNLOCK
 AuthUserFile /usr/local/httpd/htdocs/users
 AuthType Basic
 AuthName WebDAV
 Require user topping
 /Limit
 /Location
 JkMount /* tomcat1
 /VirtualHost
 
 VirtualHost b.digidemic.com
 DocumentRoot /usr/local/httpd/htdocs/b.digidemic.com
 ServerName b.digidemic.com
 Alias /dav /usr/local/httpd/htdocs/b.digidemic.com
 Location /dav
 DAV On
 Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
 UNLOCK
 AuthUserFile /usr/local/httpd/htdocs/users
 AuthType Basic
 AuthName 

RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues

2002-09-12 Thread Anthony Milbourne

Hi

I had a problem which looked a bit like that...

It was caused by the fact that the default workers.properties file that
comes with mod_jk 4.0.4 doesn't seem to work with tomcat 4.0.4.  Check the
workers.properties file to see if it mentions ajp14.  If it does then that
is probably your problem...
To fix it take a look at the example workers.properties in the (very good)
HowTo by John Turner:

http://www.johnturner.com/howto/apache-tomcat-howto.html

I hope that helps...

Anthony.

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: 11 September 2002 22:34
 To:   [EMAIL PROTECTED]
 Subject:  Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues
 
 
 -- Forwarded by Charbel Achkar/Bos/Teradyne on
 09/11/2002 05:34 PM ---
 
 
 Charbel Achkar
 09/11/2002 05:20 PM
 
 To:   [EMAIL PROTECTED]
 cc:
 
 Subject:  Tomcat 4.0.4 and Apache 1.3.26 and mod_jk
 
 
 Hello,
 
 I have installed and configured Apache 1.3.26 with modssl and openssl  +
 tomcat 4.0.4 with the corresponding Apache mod_jk. I started tomcat then
 apache and when I attempted to access the index.jsp under ROOT, the
 browser
 hangs and goes no where. the following error can be observed when info
 mode
 is set in httpd.conf
 
 INFO
 
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (652)]:
 ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (1013)]: Error reading reply
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (1150)]: In
 jk_endpoint_t::service, ajp_get_reply failed in send loop 0
 [Mon Sep 09 18:18:39 2002]  [jk_connect.c (151)]: jk_open_socket,
 connect() failed errno = 146
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (599)]: In
 jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (844)]: Error connecting to
 the Tomcat process.
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (1153)]: In
 jk_endpoint_t::service, ajp_send_request failed in send loop 1
 [Mon Sep 09 18:18:39 2002]  [jk_connect.c (151)]: jk_open_socket,
 connect() failed errno = 146
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (599)]: In
 jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (844)]: Error connecting to
 the Tomcat process.
 [Mon Sep 09 18:18:39 2002]  [jk_ajp_common.c (1153)]: In
 jk_endpoint_t::service, ajp_send_request failed in send loop 2
 
 
 And the followin is observed under DEBUG mode
 
 
 [Wed Sep 11 16:53:04 2002]  [jk_uri_worker_map.c (460)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Wed Sep 11 16:53:04 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
 URI '/test.jsp'
 [Wed Sep 11 16:53:04 2002]  [jk_uri_worker_map.c (558)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match
 jakarta-tomcat-4.0.4 - *.jsp
 [Wed Sep 11 16:53:04 2002]  [jk_worker.c (132)]: Into
 wc_get_worker_for_name jakarta-tomcat-4.0.4
 [Wed Sep 11 16:53:04 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
 done  found a worker
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (1355)]: Into
 jk_worker_t::get_endpoint
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (1079)]: Into
 jk_endpoint_t::service
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (280)]: Into
 ajp_marshal_into_msgb
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (413)]: ajp_marshal_into_msgb
 - Done
 [Wed Sep 11 16:53:04 2002]  [jk_connect.c (116)]: Into jk_open_socket
 [Wed Sep 11 16:53:04 2002]  [jk_connect.c (123)]: jk_open_socket, try to
 connect socket = 9
 [Wed Sep 11 16:53:04 2002]  [jk_connect.c (132)]: jk_open_socket, after
 connect ret = 0
 [Wed Sep 11 16:53:04 2002]  [jk_connect.c (140)]: jk_open_socket, set
 TCP_NODELAY to on
 [Wed Sep 11 16:53:04 2002]  [jk_connect.c (148)]: jk_open_socket, return,
 sd = 9
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (589)]: In
 jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 9
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (613)]: sending to ajp13 #379
 [Wed Sep 11 16:53:04 2002]  [jk_ajp_common.c (854)]: ajp_send_request 2:
 request body to send 0 - request body to resend 0
 
 Why is the browser locking and what is happening?
 
 Thanks!
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Url Mapping with mod_jk

2002-09-12 Thread Anthony Milbourne

Hi

I'm still trying to get this URL mapping to work.

I have sorted out some other problems in the mean time but still have a
problem (a different one) with URL Mapping.

As an asside: Your HowTo was very useful Jonh.  It turned out that I had a
previous deffinition of the virtualhost I wanted in Apache's httpd.conf
file.  I thought Apache would merge duplicates or complain - but it just
ignores redeffinitions.  It may be worth putting an asside in the HowTo
telling people to make sure the virtualhost isn't already defined.

Back to the URL mapping problem:

I tried using a command (in server.xml) such as:

Context path= docBase=stagenewngfl /

But this didnt generate a corresponding entry in the autogenerated
mod_jk.conf.  The standard entry mapping the stagenewngfl webapp to
/stagenewngfl was there but nothing else.

As an experiment I tried:

Context path=/ docBase=stagenewngfl /

which did generate an extra mapping in mod_jk.conf.  That mapping
unfortunately has an extra / in front of all the URL paths.  So
/stagenewngfl/index.jsp is now mapped to //index.jsp.

Any ideas why Tomcat is ignoring the context with the empty path parameter?

Thanks,

Anthony.

PS - Thanks also to Vincent Gaboriau for your response - hopefully I have
moved on a bit now.

 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 10 September 2002 13:18
 To:   'Tomcat Users List'
 Subject:  RE: Url Mapping with mod_jk
 
 
 This is a working workers.properties file, RH 7.2, Tomcat 4.0.4/4.1.10,
 Apache 1.3.26/2.0.40 using mod_jk 4.0.4 (NOT 4.1.10):
 
 # Setup for apache system
 #
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
 workers.java_home=/usr/java/j2sdk1.4.0_01
 ps=/
 worker.list=ajp12, ajp13
 
 # Definition for Ajp13 worker
 #
 # worker.ajp13.port=8009
 # worker.ajp13.host=localhost
 # worker.ajp13.type=ajp13
 
 worker.ajp13.port=8009
 worker.ajp13.host=xxx.yyy.com
 worker.ajp13.type=ajp13
 
 John
 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: French characters displaying using Tomcat 3.3

2002-09-11 Thread Anthony Milbourne

I have had problems with foreign characters under Solaris (not debian but
still unix).
In my case it turned out to be because of several things (at different
times) so I would check the following:

- Check the locale of your machine is set to something sensible.
- Check you have some foreign character packs installed.
- If MySQL is involved - check you are not using the (old) version of the
mm.mysql driver that messes up foreign characters.

I hope that helps,

Anthony.

 -Original Message-
 From: KONHAWA [SMTP:[EMAIL PROTECTED]]
 Sent: 10 September 2002 17:57
 To:   [EMAIL PROTECTED]
 Subject:  French characters displaying using Tomcat 3.3
 
 Hi to all,
 I'm using Tomcat 3.3 for a web application. I deployed
 it on Win 2000 and on Linux Mandrake 8.0 and I didn't
 faced no problem. But when I deployed it on Debian
 Linux, accent characters and other special french
 characters did not apear like they shoud.
 Is it possible to configure Tomcat so that it could
 support a type of character encoding, or it's the OS
 whish have to be configured? in any case tell me how
 to proceed.
 Tanks!
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Url Mapping with mod_jk

2002-09-10 Thread Anthony Milbourne

I'm replying to my own message because I have sort of made some progress

I have found (by reading the mod_jk.log - which I should have checked
before) that mod_jk was failing to connect to a socket.  I spent a long time
trying to figure out whi it couldn't connect as I could do it manually.
Eventually I realised that the latest version of mod_jk comes with a default
workers.properties file that is set up to use AJP14.  Tomcat 4.0.4 doesn't
seem to support AJP14 and the connection refused was caused by this.  All
the HowTos say you don't need to touch workers.properties unless you need to
do something unusual - this is not the case.

I have now got rid of the connection refused problem - but I still can't get
Apache/mod_jk to pass requests to Tomcat.

Could someone post or point me at a working workers.properties file as I
have now hacked mine arround and I'm not sure it is OK.

Also (going back to my orriginal problem) if anyone has any ideas why apache
isn't passing requests to tomcat I would love to hear them.  I get nothing
in any of the Tomcat or mod_jk logs and apache returns a page not found.

Sorry to keep posting here - but I really don't know what's going on.

Thanks,

Anthony.

PS - What does AJP14 do ?  I tried to find info but all I found was a faq
post saying AJP14 didn't exist as it was a failed experiment !?

 -Original Message-
 From: Anthony Milbourne [SMTP:[EMAIL PROTECTED]]
 Sent: 09 September 2002 16:38
 To:   'Tomcat Users List'
 Subject:  RE: Url Mapping with mod_jk
 
 Hi again
 
 The stagenewngfl host element is defined twice (which is a bit strange now
 I
 look at it).  Once in the Tomcat-Standalone service section and once in
 the
 Tomcat-Apache service section.  I do want it to be available both through
 Apache and direct from Tomcat.  I took a guess and got rid of the host in
 the Tomcat-Apache service.  This seems to have worked as the generated
 conf
 file now only has one virtualhost entry for stagenewngfl.  I presume from
 this that all contexts are shared among all services (even if the context
 isn't defined in the given service) - which seems a bit odd.
 
 Then I started playing and seeing if I could define an examples context
 under stagenewngfl.  I couldn't get it to work and it just gave me page
 not
 found.  I then tried changing the path attribute for the stagenewngfl
 context to be /stagenewngfl.  That didn't work either.  It seems that I
 can't get http://stagenewngfl.ngfl.gov.uk/anything-at-all/ to work.
 However
 I still seem to be able to get pages from my webapp if I go to the root
 (for
 instance http://stagenewngfl.ngfl.gov.uk/index.jsp), but that is when I
 get
 JSP source back.
 
 I am now more confused than I was :-(
 
 I hope this all means something to someone as I have lost it.
 
 I hope you can help,
 
   Anthony.
 
 PS I doubt the links in this mail will work as our firewall will probably
 block them.
 
  -Original Message-
  From:   Turner, John [SMTP:[EMAIL PROTECTED]]
  Sent:   09 September 2002 13:31
  To: 'Tomcat Users List'
  Subject:RE: Url Mapping with mod_jk
  
  
  Make sure there is only one Host container in server.xml for
  stagenewngfl.ngfl.gov.uk.  There should only be three Listener elements,
  one
  for Server, one for localhost, and one for stagenewngfl.ngfl.gov.uk.
  
  Do you get the source of the JSP pages when you access
  http://localhost/examples or only when you access
  http://stagenewngfl.ngfl.gov.uk/some.jsp ?  What is the URL of the JSP
  page
  you are trying to test...does it match any of the URL mappings in your
  mod_jk.conf?
  
  John
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Running tomcat 4.x using JBuilder

2002-09-10 Thread Anthony Milbourne

Hi 

Jbuilder 6 Pro  Ent come with Tomcat 4 as part of the product (well a
closely integrated add-on).  Juilder 7 doesn't have a Pro version (because
Borland wanted to force everyone to upgrade to the rather expensive
Enterprise edition), but the Ent version has Tomcat too.

If you don't have one of these versions (I presume not) then I'm affraid I
have not got any experience of manual integration.

I hope that helps.

Anthony.

 -Original Message-
 From: Michael Petres [SMTP:[EMAIL PROTECTED]]
 Sent: 09 September 2002 02:16
 To:   [EMAIL PROTECTED]
 Subject:  Running tomcat 4.x using JBuilder
 
 Is it at all possible???
 
 I have been using the following command successfully from within JBuilder
 for tomcat 3.2.2:
 
 java -classpath %CLASS_PATH% -Dtomcat.home=%TOMCAT_HOME%
 org.apache.tomcat.startup.Tomcat
 
 I cannot figure out what to use for 4.x ... Any ideas?
 
 Michael Petres
 ~
 InnovObjX Corp.
 Web: www.innovobjx.com
 Tel: 905-729-2235 x3
 Fax: 905-729-2235
 ~
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Virtual Host Auto Config

2002-09-10 Thread Anthony Milbourne

Hi

I am trying to get virtual hosts working too and am having problems.  I have
however got further than you (I think) thanks to help from people in this
group (notably John Turner).  If you look back in the archives (the last few
weeks) for a thread called URL mapping with mod_jk, you will probably find
it helpful.

 -Original Message-
 From: Gerstel, Rachel [SMTP:[EMAIL PROTECTED]]
 Sent: 10 September 2002 15:53
 To:   Tomcat Users List (E-mail)
 Subject:  Virtual Host Auto Config
 
 Hi,
 
 Sorry if this question has already been asked, but I have searched and not
 yet found the answer I need.
 
 I have an apache server 1.3.26 that I wish to integrate with tomcat and
 have
 name-based virtual hosts on. I think I am getting confused between the
 server itself and the virtual hosts. I am running tomcat 4.0.4 and when I
 start up Tomcat everything seems ok, but when I start up apache I get the
 following warning:
 [Tue Sep 10 16:26:30 2002] [warn] VirtualHost
 tre-mmc-pl.fra.ib.commerzbank.com:80 overlaps with VirtualHost
 cogapi01:80,
 the first has precedence, perhaps you need a NameVirtualHost directive
 
 This is the first time I have ever set-up tomcat so please excuse any
 glaring newbie mistakes in my config.
 
 Also, if anyone has input - how would I then set up the Apache side to
 serve
 static files? If I am automatically generating the Virtual Hosts
 directives,
 where I assume this information would need to be added then I am not sure
 how to get this extra information in there and still use the auto-config
 feature in tomcat.
 
 Thanks in advance for any help,
 Rachel
 
 This is my server.xml:
 
 Note - I have only have the one actual application right now so I used the
 name of the server as the first virtual host and the examples for tomcat
 as
 it's webapp:
 
SNIP 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Url Mapping with mod_jk

2002-09-09 Thread Anthony Milbourne
 /stagenewngfl/servlet/*  ajp13
JkMount /stagenewngfl/servlet/UserUpdateServlet  ajp13
JkMount /stagenewngfl/servlet/RoleDeleteServlet  ajp13
JkMount /stagenewngfl/servlet/CreateFeatureServlet  ajp13
JkMount /stagenewngfl/*.jsp  ajp13

 stagenewngfl.ngfl.gov.uk:/manager


# Static files 
Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /manager/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /manager/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /manager/*.jsp  ajp13
JkMount /manager/servlet/*  ajp13
JkMount /manager/*  ajp13
/VirtualHost

--- cut ---

Thanks again,

Anthony.


 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 06 September 2002 17:19
 To:   'Tomcat Users List'
 Subject:  RE: Url Mapping with mod_jk
 
 
 Actually, posting your mod_jk.conf file would be of more help...that's
 where
 the JkMount directives that aren't working should be.
 
 You have the Listener elements (*.ApacheConfig) in your server.xml.
 There's
 no need to have anything in httpd.conf except:
 
 Include /some/path/to/tomcat/conf/auto/mod_jk.conf
 
 The other thing I would change is to add forwardAll=false to your
 Listener
 directives...the default is true, and as far as I know, unless you
 explicitly state false, all requests for that URL will go to Tomcat,
 making Apache (and mod_jk) redundant.  You want only dynamic requests
 (*.jsp
 and servlet/*) to go to Tomcat.
 
 A working mod_jk.conf file is here:
 http://www.johnturner.com/howto/mod_jk_conf.html
 
 That file was generated by Tomcat, I didn't do anything to it except sub
 in
 xxx.yyy.com for my actual hostname.  
 
 John
 
  -Original Message-
  From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 12:10 PM
  To: 'Tomcat Users List'
  Subject: RE: Url Mapping with mod_jk
  
  
  Hi
  
  Thanks for that help - I now realise more about how the 
  server.xml works.
  I have done what you said and my webapp now appears in the 
  root url when I
  connect direct to Tomcat (which is great).  Unfortunately 
  when I connect via
  Apache I get back the JSP source, as if it has not gone 
  through Tomcat.  I
  have played around a bit and can't figure out what is going on.  
  Could you (or anyone) take a look at the config snippets 
  below and see if
  you can spot the problem.
  
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Url Mapping with mod_jk

2002-09-09 Thread Anthony Milbourne

Hi again

The stagenewngfl host element is defined twice (which is a bit strange now I
look at it).  Once in the Tomcat-Standalone service section and once in the
Tomcat-Apache service section.  I do want it to be available both through
Apache and direct from Tomcat.  I took a guess and got rid of the host in
the Tomcat-Apache service.  This seems to have worked as the generated conf
file now only has one virtualhost entry for stagenewngfl.  I presume from
this that all contexts are shared among all services (even if the context
isn't defined in the given service) - which seems a bit odd.

Then I started playing and seeing if I could define an examples context
under stagenewngfl.  I couldn't get it to work and it just gave me page not
found.  I then tried changing the path attribute for the stagenewngfl
context to be /stagenewngfl.  That didn't work either.  It seems that I
can't get http://stagenewngfl.ngfl.gov.uk/anything-at-all/ to work.  However
I still seem to be able to get pages from my webapp if I go to the root (for
instance http://stagenewngfl.ngfl.gov.uk/index.jsp), but that is when I get
JSP source back.

I am now more confused than I was :-(

I hope this all means something to someone as I have lost it.

I hope you can help,

Anthony.

PS I doubt the links in this mail will work as our firewall will probably
block them.

 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 09 September 2002 13:31
 To:   'Tomcat Users List'
 Subject:  RE: Url Mapping with mod_jk
 
 
 Make sure there is only one Host container in server.xml for
 stagenewngfl.ngfl.gov.uk.  There should only be three Listener elements,
 one
 for Server, one for localhost, and one for stagenewngfl.ngfl.gov.uk.
 
 Do you get the source of the JSP pages when you access
 http://localhost/examples or only when you access
 http://stagenewngfl.ngfl.gov.uk/some.jsp ?  What is the URL of the JSP
 page
 you are trying to test...does it match any of the URL mappings in your
 mod_jk.conf?
 
 John


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Url Mapping with mod_jk

2002-09-06 Thread Anthony Milbourne
 not confident enough with server.xml to know which bits are relevant.

Thanks for any help,

Anthony.


 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 04 September 2002 15:18
 To:   'Tomcat Users List'
 Subject:  RE: Url Mapping with mod_jk
 
 
 How is this not handled with a Host and Context element?
 
 Apache config:
 
 VirtualHost one.host.com
 JkMount /*.jsp AJP13
 
 VirtualHost two.host.com
 JkMount /*.jsp AJP13
 
 Tomcat:
 
 Host name=one.host.com
 Context path= docBase=one
 
 Host name=two.host.com
 Context path= docBase=two
 
 Host one files go in $CATALINA_HOME/webapps/one, host two files go in
 $CATALINA_HOME/webapps/two.  So then you would have one.host.com/index.jsp
 and two.host.com/index.jsp.
 
 I haven't tried this with 4.x, the tomcats I have with virtual hosts are
 all
 3.x and server.xml is quite a bit different, but I don't see why it
 wouldn't
 work, especially with some tweaking.
 
 John
 
  -Original Message-
  From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 04, 2002 9:58 AM
  To: '[EMAIL PROTECTED]'
  Subject: Url Mapping with mod_jk
  
  
  Hi
  
  I know this question was asked in Feb but it didn't seem to 
  get a full reply
  back then - so I'm asking again.
  
  I have one instanve of Apache 1.3 talking over mod_jk to one 
  instance of
  Tomcat 4.0.4.  Apache has 2 virtualhosts set up for the 2 
  webapps deployed
  on Tomcat.  Both virtualhosts need to have the webapps mapped 
  to the root
  url.
  
  Currently I am using directives like:
  
  JkMount /app1/*.jsp ajp13
  
  but this mounts the webapp under the /app1 url.  I can't make app1 the
  Tomcat root app as this would also need to be done for app2.  With
  mod_webapp you can mount a given webapp under a given URL - 
  but I haven't
  seen anything like this for mod_jk.  Is it possible with 
  mod_jk or do I have
  to kludge it with an apache alias ?
  
  Thanks,
  
  Anthony.
  
  PS - sorry if Outlook has filled this post with HTML.
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Load Balancing Tomcat 3.2.3

2002-09-06 Thread Anthony Milbourne

Hi

I found a reasonably good article on this at http://www.ubeans.com/tomcat/.
It covers Tomcat 4.0.2 so there may be some differences but I imagine the
mod_jk bits will be the same.

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: 06 September 2002 13:29
 To:   [EMAIL PROTECTED]
 Subject:  Load Balancing Tomcat 3.2.3
 
 Hi,
 
 I am currently trying to install and configure Tomcat 3.2.3 in a Load
 Balanced configuration across two Solaris Servers.  I have tried to find a
 documented procedure for this but no joy.  Does anyone have such
 procedure?
 
 Thanks in Advance,
 
 Ian.
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Warp connector segfault

2002-09-05 Thread Anthony Milbourne

I have been working with Apache + Tomcat with the warp connector under
Solaris 8.

We have just switched to using the mod_jk connector as it seems to be the
more supported option.

Several pointers that might help:

If you get Apache as a binary from sun it will be compiled with the sun
compiler - this can cause problems if you try to integrate it with things
built using GCC.  Best to build your own (newer) version of Apache.  As has
been said your Apache version is very old.  When you build Apache enable
EAPI support as it will save you time later.

We had some problems building mod_jk but have done it now.  We have binaries
for Apache 1.3.26 on solaris 8 if you want them (also the jar to integrate
with Tomcat 4.0.4).

Hope that helps,

Anthony.

 -Original Message-
 From: Zabel, Ian [SMTP:[EMAIL PROTECTED]]
 Sent: 04 September 2002 22:55
 To:   '[EMAIL PROTECTED]'
 Subject:  Warp connector segfault
 
 Hello all,
 
 We are trying to get Apache 1.3.12 working with Tomcat 4.0.4 and are using
 the warp(1.2.0-dev, i think) connector. We are using solaris8, and Apache
 and Tomcat are on different servers. But, whenever we try to connect to /
 or
 /examples, we get segmentation faults in apache. Something's not right,
 and
 we have been spent over a week trying to get Apache to work with Tomcat
 using the warp connector. If we can't get this working in about a day or
 so,
 we will probably be going for NewAtlanta's ServletExec. The boss doesn't
 mind paying if he can get support, I guess... so, here's our config and
 the
 errors we're seeing:
 
 We've gotten the connector compiled, and included in Apache like this:
 LoadModule webapp_module  libexec/mod_webapp.so
 AddModule mod_webapp.c
 
 VirtualHost 10.101.10.100:17890
 ServerName server.ourcompanyname.com
 ... other directives, including a DocumentRoot... 
 
 WebAppConnection warpConnection warp 10.101.10.98:8181
 WebAppDeploy examples warpConnection /examples/
 WebAppDeploy cirqit-tom warpConnection /
 WebAppInfo /webapp-info
 /VirtualHost
 
 We also have other virtual hosts in apache that are on different IP
 addresses, and different ports. 10.101.10.100:17890 is the only host with
 WebApp directives. The other hosts are all using ServletExec as a servlet
 engine. (So, of course, that means, we also have mod_servletexec loaded!)
 
 In Tomcat, we have the Http and mod_jk connector tags commented out, and
 only the webapp one enabled. here's what it looks like:
 
   Service name=Tomcat-Apache
 
 Connector
 className=org.apache.catalina.connector.warp.WarpConnector
  port=8181 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/
 
 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=server.ourcompanyname.com defaultHost=server.ourcompanyname.com
 debug=1 appBase=webapps
 
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
 
   !-- Because this Realm is here, an instance will be shared globally
 --
   Realm className=org.apache.catalina.realm.MemoryRealm /
 
 /Engine
 
   /Service
 
 
 
 Apache error log gets these whenever I make a request to /:
 [Wed Sep  4 17:30:40 2002] [notice] child pid 13483 exit signal
 Segmentation
 Fault (11)
 [Wed Sep  4 17:34:34 2002] [notice] child pid 13513 exit signal
 Segmentation
 Fault (11)
 
 
 Tomcat's apache access log has this in it:
 2002-09-04 17:38:22 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from /10.101.10.99:59781 to /10.101.10.98:8181
 2002-09-04 17:38:27 WarpEngine[cirqit-dev.cirqit.com]: Mapping request
 2002-09-04 17:38:27 WarpHost[cirqit-dev.cirqit.com]: Mapping request for
 Host
 2002-09-04 17:38:27 [org.apache.catalina.connector.warp.WarpConnection]
 Exception on socket
 java.io.IOException: Premature packet header end
 at
 org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java
 :2
 37)
 at
 org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHa
 nd
 ler.java:112)
 at
 org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:
 19
 4)
 at java.lang.Thread.run(Thread.java:536)
 
 2002-09-04 17:38:28 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from /10.101.10.99:59782 to /10.101.10.98:8181
 2002-09-04 17:39:34 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from /10.101.10.99:59783 to /10.101.10.98:8181
 2002-09-04 17:39:36 [org.apache.catalina.connector.warp.WarpConnector]
 Connection from /10.101.10.99:59784 to /10.101.10.98:8181
 
 
 
 
 
 
 So, what seems like it could be wrong? Is our actual mod_webapp.so screwed
 up? Is it just our configuration? What could be causing these segfaults in
 the connector? Should 

Url Mapping with mod_jk

2002-09-04 Thread Anthony Milbourne

Hi

I know this question was asked in Feb but it didn't seem to get a full reply
back then - so I'm asking again.

I have one instanve of Apache 1.3 talking over mod_jk to one instance of
Tomcat 4.0.4.  Apache has 2 virtualhosts set up for the 2 webapps deployed
on Tomcat.  Both virtualhosts need to have the webapps mapped to the root
url.

Currently I am using directives like:

JkMount /app1/*.jsp ajp13

but this mounts the webapp under the /app1 url.  I can't make app1 the
Tomcat root app as this would also need to be done for app2.  With
mod_webapp you can mount a given webapp under a given URL - but I haven't
seen anything like this for mod_jk.  Is it possible with mod_jk or do I have
to kludge it with an apache alias ?

Thanks,

Anthony.

PS - sorry if Outlook has filled this post with HTML.


***
Becta's new 'Ask an Expert' service provides you with the opportunity to consult an 
online panel of experts for help with a whole range of advice on ICT issues, with a 
different theme each month.
The theme for September's 'Ask an Expert' is Technical Enquiries - a specialist panel 
of experts are available to help you with any technical issues that are worrying you - 
there are no restrictions on what you can ask. So whether you simply want to know how 
to connect up your printer, or if you need advice on buying ICT equipment and 
services, our experts will be on hand to offer advice and guidance.  Find out more at:
http://www.ictadvice.org.uk/expert
***


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