HELP: socket write error connection abort

2003-08-27 Thread W. Gao
Hi, all,
I am using Tomcat 4.1.24 and I got the error below sporadically. It happens when I use 
IE to GET a HTML page which contains references to some GIF and htc files. There are 
about 30 GET requests sent to the Tomcat server when loading the HTML page. Sometimes, 
IE can't load the page, but got Page Cannot Be Displayed error. On the server side, 
I observe that only a few GET requests have reached my Servlet, for some unknown 
reason, it stops there. Below is the error trace. Does anyone know why this happens? 
Who closes the socket, client or server? Why? Does the client send too many GET 
requests to the server concurrently?

What is strange about this problem is that sometimes everything is fine, and I 
couldn't reproduce the problem at all. But it may show up all of a sudden.

I have searched the forum and seen many posts about socket excpetions, but one seems 
to address my problem. Anyone can give me a hand on this?

Thanks.

Wei


2003-08-26 11:54:14 ApplicationDispatcher[/atlas] Servlet.service() for servlet 
default threw exception
java.net.SocketException: Software caused connection abort: socket write error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at 
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
 at 
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:160)
 at 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
 at org.apache.coyote.Response.doWrite(Response.java:524)
 at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
 at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
 at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)
 at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411)
 at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
 at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110)
 at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
 at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
 at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
 at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
 at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
 at Authenticate.doGet(Authenticate.java:125)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 

Re: socket write error connection abort

2003-08-27 Thread W. Gao
Oh, forgot to say that each of the 30 GET requests will invoke the same Servlet class 
which does authentication. Is this error caused by calling the same Servlet again and 
again too fast? If so, is there any solutions?

Thanks.

Wei

- Original Message - 
From: W. Gao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 2:17 PM
Subject: HELP: socket write error  connection abort


 Hi, all,
 I am using Tomcat 4.1.24 and I got the error below sporadically. It happens when I 
 use IE to GET a HTML page which contains references to some GIF and htc files. There 
 are about 30 GET requests sent to the Tomcat server when loading the HTML page. 
 Sometimes, IE can't load the page, but got Page Cannot Be Displayed error. On the 
 server side, I observe that only a few GET requests have reached my Servlet, for 
 some unknown reason, it stops there. Below is the error trace. Does anyone know why 
 this happens? Who closes the socket, client or server? Why? Does the client send too 
 many GET requests to the server concurrently?
 
 What is strange about this problem is that sometimes everything is fine, and I 
 couldn't reproduce the problem at all. But it may show up all of a sudden.
 
 I have searched the forum and seen many posts about socket excpetions, but one seems 
 to address my problem. Anyone can give me a hand on this?
 
 Thanks.
 
 Wei
 
 
 2003-08-26 11:54:14 ApplicationDispatcher[/atlas] Servlet.service() for servlet 
 default threw exception
 java.net.SocketException: Software caused connection abort: socket write error
  at java.net.SocketOutputStream.socketWrite0(Native Method)
  at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
  at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
  at 
 org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
  at 
 org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:160)
  at 
 org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
  at org.apache.coyote.Response.doWrite(Response.java:524)
  at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
  at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
  at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)
  at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411)
  at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
  at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110)
  at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
  at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
  at 
 org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
  at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
  at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
  at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
  at Authenticate.doGet(Authenticate.java:125)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
  at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
  

Re: how to make a scheduled event on tomcat

2003-08-27 Thread Christopher Williams
Use a java.util.Timer.  Store the next scheduled event time in a Preferences
object.  If Tomcat isn't running when your event is due, run it on next
startup.  Then update the event time in Preferences.

Chris Williams.

- Original Message - 
From: Vladimer Shioshvili [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 9:14 PM
Subject: how to make a scheduled event on tomcat


 i would like to have a method that would run every-so-often (let's say two
 weeks). i am guessing listener could be an option.. is there a better
 solution to achieve this?

 thanks
 Vlad

 
 Vladimer Shioshvili

 QRC Division of Macro International Inc.
 7315 Wisconsin Avenue, Suite 400W
 Bethesda, MD 20814

 Phone: (301) 657 3077 ext. 155


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





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



javac problems with Tomcat as NT Service

2003-08-27 Thread Turansky, Mark
I have installed the J2SE and J2EE SDKs to c:\java.
I installed Tomcat to c:\Tomcat.
I have X_HOME variables for both installations in my computers Environment Variables.

The problem is that the SDKs also install a JRE to c:\program files\java\.

When I run Tomcat in a console window, everything runs fine.  Tomcat uses JAVA_HOME 
which has javac.

When Tomcat runs as a service, I assume it is using the JRE in Program Files because 
JSPs that have not
been compiled cannot be!  I receive an error and the logs point to the fact that 
Tomcat cannot create 
the javac process.

Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of 
the Program Files JRE?  Are there any other solutions to this problem?  I don't want 
to have to precompile every JSP page before I put code onto my production box, nor do 
I want to run my production server in a console window started by hand.

Thanks in advance,
Mark Turansky

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



[NON DELIVERY NOTIFICATION

2003-08-27 Thread postmaster

This message was verified by the filtering system of our mail
server.

Original message was replaced by this one by the following
reason :

*** A suspicious file (executable code) was found in the message !

Original message had the following attached files :

   (X-FILE ??? ) : your_details.pif
TYPE : application/octet-stream

   SUSPECT FILES : 1

Original message was sent by

   From : [EMAIL PROTECTED]

If you think this is an error and the message should not
be rejected by the filtering system, you may contact you
system administrator for instructions.

If you have any questions, you can contact us :

  [EMAIL PROTECTED]

Sincerely,

  [EMAIL PROTECTED]   



 j-chkmail - (c) Ecole des Mines de Paris 2002


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



RE: mod_jk and Tomcat Lose Touch

2003-08-27 Thread Fred Whipple
 Looks like there is a mismatch between the workers.properties and the
 server.xml (Tomcat's config file). The server.xml sets up Tomcat. More
 importantly, it sets up a Connector which opens a socket 
 connection on a
 defined port (Look for the Connector' section in the Service 
 section of
 the server.xml). This port is what mod_jk needs to know about in the
 workers.properties. Some snippets from my config:

...
 
 Check out both of these files and make sure the config is setup
 cporrectly. It looks like either the Connector is not 
 configured or the
 workers.properties does not have the right info for the 
 workers spawned
 by Apache.

Unfortunately it's not nearly this simple :-(  Per my original post, we have
~150 Tomcat instances running, all properly configured, and 1 instance of
Apache on the server.  If I say, 'killall' the JVM's, and then start them
back up again, everything will work perfectly.  After a day or two, some of
the sites will then lose their connectivity to Apache/JK.  Simply restarting
the JVM will fix things for a further day or two (for the sites configured
to work with the JVM that I restart), thereby ruling-out a misconfiguration
(though not ruling-out a possible non-optimal-configuration).

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

...

 Do you use multiple Apaches on the server? 

Just one.

 Since I would be speculating wildly, why not post the 
 workers.properties
 file as well as the Connector tags in the server.xml on the Tomcats.

Well, 150 workers in the workers.properties file would be a bit large for
starters ;-)  So would 150 server.xml's...  But regardless, I'm certain
they're all configured properly, it's just a matter of Tomcat's AJP 1.3
service and mod_jk losing touch after some period of time.

-Fred


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



RE: newbie - finding class files

2003-08-27 Thread Stuart MacPherson
What's wrong with putting them in CATALINA_HOME/common/lib?


-Original Message-
From: P.van Kemenade [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 16:49
To: Tomcat List
Subject: RE: newbie - finding class files

Hi

I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.

this url

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
makes it clear why.

but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.

should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?

  that should work, but it sounds ugly.




 On Tue, 16 Jul 2002, Andreas Probst wrote:

  Date: Tue, 16 Jul 2002 13:59:49 +0200
  From: Andreas Probst [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: newbie - finding class files
 
 
   On Mon, 15 Jul 2002, Andreas Probst wrote:
  
   
Hi all,
   
does Tomcat really look into tomcatdir/server/lib? For me it 
 seems
Tomcat doesn't.
   
  
   This directory is only visible to the classloader for Tomcat 
 itself, not
   for webapps.  There is a special rule that makes servlet classes in
   package org.apache.catalina available to webapps anyway, 
 however, which
   is why the standard WebdavServlet (as well as the other Tomcat 
 features
   that are available via servlets) can be loaded.
  
   Craig
 
  Thank you Craig.
 
  Could you please tell more about the rule or give a pointer. The
  class-loader-info of the Tomcat-Docu says nothing about the rule, but
  says, that These classes and resources are TOTALLY invisible to web
  applications.
 

 Actually, the rule is very simple, and it is there in the docs.  Look 
 at
 the picture of the class loader hierarchy in the Tomcat docs:

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

 The classes that are visible to a web application are those in the 
 class
 loader for that webapp, and any of it's parent class loaders.  In other
 words, an application can see the WebappX class loader for itself, 
 plus
 the Shared, Common, System, and Bootstrap class loaders.  It 
 can
 *not* see the Catalina class loader.


thanks,
*-pike
---
Editorship Styling 'Techniek is waistline, Publish the plan!'
What make the method strong until for instance one newspaperman who
wish publish and not with technique wish turn troublesome fallen?
The
clientèle with all the bye bye the handshake with examples decrepit.

The
motto: 'Techniek is waistline, publish the plan!'

http://www.worldlanguage.com/Translation.htm 

==
The key words MUST, MUST NOT, REQUIRED, SHALL,
SHALL NOT  SHOULD, SHOULD NOT, RECOMMENDED,
MAY, and OPTIONAL in this document  are to be interpreted
as described in [RFC2119]



I wasted time, and now doth time waste me.
Or now hath time made me his numb’ring clock:
My thoughts are minutes; and, with sighs, they jar
Their watches on to mine eyes, the outward watch,
Whereto my finger, like a dial’s point,
Is pointing still, in cleansing them from tears.

http://framework.v2.nl/archive/archive/node/text/default.py/nodenr-67731

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




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



RE: how to make a scheduled event on tomcat

2003-08-27 Thread Kevin Williams
Or if you're on a linux environment, just use crontab by itself.  I've
heard there's something similar in the windows environment as well.

On Tue, 2003-08-26 at 13:25, Shapira, Yoav wrote:
 
 Howdy,
 Like JCrontab? http://jcrontab.sourceforge.net/index.shtml ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 4:15 PM
 To: Tomcat Users List
 Subject: how to make a scheduled event on tomcat
 
 i would like to have a method that would run every-so-often (let's say
 two
 weeks). i am guessing listener could be an option.. is there a better
 solution to achieve this?
 
 thanks
 Vlad
 
 
 Vladimer Shioshvili
 
 QRC Division of Macro International Inc.
 7315 Wisconsin Avenue, Suite 400W
 Bethesda, MD 20814
 
 Phone: (301) 657 3077 ext. 155
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: newbie - finding class files

2003-08-27 Thread Pike
Hi

thanks for your response (sorry about the repeated post - my mistake)

What's wrong with putting them in CATALINA_HOME/common/lib?
well, nothing. it just sounds very ugly, having the same jar files
running twice in one tomcat, once in server/lib and once in common/lib.
is this how its _normally_ done ?
another point is, tomcat starts complaining about 'bundles' then,
but this may be solvable...
I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.
this url

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
makes it clear why.
but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.
should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?
  that should work, but it sounds ugly.



On Tue, 16 Jul 2002, Andreas Probst wrote:

Date: Tue, 16 Jul 2002 13:59:49 +0200
From: Andreas Probst [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: newbie - finding class files

On Mon, 15 Jul 2002, Andreas Probst wrote:

Hi all,

does Tomcat really look into tomcatdir/server/lib? For me it  seems
Tomcat doesn't.
This directory is only visible to the classloader for Tomcat  
itself, not
for webapps.  There is a special rule that makes servlet classes in
package org.apache.catalina available to webapps anyway, however,  
which
is why the standard WebdavServlet (as well as the other Tomcat  
features
that are available via servlets) can be loaded.

Craig
Thank you Craig.

Could you please tell more about the rule or give a pointer. The
class-loader-info of the Tomcat-Docu says nothing about the rule, but
says, that These classes and resources are TOTALLY invisible to web
applications.
Actually, the rule is very simple, and it is there in the docs.  Look  
at
the picture of the class loader hierarchy in the Tomcat docs:

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

The classes that are visible to a web application are those in the  
class
loader for that webapp, and any of it's parent class loaders.  In  
other
words, an application can see the WebappX class loader for itself,
plus the Shared, Common, System, and Bootstrap class loaders.  
 It
can*not* see the Catalina class loader.


thanks,
*-pike
==
Signature #1
==
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TOMCAT User

2003-08-27 Thread Filip Hanik
Mensagemyes, look it up in the HttpServletRequest API,
I think it is something like getUserPrincipal()

Filip
  - Original Message - 
  From: Oscar (Eccox) 
  To: Tomcat Users List 
  Sent: Tuesday, August 26, 2003 2:38 PM
  Subject: TOMCAT User


  Hi,

  Is there any attribute on the REQUEST where I can know what user is requesting the 
page ??? I'm using tomcat-users.xml...

  Thanks,
  ===
José Oscar de Souza Eduardo
Coordenador de Projetos
tel: 3047-4541
fax: 3047-4550
[EMAIL PROTECTED]
===  



Re: Webdav and security

2003-08-27 Thread Pike
Hi Duncan

check this
	http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg101208.html
see the http-method tags specified there ?

if i get it right, you dont want to open the methods GET and POST
for everyone, and after that, you want to restrict all methods
(PUT,DELETE,PROPFIND,etc) to a certain role
does that help ? I havent actually tried this :-)

I have included the  org.apache.catalina.servlets.WebdavServlet
in the web.xml descriptor for my application

servlet
 servlet-nameWebdavServlet/servlet-name
	servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet- 
class

 servlet-mapping
 servlet-nameWebdavServlet/servlet-name
 url-pattern//url-pattern
  /servlet-mapping
It all falls down when I try to add security however.

If all requests have to go through the webdav servlet, then if I assign
the following constraint
security-constraint
 web-resource-collection
web-resource-nameThe Webdav bit/web-resource-name
url-pattern/*/url-pattern !-- or just
url-pattern//url-pattern --
 /web-resource-collection
 auth-constraint
role-namesomerole/role-name
 /auth-constraint
   /security-constraint
this means that no one can see my site unless they log in . Which is  
not
what I want of course.


goodluck,
*-pike
===
404 Not Found - The weapons you are looking for are currently  
unavailable. The country might be experiencing technical difficulties,  
or you may need to adjust your weapons inspectors mandate.

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


RE : Dynamically update server.xml httpd.conf

2003-08-27 Thread Sylvain Barrette

Graceful restart for Apache 2.0
http://httpd.apache.org/docs-2.0/stopping.html#graceful

Or 1.3

http://httpd.apache.org/docs/stopping.html


Jonh Turner wrote:

Yep, its a restart.  If you use restart then all open connections
will 
be dropped.  If you use graceful, Apache will block new requests, and

wait until all open connections are closed before restarting.


So yes should probably be maybe. :)

John

Shapira, Yoav wrote:

 Howdy,
 
 
Apache = yes ($APACHE_HOME/bin/apachectl graceful OR 
$APACHE_HOME/bin/apachectl restart)
 
 
 But doesn't this do an apache restart, i.e. doesn't swap the changes 
 in-memory?  Of course, the apache restart is so quick it might not 
 matter ;)
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for the 
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else.  If you are not the(an) 
 intended recipient, please immediately delete this e-mail from your 
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 2003-08-19
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 2003-08-19
 


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



RE: Tomcat 3.2.4 behind a proxy

2003-08-27 Thread Brian Peterson
Hello,

You may want to upgrade to a 4.1.x or 5.0.x version of Tomcat.  I'm having
issues with certain keep-alives in 4.1.27, but other than that the reverse
proxy setup I have seems to work well.

Good Luck!

Brian Peterson

 -Original Message-
 From: Armenio Pinto [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 3:30 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 3.2.4 behind a proxy


 Hi there,

  I'm replying because I haven't received any answers yet.
 Is the list
 working correctly (I received the e-mail, so...)? Is the
 question confusion
 in any way? I really need to solve this problem, because
 currently I can't
 make Tomcat available to the users. Thanks in advance,

 Arménio Pinto


 -Original Message-
 From: Armenio Pinto [mailto:[EMAIL PROTECTED]
 Sent: segunda-feira, 25 de Agosto de 2003 16:41
 To: 'Tomcat Users List'
 Subject: Tomcat 3.2.4 behind a proxy


 Hi there,

  I'm current using Tomcat 3.2.4 in a private network, and
 want to give
 access to external clients through an Apache server
 configured as proxy. The
 problem is that Tomcat is changing request addresses... I
 know how to solve
 this problem in Apache (simply turn UseCanonicalName off),
 but how can I do
 it in Tomcat?

 For example: if the proxy address to Tomcat is
 www.test.pt/tomcat, it seems
 that Tomcat changes it to www.othersidetest.pt:8080.

 Thanks in advance,
 Arménio Pinto

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

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



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



jsp:include

2003-08-27 Thread Luke Vanderfluit
Hi,

I want to include the output of a sevlet in my html page.
I have the following:

BlockOfHTMLCODE

jsp:include page=/servlet/foo flush=true/

BlockOfHTMLCODE

in my html file,
The first block of HTML is output, 
then the server output is output
but the last block of html is not output,

can someone help and tell me why that is,

thanks,
kind regards,

Luke

-- 

when my computer smiles, I'm happy
==.~ ~,=
Luke Vanderfluit   |  |'/']
Mobile: 0421 276 282   |   \~/`


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



Reverse Proxy with 4.1.27

2003-08-27 Thread Brian Peterson
Many thanks to Henrik and Bill for helping me to get enough info to debug.

Replying to my own, and changing subject to reflect changes in environment.

Anybody have any idea why Tomcat would not honor 1.0 keep-alives?  In
general or specifically from a Squid proxy.

I've included the request dumper output.  Tomcat sends a Connection: Close
header, then disconnects, then sends more data.

Any ideas?

Brian Peterson

 -Original Message-
 From: Brian Peterson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 5:46 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4.1.18 and SQUID


 Many thanks Bill, for a hint.

 snip
 
  Tomcat doesn't honor a HTTP/1.0 Connection: keep-alive
 when it comes from
  SQUID.  I've upgraded Tomcat to 4.1.27 (latest stable),
 and I am still
  seeing these errors.  Any ideas?
 

 Not really.  Tomcat is supposed to handle HTTP/1.0
 Keep-Alives.  You could
 try enabling the RequestDumper and posting the results.

 It appears as if tomcat says connection:close and then
 spews more data.
 Very strange.

 Here is the Request Dumper output...

 2003-08-19 17:27:02 RequestDumperValve[/path]: REQUEST URI
 =/path/to/app.file
 2003-08-19 17:27:02 RequestDumperValve[/path]:   authType=null
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 characterEncoding=utf-8
 2003-08-19 17:27:02 RequestDumperValve[/path]:  contentLength=874
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 contentType=text/xml;
 charset=utf-8
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 contextPath=/path
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; MS Web
 Services Client
 Protocol 1.1.4322.573)
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=content-type=text/xml; charset=utf-8
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=soapaction=urn:appname
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=content-length=874
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=expect=100-continue
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=via=1.1
 squid.host:2000 (squid/2.5.STABLE3)
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=x-forwarded-for=xxx.yyy.zzz.www
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=host=server.host
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=cache-control=max-age=5184000
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 header=connection=keep-alive
 2003-08-19 17:27:02 RequestDumperValve[/path]: locale=en
 2003-08-19 17:27:02 RequestDumperValve[/path]: method=POST
 2003-08-19 17:27:02 RequestDumperValve[/path]:   pathInfo=null
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 protocol=HTTP/1.0
 2003-08-19 17:27:02 RequestDumperValve[/path]:queryString=null
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 remoteAddr=xxx.yyy.zzz.www
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 remoteHost=squid.host
 2003-08-19 17:27:02 RequestDumperValve[/path]: remoteUser=null
 2003-08-19 17:27:02 RequestDumperValve[/path]: requestedSessionId=null
 2003-08-19 17:27:02 RequestDumperValve[/path]: scheme=http
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 serverName=server.host
 2003-08-19 17:27:02 RequestDumperValve[/path]: serverPort=80
 2003-08-19 17:27:02 RequestDumperValve[/path]:servletPath=null
 2003-08-19 17:27:02 RequestDumperValve[/path]:
 isSecure=false
 2003-08-19 17:27:02
 RequestDumperValve[/path]:
 -
 --
 2003-08-19 17:27:20
 RequestDumperValve[/path]:
 -
 --
 2003-08-19 17:27:20 RequestDumperValve[/path]:   authType=null
 2003-08-19 17:27:20 RequestDumperValve[/path]:  contentLength=-1
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 contentType=text/xml;
 charset=utf-8
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 cookie=JSESSIONID=47447E2713208AC8220A1BAF587D19E5;
 domain=null; path=/path
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 header=Set-Cookie=JSESSIONID=47447E2713208AC8220A1BAF587D19E5;
  Path=/path
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 header=Content-Type=text/xml; charset=utf-8
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 header=Date=Wed,
 20 Aug 2003 00:27:20 GMT
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 header=Server=Apache Coyote/1.0
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 header=Connection=close
 2003-08-19 17:27:20 RequestDumperValve[/path]:message=null
 2003-08-19 17:27:20 RequestDumperValve[/path]: remoteUser=null
 2003-08-19 17:27:20 RequestDumperValve[/path]: status=200
 2003-08-19 17:27:20 RequestDumperValve[/path]:
 ===


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



Re: request.getRemoteUser() only non-null on protected pages

2003-08-27 Thread Christopher Williams
Which type of authentication are you using.  I find that SSL-Slient
authentication causes getUserPrincipal() (or getRemoteUser()) to return
null.  I don't know why this is.  BASIC or DIGEST authentication should work
OK, though.

If you describe your problem to me again, I may have some insights as I am
currently working on something similar.

Kind regards,

Chris Williams.



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



Request dispatcher fails on encoded url when used in post (Bug?)

2003-08-27 Thread Neil Aggarwal
Hello:

I am getting a failure in my code when using a request dispatcher
to forward the request to an encoded url from a post operation.

To see it in action, do the following:
1. Turn off cookies on your browser
2. Visit http://dev.jammconsulting.com/gen?_template=/index.jsp
3. Hit the Test button.

You will get this error:

HTTP Status 404 - /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5


type Status report
message /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
description The requested resource
(/gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5) is not available.


Apache Tomcat/4.1.27

Now, turn on cookies and try it again.  You will get a page that states:
This is compose.jsp 
Session id is BFBC13C89DD4B3F5A98EF8E53F0D6A45 

I thought that Tomcat is supposed to act the same with cookies on or off

when I use encodeURL on all of my urls.


Here is the code behind this sample:

In httpd.conf, ask apache to map all urls that begin with /gen into
tomcat:
  LocationMatch /gen
JkUriSet worker ajp13:localhost:8009
  /LocationMatch

In tomcat server.xml, I told tomcat that the root context uses
my app:
Context path= docBase=email debug=0/

In my app's web.xml, told it to map all request for /gen to
my test servlet:
?xml version=1.0 encoding=ISO-8859-1?

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

web-app

servlet
servlet-namesls/servlet-name
servlet-class
servlet.TestServlet
/servlet-class
/servlet

servlet-mapping
servlet-namesls/servlet-name
url-pattern/gen/*/url-pattern
/servlet-mapping

session-config
session-timeout50/session-timeout
/session-config

/web-app

Here is my test servlet, which forwards all requests to the appropriate
template:
package servlet;

import java.io.*;
import java.net.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class TestServlet extends HttpServlet {
  private void process(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
 
getServletContext().getRequestDispatcher(request.getParameter(_template
)).forward(request, response);
  }
  
  protected void doGet(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
process(request,response);
  }
  
  protected void doPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
process(request,response);
  }
}

Here is the index.jsp template, which posts to the massCompose template:
P
Session id is %= session.getId() %
P

form name=groupList method=post action=%=
response.encodeUrl(/gen) %
  input type=hidden name=_template value=/massCompose.jsp
  input type=submit value=test
/form

Here is the massCompose template which forwards to the compose template:
% 
  RequestDispatcher rdispatch = 
request.getRequestDispatcher(response.encodeURL(/gen?_template=/compose
.jsptype=normal));
  rdispatch.forward(request, response);
%

Here is the compose template which just displays a message:
HTML

  BODY
This is compose.jsp
P
Session id is %= session.getId() %
P
  /BODY

/HTML

Any ideas why this is occurring?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Request dispatcher fails on encoded url when used in post (Bug?)

2003-08-27 Thread Filip Hanik
that is a funky url, it has a space in it, and the last / should be
encoded

Filip

 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 5:45 PM
 To: 'Tomcat-User'
 Cc: Jeff Patterson
 Subject: Request dispatcher fails on encoded url when used in post
 (Bug?)


 Hello:

 I am getting a failure in my code when using a request dispatcher
 to forward the request to an encoded url from a post operation.

 To see it in action, do the following:
 1. Turn off cookies on your browser
 2. Visit http://dev.jammconsulting.com/gen?_template=/index.jsp
 3. Hit the Test button.

 You will get this error:

 HTTP Status 404 - /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
 
 
 type Status report
 message /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
 description The requested resource
 (/gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5) is not available.
 
 
 Apache Tomcat/4.1.27

 Now, turn on cookies and try it again.  You will get a page that states:
 This is compose.jsp
 Session id is BFBC13C89DD4B3F5A98EF8E53F0D6A45

 I thought that Tomcat is supposed to act the same with cookies on or off

 when I use encodeURL on all of my urls.


 Here is the code behind this sample:

 In httpd.conf, ask apache to map all urls that begin with /gen into
 tomcat:
   LocationMatch /gen
 JkUriSet worker ajp13:localhost:8009
   /LocationMatch

 In tomcat server.xml, I told tomcat that the root context uses
 my app:
 Context path= docBase=email debug=0/

 In my app's web.xml, told it to map all request for /gen to
 my test servlet:
 ?xml version=1.0 encoding=ISO-8859-1?

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

 web-app

 servlet
 servlet-namesls/servlet-name
 servlet-class
 servlet.TestServlet
 /servlet-class
 /servlet

 servlet-mapping
 servlet-namesls/servlet-name
 url-pattern/gen/*/url-pattern
 /servlet-mapping

 session-config
 session-timeout50/session-timeout
 /session-config

 /web-app

 Here is my test servlet, which forwards all requests to the appropriate
 template:
 package servlet;

 import java.io.*;
 import java.net.*;

 import javax.servlet.*;
 import javax.servlet.http.*;

 public class TestServlet extends HttpServlet {
   private void process(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {

 getServletContext().getRequestDispatcher(request.getParameter(_template
 )).forward(request, response);
   }

   protected void doGet(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 process(request,response);
   }

   protected void doPost(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 process(request,response);
   }
 }

 Here is the index.jsp template, which posts to the massCompose template:
 P
 Session id is %= session.getId() %
 P

 form name=groupList method=post action=%=
 response.encodeUrl(/gen) %
   input type=hidden name=_template value=/massCompose.jsp
   input type=submit value=test
 /form

 Here is the massCompose template which forwards to the compose template:
 %
   RequestDispatcher rdispatch =
 request.getRequestDispatcher(response.encodeURL(/gen?_template=/compose
 .jsptype=normal));
   rdispatch.forward(request, response);
 %

 Here is the compose template which just displays a message:
 HTML

   BODY
 This is compose.jsp
 P
 Session id is %= session.getId() %
 P
   /BODY

 /HTML

 Any ideas why this is occurring?

 Thanks,
   Neil

 --
 Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by
 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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






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



Re: ContextConfig.tldScanJar error on Linux but not Solaris

2003-08-27 Thread Jean-Francois Arcand
Hi,

are you sure you have all the patches to run java? Be sure you have 
everything...if that still doesn't work, go the a java.sun.com forum and 
ask the question there (this is a jdk/vm problem)

-- Jeanfrancois

[EMAIL PROTECTED] wrote:

Hi,

I am getting the following error with Tomcat 4.1.24, with the struts-example webapp, when running on Linux but not Solaris - I am using the same Sun JDK 1.3.1_04, same build of Tomcat and the webapp.

--
Starting service Tomcat-Standalone
Apache Tomcat/4.1
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 7 occurred at PC=0x405757ab
Function name=(N/A)
Library=/sbcimp/run/tp/sun/jdk/v1.3.1_04/jre/lib/i386/libzip.so
NOTE: We are unable to locate the function name symbol for the error
 just occurred. Please refer to release documentation for possible
 reason and solutions.


Current Java thread:
   at java.util.zip.ZipFile.getNextEntry(Native Method)
   at java.util.zip.ZipFile.access$300(ZipFile.java:24)
   at java.util.zip.ZipFile$2.nextElement(ZipFile.java:290)
   at java.util.jar.JarFile$1.nextElement(JarFile.java:193)
   at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja
va:909)
   at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:
868)
   at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64
7)
...

Can somebody please explain what could be causing this?

Many thanks,

Kosh



Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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



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


RE: javac problems with Tomcat as NT Service

2003-08-27 Thread Shatzer, Larry
 -Original Message-
 From: Turansky, Mark [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 1:57 PM
 To: [EMAIL PROTECTED]
 Subject: javac problems with Tomcat as NT Service
 
 Is there a way to set the Tomcat service to use my JAVA_HOME 
 installation instead of the Program Files JRE?  Are there any 
 other solutions to this problem?  I don't want to have to 
 precompile every JSP page before I put code onto my 
 production box, nor do I want to run my production server in 
 a console window started by hand.

If you used the Windows Installer for Tomcat, it used what was set as
JAVA_HOME when it was installed. (I think).

What you can do is, by hand, uninstall the service with tomcat.exe and then
install it by hand. Or you can also tweak the registry to point to the right
JAVA_HOME.

See http://www.alexandriasc.com/software/JavaService/index.html for more
information about uninstalling and installing the service by hand, since
this is what Tomcat uses.

-- Larry

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



Re: mysql connection pooling problem

2003-08-27 Thread Eugene Lee
On Tue, Aug 26, 2003 at 08:25:31AM -0600, Steve Wilkinson wrote:
: 
: I followed the example at 
: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html#MySQL%20DBCP%20Example.
: 
: The only thing I see wrong is the following line of code:
: 
: DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/testdev)
: 
: should be java:comp/env/jdbc/testdev as already mentioned earlier.

Thanks Steve.  An earlier response mentioned the same typo, and I've
already fixed it.  But I still get the same error message.

: Thus, I've attached my example for you to compare.  Note, DBCP 
: connection pool requires additional jars as indicated in the README.txt 
: file.  I assume you already know this, but I mention it just incase.

Yep, I've got all those JARs in $CATALINA_HOME/common/lib.


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



RE: javac problems with Tomcat as NT Service

2003-08-27 Thread John Corrigan
Far simpler to just edit the registry.

-Original Message-
From: Shatzer, Larry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 2:31 PM
To: 'Tomcat Users List'
Subject: RE: javac problems with Tomcat as NT Service


 -Original Message-
 From: Turansky, Mark [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 1:57 PM
 To: [EMAIL PROTECTED]
 Subject: javac problems with Tomcat as NT Service

 Is there a way to set the Tomcat service to use my JAVA_HOME
 installation instead of the Program Files JRE?  Are there any
 other solutions to this problem?  I don't want to have to
 precompile every JSP page before I put code onto my
 production box, nor do I want to run my production server in
 a console window started by hand.

If you used the Windows Installer for Tomcat, it used what was set as
JAVA_HOME when it was installed. (I think).

What you can do is, by hand, uninstall the service with tomcat.exe and then
install it by hand. Or you can also tweak the registry to point to the right
JAVA_HOME.

See http://www.alexandriasc.com/software/JavaService/index.html for more
information about uninstalling and installing the service by hand, since
this is what Tomcat uses.

-- Larry

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




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



RE: Request dispatcher fails on encoded url when used in post (Bug?)

2003-08-27 Thread Neil Aggarwal
Filip:

There is no space in the url, it is an underscore.

As far as the last slash, why would it work correctly with cookies
on and not with cookies off?  

It should work the same with and without cookies. If it did not work 
in both cases, that would make sense to me.

Thanks, 
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 8:12 PM
 To: Tomcat Users List
 Subject: RE: Request dispatcher fails on encoded url when 
 used in post (Bug?)
 
 
 that is a funky url, it has a space in it, and the last / should be
 encoded
 
 Filip
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 5:45 PM
  To: 'Tomcat-User'
  Cc: Jeff Patterson
  Subject: Request dispatcher fails on encoded url when used in post
  (Bug?)
 
 
  Hello:
 
  I am getting a failure in my code when using a request dispatcher
  to forward the request to an encoded url from a post operation.
 
  To see it in action, do the following:
  1. Turn off cookies on your browser
  2. Visit http://dev.jammconsulting.com/gen?_template=/index.jsp
  3. Hit the Test button.
 
  You will get this error:
 
  HTTP Status 404 - /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
  
 --
 --
  
  type Status report
  message /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
  description The requested resource
  (/gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5) is not available.
  
 --
 --
  
  Apache Tomcat/4.1.27
 
  Now, turn on cookies and try it again.  You will get a page 
 that states:
  This is compose.jsp
  Session id is BFBC13C89DD4B3F5A98EF8E53F0D6A45
 
  I thought that Tomcat is supposed to act the same with 
 cookies on or off
 
  when I use encodeURL on all of my urls.
 
 
  Here is the code behind this sample:
 
  In httpd.conf, ask apache to map all urls that begin with /gen into
  tomcat:
LocationMatch /gen
  JkUriSet worker ajp13:localhost:8009
/LocationMatch
 
  In tomcat server.xml, I told tomcat that the root context uses
  my app:
  Context path= docBase=email debug=0/
 
  In my app's web.xml, told it to map all request for /gen to
  my test servlet:
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 
  web-app
 
  servlet
  servlet-namesls/servlet-name
  servlet-class
  servlet.TestServlet
  /servlet-class
  /servlet
 
  servlet-mapping
  servlet-namesls/servlet-name
  url-pattern/gen/*/url-pattern
  /servlet-mapping
 
  session-config
  session-timeout50/session-timeout
  /session-config
 
  /web-app
 
  Here is my test servlet, which forwards all requests to the 
 appropriate
  template:
  package servlet;
 
  import java.io.*;
  import java.net.*;
 
  import javax.servlet.*;
  import javax.servlet.http.*;
 
  public class TestServlet extends HttpServlet {
private void process(HttpServletRequest request, 
 HttpServletResponse
  response)
throws ServletException, IOException {
 
  
 getServletContext().getRequestDispatcher(request.getParameter(
 _template
  )).forward(request, response);
}
 
protected void doGet(HttpServletRequest request, 
 HttpServletResponse
  response)
throws ServletException, IOException {
  process(request,response);
}
 
protected void doPost(HttpServletRequest request, 
 HttpServletResponse
  response)
throws ServletException, IOException {
  process(request,response);
}
  }
 
  Here is the index.jsp template, which posts to the 
 massCompose template:
  P
  Session id is %= session.getId() %
  P
 
  form name=groupList method=post action=%=
  response.encodeUrl(/gen) %
input type=hidden name=_template value=/massCompose.jsp
input type=submit value=test
  /form
 
  Here is the massCompose template which forwards to the 
 compose template:
  %
RequestDispatcher rdispatch =
  
 request.getRequestDispatcher(response.encodeURL(/gen?_templat
 e=/compose
  .jsptype=normal));
rdispatch.forward(request, response);
  %
 
  Here is the compose template which just displays a message:
  HTML
 
BODY
  This is compose.jsp
  P
  Session id is %= session.getId() %
  P
/BODY
 
  /HTML
 
  Any ideas why this is occurring?
 
  Thanks,
  Neil
 
  --
  Neil Aggarwal, JAMM Consulting, (972)612-6056, 
www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by
 17% or more in 6 months or less! =

MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

 From [EMAIL PROTECTED]  Tue Aug 26 22:14:42 2003
 Return-Path: [EMAIL PROTECTED]
 Received: from apache.org (daedalus.apache.org [208.185.179.12])
   by mei.net (8.12.9/8.12.9) with SMTP id h7R2EeHL004468
   for [EMAIL PROTECTED]; Tue, 26 Aug 2003 22:14:41 -0400
 Received: (qmail 88405 invoked by uid 500); 27 Aug 2003 02:15:16 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 88376 invoked from network); 27 Aug 2003 02:15:16 -
 Received: from unknown (HELO www.JAMMConsulting.com) (66.54.79.4)
   by daedalus.apache.org with SMTP; 27 Aug 2003 02:15:16 -
 Received: from dell5100 (www.JAMMConsulting.com [127.0.0.1])
   (authenticated bits=0)
   by www.JAMMConsulting.com (8.12.5/8.12.5) with ESMTP id h7R2fLkT015840
   for [EMAIL PROTECTED]; Tue, 26 Aug 2003 21:41:22 -0500
 From: Neil Aggarwal [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Request dispatcher fails on encoded url when used in post (Bug?)
 Date: Tue, 26 Aug 2003 21:16:20 -0500
 Organization: JAMM Consulting, Inc.
 Message-ID: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: text/plain;
   charset=us-ascii
 Content-Transfer-Encoding: 7bit
 X-Priority: 3 (Normal)
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook, Build 10.0.3416
 Importance: Normal
 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
 In-Reply-To: [EMAIL PROTECTED]
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 BCT-delivery-for: paul
 MEI-wl-code: MEI00447510619504828MaGuRJvXohwhba0iXAtwQ
 
 Filip:
 
 There is no space in the url, it is an underscore.
 
 As far as the last slash, why would it work correctly with cookies
 on and not with cookies off?  
 
 It should work the same with and without cookies. If it did not work 
 in both cases, that would make sense to me.
 
 Thanks,   
   Neil
 

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



How reference of MBeanServer

2003-08-27 Thread s p
I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.

Regards,
Santosh

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



How to get reference of MBeanServer in Tomcat

2003-08-27 Thread s p
I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.

Regards,
Santosh

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

 From [EMAIL PROTECTED]  Tue Aug 26 22:58:11 2003
 Return-Path: [EMAIL PROTECTED]
 Received: from apache.org (daedalus.apache.org [208.185.179.12])
   by mei.net (8.12.9/8.12.9) with SMTP id h7R2wAHL017942
   for [EMAIL PROTECTED]; Tue, 26 Aug 2003 22:58:10 -0400
 Received: (qmail 85980 invoked by uid 500); 27 Aug 2003 02:58:54 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 85961 invoked from network); 27 Aug 2003 02:58:54 -
 Received: from unknown (HELO web20804.mail.yahoo.com) (216.136.226.193)
   by daedalus.apache.org with SMTP; 27 Aug 2003 02:58:54 -
 Message-ID: [EMAIL PROTECTED]
 Received: from [61.11.4.4] by web20804.mail.yahoo.com via HTTP; Tue, 26 Aug 2003 
 19:59:01 PDT
 Date: Tue, 26 Aug 2003 19:59:01 -0700 (PDT)
 From: s p [EMAIL PROTECTED]
 Subject: How reference of MBeanServer
 To: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 BCT-delivery-for: paul
 MEI-wl-code: MEI0179481061953091LDTr+ZtyRx+xi6MF/nhnAA
 
 I am using JMX technology to get information of Tomcat
 server. I am unable to get the reference of the
 MBeanServer in Tomcat. Has any one worked on this
 before. I am able get the information for other
 application servers like weblogic and webshere. But I
 did not find suitable APIs for Tomcat. Any help in
 this direction will be appreciated.
 
 Regards,
 Santosh
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Kwok Peng Tuck
Have a look a  the source code for the Admin Webapp for tomcat. It uses 
JMX.

s p wrote:

I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.
Regards,
Santosh
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



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


Re: [ANN] Apache Tomcat 5.0.9 Beta released

2003-08-27 Thread Bill Barker
This part of Tomcat didn't really change all that much from 4.1.x.  There
are no changes on the Apache side (i.e. you can use the same binaries for
mod_jk(2) that you use for 4.1.x).  Warp (aka mod_webapp) is not supported.
On the Tomcat side, only the CoyoteConnector is supported.  Other than that,
the server.xml config is a bit nicer, but it will also support your old
4.1.x configuration.  Your jk2.properties for 4.1.x should also work with
Tomcat 5.

Johan Wasserman - CPX Mngd Services [EMAIL PROTECTED] wrote
in message
news:[EMAIL PROTECTED]
HOT!

Any spec's available on setting up and running under Apache? Did it
really change all that much?

Thanks from a loyal supporter.




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



Re: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Bill Barker
For (now somewhat outdated) security reasons, Tomcat ships the jmx jar in
server/lib so that it is only accessable to Tomcat internals (and trusted
webapps like 'admin').  It should be enough to move the jar to common/lib to
get access to the JMX server.  You may also have to move the
commons-modeler.jar to common/lib as well (don't know for sure, never tried
:)

s p [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I am using JMX technology to get information of Tomcat
 server. I am unable to get the reference of the
 MBeanServer in Tomcat. Has any one worked on this
 before. I am able get the information for other
 application servers like weblogic and webshere. But I
 did not find suitable APIs for Tomcat. Any help in
 this direction will be appreciated.

 Regards,
 Santosh

 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com




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



Re: Request dispatcher fails on encoded url when used in post (Bug?)

2003-08-27 Thread Bill Barker
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22734.  You can also
search bugzilla, since this one has come up several times (this is just the
latest incarnation :).

Neil Aggarwal [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello:

 I am getting a failure in my code when using a request dispatcher
 to forward the request to an encoded url from a post operation.

 To see it in action, do the following:
 1. Turn off cookies on your browser
 2. Visit http://dev.jammconsulting.com/gen?_template=/index.jsp
 3. Hit the Test button.

 You will get this error:

 HTTP Status 404 - /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
 
 
 type Status report
 message /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
 description The requested resource
 (/gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5) is not available.
 
 
 Apache Tomcat/4.1.27

 Now, turn on cookies and try it again.  You will get a page that states:
 This is compose.jsp
 Session id is BFBC13C89DD4B3F5A98EF8E53F0D6A45

 I thought that Tomcat is supposed to act the same with cookies on or off

 when I use encodeURL on all of my urls.


 Here is the code behind this sample:

 In httpd.conf, ask apache to map all urls that begin with /gen into
 tomcat:
   LocationMatch /gen
 JkUriSet worker ajp13:localhost:8009
   /LocationMatch

 In tomcat server.xml, I told tomcat that the root context uses
 my app:
 Context path= docBase=email debug=0/

 In my app's web.xml, told it to map all request for /gen to
 my test servlet:
 ?xml version=1.0 encoding=ISO-8859-1?

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

 web-app

 servlet
 servlet-namesls/servlet-name
 servlet-class
 servlet.TestServlet
 /servlet-class
 /servlet

 servlet-mapping
 servlet-namesls/servlet-name
 url-pattern/gen/*/url-pattern
 /servlet-mapping

 session-config
 session-timeout50/session-timeout
 /session-config

 /web-app

 Here is my test servlet, which forwards all requests to the appropriate
 template:
 package servlet;

 import java.io.*;
 import java.net.*;

 import javax.servlet.*;
 import javax.servlet.http.*;

 public class TestServlet extends HttpServlet {
   private void process(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {

 getServletContext().getRequestDispatcher(request.getParameter(_template
 )).forward(request, response);
   }

   protected void doGet(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 process(request,response);
   }

   protected void doPost(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 process(request,response);
   }
 }

 Here is the index.jsp template, which posts to the massCompose template:
 P
 Session id is %= session.getId() %
 P

 form name=groupList method=post action=%=
 response.encodeUrl(/gen) %
   input type=hidden name=_template value=/massCompose.jsp
   input type=submit value=test
 /form

 Here is the massCompose template which forwards to the compose template:
 %
   RequestDispatcher rdispatch =
 request.getRequestDispatcher(response.encodeURL(/gen?_template=/compose
 .jsptype=normal));
   rdispatch.forward(request, response);
 %

 Here is the compose template which just displays a message:
 HTML

   BODY
 This is compose.jsp
 P
 Session id is %= session.getId() %
 P
   /BODY

 /HTML

 Any ideas why this is occurring?

 Thanks,
 Neil

 --
 Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by
 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com




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



Manager Application and catalina.policy?

2003-08-27 Thread achana
H
Does HttpConnector have to be enabled on some port e.g. 8080 to use
Manager Application ? I am happy with just Ajp at the moment.
I am on TC4.0.x and it is not possible to upgrade to TC4.1.x at the
moment.
Cheers :-)



Shapira, Yoav wrote:
 
 Howdy,
 No, you're not right.  The two provide different views of security.
 Httpd.conf controls apache, not tomcat, and does nothing to prevent, for
 example, the execution of malicious applets.  Catalina.policy or
 whatever you want to call the policy file is used by the JVM security
 manager to enforce its policies, including for example applet
 sandboxing.  If you're not clear what the security manager does, read up
 the JDK documentation for it.
 
 If should use them both if you're concerned about security.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 12:14 AM
 To: [EMAIL PROTECTED]
 Subject: No need for catalina.policy?
 
 Hi
 Please tell me once more.
 Am I right in assumng that I don't really need catalina.policy if I use
 httpd.conf to control access ?
 If t, how do they interact ?
 TIA :-)
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Debug tomcat session serialization

2003-08-27 Thread Bill Barker
It looks like you have to explictly configure the Manager to get this info:
Context path=/myapp docBase=myapp
  Manager debug=1 /
/Context

Note: I haven't tested this, and only spent about a minute looking at the
code, so this may not work.

Sasha Borodin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Where do I have to up the debug level to get some error/debug/trace
messages
 for session serialization when I reload a context?

 I'm having an issue with Struts ActionForm's bound to a session becoming
 null after a context/container reload, but I see no messages in
 localhost_log_date.txt or catalina.out/err

 Thank you very much.

 -Sasha




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



vhosts and workers

2003-08-27 Thread Christopher Garrett
I'm in the process of configuration Tomcat 4.1.27 to communicate with Apache
1.3.28 through mod_jk on a single machine. I have several virtual hosts set up
on my server in the following way: /home/vhost1, /home/vhost2, etc.. I would
like to configure Apache/Tomcat to allow users of these vhosts to serve
JSPs/Servlets from beneath their home directories, e.g.:
/home/vhost1/public_html/webapps/ and /home/vhost2/public_html/webapps/. From my
reading, I understand that this can be accomplished by:
- setting the appBase attribute of the Home tag in the server.xml to those
absolute directories:
Home appBase=/home/vhost1/public_html/webapps/...
...
Home appBase=/home/vhost2/public_html/webapps/...
- setting the docBase/path attributes in the child Context tag to some
directory within the appBase path:
Home appBase=/home/vhost1/public_html/webapps/...
Context docBase=app1 path=/app1...
...
Home appBase=/home/vhost2/public_html/webapps/...
Context docBase=app1 path=/app1...
This would cause the primarly application app1 to be served out of vhost1's
home from /home/vhost1/public_html/webapps/app1, and another applicationed
app1 belonging to vhost2 to be served out of
/home/vhost2/public_html/webapps/app1. This is my understanding of these
attributes, though I don't quite get what the distinction between docBase and
path is, as I've not found a decent enough description nor a solid example to
set these in stone for me.

My questions:
1: Would the aforementioned configuration properly serve JSPs/Servlets from
locations beneath vhost1 and vhost2's home directories?
2: What exactly do the docBase and path attributes define within the Context
tag? What is the distinction?
3: It is possible to have a single worker handle requests for more than one web
application belonging to more than one virtual host/user. How beneficial would
it be to have a single worker handle requests sent to it from Apache for more
than one virtual host? Would it be more efficient to have one worker for each
virtual host and have a load balancing worker to manage those subordinate
workers?
4: What sort of mechanisms to workers use to handle requests? Does a worker
receive a request, fork(), child process handles the request, communicates with
the Tomcat JVM, and returns the result to the requesting client, while the
parent simply sits and listens for more connections? If this is the case, would
a load balancer really serve to benefit anything if all this is taking place on
a single machine, given that all the workers would be of type ajp13?

I'm trying to achieve and optimal, secure configuration. One that would allow
the users to manage their own web applications within their home directories so
I don't have to open up rwx access to the world beneath the $TOMCAT_HOME
directory. Granted, I'll still have to amend server.xml to insert new contexts
for users adding new WARs, but this is trivial. I've read a number of articles
and even the manual describing configuration options, etc., but it seems that
there are just a few points missing that would really put things into
perspective for me, so I'm sending these, probably simple, questions to the
list, as my last resort. Any information or links would be greatly appreciated,
and hopefully I'll be able to get everything organized efficiently and securely.


Christopher Garrett III
Inixoma, Incorporated



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



Re: tomcat - request thread pool question

2003-08-27 Thread Bill Barker
Pretty much what Yoav said ;).  If the servlet throws an exception out of
the service method, Tomcat can't be sure that the input stream was fully
read, so it doesn't know what the next data it's going to read is.  In the
case of an Exception, it is (usually) a clean shutdown (Tomcat sends a
'Connection: close', and returns the Thread to the pool).

Shapira, Yoav [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

Howdy,
A typical pool implementation attempts to guarantee that poolable
objects handed out to clients are valid.  If an exception occurs in a
pool object it's a legitimate strategy to discard that object and create
a new valid one, so that a corrupt object will never be handed out to
applications.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rau NF [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 3:58 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat - request thread pool question

Hi - I was referring to the HTTP 1.1 Connector. Thanks
for the information but I am a bit puzzled as to why
the threads should go away (ie die) on getting an
exception.   On a heavily loaded server, we can have
different IO exceptions being generated all the time
and the pool will be too busy trying creating new
threads. Not really  pool like behaviour ...thoughts
anyone ?

Thanks



It really depends on if you are talking about the HTTP
Connector, or
the AJP
Connector.

For the HTTP Connector, threads usually have short
lives (i.e. they
exit
after the last Keep-Alive has been handled).
Exceptions thrown out of
the
servlet, and certain HTTP status codes will also end
the thread (since
the
socket stream is likely in an undefined state in these
cases).

For the AJP Connector, threads usually have long
lives.  If you haven't
configured a connectionTimeout, then they usually last
as long as the
Apache
child that they are talking to does.  However, if they
get a
SocketException
on output, then it will exit early (since Apache isn't
talking to it
anymore).
=

--- Rau NF [EMAIL PROTECTED] wrote:
 Hi - Under what conditions can the tomcat thread
 pool
 implementation decide to let a thread exit ?

 Would this happen if some application code threw an
 exception and is caught only by the tomcat framework
 ?
 Can it happen if the servlet is writing data out to
 a
 connection and gets a SocketException or one of
 those
 IllegalStateExceptions ? eg.,

 2003-08-22 01:13:11 ApplicationDispatcher[]
 Servlet.service() for servlet jsp_servlet.some_jsp
 threw exception
 java.lang.IllegalStateException: Cannot create a
 session after the response has been committed
 at

org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java
:188
4)
 at

org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1
731)



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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




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




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



Re: No need for catalina.policy?

2003-08-27 Thread achana
 
How does a malicious foreign applet come to be on my linux/apache2
web-server where only two ports are listening and most services disabled
?
The only way the applets can communicate with the servlets is through an
a2s http-tunnel!
Does this relate a threat mode where the threat comes from within the
rank and file ?
Assuming single sign-on is available on TC4.0.x (I haven't looked yet),
that's two sign-on's that a user needs to get to the goodies, and that
is excluding the network sign on.
:-o


Shapira, Yoav wrote:
 
 Howdy,
 No, you're not right.  The two provide different views of security.
 Httpd.conf controls apache, not tomcat, and does nothing to prevent, for
 example, the execution of malicious applets.  Catalina.policy or
 whatever you want to call the policy file is used by the JVM security
 manager to enforce its policies, including for example applet
 sandboxing.  If you're not clear what the security manager does, read up
 the JDK documentation for it.
 
 If should use them both if you're concerned about security.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 12:14 AM
 To: [EMAIL PROTECTED]
 Subject: No need for catalina.policy?
 
 Hi
 Please tell me once more.
 Am I right in assumng that I don't really need catalina.policy if I use
 httpd.conf to control access ?
 If t, how do they interact ?
 TIA :-)
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: request.getRemoteUser() only non-null on protected pages

2003-08-27 Thread Bill Barker
Yup. That pretty much sums it up.  Tomcat provides authentication
information if it needs to, and otherwise doesn't.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Any comments, PLEASE...

Could this be relavant ?

http://marc.theaimsgroup.com/?l=jboss-userm=103680567313168w=2




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



Re: Dynamically update server.xml httpd.conf

2003-08-27 Thread Fred Kreek
At 21:22 26/08/03, you wrote:

Tomcat 4 = no
Tomcat 5 = I believe so
Apache = yes ($APACHE_HOME/bin/apachectl graceful OR 
$APACHE_HOME/bin/apachectl restart)

John

Lars Nielsen Lind wrote:

Hi.
Is it possible to update and implement changes in server.xml and 
httpd.conf while Apache/Tomcat is running?
I want to be able to add 'sites' to my server without restarting 
Apache/Tomcat.
Are there other solutions?

Lars Nielsen Lind


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
In tomcat4 (i dunno other versions) you can dynamicly add and remove war 
files, with webapps etc. If you set the options unpackWars=false 
autoDeploy=true liveDeploy=true these war files are automagicly updated 
when you replace them. Also consider using the manager.

Fred



--
F. Kreek
Kamer J2-278   e-mail: [EMAIL PROTECTED]
Klinische InformatieKunde  tel: +31-20-566 6687
AMC - Amsterdamfax: +31-20-691 9840
Meibergdreef 15
1105 AZ Amsterdam
There are 10 types of people when it comes to binary, those that 
understand it.. and those who don't.

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


Opposite of Persistent manager

2003-08-27 Thread achana
Hi all.
Currently I am using session timeout on web.xml
Ideally if a user walks away from the terminal, even for a short while,
the session dies and the display is cleared.
I guess that has to be handled programmaticaly rather than through TC4.
???
TIA :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

 From [EMAIL PROTECTED]  Wed Aug 27 01:02:20 2003
 Return-Path: [EMAIL PROTECTED]
 Received: from apache.org (daedalus.apache.org [208.185.179.12])
   by mei.net (8.12.9/8.12.9) with SMTP id h7R52JHL024718
   for [EMAIL PROTECTED]; Wed, 27 Aug 2003 01:02:19 -0400
 Received: (qmail 37547 invoked by uid 500); 27 Aug 2003 05:03:02 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 37532 invoked from network); 27 Aug 2003 05:03:01 -
 Received: from unknown (HELO lakemtao03.cox.net) (68.1.17.242)
   by daedalus.apache.org with SMTP; 27 Aug 2003 05:03:01 -
 Received: from somatose ([68.225.40.169]) by lakemtao03.cox.net
   (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with SMTP
   id [EMAIL PROTECTED]
   for [EMAIL PROTECTED];
   Wed, 27 Aug 2003 01:02:17 -0400
 Message-ID: [EMAIL PROTECTED]
 From: Christopher Garrett [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: vhosts and workers
 Date: Wed, 27 Aug 2003 01:03:06 -0400
 MIME-Version: 1.0
 Content-Type: text/plain;
   charset=iso-8859-1
 Content-Transfer-Encoding: 7bit
 X-Priority: 3
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook Express 6.00.2800.1106
 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 BCT-delivery-for: paul
 MEI-wl-code: MEI0247251061960540GFr+T7edKzwnXhihdUJR3g
 
 I'm in the process of configuration Tomcat 4.1.27 to communicate with Apache
 1.3.28 through mod_jk on a single machine. I have several virtual hosts set up
 on my server in the following way: /home/vhost1, /home/vhost2, etc.. I would
 like to configure Apache/Tomcat to allow users of these vhosts to serve
 JSPs/Servlets from beneath their home directories, e.g.:
 /home/vhost1/public_html/webapps/ and /home/vhost2/public_html/webapps/. From my
 reading, I understand that this can be accomplished by:
 - setting the appBase attribute of the Home tag in the server.xml to those
 absolute directories:
 Home appBase=/home/vhost1/public_html/webapps/...
 ...
 Home appBase=/home/vhost2/public_html/webapps/...
 - setting the docBase/path attributes in the child Context tag to some
 directory within the appBase path:
 Home appBase=/home/vhost1/public_html/webapps/...

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



RE: mod_jk load balancing with multiple apache servers

2003-08-27 Thread Ralph Einfeldt
To me it's not quite clear what you are doing exacly.

I see three option to use an externl loadbalancer.
Which one is the one you use ?

- use mod_jk with sticky sessions.
  - Setup two apaches with a mod_jk.
  - Setup loadbalancing for mod_jk.
  - Setup two tomcats with a unique jvmRoute.

 LB
/  \
   /\
  A1A2
  |\   /|
  | \ / |
  |  x  |
  | / \ |
  |/   \|
  T1   T2
  
  Although the last mails from Bill Barker indicate that current 
  implementation of mod_jk doesn't balance the load equally, this
  scenario should work for you, as the external load balancer does 
  this already. The Loadbalancer in mod_jk is just used to route 
  the requests to the correct tomcat.

- use session replication.
  In this scenario each instance of tomcat has a copy of the session 
  data, so it doesn't matter which receives the request. 
  In this case you can omit apache and mod_jk and use tomcat native.

 LB
/  \
   /\
  A1A2
  | |
  | |
  T1---T2

- use a load balancer that supports sticky sessions
  (url and cookie based sessions)

  In this case you can treat each tomcat as a stand alone 
  server. 

 LB
/  \
   /\
  A1A2
  | |
  | |
  T1T2

 -Original Message-
 From: Peter Anning [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 5:14 PM
 To: Tomcat Users List
 Subject: Re: mod_jk load balancing with multiple apache servers
 
 

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



Re: javac problems with Tomcat as NT Service

2003-08-27 Thread Fred Kreek
At 22:56 26/08/03, you wrote:
I have installed the J2SE and J2EE SDKs to c:\java.
I installed Tomcat to c:\Tomcat.
I have X_HOME variables for both installations in my computers Environment 
Variables.

The problem is that the SDKs also install a JRE to c:\program files\java\.

When I run Tomcat in a console window, everything runs fine.  Tomcat uses 
JAVA_HOME which has javac.

When Tomcat runs as a service, I assume it is using the JRE in Program 
Files because JSPs that have not
been compiled cannot be!  I receive an error and the logs point to the 
fact that Tomcat cannot create
the javac process.

Is there a way to set the Tomcat service to use my JAVA_HOME installation 
instead of the Program Files JRE?  Are there any other solutions to this 
problem?  I don't want to have to precompile every JSP page before I put 
code onto my production box, nor do I want to run my production server in 
a console window started by hand.

Thanks in advance,
Mark Turansky
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I've never experienced the problem (i'm not running NT) but it seems to me 
that you need to unset your path and set your JAVA_HOME to your java SDK 
dir. This could be done in tomcat.conf (maybe its .bat on an NT) or 
otherwise in catalina.bat



There are 10 types of people when it comes to binary, those that 
understand it.. and those who don't.

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


Re: vhosts and workers

2003-08-27 Thread Fred Kreek
At 07:03 27/08/03, you wrote:
I'm in the process of configuration Tomcat 4.1.27 to communicate with Apache
1.3.28 through mod_jk on a single machine. I have several virtual hosts set up
on my server in the following way: /home/vhost1, /home/vhost2, etc.. I would
like to configure Apache/Tomcat to allow users of these vhosts to serve
JSPs/Servlets from beneath their home directories, e.g.:
/home/vhost1/public_html/webapps/ and /home/vhost2/public_html/webapps/. 
From my
reading, I understand that this can be accomplished by:
- setting the appBase attribute of the Home tag in the server.xml to those
absolute directories:
Home appBase=/home/vhost1/public_html/webapps/...
...
Home appBase=/home/vhost2/public_html/webapps/...
- setting the docBase/path attributes in the child Context tag to some
directory within the appBase path:
Home appBase=/home/vhost1/public_html/webapps/...
Context docBase=app1 path=/app1...
...
Home appBase=/home/vhost2/public_html/webapps/...
Context docBase=app1 path=/app1...
sorry, should be app2 :~

This would cause the primarly application app1 to be served out of vhost1's
home from /home/vhost1/public_html/webapps/app1, and another applicationed
app1 belonging to vhost2 to be served out of
/home/vhost2/public_html/webapps/app1. This is my understanding of these
attributes, though I don't quite get what the distinction between docBase and
path is, as I've not found a decent enough description nor a solid example to
set these in stone for me.
My questions:
1: Would the aforementioned configuration properly serve JSPs/Servlets from
locations beneath vhost1 and vhost2's home directories?
you can also use something linke appBase=webapps/app1/ then your base will
be at $CATALINA_BASE/webapps/app1/
2: What exactly do the docBase and path attributes define within the Context
tag? What is the distinction?
path= the virtual path in the URI. so path=/app1 (for your 
my.first.virtualhost) makes
you app available at my.first.virtualhost/app1/.
docBase tells tomcat where to find the application locally (when not 
starting with
a slash, it is relative to you appBase)

you do not need to define your contexts within the server.xml, it is also 
possible to
do that in web.xml files

3: It is possible to have a single worker handle requests for more than 
one web
application belonging to more than one virtual host/user. How beneficial would
it be to have a single worker handle requests sent to it from Apache for more
than one virtual host? Would it be more efficient to have one worker for each
virtual host and have a load balancing worker to manage those subordinate
workers?
yes, put the second engine in the first service element. (and remove the second
service element:)
4: What sort of mechanisms to workers use to handle requests? Does a worker
receive a request, fork(), child process handles the request, communicates 
with
the Tomcat JVM, and returns the result to the requesting client, while the
parent simply sits and listens for more connections? If this is the case, 
would
a load balancer really serve to benefit anything if all this is taking 
place on
a single machine, given that all the workers would be of type ajp13?
dunno exactly really. that loadbalancing was from a example workers.properties

I'm trying to achieve and optimal, secure configuration. One that would allow
the users to manage their own web applications within their home 
directories so
I don't have to open up rwx access to the world beneath the $TOMCAT_HOME
directory. Granted, I'll still have to amend server.xml to insert new contexts
for users adding new WARs, but this is trivial. I've read a number of articles
and even the manual describing configuration options, etc., but it seems that
there are just a few points missing that would really put things into
perspective for me, so I'm sending these, probably simple, questions to the
list, as my last resort. Any information or links would be greatly 
appreciated,
and hopefully I'll be able to get everything organized efficiently and 
securely.

Christopher Garrett III
Inixoma, Incorporated


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry 'bout the strange setup i gave you. But i am running mulptiple 
versions of
tomcat on one machine. So it is easier to have absolute path names in my
server.xml.

Fred

There are 10 types of people when it comes to binary, those that 
understand it.. and those who don't.

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


Re: Opposite of Persistent manager

2003-08-27 Thread Bill Barker
It's a pretty simple application of meta-refresh.  I've seen sites (mostly
subscription, so I can't give you a working URL) that do this.

[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Hi all.
 Currently I am using session timeout on web.xml
 Ideally if a user walks away from the terminal, even for a short while,
 the session dies and the display is cleared.
 I guess that has to be handled programmaticaly rather than through TC4.
 ???
 TIA :-)







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




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



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

2003-08-27 Thread Bill Barker
I'm afraid that you are clueless ;-).  Apache+mod_jk only needs read, which
it's got.

You could try posting your conf files, to see if anyone can spot the
error..

- Original Message - 
From: Denise Mangano [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, August 26, 2003 3:38 PM
Subject: First mod_jk problem - can't start apache with Include statement


I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.

Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.

Here is my structure with permissions:

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


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

Denise

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Re: Vedr.: RE: request.getRemoteUser() only non-null on protected pages

2003-08-27 Thread Bill Barker

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 Yes, it an answer to someone that had the same problem as me. But the
 answer suggest only dump solutions - either making all pages protected, or
 storing the principal yourself in session.

 I was thinking if any of you had more intelligent solutions to the
problem.


Well, that's basically the answer ;-).  If you strongly disagree with
Tomcat's (clearly spec-compliant) behavior, then patches are always welcome
;-).

 Thanx.




 robert.tomlin@
 mekon.comTil:
[EMAIL PROTECTED]
   cc:
 26-08-03 17:09Vedr.:  RE:
request.getRemoteUser() only non-null on protected pages
 Besvar venligst
 til Tomcat
 Users List






  Any comments, PLEASE...

 Could this be relavant ?

 http://marc.theaimsgroup.com/?l=jboss-userm=103680567313168w=2


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




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



Re: Any contractors from HK, S.E.Asia or India in this forum ?

2003-08-27 Thread achana
C'mon
There are 7+ million people in HK, x-number of multi-nationals from
y-number of industry sectors.
I can't believe no HK person is contributing to or listening in on this
forum.
Don't be shy.

[EMAIL PROTECTED] wrote:
 
 Hiya, all.
 Any contractors in this forum specializing in java applet/servlet, a2s,
 jndi in an apache2/tc4 environment and are from HK/China, S.E.Asia or
 India ? Got a website?
 TIA :-)
 
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Vedr.: Re: Vedr.: RE: request.getRemoteUser() only non-null on protectedpages

2003-08-27 Thread pste

We can agree that the behavior is spec-compliant, but we cannot agree that
the spec is particuarly smart on that point.

I would like to be able to make a patch, but Im not involved as a
developer.

Thanx



   
   
Bill Barker  
   
[EMAIL PROTECTED]   Til:[EMAIL PROTECTED] 
  
ire.com cc:   
   
Sendt af: news   Vedr.:  Re: Vedr.: RE: 
request.getRemoteUser() only non-null on protected pages  
[EMAIL PROTECTED] 
   
e.org 
   
   
   
   
   
27-08-03 08:55 
   
Besvar 
   
venligst til   
   
Tomcat Users  
   
List  
   
   
   
   
   




Well, that's basically the answer ;-).  If you strongly disagree with
Tomcat's (clearly spec-compliant) behavior, then patches are always welcome
;-).




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



Run tomcat without showing window

2003-08-27 Thread Mario Moroni
I'd like to run tomcat without showing the window server.
In win NT  2K I could run this as a service, but in WIN98? How can I do
This?
Thanks

 _Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca per scoprire 
sconti e promozioni
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730d=27-8

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



RE: newbie - finding class files

2003-08-27 Thread Stuart MacPherson
Well actually if you have them in 2 places it can cause terminal errors, and
at the very least will waste time and memory on startup.  Common/lib is not
an ideal solution, but you might want to try it at least to see if it works.
In any case, if you install things like Slide (a Jakarta DMS/CMS
webDAV-based framework), all the webDAV Servlets (and indeed everything
else) goes in common/lib.  Alternatively, have you try putting it inside the
/lib directory of your webapp?  It will then only be accessible to that
webapp tho.


-Original Message-
From: Pike [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 00:25
To: Tomcat Users List
Subject: Re: newbie - finding class files

Hi

thanks for your response (sorry about the repeated post - my mistake)

 What's wrong with putting them in CATALINA_HOME/common/lib?

well, nothing. it just sounds very ugly, having the same jar files
running twice in one tomcat, once in server/lib and once in common/lib.
is this how its _normally_ done ?

another point is, tomcat starts complaining about 'bundles' then,
but this may be solvable...

 I found this old thread about extending WebdavServlet,
 in which Andreas Probst notes his webapp cant load classes
 from the $CATALINA_HOME/servlet/lib/ dir.

 this url
   
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
 makes it clear why.

 but now: how should I  extend WebdavServlet inside my webapp ?
 If i put my own classes in the org.apache.bla package, it can't load
 the classes from my webapp, ofcourse.

 should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
 to my webapps /WEB-INF/lib ?

   that should work, but it sounds ugly.




 On Tue, 16 Jul 2002, Andreas Probst wrote:

 Date: Tue, 16 Jul 2002 13:59:49 +0200
 From: Andreas Probst [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: newbie - finding class files


 On Mon, 15 Jul 2002, Andreas Probst wrote:


 Hi all,

 does Tomcat really look into tomcatdir/server/lib? For me it  seems
 Tomcat doesn't.


 This directory is only visible to the classloader for Tomcat  
 itself, not
 for webapps.  There is a special rule that makes servlet classes in
 package org.apache.catalina available to webapps anyway, however,  
 which
 is why the standard WebdavServlet (as well as the other Tomcat  
 features
 that are available via servlets) can be loaded.

 Craig

 Thank you Craig.

 Could you please tell more about the rule or give a pointer. The
 class-loader-info of the Tomcat-Docu says nothing about the rule, but
 says, that These classes and resources are TOTALLY invisible to web
 applications.


 Actually, the rule is very simple, and it is there in the docs.  Look  
 at
 the picture of the class loader hierarchy in the Tomcat docs:


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

 The classes that are visible to a web application are those in the  
 class
 loader for that webapp, and any of it's parent class loaders.  In  
 other
 words, an application can see the WebappX class loader for itself,
 plus the Shared, Common, System, and Bootstrap class loaders.  
  It
 can*not* see the Catalina class loader.



thanks,
*-pike
==
Signature #1
==


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




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



Re: Run tomcat without showing window

2003-08-27 Thread Venkata Srinivasa Rao, Yerra
As I know you can use javaw to start tomcat
What you need to do is, change the tomcat startup script from java to javaw.
After you run the script you can safely close the window but tomcat keeps 
running.
Srinivas.

At 09:54 AM 8/27/2003 +0200, you wrote:
I'd like to run tomcat without showing the window server.
In win NT  2K I could run this as a service, but in WIN98? How can I do
This?
Thanks
 _Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca 
per scoprire sconti e promozioni
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730d=27-8

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

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


RE: javac problems with Tomcat as NT Service

2003-08-27 Thread John Corrigan
Edit the registry.  Off the top of my head it is something like:

HKEY_LOCAL_MACHINE
  SYSTEM
CurrentControlSet
  Services
Apache Tomcat 4.1
  Parameters

You need to change the value for the JVM library to point to the jvm.dll in
the server directory of your jre.  Should be something like
JAVA_HOME/jre/bin/server/jvm.dll.

When ran as a service, the environment variables are not read -- possibly
because Java can not read environment variables (at least without using
methods which have been deprecated.)

-Original Message-
From: Fred Kreek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:45 PM
To: Tomcat Users List
Subject: Re: javac problems with Tomcat as NT Service


At 22:56 26/08/03, you wrote:
I have installed the J2SE and J2EE SDKs to c:\java.
I installed Tomcat to c:\Tomcat.
I have X_HOME variables for both installations in my computers Environment
Variables.

The problem is that the SDKs also install a JRE to c:\program files\java\.

When I run Tomcat in a console window, everything runs fine.  Tomcat uses
JAVA_HOME which has javac.

When Tomcat runs as a service, I assume it is using the JRE in Program
Files because JSPs that have not
been compiled cannot be!  I receive an error and the logs point to the
fact that Tomcat cannot create
the javac process.

Is there a way to set the Tomcat service to use my JAVA_HOME installation
instead of the Program Files JRE?  Are there any other solutions to this
problem?  I don't want to have to precompile every JSP page before I put
code onto my production box, nor do I want to run my production server in
a console window started by hand.

Thanks in advance,
Mark Turansky

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

I've never experienced the problem (i'm not running NT) but it seems to me
that you need to unset your path and set your JAVA_HOME to your java SDK
dir. This could be done in tomcat.conf (maybe its .bat on an NT) or
otherwise in catalina.bat



There are 10 types of people when it comes to binary, those that
understand it.. and those who don't.


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




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



Re: Run tomcat without showing window

2003-08-27 Thread Mario Moroni
Thanks!
I've tryed this!
It runs!!!

 Mario

- Original Message - 
From: Venkata Srinivasa Rao, Yerra [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:15 AM
Subject: Re: Run tomcat without showing window


 As I know you can use javaw to start tomcat
 What you need to do is, change the tomcat startup script from java to
javaw.
 After you run the script you can safely close the window but tomcat keeps
 running.
 Srinivas.

 At 09:54 AM 8/27/2003 +0200, you wrote:
 I'd like to run tomcat without showing the window server.
 In win NT  2K I could run this as a service, but in WIN98? How can I do
 This?
 Thanks
 
   _Mario_
 
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca
 per scoprire sconti e promozioni
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730d=27-8
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 Best Regards,
 Venkata Srinivasa Rao, Yerra,
 Jadason Technology Limited.


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




--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Da Peraga un giro del mondo gastronomico tra un acquisto è l'altro... fai un salto al 
Ristoro Sunflower. 
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1477d=27-8

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



Authentication without authorisation

2003-08-27 Thread Krause Karin
Hi all,
I've got a question regarding authentication. I wish to do
authentication without authorisation. So this means everybody
should be free to access my web-resource but I wish to know who it is.
Therefore the accessing user must login.
As probably everybody knows
here I can configure that by means of a security-constraint/login-config in my 
web.xml file.
Here is a little example:
security-constraint
web-resource-collection
web-resource-nameProtect the Helloworld 
example/web-resource-name
description/
url-pattern/servlet/HelloWorldExample/url-pattern
url-pattern/servlet/SessionExample/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-namepublic/realm-name
/login-config

Please remark that no auth-constraint is defined, because anybody should
have free access to this web-resource. So what I need is authentication without 
authorisation. 
The problem is that only if I define some auth-constraint in the security-constraint 
the
authenticate method of the Authenticator will be invoked. I think that the J2EE 
Standard
makes no restriction that authentication can only be used in combination with 
authorisation.
Am I wrong? Or is this a Tomcat bug?

Cheers Karin

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



RE: Webdav and security

2003-08-27 Thread Duncan Strang
Hi

Thanks for that.

I actually tried this and it works in a way.

However it still lets anyone get a listing of all editable files by
virtue of the fact that GET and POST methods have no constraints applied
to them.

Still, it solves the immediate problem which is what I needed.

Cheers
Duncan



-Original Message-
From: Pike [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 00:37
To: Tomcat Users List
Subject: Re: Webdav and security


Hi Duncan

check this
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg101208.html
see the http-method tags specified there ?

if i get it right, you dont want to open the methods GET and POST for
everyone, and after that, you want to restrict all methods
(PUT,DELETE,PROPFIND,etc) to a certain role

does that help ? I havent actually tried this :-)

 I have included the  org.apache.catalina.servlets.WebdavServlet
 in the web.xml descriptor for my application

 servlet
  servlet-nameWebdavServlet/servlet-name

servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-
 class

  servlet-mapping
  servlet-nameWebdavServlet/servlet-name
  url-pattern//url-pattern
   /servlet-mapping

 It all falls down when I try to add security however.

 If all requests have to go through the webdav servlet, then if I 
 assign the following constraint

 security-constraint
  web-resource-collection
 web-resource-nameThe Webdav bit/web-resource-name
 url-pattern/*/url-pattern !-- or just 
 url-pattern//url-pattern --
  /web-resource-collection
  auth-constraint
 role-namesomerole/role-name
  /auth-constraint
/security-constraint

 this means that no one can see my site unless they log in . Which is
 not
 what I want of course.


goodluck,
*-pike


===
404 Not Found - The weapons you are looking for are currently  
unavailable. The country might be experiencing technical difficulties,  
or you may need to adjust your weapons inspectors mandate.


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



Re: Tomcat 5.0.4 + Apache 2.0.46 with mod_jk 2.0.43

2003-08-27 Thread Venkata Srinivasa Rao, Yerra
uri:/intranet* may helps you

At 04:15 PM 8/27/2003 +0800, you wrote:
I am currenty try to install Tomcat 5.0.4 + Apache 2.0.46 using mod_jk 2.0.43
this is my worker2.properties :
[shm:]
file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/intranet/*]
[uri:/jmx-console/*]
so when i run using this url
  http://localhost/intranet/, it works
but when i run this wayhttp://localhost/intranetit doesnt work... 
any body have any clues?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

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


RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Purvis Robert
I've done this just recently in fact! I was looking for a means of
monitoring objects within our Tomcat and dicovered JMX. To get to Tomcats
Mbean Server you use the following (I've got it in a GeneralJMX class in a
static method for easy of reuse):

public class GeneralJMX {
   
   /** Creates a new instance of GeneralJMX */
   public GeneralJMX() {
   }
   
 
/***
*
* Get the MBean server associated with Tomcat.
*
* @return the MBean server, or null if one canot be found.
*/

   public static MBeanServer getTomcatMBeanServer() {
  MBeanServer server = null;
  List myList = MBeanServerFactory.findMBeanServer(null);
  if (myList.toArray().length  0)
 server = (MBeanServer)myList.toArray()[0];

  return server;
   }
   
}

-Original Message-
From: s p [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 03:59
To: [EMAIL PROTECTED]
Subject: How to get reference of MBeanServer in Tomcat


I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.

Regards,
Santosh

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



RE: mod_jk forwarding scheme problems - https requests

2003-08-27 Thread Purvis Robert
Did you try:

   scheme=https

as an attribute in the https Connector in server.xml ?

-Original Message-
From: Rudolf Schamberger [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 16:50
To: [EMAIL PROTECTED]
Subject: mod_jk forwarding scheme problems - https requests


Hello,

did anyone ever solve problems with mod_jk which was forwarding
https://foo.bar requests as http://foo.bar requests to tomcat? 

Help appreciated.

  regards Rudolf S.

(detailed problems I have been described in my posting yesterday) 


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

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



Re: Tomcat 5.0.4 + Apache 2.0.46 with mod_jk 2.0.43

2003-08-27 Thread Robin
uri:/intranet*   , it cant work

for now im still using: [uri:/intranet/*]
My tomcat is also listening at port 8080
port 80 is for apache httpd
http://localhost:8080/intranet -- work
http://localhost:80/intranet -- cannot work
http://localhost:80/intranet/--- work
Venkata Srinivasa Rao, Yerra wrote:

uri:/intranet* may helps you

At 04:15 PM 8/27/2003 +0800, you wrote:

I am currenty try to install Tomcat 5.0.4 + Apache 2.0.46 using 
mod_jk 2.0.43
this is my worker2.properties :
[shm:]
file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/intranet/*]
[uri:/jmx-console/*]

so when i run using this url
  http://localhost/intranet/, it works
but when i run this wayhttp://localhost/intranetit doesnt 
work... any body have any clues?

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


Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread s p
Hi Purvis,

Thanks for the reply.
This code will give me the MBeanServers on the same
JVM
But in our case we want to get the MBeanServer of a
remote Tomcat. The Tomat server may be running on any
other machine. I would have the port number and the
address of the machine where the Tomcat is running. So
the problem is to get MBeanServer of this Tomcat. 
Do we have any APIs for doing this?

Santosh

--- Purvis Robert [EMAIL PROTECTED] wrote:
 I've done this just recently in fact! I was looking
 for a means of
 monitoring objects within our Tomcat and dicovered
 JMX. To get to Tomcats
 Mbean Server you use the following (I've got it in a
 GeneralJMX class in a
 static method for easy of reuse):
 
 public class GeneralJMX {

/** Creates a new instance of GeneralJMX */
public GeneralJMX() {
}

  

/***
 *
 * Get the MBean server associated with Tomcat.
 *
 * @return the MBean server, or null if one canot
 be found.
 */
 
public static MBeanServer getTomcatMBeanServer()
 {
   MBeanServer server = null;
   List myList =
 MBeanServerFactory.findMBeanServer(null);
   if (myList.toArray().length  0)
  server = (MBeanServer)myList.toArray()[0];
 
   return server;
}

 }
 
 -Original Message-
 From: s p [mailto:[EMAIL PROTECTED] 
 Sent: 27 August 2003 03:59
 To: [EMAIL PROTECTED]
 Subject: How to get reference of MBeanServer in
 Tomcat
 
 
 I am using JMX technology to get information of
 Tomcat
 server. I am unable to get the reference of the
 MBeanServer in Tomcat. Has any one worked on this
 before. I am able get the information for other
 application servers like weblogic and webshere. But
 I
 did not find suitable APIs for Tomcat. Any help in
 this direction will be appreciated.
 
 Regards,
 Santosh
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 

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

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: mod_jk load balancing with multiple apache servers

2003-08-27 Thread Peter Anning
Here are a few points of clarification:

- External hardware Http load balancing is setup using sticky sessions
- mod_jk is setup using  sticky sessions
- there is no session state replication (a lost Tomcat/Jboss instance 
requires a user to log back on)
- the tomcat/Jboss instances are on seperate machines

This is more or less your example no 1 below.

If you take the following example:

Http request 1 is sent to A1 by the ext LB this request may go to T1. Then 
http request 2 is sent to A2 this request may also go to T1. Now T1 has 
double the load of T2 which is currently at zero.

What I am trying to work out in my is:
1. Does this matter or should it somehow be biased?
2. Will things be evened out as the no of requests increase?
3. How will it scale when adding non-even nos. of Tomcats to Apaches?
4. How to represent this in mathematical terms?



Ralph Einfeldt wrote:

 To me it's not quite clear what you are doing exacly.
 
 I see three option to use an externl loadbalancer.
 Which one is the one you use ?
 
 - use mod_jk with sticky sessions.
   - Setup two apaches with a mod_jk.
   - Setup loadbalancing for mod_jk.
   - Setup two tomcats with a unique jvmRoute.
 
  LB
 /  \
/\
   A1A2
   |\   /|
   | \ / |
   |  x  |
   | / \ |
   |/   \|
   T1   T2
   
   Although the last mails from Bill Barker indicate that current 
   implementation of mod_jk doesn't balance the load equally, this
   scenario should work for you, as the external load balancer does 
   this already. The Loadbalancer in mod_jk is just used to route 
   the requests to the correct tomcat.
 
 - use session replication.
   In this scenario each instance of tomcat has a copy of the session 
   data, so it doesn't matter which receives the request. 
   In this case you can omit apache and mod_jk and use tomcat native.
 
  LB
 /  \
/\
   A1A2
   | |
   | |
   T1---T2
 
 - use a load balancer that supports sticky sessions
   (url and cookie based sessions)
 
   In this case you can treat each tomcat as a stand alone 
   server. 
 
  LB
 /  \
/\
   A1A2
   | |
   | |
   T1T2
 
  -Original Message-
  From: Peter Anning [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 5:14 PM
  To: Tomcat Users List
  Subject: Re: mod_jk load balancing with multiple apache servers
  
 




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



RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Purvis Robert
I forgot to mention - you must also copy the mx4j-jmx.jar from server/lib to
common/lib so your web apps can use the Tomcat JMX classes.

Rob

-Original Message-
From: s p [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 03:59
To: [EMAIL PROTECTED]
Subject: How to get reference of MBeanServer in Tomcat


I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.

Regards,
Santosh

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



Re: Is this the correct place to ask questions about WebDAV

2003-08-27 Thread P . van Kemenade
Hi

It's the right place.  I don't know if you'll get many responses, as
WebDAV seems to be one of the least used features.
:-) apparently. I haven't had any answer to any webdav questions yet,
but I'll be glad to answer yours if I can.
I'm afraid everyone seriously into webdav tries his luck with Tomcat,
and after a while, decides to go with Slide anyway. This is a bad thing,
since Slide itself would benefit from a more proper webdav support in
Tomcat 
2$c,
*pike
---
Editorship Styling 'Techniek is waistline, Publish the plan!'
	What make the method strong until for instance one newspaperman who
	wish publish and not with technique wish turn troublesome fallen? The
	clientèle with all the bye bye the handshake with examples decrepit. 
The
	motto: 'Techniek is waistline, publish the plan!'

http://www.worldlanguage.com/Translation.htm 

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


RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread s p
I want to monitor Tomcat server using JMX from another
machine. I am not accessing the MBeanServer from an
webapplication deployed on the Tomcat. So I need have
mx4-jmx.jar in common/lib. 

Santosh

--- Purvis Robert [EMAIL PROTECTED] wrote:
 I forgot to mention - you must also copy the
 mx4j-jmx.jar from server/lib to
 common/lib so your web apps can use the Tomcat JMX
 classes.
 
 Rob
 
 -Original Message-
 From: s p [mailto:[EMAIL PROTECTED] 
 Sent: 27 August 2003 03:59
 To: [EMAIL PROTECTED]
 Subject: How to get reference of MBeanServer in
 Tomcat
 
 
 I am using JMX technology to get information of
 Tomcat
 server. I am unable to get the reference of the
 MBeanServer in Tomcat. Has any one worked on this
 before. I am able get the information for other
 application servers like weblogic and webshere. But
 I
 did not find suitable APIs for Tomcat. Any help in
 this direction will be appreciated.
 
 Regards,
 Santosh
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 

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

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Webdav and security

2003-08-27 Thread P . van Kemenade
Hi

However it still lets anyone get a listing of all editable files by
virtue of the fact that GET and POST methods have no constraints 
applied
to them.
hm .. you can turn of the listings in your web.xml

servlet
servlet-namebla/servlet-name
servlet-classbla/servlet-class
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param
this is actually a standard servlet setting (for GET and POST),
regrettably, if you do this, it also disables the webdav PROPFIND
method (which generates the webdav listings).
there is some logic in there. somewhere.

it would probably be more correct to create two entries
to the same data; one is 'public', port 80, standard HTTP, the other
one is 'private', port 78456384578, behind a firewall, locked
with 10 passwords and WebDav HTTP.
does that make any sense ?

*pike
=
aRtamp;D
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: apache2, mod_jk2, tomcat4.1.27: server has been restarted or reset this connection

2003-08-27 Thread Chris Joelly
Hello!

i have this problem on a windows 2000 box ...

thx, Chris

Am Tue, Aug 26, 2003 at 01:34:47PM -0400, Eric J. Pinnell meinte:
 
 I get this too.
 
 You can add a connectionTimeout to the Connector (I use 12) and you
 will no longer get a reset INFO message but a connection timed out
 INFO message.
 
 I know that it is possible for the user to get a 400 or 500 error due to
 these resets.  I haven't ran a test with the timeout settings to find out.
 I have done it with the timeout set to 0 (the default).
 
 Also what OS are you using?  We spoke about this before and it seemed to
 be unique to Solaris.  Linux didn't have the problem.
 
 But no one has figured out an answer to it...  at least that I know of.
 
 On Tue, 26 Aug 2003, Chris Joelly wrote:
 
  Am Wed, Aug 20, 2003 at 03:42:55PM +0200, Chris Joelly meinte:
  
   i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works fine,
   but the following log messages is written to the mod_jk log file:
  
   19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
   INFO: server has been restarted or reset this connection
   19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
   INFO: server has been restarted or reset this connection
   19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
   INFO: server has been restarted or reset this connection
   19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
  
   as i can see this log message is written on every request, so i can
   change the log level or if there is a real problem would appreciate
   solving the problem.
  
   is this a real problem? and if yes, does anybody know whats the problem?
   i have tried several things with WORKER.sockt_keepalive and
   WORKER.socket_timeout, but things don't change...


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



Re: Authentication without authorisation

2003-08-27 Thread John Holman
Krause

  auth-constraint
   role-name*/role-name
   /auth-constraint
Will require authentication but not authorisation.

John.

Krause Karin wrote:

Hi all,
I've got a question regarding authentication. I wish to do
authentication without authorisation. So this means everybody
should be free to access my web-resource but I wish to know who it is.
Therefore the accessing user must login.
As probably everybody knows
here I can configure that by means of a security-constraint/login-config in my 
web.xml file.
Here is a little example:
security-constraint
		web-resource-collection
			web-resource-nameProtect the Helloworld example/web-resource-name
			description/
			url-pattern/servlet/HelloWorldExample/url-pattern
			url-pattern/servlet/SessionExample/url-pattern
			http-methodPOST/http-method
			http-methodGET/http-method
		/web-resource-collection
/security-constraint
login-config
		auth-methodBASIC/auth-method
		realm-namepublic/realm-name
/login-config

Please remark that no auth-constraint is defined, because anybody should
have free access to this web-resource. So what I need is authentication without authorisation. 
The problem is that only if I define some auth-constraint in the security-constraint the
authenticate method of the Authenticator will be invoked. I think that the J2EE Standard
makes no restriction that authentication can only be used in combination with authorisation.
Am I wrong? Or is this a Tomcat bug?

Cheers Karin

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



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


error while running application

2003-08-27 Thread Billy Kantartzis






i am trying to run the registry server of jwsdp1.2 and i get the following error 
--error ---
Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Error instantiating servlet class com.sun.registry_server.server.RegistryServerServletorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:497)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError: javax/xml/soap/SOAPExceptionjava.lang.Class.getDeclaredConstructors0(Native Method)java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)java.lang.Class.getConstructor0(Class.java:1762)java.lang.Class.newInstance0(Class.java:276)java.lang.Class.newInstance(Class.java:259)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:497)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)java.lang.Thread.run(Thread.java:536)

note The full stack
-- error --
i understand that i have to include some jars to run the application 
i have copied the library jars to common/lib as well as shared/lib 
do i need to do anything else ?


TIA 

Billy Kantartzis
it consultant 
email:[EMAIL PROTECTED]







 IncrediMail - Email has finally evolved - Click Here

Tomcat logging loads of rubbish

2003-08-27 Thread Allistair Crossley
Tomcat seems to be churning out loads of logging into my web application's log file 
(configured with Log4J) I have included a sample here...where can I turn this all off 
.. I am not sure why it is all coming through into my application log.

12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
startElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New 
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire begin() for 
CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - characters(default)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
endElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   bodyText='default'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire body() for 
CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire end() for 
CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - ignorableWhitespace(
)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - ignorableWhitespace(   
 )
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
startElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New 
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire begin() for 
CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - characters(/)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
endElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   bodyText='/'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire body() for 
CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire end() for 
CallParamRule[paramIndex=0, attributeName=null, from stack=false]


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: mod_jk and Tomcat Lose Touch

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

John

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


Do you use multiple Apaches on the server? 



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


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

2003-08-27 Thread John Turner
Hi -

Things I would check:

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

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

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

- verify a Connector on port 8009

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

John

Denise Mangano wrote:

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

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

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

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


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


Re: vhosts and workers

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

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

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

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

http://www.domain.com/demo

and the webapp will be located at appBase/demo.

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

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

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

HTH

John



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


MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

 From [EMAIL PROTECTED]  Wed Aug 27 08:30:28 2003
 Return-Path: [EMAIL PROTECTED]
 Received: from apache.org (daedalus.apache.org [208.185.179.12])
   by mei.net (8.12.9/8.12.9) with SMTP id h7RCURHL025834
   for [EMAIL PROTECTED]; Wed, 27 Aug 2003 08:30:27 -0400
 Received: (qmail 3641 invoked by uid 500); 27 Aug 2003 12:31:29 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 3625 invoked from network); 27 Aug 2003 12:31:28 -
 Received: from unknown (HELO relay.pair.com) (209.68.1.20)
   by daedalus.apache.org with SMTP; 27 Aug 2003 12:31:28 -
 Received: (qmail 55561 invoked from network); 27 Aug 2003 12:31:10 -
 Received: from unknown (HELO johnturner.com) (207.86.123.243)
   by relay.pair.com with SMTP; 27 Aug 2003 12:31:10 -
 X-pair-Authenticated: 207.86.123.243
 Message-ID: [EMAIL PROTECTED]
 Date: Wed, 27 Aug 2003 08:31:10 -0400
 From: John Turner [EMAIL PROTECTED]
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
 X-Accept-Language: en-us, en
 MIME-Version: 1.0
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: vhosts and workers
 References: [EMAIL PROTECTED]
 In-Reply-To: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 BCT-delivery-for: paul
 MEI-wl-code: MEI0258401061987428N6CPvtsUsWBzGNQoh2Oixg
 
 Christopher Garrett wrote:
 
  Home appBase=/home/vhost1/public_html/webapps/...
  ...
  Home appBase=/home/vhost2/public_html/webapps/...
  - setting the docBase/path attributes in the child Context tag to some
  directory within the appBase path:
  Home appBase=/home/vhost1/public_html/webapps/...
  Context docBase=app1 path=/app1...
  ...
  Home appBase=/home/vhost2/public_html/webapps/...
  Context docBase=app1 path=/app1...
 
 I'm assuming you mean Host instead of Home.
 
  My questions:
  1: Would the aforementioned configuration properly serve JSPs/Servlets from

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



Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky sessionsupport.

2003-08-27 Thread Yefym . Dmukh
Hi guys here is detail description:
I have Apache/2.0.45 running on the server A 
And two tomcat workers are running on B and C
The problem is that I cannot get Tomcat cluster load 
balanced , playing around with workers.properties on 
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then 
I have no lost sessions but also no loadbalancing . But 
cluster is still fail safe, if one tomcat dies - another 
one gets all incoming requests. 
2. if I have local_worker=0 then I have a simple round- 
robin balancer without session affinity. So my session got lost. 

configuration example workers.properties: 
worker.list=tomcat-worker-01,tomcat-worker-02,router 
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1

P.S. I checked the previous discussions related to server.xmlS 
configuration.
I had there:
 Engine jmvRoute=worker1 name=Standalone defaultHost=ipaddress1 
debug=0
 Engine jmvRoute=worker2 name=Standalone defaultHost=ipaddress2 
debug=0
--
Yefym Dmukh 
developer
email: [EMAIL PROTECTED]




MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

 From [EMAIL PROTECTED]  Wed Aug 27 09:01:35 2003
 Return-Path: [EMAIL PROTECTED]
 Received: from apache.org (daedalus.apache.org [208.185.179.12])
   by mei.net (8.12.9/8.12.9) with SMTP id h7RD1YHL006826
   for [EMAIL PROTECTED]; Wed, 27 Aug 2003 09:01:34 -0400
 Received: (qmail 73412 invoked by uid 500); 27 Aug 2003 13:02:08 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 73331 invoked from network); 27 Aug 2003 13:02:07 -
 Received: from unknown (HELO icw02.intercomponentware.com) (213.68.214.230)
   by daedalus.apache.org with SMTP; 27 Aug 2003 13:02:07 -
 Received: from icw02.intercomponentware.com (localhost.localdomain [127.0.0.1])
   by icw02.intercomponentware.com (8.11.3/8.11.1) with ESMTP id h7RCvlj04015
   for [EMAIL PROTECTED]; Wed, 27 Aug 2003 14:57:47 +0200
 Received: from esprit.intercomponentware.com (esprit.intercomponentware.com 
 [213.68.214.226])
   by icw02.intercomponentware.com (8.11.3/8.11.1) with ESMTP id h7RCvlb04009
   for [EMAIL PROTECTED]; Wed, 27 Aug 2003 14:57:47 +0200
 To: [EMAIL PROTECTED]
 Subject: Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky session
  support.
 MIME-Version: 1.0
 X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
 Message-ID: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Date: Wed, 27 Aug 2003 14:58:23 +0200
 X-MIMETrack: Serialize by Router on notes/InterComponentWare(Release 5.0.11  |July 
 24, 2002) at
  08/27/2003 02:57:47 PM,
   Serialize complete at 08/27/2003 02:57:47 PM
 Content-Type: multipart/alternative; boundary==_alternative 0047435DC1256D8F_=
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 BCT-delivery-for: paul
 MEI-wl-code: MEI0068341061989296YwVCE8kdBt7FCWc9iHrEwA
 
 --=_alternative 0047435DC1256D8F_=
 Content-Type: text/plain; charset=us-ascii
 
 Hi guys here is detail description:
 I have Apache/2.0.45 running on the server A 
 And two tomcat workers are running on B and C
 The problem is that I cannot get Tomcat cluster load 
 balanced , playing around with workers.properties on 
 Apache gave me two different situations.
 1.if I have local_worker parameter equal to 1, then 
 I have no lost sessions but also no loadbalancing . But 
 cluster is still fail safe, if one tomcat dies - another 
 one gets all incoming requests. 
 2. if I have local_worker=0 then I have a simple round- 
 robin balancer without session affinity. So my session got lost. 

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



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

2003-08-27 Thread Denise Mangano
John -

I just realized that I explained it slightly wrong.  When I comment
the Include statement, apache starts ok.  When I uncomment apache will
not start.

I checked what you suggested.  As Bill suggested, I am including my conf
files as well.

1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.

2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties

Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.

3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...

4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:
!-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define an AJP1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--

5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties

Thanks, 

Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 8:19 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hi -
 
 Things I would check:
 
 - apache's access and error log - is Apache trying to handle the 
 request instead of Tomcat?
 
 - Tomcat's log - is Tomcat even getting the request?
 
 - move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
 Then change JkLogLevel to debug or info (I forget 
 which..try info 
 first) and check mod_jk.log for more info
 
 - verify a Connector on port 8009
 
 - doublecheck your workers.properties file, especially the 
 .host parameter
 
 John
 
 Denise Mangano wrote:
 
  I've been following John Turner's how-to (diff apache 
 version but the 
  instructions can still apply).  I think they problem is a 
 permission 
  issue, but wanted some verification.
  
  Apache install is ok, Tomcat install is ok.  I followed the 
 steps, and 
  added the Listeners, and the LoadModule and Include 
 statement at the 
  end of my httpd.conf.  When I uncomment the Include 
 statement apache 
  starts up no problem.  When I try to use it, my system just 
 hangs as I 
  try to start apache.
  
  Tomcat is running under user tomcat, and all directories from 
  /usr/local/tomcat down have rwx for tomcat, and r only for 
 all others. 
  However, Apache runs as user 'www'.  I tried changing 
 permissions to 
  be executable by all but that didn't seem to do the trick.  
 The system 
  still hangs when I try to start Apache.
  
  Here is my structure with permissions:
  
  --usr drwxr-xr-x
 --local  drwxr-xr-x
   --apache  drwxr-xr-x
   --tomcat  drwxr-xr-x
--conf  drwxr-xr-x
--auto  drwxr-xr-x
mod_jk.conf -rwxr-xr-x
   
  
  If its not a permissions issue, then I'm quite clueless as 
 to what it 
  can be.  I can't even run a config test.  Any suggestions/advice is 
  greatly appreciated.
  
  Denise
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more 

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

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

John

Denise Mangano wrote:

John -

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

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

Denise


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



Hi -

Things I would check:

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

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

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

- verify a Connector on port 8009

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

John

Denise Mangano wrote:


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

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

issue, but wanted some verification.

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

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

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

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

try to start apache.

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

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

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

still hangs when I try to start Apache.

Here is my structure with permissions:

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


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

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

Denise



-

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


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




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

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

2003-08-27 Thread Denise Mangano
The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 Denise Mangano wrote:
 
  John -
  
  I just realized that I explained it slightly wrong.  When I 
 comment 
  the Include statement, apache starts ok.  When I uncomment apache 
  will not start.
  
  I checked what you suggested.  As Bill suggested, I am including my 
  conf files as well.
  
  1.  Apache's error logs are completely empty ...  Yesterday 
 I checked 
  them and they had the following:
  [error]mod_ssl: Child could not open SSLMutex lockfile 
  /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
  [error]System: Permission denied (errno: 13)
  
  That was a permissions issue, which I corrected.  Now when after 
  starting apache, I wait about 10 seconds, then attempt to 
 start Apache 
  and it hangs, but nothing is written to either the 
 access_log or the 
  error_log.
  
  2.  The only thing in Tomcat's log is the server starting and 
  stopping...  Here's the relevant mod_jk output:
  INFO: Initializing Coyote HTTP/1.1 on port 8080
  INFO: Starting Coyote HTTP/1.1 on port 8009
  INFO: JK2: ajp13 listening on /0.0.0.0./8009
  INFO: Jk running ID=0 time=0/28 
  config=/usr/local/tomcat/conf/jk2.properties
  
  Same thing that I had on my previous installation. Not sure 
 why there 
  is mention of jk2.properties.
  
  3.  Tried moving mod_jk.conf and changing the include statement but 
  still apache is a no go...
  
  4.  There are two connectors on port 8009 in the server.xml file.  
  These are still the defaults:
  !-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
  
  !-- Define an AJP1.3 Connector on port 8009 --
  !--
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
  --
  
  5.  workers.properties file in /usr/local/tomcat/conf/jk
  #BEGIN workers.properties
  worker.list=ajp13
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
  #END workers.properties
  
  Thanks,
  
  Denise
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 8:19 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hi -
 
 Things I would check:
 
 - apache's access and error log - is Apache trying to handle the
 request instead of Tomcat?
 
 - Tomcat's log - is Tomcat even getting the request?
 
 - move mod_jk.conf to APACHE_HOME/conf, change your Include 
 to match.
 Then change JkLogLevel to debug or info (I forget 
 which..try info 
 first) and check mod_jk.log for more info
 
 - verify a Connector on port 8009
 
 - doublecheck your workers.properties file, especially the
 .host parameter
 
 John
 
 Denise Mangano wrote:
 
 
 I've been following John Turner's how-to (diff apache
 
 version but the
 
 instructions can still apply).  I think they problem is a
 
 permission
 
 issue, but wanted some verification.
 
 Apache install is ok, Tomcat install is ok.  I followed the
 
 steps, and
 
 added the Listeners, and the LoadModule and Include
 
 statement at the
 
 end of my httpd.conf.  When I uncomment the Include
 
 statement apache
 
 starts up no problem.  When I try to use it, my system just
 
 hangs as I
 
 try to start apache.
 
 Tomcat is running under user tomcat, and all directories from
 /usr/local/tomcat down have rwx for tomcat, and r only for 
 
 all others.
 
 However, Apache runs as user 'www'.  I tried changing
 
 permissions to
 
 be executable by all but that didn't seem to do the trick.
 
 The system
 
 still hangs when I try to start Apache.
 
 Here is my structure with permissions:
 
 --usr drwxr-xr-x
--local  drwxr-xr-x
  --apache  drwxr-xr-x
  --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
   --auto  drwxr-xr-x
   mod_jk.conf -rwxr-xr-x
  
 
 If its not a permissions issue, then I'm quite clueless as
 
 to what it
 
 can be.  I can't even run a config test.  Any suggestions/advice is
 greatly appreciated.
 
 Denise
 
 
 
 
 
 -
 
 To unsubscribe, e-mail: 

Message de l'administrateur réseau de la Régie du Rhône S.A.

2003-08-27 Thread Mail Security Administrator
Madame, Mademoiselle, Monsieur,

Votre e-mail n'a pas atteint son destinataire.

Pour des raisons de sécurité, le type de fichier attaché n'est pas autorisé. Nous vous 
prions de contacter le destinataire pour de plus amples renseignements.

Administrateur Informatique
Régie du Rhône S.A.
Place du Molard 3
1211 Genève

Dear, Madam, Miss, Sir,

Your e-mail did not reach its destination.

For security reasons the file that you have attached to your mail message was not 
authorized.

For more information please contact the recipient.

System Administrator
Régie du Rhône S.A.
Place du Molard 3
1211 Genève

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



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

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

Can you post your mod_jk.conf?

John

Denise Mangano wrote:

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

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



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

John



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


RE: TOMCAT User

2003-08-27 Thread Shapira, Yoav

Howdy,
You mean like getUserPrincipal() in HttpServletRequest?

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Oscar (Eccox) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 5:39 PM
To: Tomcat Users List
Subject: TOMCAT User

Hi,
 
Is there any attribute on the REQUEST where I can know what user is requesting the 
page ??? I'm using tomcat-users.xml...
 
Thanks,

===
José Oscar de Souza Eduardo
Coordenador de Projetos
tel: 3047-4541
fax: 3047-4550
[EMAIL PROTECTED]
===
 
 



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


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



RE: Tomcat logging loads of rubbish

2003-08-27 Thread Shapira, Yoav

Howdy,
Make sure log4j.jar is in your webapp's WEB-INF/lib directory (not
shared/lib or common/lib).  Make sure your log4j configuration file is
under your webapp somewhere, not in common/lib, common/classes,
shared/lib, or shared/classes.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 7:53 AM
To: [EMAIL PROTECTED]
Subject: Tomcat logging loads of rubbish

Tomcat seems to be churning out loads of logging into my web
application's
log file (configured with Log4J) I have included a sample here...where
can
I turn this all off .. I am not sure why it is all coming through into
my
application log.

12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
startElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
characters(default)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
endElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='default'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace(
)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
startElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
characters(/)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
endElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='/'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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




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


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



Context

2003-08-27 Thread Robert Charbonneau
I was trying to setup Tomcat to allow Apache to serve *.jsp files from the 
DocumentRoot of Apache.  I had setup the following:

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/www-tomcat/modules/mod_jk.so /


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second 
Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS /

Badly stuck... Need help Can't read /...$jsp.java???

2003-08-27 Thread Andoni
Hello,

I am getting this error in my log files followed by a stack trace through Tomcat code. 
 Can anyone shed any light?

org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't read: 
/apache/jakarta/tomcat/work/Standalone/my.domain.net/_/jsp/savemsg$jsp.java
1 error

Thanks.

Andoni.

Re: Context

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

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

John

Robert Charbonneau wrote:

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

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

  /Host

/Engine

  /Service

/Server

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

Thanks.

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


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


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

2003-08-27 Thread Denise Mangano
Yes it is very strange.  I also tried it with Tomcat stopped, and still
that Include statement seems to be the offending line.

I sent my files with the previous emails, including the httpd.conf.  I
am wondering, if I try to put all the relevant JK 'stuff' directly into
the httpd.conf file will it work I am going to try that in the
meantime...

Thanks again:

mod_jk.conf :  (All paths to module, workers, etc are correct)

## Auto generated on Wed Aug 27 08:54:18 UTC 2003##

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache/libexec/mod_jk-1.3.eapi.so
/IfModule

JkWorkersFile
/usr/local/jakarta-tomcat-4.1.27/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.1.27/logs/mod_jk.log

JkLogLevel info



VirtualHost www.parkingticketpayment.com
ServerName www.parkingticketpayment.com

 www.parkingticketpayment.com:/admin


# Static files 
Alias /admin
/usr/local/jakarta-tomcat-4.1.27/webapps/../server/webapps/admin

Directory
/usr/local/jakarta-tomcat-4.1.27/webapps/../server/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 
/Directory


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

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

JkMount /admin/j_security_check  ajp13
JkMount /admin/*.do  ajp13
JkMount /admin/*.jsp  ajp13

 www.parkingticketpayment.com:/webdav


# Static files 
Alias /webdav /usr/local/jakarta-tomcat-4.1.27/webapps/webdav

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


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

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

JkMount /webdav/*.jsp  ajp13

 www.parkingticketpayment.com:/examples


# Static files 
Alias /examples /usr/local/jakarta-tomcat-4.1.27/webapps/examples

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


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

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

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13

 www.parkingticketpayment.com:/tomcat-docs


# Static files 
Alias /tomcat-docs
/usr/local/jakarta-tomcat-4.1.27/webapps/tomcat-docs

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


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

Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /tomcat-docs/*.jsp  ajp13

 www.parkingticketpayment.com:/manager


# Static files 
Alias /manager
/usr/local/jakarta-tomcat-4.1.27/webapps/../server/webapps/manager

Directory
/usr/local/jakarta-tomcat-4.1.27/webapps/../server/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/list  ajp13
JkMount /manager/deploy  ajp13
JkMount /manager/html/*  ajp13
JkMount /manager/resources  ajp13
JkMount /manager/start  ajp13
JkMount /manager/stop  ajp13
JkMount /manager/install  ajp13
JkMount /manager/*.jsp  ajp13
JkMount /manager/remove  ajp13
JkMount /manager/roles  ajp13
JkMount /manager/sessions  ajp13
JkMount /manager/serverinfo  ajp13
JkMount /manager/reload  ajp13
JkMount /manager/undeploy  ajp13
/VirtualHost


 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, 

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

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

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]

And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

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

Thanks for your help :)
Denise



 -Original Message-  
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 9:29 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 configtest doesn't return an error?  It just hangs?  That is 
 very funky.
 
 Can you post your mod_jk.conf?
 
 John
 
 Denise Mangano wrote:
 
  The same thing happens... It just hangs  Also, the same 
 situation. 
  If I comment out the Include statement in httpd.conf I can run the 
  configtest ok.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: [ANN] Apache Tomcat 5.0.9 Beta released

2003-08-27 Thread Dominique Batard
Did anything changed in the docBase Context attribute within virtual Hosts ?

I can't have an absolute path in the docBase attribute, either within
server.xml or within a context file

I'm getting :
INFO: Processing Context configuration file URL
file:C:\jakarta-tomcat-5.0.9\conf\Catalina\edevis\foo.xml
27 août 2003 16:17:08 org.apache.commons.digester.Digester startElement
GRAVE: Begin event threw exception
java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume
incorrecte
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352)
at java.io.File.getCanonicalPath(File.java:513)
at java.io.File.getCanonicalFile(File.java:534)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
...

Dom
- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 5:30 AM
Subject: Re: [ANN] Apache Tomcat 5.0.9 Beta released


 This part of Tomcat didn't really change all that much from 4.1.x.  There
 are no changes on the Apache side (i.e. you can use the same binaries for
 mod_jk(2) that you use for 4.1.x).  Warp (aka mod_webapp) is not
supported.
 On the Tomcat side, only the CoyoteConnector is supported.  Other than
that,
 the server.xml config is a bit nicer, but it will also support your old
 4.1.x configuration.  Your jk2.properties for 4.1.x should also work with
 Tomcat 5.

 Johan Wasserman - CPX Mngd Services [EMAIL PROTECTED]
wrote
 in message

news:[EMAIL PROTECTED]
.
 HOT!

 Any spec's available on setting up and running under Apache? Did it
 really change all that much?

 Thanks from a loyal supporter.




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





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



RE: Tomcat logging loads of rubbish

2003-08-27 Thread Allistair Crossley
My logging is working OK. My Log4j is in web-inf/lib and the log4j properties is is 
web-inf/classes.

The problem is that for some reason the log output includes my stuff AND loads of 
other stuff that I do not want. I have no idea where it is coming from.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 14:41
To: Tomcat Users List
Subject: RE: Tomcat logging loads of rubbish



Howdy,
Make sure log4j.jar is in your webapp's WEB-INF/lib directory (not
shared/lib or common/lib).  Make sure your log4j configuration file is
under your webapp somewhere, not in common/lib, common/classes,
shared/lib, or shared/classes.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 7:53 AM
To: [EMAIL PROTECTED]
Subject: Tomcat logging loads of rubbish

Tomcat seems to be churning out loads of logging into my web
application's
log file (configured with Log4J) I have included a sample here...where
can
I turn this all off .. I am not sure why it is all coming through into
my
application log.

12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
startElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
characters(default)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
endElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='default'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace(
)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
startElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
characters(/)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
endElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='/'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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




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


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a 

RE: Tomcat logging loads of rubbish

2003-08-27 Thread Shapira, Yoav

Howdy,
It's coming from tomcat, which is picking up your log4j or
commons-logging configuration.  Are you using commons-logging in your
webapp?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:00 AM
To: Tomcat Users List
Subject: RE: Tomcat logging loads of rubbish

My logging is working OK. My Log4j is in web-inf/lib and the log4j
properties is is web-inf/classes.

The problem is that for some reason the log output includes my stuff
AND
loads of other stuff that I do not want. I have no idea where it is
coming
from.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 14:41
To: Tomcat Users List
Subject: RE: Tomcat logging loads of rubbish



Howdy,
Make sure log4j.jar is in your webapp's WEB-INF/lib directory (not
shared/lib or common/lib).  Make sure your log4j configuration file is
under your webapp somewhere, not in common/lib, common/classes,
shared/lib, or shared/classes.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 7:53 AM
To: [EMAIL PROTECTED]
Subject: Tomcat logging loads of rubbish

Tomcat seems to be churning out loads of logging into my web
application's
log file (configured with Log4J) I have included a sample here...where
can
I turn this all off .. I am not sure why it is all coming through into
my
application log.

12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
startElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
characters(default)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
endElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='default'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace(
)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
startElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
characters(/)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
endElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='/'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
for CallParamRule[paramIndex=0, attributeName=null, from stack=false]


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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




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

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

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

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

What is the output of httpd -l?

John

Denise Mangano wrote:

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

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


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


Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky sessionsupport.

2003-08-27 Thread Yefym . Dmukh
Hi guys , I'm newbei here , can be that I duplicate this message. 
Sorry for that , but would be nice if anybody reply me :)))
just to be sure that I have my chance to solve this problem


I have Apache/2.0.45 running on the server A 
And two tomcat workers are running on B and C
The problem is that I cannot get Tomcat cluster load 
balanced , playing around with workers.properties on 
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then 
I have no lost sessions but also no loadbalancing . But 
cluster is still fail safe, if one tomcat dies - another 
one gets all incoming requests. 
2. if I have local_worker=0 then I have a simple round- 
robin balancer without session affinity. So my session got lost. 

configuration example workers.properties: 
worker.list=tomcat-worker-01,tomcat-worker-02,router 
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1

P.S. I checked the previous discussions related to server.xmlS 
configuration.
I had there:
 Engine jmvRoute=worker1 name=Standalone defaultHost=ipaddress1 
debug=0
 Engine jmvRoute=worker2 name=Standalone defaultHost=ipaddress2 
debug=0

Best Regards an thnx for your patience.)
--


Re: Context

2003-08-27 Thread Andoni
1. Back up the file.
2. Delete all the comments.
3. Put all single-line XML tags on a single line (even if this means you
can't see the end of some of them)
4. Delete any contexts you don't need (e.g. examples)
5. Then try to work with the file.  Or post it to this list and ask your
questions.

As for getting Apache to work with a .jsp file instead of passing it on to
Tomcat all you have to do is remove the
JkMount /*.jsp ajp13

statement from Apache's httpd.conf file.  But then these will  be treated as
ordinary text files not script files which have to be interpreted.

Andoni.

- Original Message -
From: Robert Charbonneau [EMAIL PROTECTED]
To: Tomcat Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 12:56 PM
Subject: Context


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



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

 Thanks.

 --
 Robert Charbonneau
 [EMAIL PROTECTED]
 --


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




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



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

2003-08-27 Thread Denise Mangano
Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.

This is the output of httpd -l:

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

Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all 
 other JK stuff 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
  OK, I tried adding the Jk directives directly into the httpd.conf 
  file, and apache at least starts.  So the problem is the include 
  statement. Is it possible that I don't have whatever module 
 is needed 
  to support the Include statement?
  
  So now the problem is that although apache starts, it does 
 not start 
  properly.  When I run ps -aux | grep httpd I get the following:
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  
  And needless to say I can't get to my web page.  Now again I am 
  getting those error messages in both my error_log and 
 ssl_engine_log:
  [error]mod_ssl: Child could not open SSLMutex lockfile 
  /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
  [error]System: Permission denied (errno: 13)
  
  So apparently I have a problem with mod_ssl, which I guess I didn't 
  resolve yesterday and should post to the apache list.  But the 
  question still remains why using the Include statement 
 would prevent 
  Apache from starting at all?
  
  Thanks for your help :)
  Denise
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Badly stuck... Need help Can't read /...$jsp.java???

2003-08-27 Thread Shapira, Yoav

Howdy,
Make sure tomcat has read permissions on the work directory ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:09 AM
To: Tomcat Users List
Subject: Badly stuck... Need help Can't read /...$jsp.java???

Hello,

I am getting this error in my log files followed by a stack trace
through
Tomcat code.  Can anyone shed any light?

org.apache.jasper.JasperException: Unable to compile class for
JSPerror:
Can't read:
/apache/jakarta/tomcat/work/Standalone/my.domain.net/_/jsp/savemsg$jsp.
java
1 error

Thanks.

Andoni.



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


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



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

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

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

John

Denise Mangano wrote:

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

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


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



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

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

What is the output of httpd -l?

John

Denise Mangano wrote:


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

to support the Include statement?

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

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

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

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

Apache from starting at all?

Thanks for your help :)
Denise


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



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


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


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

2003-08-27 Thread Vladyslav Kosulin
[EMAIL PROTECTED] wrote:
Hi guys here is detail description:
I have Apache/2.0.45 running on the server A 
If your Apache is running on UNIX/Linux/BSD/MacOS X, load balancing with sticky 
sessions will work only if you use worker MPM. At least this is correct for 
mod_jk2, and may be the same is the cause for mod_jk.
By default Apache is been compiled with prefork MPM on UNIX/Linux/BSD.
Check with
   httpd -l
If you see prefork.c, you have to recompile Apache using
./configure --with-mpm=worker ...

Hope this will help.

Vlad

And two tomcat workers are running on B and C
The problem is that I cannot get Tomcat cluster load 
balanced , playing around with workers.properties on 
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then 
I have no lost sessions but also no loadbalancing . But 
cluster is still fail safe, if one tomcat dies - another 
one gets all incoming requests. 
2. if I have local_worker=0 then I have a simple round- 
robin balancer without session affinity. So my session got lost. 

configuration example workers.properties: 
worker.list=tomcat-worker-01,tomcat-worker-02,router 
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1

P.S. I checked the previous discussions related to server.xmlS 
configuration.
I had there:
 Engine jmvRoute=worker1 name=Standalone defaultHost=ipaddress1 
debug=0
 Engine jmvRoute=worker2 name=Standalone defaultHost=ipaddress2 
debug=0
--
Yefym Dmukh 
developer
email: [EMAIL PROTECTED]





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


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

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

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

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 10:47 AM
 To: Tomcat Users List
 Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
 apache with Include statement
 
 
 
 Are you loading mod_ssl?
 
 I'm marking this as off-topic because we haven't determined 
 that this is 
 a JK/Tomcat problem yet.
 
 John
 
 Denise Mangano wrote:
 
  Yeah, it appears to be my apache.  I still get that 
 SSLMutex error.  I 
  have to work on getting that resolved.
  
  This is the output of httpd -l:
  
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
  
  Denise
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all
 other JK stuff 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
 
 OK, I tried adding the Jk directives directly into the httpd.conf
 file, and apache at least starts.  So the problem is the include 
 statement. Is it possible that I don't have whatever module 
 
 is needed
 
 to support the Include statement?
 
 So now the problem is that although apache starts, it does
 
 not start
 
 properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
 
 And needless to say I can't get to my web page.  Now again I am
 getting those error messages in both my error_log and 
 
 ssl_engine_log:
 
[error]mod_ssl: Child could not open SSLMutex lockfile
 /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
 
 So apparently I have a problem with mod_ssl, which I guess I didn't
 resolve yesterday and should post to the apache list.  But the 
 question still remains why using the Include statement 
 
 would prevent
 
 Apache from starting at all?
 
 Thanks for your help :)
 Denise
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Limit local connections

2003-08-27 Thread Mario Moroni
In order to develop in peace i'd like to limit my tomcat only to local
connections.
is it possible?
How?

..or should I make a control for every page requested?

_Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Consigli su piante, fiori e bonsai? Affidati a Mr. Green, clicca qui!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=749d=27-8

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



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

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

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

Denise Mangano wrote:

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

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

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



Are you loading mod_ssl?

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

John

Denise Mangano wrote:


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

have to work on getting that resolved.

This is the output of httpd -l:

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



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



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

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

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

What is the output of httpd -l?

John

Denise Mangano wrote:



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


to support the Include statement?

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


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


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


Apache from starting at all?

Thanks for your help :)
Denise



-

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




-

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


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



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


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


  1   2   >