Re: tomcat 5 - apache 2 - ldap

2005-09-12 Thread sudip shrestha
But, you will run into problems if you use JNDIRealm with SSL (ldap with ssl 
- Container Managed Security)use mozilla-java sdk if you prefer to do 
this way.
http://www.mozilla.org/directory

On 7/27/05, Nili Adoram [EMAIL PROTECTED] wrote:
 
 What about single sign-on for web applications and PHP?
 
 Does tomcat delegate credentials back to Apache so Apache would not
 authenticate again?
 
 Thanks
 Nili
 
 On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  If you use
  Form-based authentication (login page) then tomcat needs to do it...
 
  Regards
  Guru
 
  -Original Message-
  From: Raghupathy,Gurumoorthy
  [mailto:[EMAIL PROTECTED]
 
  Sent: 27 July 2005 13:02
  To: 'Tomcat Users List'
  Subject: RE: tomcat 5 - apache 2 - ldap
 
 
  Ask tomcat  Because if sometime you change the webserver ( in the
  worst
  case ) then you don't need to change anything :)
 
  Tomcat has good support for OpenLdap ... ( I have been using it for  1
  year
  )
 
  Guru
 
 
  -Original Message-
  From: Nili Adoram [mailto:[EMAIL PROTECTED]
  Sent: 27 July 2005 12:54
  To: tomcat-user@jakarta.apache.org
  Subject: tomcat 5 - apache 2 - ldap
 
 
  Hi,
 
  I need to setup the following system:
 
  - Tomcat 5.5.9
  - Apache 2 (using mod_jk)
  - Redhat 7.3
  - User authentication against Ldap (using OpenLdap)
  - Single sign-on (e.g. if the user is authenticated for entering a web
  application he will not have to authenticate again when browsing a PHP
  page)
  - Form-based authentication (login page)
 
  I still need to figure out the following:
 
  - Should Tomcat or Apache do ldap authentication ?
  - How are credentials passed between Tomcat and Apache (to ensure
  single
  sign-on) ?
 
  Your help is appreciated.
 
 
 
 
 --
 Nili Adoram ([EMAIL PROTECTED])
 SEMPRE Team, RD
 Qlusters Inc.
 972-3-6081976
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Raghupathy,Gurumoorthy
Ask tomcat  Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :) 

Tomcat has good support for OpenLdap ... ( I have been using it for  1 year
) 

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure single
sign-on) ?

Your help is appreciated.

-- 
Nili Adoram

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

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



RE: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Raghupathy,Gurumoorthy
If you use
Form-based authentication (login page) then tomcat needs to do it...

Regards
Guru

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 27 July 2005 13:02
To: 'Tomcat Users List'
Subject: RE: tomcat 5 - apache 2 - ldap


Ask tomcat  Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :) 

Tomcat has good support for OpenLdap ... ( I have been using it for  1 year
) 

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure single
sign-on) ?

Your help is appreciated.

-- 
Nili Adoram

-
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: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Nili Adoram

What about single sign-on for web applications and PHP?

Does tomcat delegate credentials back to Apache so Apache would not  
authenticate again?


Thanks
Nili

On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy  
[EMAIL PROTECTED] wrote:



If you use
Form-based authentication (login page) then tomcat needs to do it...

Regards
Guru

-Original Message-
From: Raghupathy,Gurumoorthy  
[mailto:[EMAIL PROTECTED]


Sent: 27 July 2005 13:02
To: 'Tomcat Users List'
Subject: RE: tomcat 5 - apache 2 - ldap


Ask tomcat  Because if sometime you change the webserver ( in the  
worst

case ) then you don't need to change anything :)

Tomcat has good support for OpenLdap ... ( I have been using it for  1  
year

)

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED]
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure  
single

sign-on) ?

Your help is appreciated.





--
Nili Adoram ([EMAIL PROTECTED])
SEMPRE Team, RD
Qlusters Inc.
972-3-6081976

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



Re: Tomcat and Apache

2005-07-11 Thread Ivan Rodriguez

I don t know details about your problem but  i can answer that

j_secutiry_check is not a way of integrating tomcat into apache. It is an 
authentition scheme defined by J2EE specs.

What you need is the jk_mount apache module, to let your Apache install bypass 
the dynamic calls to tomcat, and then to serve only static content with apache.

Details of configuration can be found at:

http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/


Christian Stalp escribió:


Hello together,
I still have some trouble running Apache and Tomcat together in one host.
I heard that I have to write a  j_secutiry_check into apache.conf or 
httpd.conf. Where exactly I have to write this, and with which syntax. What 
else I have to consider while running Apache and Tomcat together.


Important: Tomcat is not embedded in Apache in my case. It has its own 
process!!!


Thank you...

Gruss Christian

 




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



Re: Tomcat and Apache

2005-07-11 Thread Christian Stalp
Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez:
 I don t know details about your problem but  i can answer that

 j_secutiry_check is not a way of integrating tomcat into apache. It is an
 authentition scheme defined by J2EE specs.

 What you need is the jk_mount apache module, to let your Apache install
 bypass the dynamic calls to tomcat, and then to serve only static content
 with apache.

 Details of configuration can be found at:

 http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/

No this isn't the solution. Tomcat and Apache are full independent. They don't 
cooperate together nor they communicate. Apache listens at port 80 and Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each 
time:
[quote]
HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

-- 
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: [EMAIL PROTECTED]

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



Re: Tomcat and Apache

2005-07-11 Thread Ivan Rodriguez

I have the same issue! with debian sarge, and tomcat installed from scratch:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)


jakarta-tomcat-5.5.9-src.tar.gz
Debian GNU/Linux 3.1
jdk1.5.0_03

No this isn't the solution. Tomcat and Apache are full independent. They don't 
cooperate together nor they communicate. Apache listens at port 80 and Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each 
time:

[quote]
HTTP Status 500 -

type Exception report

message

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


exception

org.apache.jasper.JasperException: Unable to compile class for JSP
	at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)

at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

 




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



RE: Tomcat and Apache

2005-07-11 Thread Raghupathy,Gurumoorthy
Check the permission in the work directory change it to 777 and try 

-Original Message-
From: Ivan Rodriguez [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 15:14
To: Tomcat Users List
Subject: Re: Tomcat and Apache


I have the same issue! with debian sarge, and tomcat installed from scratch:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)


jakarta-tomcat-5.5.9-src.tar.gz
Debian GNU/Linux 3.1
jdk1.5.0_03

No this isn't the solution. Tomcat and Apache are full independent. They
don't 
cooperate together nor they communicate. Apache listens at port 80 and
Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each

time:
[quote]
HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
432)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
142)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:200)
   at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
   at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

  



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

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



Re: Tomcat and Apache

2005-07-11 Thread Ivan Rodriguez
It was my first attempt. I think i have problems with library 
dependencies, cause I have copied the install from development to 
integration enviroment. Development is a mandriva cooker (urpmi setup), 
and integration a debian sarge system(from scratch setup).


Installing and getting running tomcat 5.5 is not as easy than with 5.0 
series :)


Raghupathy,Gurumoorthy escribió:

Check the permission in the work directory change it to 777 and try 

 



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



Re: Tomcat and Apache

2005-07-11 Thread dan stephens




From: Christian Stalp [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat and Apache
Date: Mon, 11 Jul 2005 13:53:09 +0200

Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez:
 I don t know details about your problem but  i can answer that

 j_secutiry_check is not a way of integrating tomcat into apache. It is 
an

 authentition scheme defined by J2EE specs.

 What you need is the jk_mount apache module, to let your Apache install
 bypass the dynamic calls to tomcat, and then to serve only static 
content

 with apache.

 Details of configuration can be found at:

 http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/

No this isn't the solution. Tomcat and Apache are full independent. They 
don't
cooperate together nor they communicate. Apache listens at port 80 and 
Tomcat

at port 8180 ( its the Debian Solution ).
But I cannot run tomcat under these configuration. I get an error dump each
time:
[quote]
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it 
from

fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

--
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: [EMAIL PROTECTED]

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

Tomcat and apache are fully independent, but to enable Apache to use Tomcat 
as the J2EE container, you need to use mod_jk, which is what Ivan stated. 
Then when a request comes into Apache, your jk mount point will tell it to 
deliver the JSP from tomcat. That's a high level anyway.


Do you really need apache? You can just use Tomcat for your static content, 
JSP, beans etc...


_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: Tomcat 5.0 + Apache 2.0 + ErrorDocument

2005-06-17 Thread Gurumoorthy
in your Apache

PUT

ErrorDocument 400 /errors/404.jsp
ErrorDocument 500 /errors/500.jsp

And move /errors/404.jsp  and /errors/404.jsp  to the context path .. .not
in WEB-INF as apache wont be able to see the code in WeB-INF  ( UNLESS YOU
ALIAS IT WHICH I DONT THINK IS A GOOD IDEA )

Any Doubts ? Give me a shout ...
- Original Message -
From: Ben [EMAIL PROTECTED]
To: Tomcat tomcat-user@jakarta.apache.org
Sent: Friday, June 17, 2005 1:39 PM
Subject: Tomcat 5.0 + Apache 2.0 + ErrorDocument


Hi

I would like to have Tomcat handle all the error documents, how can I
do this? At this stage, whenever there is a page not found, I see an
Apache error page. I have already setup mod_jk.

I have this:

JKMount /*.jsp ajp13

In my web.xml, I have this:

error-page
error-code404/error-code
location/WEB-INF/errors/404.jsp/location
/error-page

My mod_jk log has the following lines:

jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13
jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13

Somehow I can't see my /WEB-INF/errors/404.jsp when there is a page not
found.

Thanks,
Ben

-
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 vs Apache

2005-05-20 Thread Lutz Zetzsche
Hi Woodchuck,

Am Mittwoch, 18. Mai 2005 21:46 schrieb Woodchuck:
 another (simple) way to think about the difference is that Apache
 serves static web pages, whereas Tomcat *can* do some server-side
 processing and serve dynamic web pages.

 all else being equal (and with no mods installed on Apache such as
 CGI/SSI/PHP), everyone visiting an Apache hosted website will see
 exactly the same set of web pages.

 in contrast, a Tomcat hosted website *can* display different content
 for the same requested web page for each visitor.

 you can use Tomcat to host totally static websites and not use Apache
 if you wanted to.  but Tomcat is meant for dynamic websites that
 interact in some way with the user (ie. capture and process user
 information) to produce custom results.

You are aware, that Apache can do the same as Tomcat. The only 
difference is that it will use PHP or Perl for doing this.

You can run totally dynamic php websites with Apache and they can be as 
scalable and performant as JSP websites. I.e. PHP provides caching 
technologies which are very simple but at the same time close to static 
page performance. It only depends on your programming capabilities and 
your understanding of how the technology you are using ist working. You 
can write non-scalable and unperformant applications with both, PHP and 
Java. And if you try to programme PHP like Java or the other way round, 
yo will very likely not get the best results.

So, the real difference between Tomcat and Apache - in my eyes - is not 
what each of them can do but how  heydo it. The technology makes the 
difference. It is a decision between two different worlds and 
philosophies.

I like both. Both have there strengthes.


Best wishes

Lutz

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



Re: Tomcat vs Apache

2005-05-20 Thread Tim Diggins
Hi -
thanks for that, I hadn't realised that the servlet-name default would 
still work in my webapp's web.xml. So I can reverse the logic as you 
suggest. Works great.

Tim
Parsons Technical Services wrote:
Look here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html
If you override the mapping by putting your own reference to the default 
in your web.xml for the app, you should be able to map it the way you 
want and then have a mapping to your servlet with the / path.

Or have your Spring dispatcher catch everything and parse the path to 
redirect the static stuff.

Haven't tried this myself, just some thoughts.
Doug
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat vs Apache

2005-05-19 Thread Marco Pöhler
You can find Peter's Benchmarks at
http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf

kr 
Marco
---
http://www.kontaktlinsen-preisvergleich.de
http://www.parfuem-faq.de

Am Mittwoch, den 18.05.2005, 16:50 -0500 schrieb Caldarale, Charles R:
  From: Dakota Jack [mailto:[EMAIL PROTECTED] 
  Subject: Re: Tomcat vs Apache
  
  I think there is not much question that the Apache server is far more
  efficient serving static html.  Is there really any issue on that?  If
  so, things sure have changed.  I thought the comparison was like 5 to
  1.  Is that no longer true?
 
 That is definitely no longer true - search the archives for Peter Lin's
 test results.  It's not quite parity, but it's close.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 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 vs Apache

2005-05-19 Thread Tim Diggins
This has been a great and informative thread... I'm wondering now, how 
to accomplish what I want to do in Tomcat alone, rather than looking for 
a Tomcat+Apache solution (sounds simpler).

The issue is that I want ALL directory-like urls resolved by a 
particular servlet (which is a Spring dispatcher servlet, but never mind 
that), but I would like very few kinds of static files (which I could 
name explictly *.gif, *.png, *.css or put under a static place) served 
statically (ie by the default servlet.

The problem is that the url-pattern for a directory-like urls covers all 
urls.

Is there a way to do the reverse of normal, state that you want  a 
particular url-pattern (e.g. /static/*) to go to the default servlet 
, and everything else (e.g. /*) to go to a particular servlet. If so, 
how do I indicate the default servlet in my web.xml?

(And I've already had recommendations from people to change the URLs for 
the dynamic stuff to something else, but that's not what the 
client/customer/user/design wants -- the url is very much part of the 
user interface in this application).

thanks
Tim

Fritz Schneider wrote:
Chris,
Earlier versions of Tomcat were quite a bit slower than Apache when
delivering static pages. For high volume work the preferred solution was to
have Apache listening on port 80, and when it received a request for a page
from in a J2EE context, to forward it to Tomcat, listening on 8080. A
similar connector is used for Microsoft IIS.
Tomcat had a major rewrite for Tomcat 5, and the performance difference on
static pages is now minor. An Apache-to-Tomcat connector is now used for the
following reasons (and probably a few more):
1) History. We started out that way, and there's no reason to change.
2) Expansion. We have been running Apache (or IIS) and we need to add a J2EE
container.
3) Load balancing. We have too many requests for a single server, so we have
Apache take the incoming requests and dole them out to three or four Tomcat
servers.
4) Management. We have a lot of customers. Some need CGI, some need PHP, and
some need J2EE.
I hope this helps,
Fritz
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 18, 2005 9:39 AM
To: Tomcat Users List
Subject: Re: Tomcat vs Apache


Apache is not a J2EE container - you are off-roading on this one ;-)

Thanks.  That was pretty much what I wanted to find out.  BTW, I keep 
hearing of people using Apache and Tomcat in conjunction.  How does that 
work?

Chris
-
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 vs Apache

2005-05-19 Thread Tim Diggins
(Er, and sorry I just realised I posted __some__ of this as part of a 
question on the list last week, but the question I have is now posed 
more concretely and wasn't answered then)!

Tim Diggins wrote:
This has been a great and informative thread... I'm wondering now, how 
to accomplish what I want to do in Tomcat alone, rather than looking for 
a Tomcat+Apache solution (sounds simpler).

The issue is that I want ALL directory-like urls resolved by a 
particular servlet (which is a Spring dispatcher servlet, but never mind 
that), but I would like very few kinds of static files (which I could 
name explictly *.gif, *.png, *.css or put under a static place) served 
statically (ie by the default servlet.

The problem is that the url-pattern for a directory-like urls covers all 
urls.

Is there a way to do the reverse of normal, state that you want  a 
particular url-pattern (e.g. /static/*) to go to the default servlet 
, and everything else (e.g. /*) to go to a particular servlet. If so, 
how do I indicate the default servlet in my web.xml?

(And I've already had recommendations from people to change the URLs for 
the dynamic stuff to something else, but that's not what the 
client/customer/user/design wants -- the url is very much part of the 
user interface in this application).

thanks
Tim



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


RE : Tomcat vs Apache

2005-05-19 Thread LERBSCHER Jean-Pierre
See comment in message.

-Message d'origine-
De : Tim Diggins [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 19 mai 2005 13:24
À : Tomcat Users List
Objet : Re: Tomcat vs Apache

(Er, and sorry I just realised I posted __some__ of this as part of a 
question on the list last week, but the question I have is now posed 
more concretely and wasn't answered then)!

Tim Diggins wrote:
 This has been a great and informative thread... I'm wondering now, how 
 to accomplish what I want to do in Tomcat alone, rather than looking for 
 a Tomcat+Apache solution (sounds simpler).
 
 The issue is that I want ALL directory-like urls resolved by a 
 particular servlet (which is a Spring dispatcher servlet, but never mind 
 that), but I would like very few kinds of static files (which I could 
 name explictly *.gif, *.png, *.css or put under a static place) served 
 statically (ie by the default servlet.
 
 The problem is that the url-pattern for a directory-like urls covers all 
 urls.
 
 Is there a way to do the reverse of normal, state that you want  a 
 particular url-pattern (e.g. /static/*) to go to the default servlet 
 , and everything else (e.g. /*) to go to a particular servlet. If so, 
 how do I indicate the default servlet in my web.xml?
SRV.11.2 Specification of Mappings
In the web application deployment descriptor, the following syntax is used
to define mappings:
* A string beginning with a '/' character and ending with a '/*' postfix is
used for path mapping.
* A string beginning with a '*.' prefix is used as an extension mapping.
* A string containing only the '/' character indicates the default servlet
of the application. In this case the servlet path is the request URI minus
the context pth and the path info is null.
* All other strings are used for exact matches only.
 
 (And I've already had recommendations from people to change the URLs for 
 the dynamic stuff to something else, but that's not what the 
 client/customer/user/design wants -- the url is very much part of the 
 user interface in this application).
 
 thanks
 
 Tim

 


-
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 vs Apache

2005-05-19 Thread Parsons Technical Services
Look here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html
If you override the mapping by putting your own reference to the default in 
your web.xml for the app, you should be able to map it the way you want and 
then have a mapping to your servlet with the / path.

Or have your Spring dispatcher catch everything and parse the path to 
redirect the static stuff.

Haven't tried this myself, just some thoughts.
Doug

- Original Message - 
From: Tim Diggins [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, May 19, 2005 7:23 AM
Subject: Re: Tomcat vs Apache


(Er, and sorry I just realised I posted __some__ of this as part of a 
question on the list last week, but the question I have is now posed more 
concretely and wasn't answered then)!

Tim Diggins wrote:
This has been a great and informative thread... I'm wondering now, how to 
accomplish what I want to do in Tomcat alone, rather than looking for a 
Tomcat+Apache solution (sounds simpler).

The issue is that I want ALL directory-like urls resolved by a particular 
servlet (which is a Spring dispatcher servlet, but never mind that), but 
I would like very few kinds of static files (which I could name explictly 
*.gif, *.png, *.css or put under a static place) served statically (ie by 
the default servlet.

The problem is that the url-pattern for a directory-like urls covers all 
urls.

Is there a way to do the reverse of normal, state that you want  a 
particular url-pattern (e.g. /static/*) to go to the default servlet 
, and everything else (e.g. /*) to go to a particular servlet. If so, 
how do I indicate the default servlet in my web.xml?

(And I've already had recommendations from people to change the URLs for 
the dynamic stuff to something else, but that's not what the 
client/customer/user/design wants -- the url is very much part of the 
user interface in this application).

thanks
Tim



-
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 vs Apache

2005-05-18 Thread Anthony E. Carlos
I think I need to ask a question before offering any information.
When you say applet, do you mean a java applet that runs in a client's 
browser window? Or, do you have a web application comprised of 
servlets/jsps (or some analogous configuration)?

-Anthony
On May 18, 2005, at 10:37 AM, Chris wrote:
I've been working with Tomcat for a while now, but I haven't messed 
with Apache yet.  Could someone explain or point me to something 
explaining the differences between Tomcat and Apache?  I have a large 
applet hosted on Tomcat, and am investigating using Apache instead.  Is 
this feasable? TIA.

Chris
-
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 vs Apache

2005-05-18 Thread Eric VERGNAUD
If all you're doing is serve static pages, both are equivalent.  
However, if you ever need dynamic content, either client or server  
side, for example a page whose content is extracted from a database,  
or a form for which you need to record the values, you need some kind  
of intelligence.

For that job, Apache relies on cgi and php, while Tomcat relies on  
Servlets and JSP, both based on Java.

Unless you have a good reason to switch to Apache, you should stick  
to Tomcat.

Le 18 mai 05 à 16:37, Chris a écrit :
I've been working with Tomcat for a while now, but I haven't messed  
with Apache yet.  Could someone explain or point me to something  
explaining the differences between Tomcat and Apache?  I have a  
large applet hosted on Tomcat, and am investigating using Apache  
instead.  Is this feasable? TIA.

Chris
-
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 vs Apache

2005-05-18 Thread Michael Mehrle
Apache is not a J2EE container - you are off-roading on this one ;-)
Michael
- Original Message - 
From: Chris [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, May 18, 2005 7:37 AM
Subject: Tomcat vs Apache


I've been working with Tomcat for a while now, but I haven't messed with 
Apache yet.  Could someone explain or point me to something explaining 
the differences between Tomcat and Apache?  I have a large applet hosted 
on Tomcat, and am investigating using Apache instead.  Is this feasable? 
TIA.

Chris
-
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 vs Apache

2005-05-18 Thread Chris
I think I need to ask a question before offering any information.
When you say applet, do you mean a java applet that runs in a client's 
browser window? Or, do you have a web application comprised of 
servlets/jsps (or some analogous configuration)?
We have a large java applet that runs in the client's browser window.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat vs Apache

2005-05-18 Thread Chris
If all you're doing is serve static pages, both are equivalent.  
However, if you ever need dynamic content, either client or server  
side, for example a page whose content is extracted from a database,  or 
a form for which you need to record the values, you need some kind  of 
intelligence.

For that job, Apache relies on cgi and php, while Tomcat relies on  
Servlets and JSP, both based on Java.

Unless you have a good reason to switch to Apache, you should stick  to 
Tomcat.
Ah, okay.  The only reason we were considering switching to Apache was 
to possibly improve the performance of our Java applet.

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


Re: Tomcat vs Apache

2005-05-18 Thread Chris
Apache is not a J2EE container - you are off-roading on this one ;-)
Thanks.  That was pretty much what I wanted to find out.  BTW, I keep 
hearing of people using Apache and Tomcat in conjunction.  How does that 
work?

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


Re: Tomcat vs Apache

2005-05-18 Thread Anthony E. Carlos
Chris:
I guess that the applet is just a static file that is served to the 
client's browser window. Therefore, ANY web server would work just 
fine. There are no appreciable differences between Tomcat and Apache 
for your requirements so far. They act very similarly when serving 
static content. Some can spout off about performance, configurability, 
etc... But, if you've got it working on Tomcat, I don't think that 
you'll see any difference using Apache-- unless, of course, there's 
more to your situation than meets the eye.

Hope it helps,
-Anthony
On May 18, 2005, at 12:14 PM, Chris wrote:
I think I need to ask a question before offering any information.
When you say applet, do you mean a java applet that runs in a client's 
browser window? Or, do you have a web application comprised of 
servlets/jsps (or some analogous configuration)?
We have a large java applet that runs in the client's browser window.
Chris
-
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 vs Apache

2005-05-18 Thread Alan Deikman
Chris wrote:
Ah, okay.  The only reason we were considering switching to Apache was 
to possibly improve the performance of our Java applet.
The performance of the applet should have nothing to do with the server 
that delivers it, unless perhaps the server happens to be downloading 
slower than the user's link would allow.   The applet by definition runs 
on the browser's computer, not the server.

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


Re: Tomcat vs Apache

2005-05-18 Thread Jason Bainbridge
On 5/18/05, Chris [EMAIL PROTECTED] wrote:
  If all you're doing is serve static pages, both are equivalent.
  However, if you ever need dynamic content, either client or server
  side, for example a page whose content is extracted from a database,  or
  a form for which you need to record the values, you need some kind  of
  intelligence.
 
  For that job, Apache relies on cgi and php, while Tomcat relies on
  Servlets and JSP, both based on Java.
 
  Unless you have a good reason to switch to Apache, you should stick  to
  Tomcat.
 
 Ah, okay.  The only reason we were considering switching to Apache was
 to possibly improve the performance of our Java applet.

However the Apache Web Server may well have better performance when
serving large files, I don't believe I have seen any benchmarks
dealing with large files only smaller ones that you typically see
included in a web page like images. I would recommend at least doing
some testing by serving your applet under Apache.

Just out of curiosity what does your large applet do? From the sound
of it it was like 60mb, which is quite a large applet to say the
least...


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: Tomcat vs Apache

2005-05-18 Thread Fritz Schneider
Chris,

Earlier versions of Tomcat were quite a bit slower than Apache when
delivering static pages. For high volume work the preferred solution was to
have Apache listening on port 80, and when it received a request for a page
from in a J2EE context, to forward it to Tomcat, listening on 8080. A
similar connector is used for Microsoft IIS.

Tomcat had a major rewrite for Tomcat 5, and the performance difference on
static pages is now minor. An Apache-to-Tomcat connector is now used for the
following reasons (and probably a few more):

1) History. We started out that way, and there's no reason to change.
2) Expansion. We have been running Apache (or IIS) and we need to add a J2EE
container.
3) Load balancing. We have too many requests for a single server, so we have
Apache take the incoming requests and dole them out to three or four Tomcat
servers.
4) Management. We have a lot of customers. Some need CGI, some need PHP, and
some need J2EE.

I hope this helps,
Fritz

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 18, 2005 9:39 AM
To: Tomcat Users List
Subject: Re: Tomcat vs Apache

 Apache is not a J2EE container - you are off-roading on this one ;-)

Thanks.  That was pretty much what I wanted to find out.  BTW, I keep 
hearing of people using Apache and Tomcat in conjunction.  How does that 
work?

Chris


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



Re: Tomcat vs Apache

2005-05-18 Thread Dakota Jack
The dynamic aspect of Tomcat is used to write HTML dynamically.  This
is unrelated to the service of applets.  If all you are doing is
serving an applet, you don't need Tomcat, as your HTML is static.  I
don't know what some of the other replies mean, but this much is
clear.

On 5/18/05, Anthony E. Carlos [EMAIL PROTECTED] wrote:
 I think I need to ask a question before offering any information.
 
 When you say applet, do you mean a java applet that runs in a client's
 browser window? Or, do you have a web application comprised of
 servlets/jsps (or some analogous configuration)?
 
 -Anthony
 
 On May 18, 2005, at 10:37 AM, Chris wrote:
 
 I've been working with Tomcat for a while now, but I haven't messed
 with Apache yet.  Could someone explain or point me to something
 explaining the differences between Tomcat and Apache?  I have a large
 applet hosted on Tomcat, and am investigating using Apache instead.  Is
 this feasable? TIA.
 
 Chris
 
 -
 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]
 
 


-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Re: Tomcat vs Apache

2005-05-18 Thread Dakota Jack
For my own education, what the heck is off-roading?

On 5/18/05, Chris [EMAIL PROTECTED] wrote:
  Apache is not a J2EE container - you are off-roading on this one ;-)
 
 Thanks.  That was pretty much what I wanted to find out.  BTW, I keep
 hearing of people using Apache and Tomcat in conjunction.  How does that
 work?
 
 Chris
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Re: Tomcat vs Apache

2005-05-18 Thread Dakota Jack
I think there is not much question that the Apache server is far more
efficient serving static html.  Is there really any issue on that?  If
so, things sure have changed.  I thought the comparison was like 5 to
1.  Is that no longer true?

On 5/18/05, Jason Bainbridge [EMAIL PROTECTED] wrote:
 On 5/18/05, Chris [EMAIL PROTECTED] wrote:
   If all you're doing is serve static pages, both are equivalent.
   However, if you ever need dynamic content, either client or server
   side, for example a page whose content is extracted from a database,  or
   a form for which you need to record the values, you need some kind  of
   intelligence.
  
   For that job, Apache relies on cgi and php, while Tomcat relies on
   Servlets and JSP, both based on Java.
  
   Unless you have a good reason to switch to Apache, you should stick  to
   Tomcat.
 
  Ah, okay.  The only reason we were considering switching to Apache was
  to possibly improve the performance of our Java applet.
 
 However the Apache Web Server may well have better performance when
 serving large files, I don't believe I have seen any benchmarks
 dealing with large files only smaller ones that you typically see
 included in a web page like images. I would recommend at least doing
 some testing by serving your applet under Apache.
 
 Just out of curiosity what does your large applet do? From the sound
 of it it was like 60mb, which is quite a large applet to say the
 least...
 
 --
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Re: Tomcat vs Apache

2005-05-18 Thread Woodchuck
hihi,

another (simple) way to think about the difference is that Apache
serves static web pages, whereas Tomcat *can* do some server-side
processing and serve dynamic web pages.

all else being equal (and with no mods installed on Apache such as
CGI/SSI/PHP), everyone visiting an Apache hosted website will see
exactly the same set of web pages.

in contrast, a Tomcat hosted website *can* display different content
for the same requested web page for each visitor.

you can use Tomcat to host totally static websites and not use Apache
if you wanted to.  but Tomcat is meant for dynamic websites that
interact in some way with the user (ie. capture and process user
information) to produce custom results.

hth,
woodchuck


--- Dakota Jack [EMAIL PROTECTED] wrote:
 The dynamic aspect of Tomcat is used to write HTML dynamically.  This
 is unrelated to the service of applets.  If all you are doing is
 serving an applet, you don't need Tomcat, as your HTML is static.  I
 don't know what some of the other replies mean, but this much is
 clear.
 
 On 5/18/05, Anthony E. Carlos [EMAIL PROTECTED] wrote:
  I think I need to ask a question before offering any information.
  
  When you say applet, do you mean a java applet that runs in a
 client's
  browser window? Or, do you have a web application comprised of
  servlets/jsps (or some analogous configuration)?
  
  -Anthony
  
  On May 18, 2005, at 10:37 AM, Chris wrote:
  
  I've been working with Tomcat for a while now, but I haven't messed
  with Apache yet.  Could someone explain or point me to something
  explaining the differences between Tomcat and Apache?  I have a
 large
  applet hosted on Tomcat, and am investigating using Apache instead.
  Is
  this feasable? TIA.
  
  Chris
  
 
 -
  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]
  
  
 
 
 -- 
 You can lead a horse to water but you cannot make it float on its
 back.
 ~Dakota Jack~
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



Re: Tomcat vs Apache

2005-05-18 Thread Chris
Ah, okay.  The only reason we were considering switching to Apache was
to possibly improve the performance of our Java applet.
However the Apache Web Server may well have better performance when
serving large files, I don't believe I have seen any benchmarks
dealing with large files only smaller ones that you typically see
included in a web page like images. I would recommend at least doing
some testing by serving your applet under Apache.
Just out of curiosity what does your large applet do? From the sound
of it it was like 60mb, which is quite a large applet to say the
least...
Basically it's the desktop version of our app redone as an applet.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat vs Apache

2005-05-18 Thread Richard Dunn
According to benchmarks posted a few months ago, depending on your  
circumstances, that may no longer be true (or it may even be the  
reverse). I don't have the url, but I am sure someone else does, or  
search for the benchmark site.

On May 18, 2005, at 1:01 PM, Dakota Jack wrote:
I think there is not much question that the Apache server is far more
efficient serving static html.  Is there really any issue on that?  If
so, things sure have changed.  I thought the comparison was like 5 to
1.  Is that no longer true?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat vs Apache

2005-05-18 Thread GB Developer

 -Original Message-
 From: Dakota Jack [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 18, 2005 2:01 PM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: Tomcat vs Apache
 
 
 I think there is not much question that the Apache server is 
 far more efficient serving static html.  Is there really any 
 issue on that?  If so, things sure have changed.  I thought 
 the comparison was like 5 to 1.  Is that no longer true?



/me awaits an email from Remy or Peter.  ;)


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



RE: Tomcat vs Apache

2005-05-18 Thread Caldarale, Charles R
 From: Dakota Jack [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat vs Apache
 
 I think there is not much question that the Apache server is far more
 efficient serving static html.  Is there really any issue on that?  If
 so, things sure have changed.  I thought the comparison was like 5 to
 1.  Is that no longer true?

That is definitely no longer true - search the archives for Peter Lin's
test results.  It's not quite parity, but it's close.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Mark Leone
Apache SOAP is the original apache SOAP implementation. I recommend you 
check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) 
running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a 
year. Just make sure that the jar files that Axis needs are in the 
common/lib directory (if Tomcat needs them also). Not sure if 
HttpServlet is in that catagory, but worth a try.

Kristian Rink wrote:
Hi all;
being into the state of having to check out several SOAP
implementations to decide which one to be used for a certain project, I
currently (for the first time) am playing around with Tomcat and
Apache SOAP, trying to get a simple SOAP service up and running...
Actually, I'm not very close to that, right now, getting stuck in the
very first stage of getting Tomcat to work with Apache-SOAP:
* Tomcat itself is up and running.
* http://localhost:8080/soap/ works
* Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up
with an error message like this:
---snip---
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass
(URLClassLoader.java:260) java.net.URLClassLoader.access$100
(URLClassLoader.java:56) java.net.URLClassLoader$1.run
(URLClassLoader.java:195) java.security.AccessController.doPrivileged
(Native Method) java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
---snip---
Googling for that error left me pretty helpless since I by now tried
several hints regarding problems with Apache SOAP on top of Tomcat 4.x,
but none of these worked. So, can anyone enlighten me on where to tweak
to make the SOAP package find the javax.servlet package? System I'm
running:
Debian unstable
Tomcat 5.5.9
JDK 1.5.0
Apache SOAP 2.3.1
Additionally: Are there any other implementations of SOAP for Tomcat
that might be worth investigating? 

Thanks for your patience and bye,
Kris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


Re: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Trond G. Ziarkowski
I also would recommend Axis, but if you put the jar files in common/lib 
you will not be able to reload your app. At least that happened to me 
with axis 1.1 under 5.0.28... That also breaks the rule that the app 
should be as self-contained as possible to make it as portable as possible.

Trond
Mark Leone wrote:
Apache SOAP is the original apache SOAP implementation. I recommend 
you check out apache Axis, its successor. I have Axis 1.2 (formerly 
ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x 
for over a year. Just make sure that the jar files that Axis needs are 
in the common/lib directory (if Tomcat needs them also). Not sure if 
HttpServlet is in that catagory, but worth a try.

Kristian Rink wrote:
Hi all;
being into the state of having to check out several SOAP
implementations to decide which one to be used for a certain project, I
currently (for the first time) am playing around with Tomcat and
Apache SOAP, trying to get a simple SOAP service up and running...
Actually, I'm not very close to that, right now, getting stuck in the
very first stage of getting Tomcat to work with Apache-SOAP:
* Tomcat itself is up and running.
* http://localhost:8080/soap/ works
* Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up
with an error message like this:
---snip---
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass
(URLClassLoader.java:260) java.net.URLClassLoader.access$100
(URLClassLoader.java:56) java.net.URLClassLoader$1.run
(URLClassLoader.java:195) java.security.AccessController.doPrivileged
(Native Method) java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
---snip---
Googling for that error left me pretty helpless since I by now tried
several hints regarding problems with Apache SOAP on top of Tomcat 4.x,
but none of these worked. So, can anyone enlighten me on where to tweak
to make the SOAP package find the javax.servlet package? System I'm
running:
Debian unstable
Tomcat 5.5.9
JDK 1.5.0
Apache SOAP 2.3.1
Additionally: Are there any other implementations of SOAP for Tomcat
that might be worth investigating?
Thanks for your patience and bye,
Kris
-
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: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Mark Leone
I agree with Trond. And since I wrote my reply rather quickly I want to 
make sure I'm clear. You only need to put in common/lib any jar files 
that both Tomcat and Axis need, which certainly does not include 
axis.jar and the other jars that come with the Axis distribution. I 
thought that maybe Axis needed access to the jar file that contains 
class HttpServlet, because I remember the installation instructions 
aaying that certian other jar files had to be on the classpath; but I 
checked and it doesn't look like axis needs to see HttpServlet.

Other than needing access to an XML parser, I don't think there's much 
the Axis server needs beyond what you already have in Tomcat. You should 
be able to just drop Axis in to Tomcat and have it run almost 
immediately, unless you have a non-standard configuration.

Maybe apache SOAP required it, but it seems doubtful. It seems like the 
reported error is more of a Tomcat problem. If you install Axis and get 
the same error, please report back to us.

Trond G. Ziarkowski wrote:
I also would recommend Axis, but if you put the jar files in 
common/lib you will not be able to reload your app. At least that 
happened to me with axis 1.1 under 5.0.28... That also breaks the 
rule that the app should be as self-contained as possible to make it 
as portable as possible.

Trond
Mark Leone wrote:
Apache SOAP is the original apache SOAP implementation. I recommend 
you check out apache Axis, its successor. I have Axis 1.2 (formerly 
ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x 
for over a year. Just make sure that the jar files that Axis needs 
are in the common/lib directory (if Tomcat needs them also). Not sure 
if HttpServlet is in that catagory, but worth a try.

Kristian Rink wrote:
Hi all;
being into the state of having to check out several SOAP
implementations to decide which one to be used for a certain project, I
currently (for the first time) am playing around with Tomcat and
Apache SOAP, trying to get a simple SOAP service up and running...
Actually, I'm not very close to that, right now, getting stuck in the
very first stage of getting Tomcat to work with Apache-SOAP:
* Tomcat itself is up and running.
* http://localhost:8080/soap/ works
* Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up
with an error message like this:
---snip---
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass
(URLClassLoader.java:260) java.net.URLClassLoader.access$100
(URLClassLoader.java:56) java.net.URLClassLoader$1.run
(URLClassLoader.java:195) java.security.AccessController.doPrivileged
(Native Method) java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
---snip---
Googling for that error left me pretty helpless since I by now tried
several hints regarding problems with Apache SOAP on top of Tomcat 4.x,
but none of these worked. So, can anyone enlighten me on where to tweak
to make the SOAP package find the javax.servlet package? System I'm
running:
Debian unstable
Tomcat 5.5.9
JDK 1.5.0
Apache SOAP 2.3.1
Additionally: Are there any other implementations of SOAP for Tomcat
that might be worth investigating?
Thanks for your patience and bye,
Kris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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

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


Re: Tomcat 5/Apache 2 in-process

2005-03-30 Thread Mladen Turk
Faine, Mark wrote:
Has anyone succeeded in getting Tomcat 5 to run in-process with Apache 2
using mod_jk?  Does anyone know of a howto on this?  I've read the docs,
I've searched the web, I have it working using AJP13 but I have had no luck
on getting it to work in-process.  I don't even know where to start.
Forget the in-process.
The JNI connector is deprecated, and the reasons are many.
On of the major is that it can work only on WIN32 Apache and IIS.
Also bringing JVM in the same address space as web server, makes
you server unusable in case of OutOfMemory errors, etc...
There is a project called tomcat-native that will eventually bring
faster connections to WS-TC by using unix sockets or windows named
pipes, and still offer the process isolation.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat + SSL, apache

2005-02-14 Thread Wouter Boers
Don't think so. Apache takes on the connection and therefore is in
charge of the SSL handshake. So you will have to confiure apache to
support SSL.

They only way to make tomcat handle the handshake is to make it
directly available to the browser. But guess you allready kind of
suspected it :)

Regards, Wouter


On Mon, 14 Feb 2005 15:25:59 +0200, Laurentiu Vasiescu
[EMAIL PROTECTED] wrote:
  
 Is there any way to have the Tomcat with SSL and a front-end Apache, wich
 should only serve as a interface between client and tomcat? 
 I mean tomcat should serve the certificates and do all the ssl, apache only
 to redirect traffic to it. 
 thanks. 
  
   
 Laurentiu   
 Vasiescu
 Network Administrator 
  
 
  
  
 S.A. Tri-Pen TravelMaster Technologies, SRL 
 Eastern Europe - Bucharest (Romania) 
  Office: +40 (31) 401 1152
 +40 (31) 402 5027 
  Fax: +40 (21) 323 4357 
  E-mail: [EMAIL PROTECTED] 
  Web: http://www.tri-pen.ro 
 
  
 
 
 Confidentiality Notice: This email message, including any attachments,
 is for the sole use of the intended recipient(s) and may contain
 confidential
 and privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the intended recipient, please
 contact Tri-Pen TavelMaster Technologies at +40 (31) 401 1152 and destroy
 all copies of the original message.
 
 
  
 
   
 
  


-- 
Regards, Wouter Boers
business: http://www.abcdarium.nl
personal: http://www.ikke.net

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



Re: tomcat + SSL, apache

2005-02-14 Thread Jason Bainbridge
On Mon, 14 Feb 2005 15:25:59 +0200, Laurentiu Vasiescu
[EMAIL PROTECTED] wrote:
  
 Is there any way to have the Tomcat with SSL and a front-end Apache, wich
 should only serve as a interface between client and tomcat? 
 I mean tomcat should serve the certificates and do all the ssl, apache only
 to redirect traffic to it. 
 thanks. 

Google for configuring Apache as a Forward Proxy, I think that
should do what you want but not 100% sure.

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

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



RE: tomcat + SSL, apache

2005-02-14 Thread Didier McGillis
Actually I believe its the opposite.  Apache serves the certificate the 
communication between Tomcat and Apache shouldnt be public anyway.

From: Laurentiu Vasiescu [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org
Subject: tomcat + SSL, apache Date: Mon, 14 Feb 2005 15:25:59 +0200
Is there any way to have the Tomcat with SSL and a front-end Apache, wich 
should only serve as a interface between client and tomcat?
I mean tomcat should serve the certificates and do all the ssl, apache only 
to redirect traffic to it.
thanks.

Laurentiu   Vasiescu
Network Administrator
  S.A. Tri-Pen TravelMaster Technologies, SRL
  Eastern Europe - Bucharest (Romania)
  Office:  +40 (31) 401 1152
  +40 (31) 402 5027
  Fax: +40 (21) 323 4357
  E-mail: [EMAIL PROTECTED]
  Web: http://www.tri-pen.ro


Confidentiality Notice: This email message, including any attachments,
is for the sole use of the intended recipient(s) and may contain 
confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact Tri-Pen TavelMaster Technologies at +40 (31) 401 1152 and destroy
all copies of the original message.





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


Re: tomcat + SSL, apache

2005-02-14 Thread Mladen Turk
Didier McGillis wrote:
Actually I believe its the opposite.  Apache serves the certificate the 
communication between Tomcat and Apache shouldnt be public anyway.

Apache makes the SSL handshake and passes any client certificate to
Tomcat. Any servlet sees that like it came directly from Tomcat.
Communication between apache and tomcat is not encrypted,
so if you are concerned about the security, put the apache on the
box with two NIC cards, and use the second for the
apache-tomcat communication.
AJP14 protocol will have encryption embedded, so until then :).
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.0.27/Apache 2.0.40 with mutible developers

2004-12-01 Thread Dwayne Ghant
Dwayne Ghant wrote:
Hello All,
I have successfully set up tomcat/ apache /mod_jk
Just one quick question I need all the developers to have access like
http://hostname/~username
And I need tomcat to automatically pick up the developers accounts so
they can write web-applications.
I got everything else working fine just need this last
piece.
Your help is greatly appreciated.
If someone could just point me to a place to read  I will be fine.
--
Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]

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


RE: Tomcat 5.0.27/Apache 2.0.40 with mutible developers

2004-12-01 Thread Allistair Crossley
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

section User Web Applications may help.

 -Original Message-
 From: Dwayne Ghant [mailto:[EMAIL PROTECTED]
 Sent: 01 December 2004 17:31
 To: Tomcat Users List
 Subject: Re: Tomcat 5.0.27/Apache 2.0.40 with mutible developers
 
 
 Dwayne Ghant wrote:
 
  Hello All,
 
  I have successfully set up tomcat/ apache /mod_jk
 
  Just one quick question I need all the developers to have 
 access like
  http://hostname/~username
 
  And I need tomcat to automatically pick up the developers 
 accounts so
  they can write web-applications.
 
  I got everything else working fine just need this last
  piece.
 
  Your help is greatly appreciated.
 
 If someone could just point me to a place to read  I will be fine.
 
 -- 
 
 Dwayne A. Ghant
 Application Developer
 Temple University
 215.204.
 [EMAIL PROTECTED]
 
  
 
 
 -
 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 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: Tomcat and apache in Oracle9.2.0.1

2004-11-16 Thread Tim Funk
How about  http://www.oracle.com/support/index.html ?
-Tim
Daxin Zuo wrote:
After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the
versions of the TOMCAT and the apache in this version of Oracle? Do you know
the location of the document where oracle describe its http server?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat and apache in Oracle9.2.0.1

2004-11-16 Thread Daxin Zuo
Can anybody forward more specific information?
This Oracle site definitely has the information. But the doc sea is too
wide.
Thanks

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 4:14 PM
To: Tomcat Users List
Subject: Re: Tomcat and apache in Oracle9.2.0.1


How about  http://www.oracle.com/support/index.html ?

-Tim

Daxin Zuo wrote:

 After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the
 versions of the TOMCAT and the apache in this version of Oracle? Do you
know
 the location of the document where oracle describe its http server?


-
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, mod_jk, Apache and virtual host

2004-10-06 Thread Alex

Will this help?

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


On Sun, 3 Oct 2004, Glen Ezkovich wrote:

 Date: Sun, 3 Oct 2004 16:55:10 -0500
 From: Glen Ezkovich [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Tomcat, mod_jk, Apache and virtual host

 We have set up Tomcat and Apache using mod_jk and are using virtual
 hosting on both. We can throw a jsp page into our default directory and
 it displays fine so we know things work.
 We have serveral servlets to deploy for each virtual host and we'd
 rather not make entries in the main server.xml for each contex. We'd
 also like to be able to set a default servlet for each virtual host.
 Is there a way to do this in each appBase?


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



Re: Tomcat, mod_jk, Apache and virtual host

2004-10-06 Thread Glen Ezkovich
Thanks Alex,
Its a good resource but, we were hoping to be able to define the  
context some where besides the server.xml, such as in the appBase. I've  
run across mentions of using xml fragments for this, but as yet haven't  
been able to find out much.

If anyone knows about how this can be done, I'd appreciate hearing  
about it.

On Oct 6, 2004, at 6:12 AM, Alex wrote:
Will this help?
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg136432.html

On Sun, 3 Oct 2004, Glen Ezkovich wrote:
Date: Sun, 3 Oct 2004 16:55:10 -0500
From: Glen Ezkovich [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat, mod_jk, Apache and virtual host
We have set up Tomcat and Apache using mod_jk and are using virtual
hosting on both. We can throw a jsp page into our default directory  
and
it displays fine so we know things work.
We have serveral servlets to deploy for each virtual host and we'd
rather not make entries in the main server.xml for each contex. We'd
also like to be able to set a default servlet for each virtual host.
Is there a way to do this in each appBase?

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


Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to  
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


RE: Tomcat 5/Apache 2/JK2- production quality?

2004-09-30 Thread Alex

Inititally I would have agreed.  However, after lots of reading, monkeying
around, and working out everything, I can now say that we have implemented
successfully the jk2 adapter with both iis5 and apache2 withiout issue.
for it to work properly, i found you needed to have virtual-hosts in
tomcat ..  if you were doing something a bit more complex with multiple
hosts.

how many exact pages/traffic do they get?  i can't answer that right now.
i'll take a look in a bit.  haven't noticed any problems though.

-alex - pass the salt...

On Wed, 29 Sep 2004, Brantley Hobbs wrote:

 Date: Wed, 29 Sep 2004 08:19:53 -0400
 From: Brantley Hobbs [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Tomcat 5/Apache 2/JK2- production quality?

 I second this.

 I've had nothing but trouble out of JK2, configuration difficulties on Apache and 
 just flatly broken on IIS.

 The original JK adapter has worked great.

 -Brantley


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



RE: Tomcat 4/Apache 2 Connector slow down

2004-09-30 Thread Steve Kirk

Try turning off ip to name resolution, this can sometimes be very slow and
seemingly affect different PCs/servers differently.  I'm no expert on what
might cause the slowdown in your case, but I have experienced what sound
like similar problems in the past.

From the default server.xml file for v5.0.27:
 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.

The same adverse impact can also be caused when converting IP to name for
logging purposes.

 -Original Message-
 From: Steve Forsyth [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 30 September 2004 00:50
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4/Apache 2 Connector slow down
 
 
 I have a very bizarre situation:
 
 I have everything working as far as the connectivity between 
 Tomcat 4 and Apache 2 with both the JK and JK2 connectors (of 
 course not at the same time :)
 
 I am currently testing on 2 computers... both connected 
 through the same little hub and both have the exact same IP 
 configuration coming from DHCP.
 
 However, computer A (my computer) hits the websites and runs just fine
 Whereas, computer B hits the websites and reacts in different 
 ways depending on what my setup is and how I hit the 
 website... explained hereafter
 
 Different ways of hitting the website and the different 
 configurations (only affected computer B)
 
 1) Using JK connector and port 8080 (so bypassing Apache 2):  
  Everything flies
 
 2) Using JK connector and port 80 (going through Apache 2):   
 Moderate slow down of about 4 to 5 times slower than going 
 direct on port 8080. So a page that would come up instantly 
 now comes up about 2 to 5 seconds
 
 3) Using JK2 connector and port 8080:Again, everything flies
 
 4) Using JK2 connector and port 80:   EXTREMELY SLOW... 
 something happens that makes the connection go slower than a 
 modem... on a LAN. We sniffed the traffic (unfortunately, 
 none of us are all that good with exactly what we are seeing 
 so we had to rely on what the sniffer was telling us) and it 
 looks like there is some very fast handshaking for a few 
 packets back and forth and then a WINS packet to the client, 
 the client sends back the computer name and user name and the 
 server sits on it for about 7 secs... the server sends 
 another WINS packet... sits for another 7 secs this all 
 happens for about 30 secs and then the server starts sending 
 packets but slowly. 
 So... all in all... it takes 30 seconds to send a page that 
 normally takes far less than a second if going directly to 
 Tomcat via port 8080.
 
 
 The part that makes this whole thing interesting is the fact 
 that I have found my computer... and the other servers seem 
 to not be affected by any of this... and yet most of our 
 pcs... which are of varying speeds, types, (however all are 
 windows OSs... XP and NT4).  I haven't seen any difference 
 between IP settings or any other network settings. However, I 
 must admit that I'm a developer and not a net admin :)
 
 
 Anyway, anyone have any ideas or comments... places to search?
 
 
 WINS is about the worst search term that you would want to 
 search for since it never pulls up exactly what you are looking for :)
 
 
 Thanks,
 Steve
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Tomcat 5/Apache 2/JK2- production quality?

2004-09-29 Thread Nicolas Mailhot
Le mercredi 29 septembre 2004  12:43 -0400, Kurt Overberg a crit :
 Gang,
 
 I've been running a fairly large website (25000 pages/day) off of 
 Tomcat4.1.30/JK/Apache1.3 for quite some time now.  Its been running great, but 
 in expectation of needing some load balancing, I'm thinking of moving to 
 Tomcat5/Apache2/JK2.  Anyone have any thoughts or experiences with running these 
 versions in a production environment?  Thanks!

Henri Gomez stated yesterday on JPackage lists JK2 was not ready for
production and there would be a new integrated connector module in
apache 2.1 anyway. He got as far as to suggest we remove our JK2
package.

Now since he's heavily involved with JK1 you might want to take his
words with a grain of salt, but I personnally won't discount them (of
course, the hellish config system of JK2 helps a lot to make one's
mind). You'll notice even in the official JK2 doc pages there is no
clear endorsement of JK2 over JK1, and in fact large parts of it deal
only with JK1.

Regards,

-- 
Nicolas Mailhot


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


RE: Tomcat 5/Apache 2/JK2- production quality?

2004-09-29 Thread Brantley Hobbs
I second this.

I've had nothing but trouble out of JK2, configuration difficulties on Apache and just 
flatly broken on IIS.

The original JK adapter has worked great.

-Brantley

 -Original Message-
 From: Nicolas Mailhot [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 29, 2004 7:59 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 5/Apache 2/JK2- production quality?
 
 Le mercredi 29 septembre 2004 à 12:43 -0400, Kurt Overberg a écrit :
  Gang,
 
  I've been running a fairly large website (25000 pages/day) off of
  Tomcat4.1.30/JK/Apache1.3 for quite some time now.  Its been running
 great, but
  in expectation of needing some load balancing, I'm thinking of moving to
  Tomcat5/Apache2/JK2.  Anyone have any thoughts or experiences with
 running these
  versions in a production environment?  Thanks!
 
 Henri Gomez stated yesterday on JPackage lists JK2 was not ready for
 production and there would be a new integrated connector module in
 apache 2.1 anyway. He got as far as to suggest we remove our JK2
 package.
 
 Now since he's heavily involved with JK1 you might want to take his
 words with a grain of salt, but I personnally won't discount them (of
 course, the hellish config system of JK2 helps a lot to make one's
 mind). You'll notice even in the official JK2 doc pages there is no
 clear endorsement of JK2 over JK1, and in fact large parts of it deal
 only with JK1.
 
 Regards,
 
 --
 Nicolas Mailhot


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



Re: Tomcat causes Apache to hang. Any ideas?

2004-08-29 Thread Sean Finkel
Shapira, Yoav wrote:
I already have. This exact same setup worked flawlessly under RH 7.3
   

and
 

RH 9.0
   

Actually, I meant a non-Linux platform.  But even your results so far
suggest an RHEL-specific issue.  Maybe try LD_ASSUME_KERNEL=2.2.5
instead of 2.4?  I remember people having success with that in the past.
 

You know what's funny? I stopped APF (the firewall) and it runs fine. I 
don't understand this. The needed ports were open (the shutdown, 
standalone and connector ports). I used the same firewall with the same 
ports open on the other servers/OSs and it worked fine. But I turn the 
firewall off and it stops hanging immediately.

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


RE: Tomcat 4 / Apache 2 / .htacess

2004-08-27 Thread Shapira, Yoav

Hi,
You need to achieve a subscription to the httpd-user mailing list and a
response there ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 4:41 AM
To: Tomcat Users List
Subject: Tomcat 4 / Apache 2 / .htacess

I would like to use .htacess of Apache aproach to restrict user access.
It works fine on normal html site, but does not work on JSP base site,
what
else I need to do to achieve. thx



-
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: Tomcat causes Apache to hang. Any ideas?

2004-08-27 Thread Cox, Charlie


 -Original Message-
 From: Sean Finkel [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 3:52 PM
 To: Tomcat Users List
 Subject: Re: Tomcat causes Apache to hang. Any ideas?
 
 
 Sorry, this is a shared server, and he wants his site available on port
 80.
 
 
 
 Tomcat standalone can run on port 80 without running as root by using
 jsvc (from commons-daemon).  There are examples and more information on
 this configuration at
 http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.
 
 
 
 Maybe I am missing something, but wouldn't that not be able to bind to
 port 80 since Apache is already bound to it? There is a lot about the
 Java world I am not familiar with, so maybe it can...
 
You would need separate ip addresses for apache and tomcat.

 reason we hand everything off, is because he has his application hosted
 inside a directory (ie: ~/public_html/appdir) but wants it to be
 available to users as http://www.domainname.com/whatever.jsp instead of
 http://www.domainname.com/appdir/whatever.jsp.
 
 
 
 You can configure Tomcat to have a Context whose docbase is
 ~/public_html/appdir but whose path is  (the empty string, not null or
 /).
 
 
 And indeed that is what we are doing for him right now. However, my
 previous attempts at fiddling with mod_rewrite to translate root request
 /whatever.jsp into /appdir/whatever.jsp had failed. I now have this
 working in a preliminary stage. Since I was unable to get mod_rewrite
 processing the requests right, we just did a jkMount /* workername,
 which passed every request off to tomcat, and since we had the root
 context setup to serve from ~/public_html/appdir it all worked out fine.
 But of course, this results in trying to pass PHP requests (and things
 outside the appdir) to tomcat.
 

how about passing only requests that are not php to tomcat? You can do this
in httpd.conf:
LocationMatch ^/(?!phpdir)
jkUriSet ...
/LocationMatch

 
 
 He also wants to use PHP
 on his main domain for forums or some such, once we get him to move his
 application out of appdir and into his website root.
 
 
 
 This is the deal breaker I think, for a commercial organization anyways.
 While you can use PHP on Tomcat, the performance is apparently not good
 enough for a large scale installation.  See
 http://wiki.apache.org/jakarta-tomcat/UsingPhp for how to do this
 anyways.
 
 
 Well, I don't think I want to run PHP through Tomcat as we already have
 Apache running with PHP and it runs solid (and quite snappy too).
 
 What I am currently working on is this for his .htaccess (well, testing
 on a test instance):
 ( snip )
 RewriteEngine On
 RewriteCond %{REQUEST_URI} !^/appdir/
 RewriteRule ^(.*\.jsp)$ /appdir/$1
 ---( /snip )-
 
 This results in all jsp pages being sent to tomcat. I also added a
 jkMount /appdir/* workername to the httpd.conf file. This means, that
 in the user's JSP pages, if he uses absolute paths for images, css, etc
 then they will be handed off to tomcat as well so that a complete page
 is sent back.
 
 The problem currently is, the user used relative paths for all his
 images, css files, etc. So while the JSP is being served correctly from
 Tomcat with the above .htaccess lines, it is not passing the css and
 image files off, which is the expected behavior. So I am trying to find
 some way to remedy this via .htaccess so the user doesn't have to change
 his 50+ jsp pages =|
 
 
 Thanks again for taking the time to answer my questions and provide your
 suggestions. It really is much appreciated!
 
 -Sean
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat causes Apache to hang. Any ideas?

2004-08-27 Thread Sean Finkel

Maybe I am missing something, but wouldn't that not be able to bind to
port 80 since Apache is already bound to it? There is a lot about the
Java world I am not familiar with, so maybe it can...
   

You would need separate ip addresses for apache and tomcat.
 

Aye I figured as much
And indeed that is what we are doing for him right now. However, my
previous attempts at fiddling with mod_rewrite to translate root request
/whatever.jsp into /appdir/whatever.jsp had failed. I now have this
working in a preliminary stage. Since I was unable to get mod_rewrite
processing the requests right, we just did a jkMount /* workername,
which passed every request off to tomcat, and since we had the root
context setup to serve from ~/public_html/appdir it all worked out fine.
But of course, this results in trying to pass PHP requests (and things
outside the appdir) to tomcat.
   

how about passing only requests that are not php to tomcat? You can do this
in httpd.conf:
LocationMatch ^/(?!phpdir)
	jkUriSet ...
/LocationMatch
 

We are using mod_jk not mod_jk2. The above would only work with mod_jk2 
correct? In any case, I have finally gotten this to work (only passing 
off java requests to tomcat). For those interested:

in the site's root .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/appdir/
RewriteRule ^(.*\.jsp)$ /appdir/$1 [L]
RewriteCond %{REQUEST_URI} !^/appdir/ [NC]
RewriteCond %{HTTP_REFERER} ^(.*)\.jsp.*$ [NC]
RewriteRule ^(.*)$  /appdir/$1 [R,NC]
then in httpd.conf, we just jkMount /appdir/*
Still having problems with Tomcat hanging Apache child processes. I 
lowered the MaxRequestsPerChild in Apache to 10. Results in more cpu 
work, but keeps the hung processes to a minimum. This morning there were 
only 3 instead of 50-200 of them. They all seem to be hanging on image 
files now. Weird

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


Re: Tomcat causes Apache to hang. Any ideas?

2004-08-26 Thread Sean Finkel

I recall RHEL 3.0 comes with an NPTL-based 2.4, which will require
setting LD_KERNEL_ASSUME=2.4 to disable the NPTL functionality for the
Java process.  That may be it.
I am assuming you mean set this as an environment variable? I will 
give this a try and see what happens! Thank you for the suggestion!
Well, that did not work. I was using the AJP13 connector. I have changed 
the private (Tomcat4) instance to use the Coyote connector to see if 
that makes a difference. It didn't before, and I doubt it will now. :(

This is really becoming frustrating.
At least it is not hanging Apache, as in, Apache still responds to 
*new* requests, it just has 50+ child process tied up waiting for 
previous Tomcat responses.

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


RE: Tomcat causes Apache to hang. Any ideas?

2004-08-26 Thread Shapira, Yoav

Hi,
Perhaps Tomcat standalone would be sufficient for your application
requirements?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Sean Finkel [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 11:17 AM
To: Tomcat Users List
Subject: Re: Tomcat causes Apache to hang. Any ideas?


 I recall RHEL 3.0 comes with an NPTL-based 2.4, which will require
 setting LD_KERNEL_ASSUME=2.4 to disable the NPTL functionality for
the
 Java process.  That may be it.

 I am assuming you mean set this as an environment variable? I will
 give this a try and see what happens! Thank you for the suggestion!

Well, that did not work. I was using the AJP13 connector. I have
changed
the private (Tomcat4) instance to use the Coyote connector to see if
that makes a difference. It didn't before, and I doubt it will now. :(

This is really becoming frustrating.

At least it is not hanging Apache, as in, Apache still responds to
*new* requests, it just has 50+ child process tied up waiting for
previous Tomcat responses.

-Sean

-
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: Tomcat causes Apache to hang. Any ideas?

2004-08-26 Thread Sean Finkel
Shapira, Yoav wrote:
Hi,
Perhaps Tomcat standalone would be sufficient for your application
requirements?
 

No, because the user also wants access to PHP and other related Apache 
features (htacces, mod_rewrite, etc).

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


Re: Tomcat causes Apache to hang. Any ideas?

2004-08-26 Thread Sean Finkel
Sean Finkel wrote:
Hello,
First a brief background on the setup:
We are running Apache 1.3.31 utilizing mod_jk (not jk2). We are 
running two instances of Tomcat. Previously, both were version 4. 
Currently, we have one shared instance running the latest 5.x release 
(just compiled yesterday). We have one customer running a private 4.x 
instance.

With that said, we just moved to a new server (Dual Xeon, RHEL 3.0) 
and now the problem we are having is the customer who has this private 
instance has jsp pages that hang. But, it does not hang all the 
time. What's weird, is most of the time, I can stop the shared 
instance and the customer's pages will stop hanging. I would like to 
fix the hanging completely, obviously.

Ok this is happening again right now. Here is some output from various 
programs:

From Apache Status (blanked out the VHost) - these Apache child 
processes have been running for 15+ minutes waiting on Tomcat. They are 
not servicing new requests and then dieing like they should be (Apache 
hands *everything* off for this domain to Tomcat, including images):
( snip )---
*Srv* *PID* *Acc* *M* *CPU* *SS* *Req* 
*Conn* *Child* *Slot* *Host* *VHost* *Request*
*0-0* 24535 0/21/1803 *W* 0.23  0 
0.0 0.14 21.56 4.153.20.11  GET 
/images/pics/todayspic27.jpg HTTP/1.1
*1-0* 23257 0/39/2065 *W* 0.46 3452 0 
0.0 0.27 12.33 4.153.20.11  GET 
/images/pics/todayspic16.jpg HTTP/1.1
*2-0* 23252 0/17/1868 *W* 0.20 3593 0 
0.0 0.26 15.75 207.69.137.135  GET 
/images/pics/todayspic13.jpg HTTP/1.1
*3-0* 23377 0/22/1825 *W* 0.26 3445 0 
0.0 0.34 20.29 4.153.20.11  GET 
/images/pics/todayspic21.jpg HTTP/1.1
*4-0* 23378 0/22/1839 *W* 0.38 3439 0 
0.0 0.07 16.09 4.153.20.11  GET 
/images/pics/todayspic15.jpg HTTP/1.1
*5-0* 22810 0/43/1750 *W* 0.26 3584 0 
0.0 0.54 19.31 207.69.137.135  GET 
/images/pics/todayspic12.jpg HTTP/1.1
*6-0* 23267 0/37/1788 *W* 0.68 3425 0 
0.0 0.52 14.50 4.153.20.11  GET 
/images/pics/todayspic19.jpg HTTP/1.1
*7-0* 26919 0/33/1586 *W* 0.15 3143 0 
0.0 0.27 12.33 4.153.20.11  GET 
/images/pics/todayspic36.jpg HTTP/1.1
*8-0* 23441 0/22/1532 *W* 0.28 3385 0 
0.0 0.09 11.07 4.153.20.11  GET 
/images/pics/todayspic25.jpg HTTP/1.1
*9-0* 26920 0/30/1396 *W* 0.36 3147 0 
0.0 0.17 8.23 4.153.20.11  GET 
/images/pics/todayspic34.jpg HTTP/1.1

-( /snip )-
From A thread dump of the JVM - obviously there were more than three, 
but I only included three for the sake of brevity:
---( snip )---
Thread-20 daemon prio=1 tid=0x08192b68 nid=0x3560 in Object.wait() 
[a84db000..a84db87c]
  at java.lang.Object.wait(Native Method)
  - waiting on 0xab9bcba8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
  at java.lang.Object.wait(Object.java:429)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:512) 

  - locked 0xab9bcba8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
  at java.lang.Thread.run(Thread.java:534)

Thread-19 daemon prio=1 tid=0x08195450 nid=0x3560 in Object.wait() 
[a855c000..a855c87c]
  at java.lang.Object.wait(Native Method)
  - waiting on 0xab9bcc10 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
  at java.lang.Object.wait(Object.java:429)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:512) 

  - locked 0xab9bcc10 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
  at java.lang.Thread.run(Thread.java:534)

Thread-18 daemon prio=1 tid=0x0824b148 nid=0x3560 in Object.wait() 
[a85dd000..a85dd87c]
  at java.lang.Object.wait(Native Method)
  - waiting on 0xab7b9ae0 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
  at java.lang.Object.wait(Object.java:429)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:512) 

  - locked 0xab7b9ae0 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
  at java.lang.Thread.run(Thread.java:534)
- ( /snip )--

So, as another user suggested earler, it seems some blocking is 
happening. Also as I mentioned, I am on RHEL 3.0 and JDK version: 
1.4.2_04. Does anyone have any ideas as to how to prevent the threads 
from locking up? I have already tried the LD_KERNEL_ASSUME=2.4 and 
that does not help.

-Sean

RE: Tomcat causes Apache to hang. Any ideas?

2004-08-26 Thread Shapira, Yoav

Hola,
Just a couple of things ;)

 (Apache
hands *everything* off for this domain to Tomcat, including images):

And yet you said Tomcat standalone wasn't an option for this
installation?  Too bad.  You can do much of mod_rewrite with the
balancer app, you can do much of .htaccess with Servlet security
constraints, and if Tomcat already handles all the requests than you're
losing performance by adding Apache and the connector layer.

 From A thread dump of the JVM - obviously there were more than three,
but I only included three for the sake of brevity:

How did you pick these three threads?

---( snip )---
Thread-20 daemon prio=1 tid=0x08192b68 nid=0x3560 in Object.wait()
[a84db000..a84db87c]
   at java.lang.Object.wait(Native Method)
   - waiting on 0xab9bcba8 (a

The three threads in your trace are waiting on different objects.  They
don't appear to be locked with each other.  It is normal and expected
that some thread will be waiting when you do a thread trace like this:
it's extremely unlikely all threads will be working when you do the
trace ;)

So, as another user suggested earler, it seems some blocking is
happening. Also as I mentioned, I am on RHEL 3.0 and JDK version:
1.4.2_04. Does anyone have any ideas as to how to prevent the threads
from locking up? I have already tried the LD_KERNEL_ASSUME=2.4 and
that does not help.

The next step would be to try your app on a different platform, IMHO, to
try and tell if this is indeed an RHEL-related problem or something
else.

Yoav



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 causes Apache to hang. Any ideas?

2004-08-26 Thread Sean Finkel

(Apache
hands *everything* off for this domain to Tomcat, including images):
   

And yet you said Tomcat standalone wasn't an option for this
installation?  Too bad.  You can do much of mod_rewrite with the
balancer app, you can do much of .htaccess with Servlet security
constraints, and if Tomcat already handles all the requests than you're
losing performance by adding Apache and the connector layer.
 

Sorry, this is a shared server, and he wants his site available on port 
80. I suppose we could give him a dedicated IP. Currently, the only 
reason we hand everything off, is because he has his application hosted 
inside a directory (ie: ~/public_html/appdir) but wants it to be 
available to users as http://www.domainname.com/whatever.jsp instead of 
http://www.domainname.com/appdir/whatever.jsp. He also wants to use PHP 
on his main domain for forums or some such, once we get him to move his 
application out of appdir and into his website root. Once he does that, 
we can modify the jkMount apache directives to only pass off .jsp and 
/servlet/ requests instead of *everything*

Unless you can suggest a way around this currently?
 

From A thread dump of the JVM - obviously there were more than three,
but I only included three for the sake of brevity:
   

How did you pick these three threads?
 

They were the only ones that had anything to do with apache (well, there 
were about 20 of them actually). But now it hits me, duh. Tomcat = 
Apache project. *sigh*

I guess I thought the locked had something to do with it, though I now 
see it seems all threads say this.

So, as another user suggested earler, it seems some blocking is
happening. Also as I mentioned, I am on RHEL 3.0 and JDK version:
1.4.2_04. Does anyone have any ideas as to how to prevent the threads
   

from locking up? I have already tried the LD_KERNEL_ASSUME=2.4 and
 

that does not help.
   

The next step would be to try your app on a different platform, IMHO, to
try and tell if this is indeed an RHEL-related problem or something
else.
 

I already have. This exact same setup worked flawlessly under RH 7.3 and 
RH 9.0

however, moving (back) to either of those platforms is not an option.
With that said however, I compiled tomcat under RH 7.3 and copied 
everything over. The JDK stayed the same throughout though. Could this 
be the problem? Should I recompile Tomcat? I *have* recompiled mod_jk on 
the new system though.

thanks for your help!
-Sean
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat causes Apache to hang. Any ideas?

2004-08-26 Thread Shapira, Yoav

Hola,

Sorry, this is a shared server, and he wants his site available on port
80.

Tomcat standalone can run on port 80 without running as root by using
jsvc (from commons-daemon).  There are examples and more information on
this configuration at
http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.

reason we hand everything off, is because he has his application hosted
inside a directory (ie: ~/public_html/appdir) but wants it to be
available to users as http://www.domainname.com/whatever.jsp instead of
http://www.domainname.com/appdir/whatever.jsp.

You can configure Tomcat to have a Context whose docbase is
~/public_html/appdir but whose path is  (the empty string, not null or
/).

He also wants to use PHP
on his main domain for forums or some such, once we get him to move his
application out of appdir and into his website root.

This is the deal breaker I think, for a commercial organization anyways.
While you can use PHP on Tomcat, the performance is apparently not good
enough for a large scale installation.  See
http://wiki.apache.org/jakarta-tomcat/UsingPhp for how to do this
anyways.

I already have. This exact same setup worked flawlessly under RH 7.3
and
RH 9.0

Actually, I meant a non-Linux platform.  But even your results so far
suggest an RHEL-specific issue.  Maybe try LD_ASSUME_KERNEL=2.2.5
instead of 2.4?  I remember people having success with that in the past.

With that said however, I compiled tomcat under RH 7.3 and copied
everything over. The JDK stayed the same throughout though. Could this
be the problem? Should I recompile Tomcat? I *have* recompiled mod_jk
on
the new system though.

The connectors are more important.  Recompiling Tomcat is not needed
IMHO, including not needed in the first place for RH 7.3 (you could have
just downloaded the binary).  But I'm not a Linux expert.

Yoav



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 causes Apache to hang. Any ideas?

2004-08-26 Thread Sean Finkel

Sorry, this is a shared server, and he wants his site available on port
80.
   

Tomcat standalone can run on port 80 without running as root by using
jsvc (from commons-daemon).  There are examples and more information on
this configuration at
http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.
 

Maybe I am missing something, but wouldn't that not be able to bind to 
port 80 since Apache is already bound to it? There is a lot about the 
Java world I am not familiar with, so maybe it can...

reason we hand everything off, is because he has his application hosted
inside a directory (ie: ~/public_html/appdir) but wants it to be
available to users as http://www.domainname.com/whatever.jsp instead of
http://www.domainname.com/appdir/whatever.jsp.
   

You can configure Tomcat to have a Context whose docbase is
~/public_html/appdir but whose path is  (the empty string, not null or
/).
 

And indeed that is what we are doing for him right now. However, my 
previous attempts at fiddling with mod_rewrite to translate root request 
/whatever.jsp into /appdir/whatever.jsp had failed. I now have this 
working in a preliminary stage. Since I was unable to get mod_rewrite 
processing the requests right, we just did a jkMount /* workername, 
which passed every request off to tomcat, and since we had the root 
context setup to serve from ~/public_html/appdir it all worked out fine. 
But of course, this results in trying to pass PHP requests (and things 
outside the appdir) to tomcat.

 

He also wants to use PHP
on his main domain for forums or some such, once we get him to move his
application out of appdir and into his website root.
   

This is the deal breaker I think, for a commercial organization anyways.
While you can use PHP on Tomcat, the performance is apparently not good
enough for a large scale installation.  See
http://wiki.apache.org/jakarta-tomcat/UsingPhp for how to do this
anyways.
 

Well, I don't think I want to run PHP through Tomcat as we already have 
Apache running with PHP and it runs solid (and quite snappy too).

What I am currently working on is this for his .htaccess (well, testing 
on a test instance):
( snip )
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/appdir/
RewriteRule ^(.*\.jsp)$ /appdir/$1
---( /snip )-

This results in all jsp pages being sent to tomcat. I also added a 
jkMount /appdir/* workername to the httpd.conf file. This means, that 
in the user's JSP pages, if he uses absolute paths for images, css, etc 
then they will be handed off to tomcat as well so that a complete page 
is sent back.

The problem currently is, the user used relative paths for all his 
images, css files, etc. So while the JSP is being served correctly from 
Tomcat with the above .htaccess lines, it is not passing the css and 
image files off, which is the expected behavior. So I am trying to find 
some way to remedy this via .htaccess so the user doesn't have to change 
his 50+ jsp pages =|

Thanks again for taking the time to answer my questions and provide your 
suggestions. It really is much appreciated!

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


Re: Tomcat causes Apache to hang. Any ideas?

2004-08-25 Thread QM
On Wed, Aug 25, 2004 at 12:07:29PM -0400, Sean Finkel wrote:
: With that said, we just moved to a new server (Dual Xeon, RHEL 3.0) and 
: now the problem we are having is the customer who has this private 
: instance has jsp pages that hang. But, it does not hang all the time. 
: What's weird, is most of the time, I can stop the shared instance and 
: the customer's pages will stop hanging. I would like to fix the hanging 
: completely, obviously.

What kernel was running on the old box? 
Better put, what is different between the two machines?

I recall RHEL 3.0 comes with an NPTL-based 2.4, which will require
setting LD_KERNEL_ASSUME=2.4 to disable the NPTL functionality for the
Java process.  That may be it.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat causes Apache to hang. Any ideas?

2004-08-25 Thread Sean Finkel

What kernel was running on the old box? 
Better put, what is different between the two machines?
 

7.3 on the old system. 9.0 on an intermediary system, with only the 
private instance installed (which never hung).

I recall RHEL 3.0 comes with an NPTL-based 2.4, which will require
setting LD_KERNEL_ASSUME=2.4 to disable the NPTL functionality for the
Java process.  That may be it.
I am assuming you mean set this as an environment variable? I will give 
this a try and see what happens! Thank you for the suggestion!

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


RE: Tomcat causes Apache to hang. Any ideas?

2004-08-25 Thread Brad McEvoy

I had a similar problem on RH EL just a couple of weeks ago. Might not be
the same as yours, though, because in my case apache wasnt hung, just
tomcat. but that might just be a difference in versions, so i'll share it
anyway.

Here's what i did..

I used kill -QUIT on the tomcat process after it had hung to find a stack
trace of the tomcat threads. This showed that every thread was blocked on a
synchronized statement in program code. I investigated it (thoroughly!) and
concluded that there is a bug in the JVM on this OS related to synchronized
statements, only manifesting itself occasionally and under certain
conditions. I refactored my code slightly around this and it appears to have
fixed the problem.

I'd be interested in hearing how it works out for you.

-Original Message-
From: Sean Finkel [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 August 2004 2:07 AM
To: Tomcat User
Subject: Tomcat causes Apache to hang. Any ideas?


Hello,
First a brief background on the setup:
We are running Apache 1.3.31 utilizing mod_jk (not jk2). We are running 
two instances of Tomcat. Previously, both were version 4. Currently, we 
have one shared instance running the latest 5.x release (just compiled 
yesterday). We have one customer running a private 4.x instance.

With that said, we just moved to a new server (Dual Xeon, RHEL 3.0) and 
now the problem we are having is the customer who has this private 
instance has jsp pages that hang. But, it does not hang all the time. 
What's weird, is most of the time, I can stop the shared instance and 
the customer's pages will stop hanging. I would like to fix the hanging 
completely, obviously.

Today though, the only thing that kept his pages from hanging was a full 
reboot. I am wondering if this is related to swap space usage. I don't 
know what else it would be, as I stopped/started his tomcat and apache 
numerous times. I tried using a different connector (AJP instead of Coyote).

Could this last problem be due to running tomcat5 *and* tomcat 4? I 
would say no, as that makes no sense this would be the case, especially 
when it (still)occurred after stopping the Tomcat 5 instance.

Essentially what happens is, Apache receives the request for the page, 
hands it off to Tomcat, tomcat returns half of the page (header/left 
menu) and just sits there. Hitting stop on the browser stops the 
transfer, however Tomcat never releases the Apache process. So we end up 
with dozens, sometimes hundreds of Apache processes that are hung by 
tomcat. This results in memory usages exceeding 2gb!

Has anyone experienced similar problems or have any suggestions?

-Sean Finkel


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

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



Re: Tomcat and Apache with TCP TIME_WAIT state

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 06:56:08PM -0400, Kilic, Hakan wrote:
: I'm seeing Tomcat and Apache show many tcp TIME_WAIT connections when
: running netstat under a load test. I was wondering, is this because the web
: browser client is not closing the connection properly, or is this the normal
: behavior of apache/tomcat under load, and the connections simply time out.

This is the normal behavior of TCP on a network stack that's not tuned
for web-style traffic.  What's happening is far beneath Tomcat or
Apache.

The short (and oversimplified) version: before the web came along, most
connections to a machine were long-lasting, so the default
post-disconnection timeout was pretty high. (A few minutes, I recall.)

HTTP gave us short, bursty traffic and most machines aren't tuned for
that out of the box.  Check your OS to lower the timeout to something
more reasonable and see what that does for you.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-18 Thread Duncan Houston
Thanks for the help - problem solved!

Was running a box with LVS, and running DNS. I don't think all the zone
files were there, but stopping named worked like a charm - all webapps fast!
What a stupid error (on my part).

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2004 01:13
 To: Tomcat Users List
 Subject: Re: Tomcat and Apache by Proxy http connections slow but https
 fast


 AFAIK - mod_proxy does not cache DNS lookups. It is looked up on every
 request. So a slow lookup could be your problem.

 -Tim

 Duncan Houston wrote:
  Sorry folks, more info (hope somebody will has experienced
 these problems as
  well!).
 
  I can hit 2 JSPs in different webapps, both proxied behind
 Apache, both on
  HTTP. The one is fast, the other slow. What could be causing
 this? Apache
  config? DNS lookup issues?
 
 
 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 23:28
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast
 
 
 OK, I made a mistake there (sorry). The issue does still seem to be that
 connecting to a webapp over SSL is faster than connecting to
 another webapp
 over non-SSL, both running in the same Tomcat (JBoss) instance
 and proxied
 behind Apache.
 
 Any ideas why the SSL version would be fast and the normal
 (HTTP) version
 not?
 
 
 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 18:03
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast
 
 
 Some more info. The problem does not seem to be with HTTP vs HTTPS (was
 testing app A on HTTPS, app B on HTTP B - problem seems that A
 is faster
 than B whether on HTTP or HTTPS).
 
 I have a number of .war files deployed to JBoss's /deploy directory
 (automatic deployment). Let's call them A and B, and let's say
 
 each has an
 
 image folder. Accessing an image from inside A's folder is fast, but
 accessing an image from B's folder is slow.
 
 Proxy setup appears to be the same for both apps.
 
 
 
 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 17:19
 To: [EMAIL PROTECTED]
 Subject: Tomcat and Apache by Proxy http connections slow but
 
 https fast
 
 
 Hi
 
 Background: Firstly I should state that I am running Tomcat 4.0.1
 with JBoss
 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
 
 of this is
 
 running on RedHat. Requests are passed through to Tomcat by
 
 proxy, using
 
 rewrite rules. I know, I should be running a newer version of JBoss 
 Tomcat, and should be using mod_jk, but haven't had the time
 
 to upgrade
 
 quite yet.
 
 The problem: Connections to webapps run on Tomcat via http are
 slow over the
 internet. It appears that establishing a new connection (for
 page, images on
 page etc) takes time - once established (seconds later) the data gets
 transferred quickly. But, interestingly, connecting via https
 
 is fast. My
 
 test server, when hit on a test intranet, is very quick to respond.
 
 Any ideas? I have set enableLookups=false, for what that is worth.
 
 Help would be much appreciated.


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



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



Re: RE: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-18 Thread mlist
ATTENTION: THIS IS AN AUTOMATED RESPONSE.  DO NOT
REPLY TO THIS MESSAGE.

If you want to end your subscription, please use this link:
http://www.nethugs.com/unsubscribe.shtml

If you want to subscribe, please use this link:
http://www.nethugs.com/whysubscribe.shtml

If you need to contact a live person, use this link:
http://www.nethugs.com/contactus.shtml


Sincerely,

NetHugs.com Admin
http://www.nethugs.com



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



RE: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
Some more info. The problem does not seem to be with HTTP vs HTTPS (was
testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
than B whether on HTTP or HTTPS).

I have a number of .war files deployed to JBoss's /deploy directory
(automatic deployment). Let's call them A and B, and let's say each has an
image folder. Accessing an image from inside A's folder is fast, but
accessing an image from B's folder is slow.

Proxy setup appears to be the same for both apps.


 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 17:19
 To: [EMAIL PROTECTED]
 Subject: Tomcat and Apache by Proxy http connections slow but https fast


 Hi

 Background: Firstly I should state that I am running Tomcat 4.0.1
 with JBoss
 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All of this is
 running on RedHat. Requests are passed through to Tomcat by proxy, using
 rewrite rules. I know, I should be running a newer version of JBoss 
 Tomcat, and should be using mod_jk, but haven't had the time to upgrade
 quite yet.

 The problem: Connections to webapps run on Tomcat via http are
 slow over the
 internet. It appears that establishing a new connection (for
 page, images on
 page etc) takes time - once established (seconds later) the data gets
 transferred quickly. But, interestingly, connecting via https is fast. My
 test server, when hit on a test intranet, is very quick to respond.

 Any ideas? I have set enableLookups=false, for what that is worth.

 Help would be much appreciated.

 Thanks
 Duncan


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



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



RE: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
OK, I made a mistake there (sorry). The issue does still seem to be that
connecting to a webapp over SSL is faster than connecting to another webapp
over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
behind Apache.

Any ideas why the SSL version would be fast and the normal (HTTP) version
not?

 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 18:03
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast


 Some more info. The problem does not seem to be with HTTP vs HTTPS (was
 testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
 than B whether on HTTP or HTTPS).

 I have a number of .war files deployed to JBoss's /deploy directory
 (automatic deployment). Let's call them A and B, and let's say each has an
 image folder. Accessing an image from inside A's folder is fast, but
 accessing an image from B's folder is slow.

 Proxy setup appears to be the same for both apps.


  -Original Message-
  From: Duncan Houston [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 17:19
  To: [EMAIL PROTECTED]
  Subject: Tomcat and Apache by Proxy http connections slow but https fast
 
 
  Hi
 
  Background: Firstly I should state that I am running Tomcat 4.0.1
  with JBoss
  2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
 of this is
  running on RedHat. Requests are passed through to Tomcat by proxy, using
  rewrite rules. I know, I should be running a newer version of JBoss 
  Tomcat, and should be using mod_jk, but haven't had the time to upgrade
  quite yet.
 
  The problem: Connections to webapps run on Tomcat via http are
  slow over the
  internet. It appears that establishing a new connection (for
  page, images on
  page etc) takes time - once established (seconds later) the data gets
  transferred quickly. But, interestingly, connecting via https
 is fast. My
  test server, when hit on a test intranet, is very quick to respond.
 
  Any ideas? I have set enableLookups=false, for what that is worth.
 
  Help would be much appreciated.
 
  Thanks
  Duncan
 
 
  -
  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: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
Sorry folks, more info (hope somebody will has experienced these problems as
well!).

I can hit 2 JSPs in different webapps, both proxied behind Apache, both on
HTTP. The one is fast, the other slow. What could be causing this? Apache
config? DNS lookup issues?

 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 23:28
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast


 OK, I made a mistake there (sorry). The issue does still seem to be that
 connecting to a webapp over SSL is faster than connecting to
 another webapp
 over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
 behind Apache.

 Any ideas why the SSL version would be fast and the normal (HTTP) version
 not?

  -Original Message-
  From: Duncan Houston [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 18:03
  To: Tomcat Users List
  Subject: RE: Tomcat and Apache by Proxy http connections slow but https
  fast
 
 
  Some more info. The problem does not seem to be with HTTP vs HTTPS (was
  testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
  than B whether on HTTP or HTTPS).
 
  I have a number of .war files deployed to JBoss's /deploy directory
  (automatic deployment). Let's call them A and B, and let's say
 each has an
  image folder. Accessing an image from inside A's folder is fast, but
  accessing an image from B's folder is slow.
 
  Proxy setup appears to be the same for both apps.
 
 
   -Original Message-
   From: Duncan Houston [mailto:[EMAIL PROTECTED]
   Sent: 17 August 2004 17:19
   To: [EMAIL PROTECTED]
   Subject: Tomcat and Apache by Proxy http connections slow but
 https fast
  
  
   Hi
  
   Background: Firstly I should state that I am running Tomcat 4.0.1
   with JBoss
   2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
  of this is
   running on RedHat. Requests are passed through to Tomcat by
 proxy, using
   rewrite rules. I know, I should be running a newer version of JBoss 
   Tomcat, and should be using mod_jk, but haven't had the time
 to upgrade
   quite yet.
  
   The problem: Connections to webapps run on Tomcat via http are
   slow over the
   internet. It appears that establishing a new connection (for
   page, images on
   page etc) takes time - once established (seconds later) the data gets
   transferred quickly. But, interestingly, connecting via https
  is fast. My
   test server, when hit on a test intranet, is very quick to respond.
  
   Any ideas? I have set enableLookups=false, for what that is worth.
  
   Help would be much appreciated.
  
   Thanks
   Duncan
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



Re: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Tim Funk
AFAIK - mod_proxy does not cache DNS lookups. It is looked up on every 
request. So a slow lookup could be your problem.

-Tim
Duncan Houston wrote:
Sorry folks, more info (hope somebody will has experienced these problems as
well!).
I can hit 2 JSPs in different webapps, both proxied behind Apache, both on
HTTP. The one is fast, the other slow. What could be causing this? Apache
config? DNS lookup issues?

-Original Message-
From: Duncan Houston [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 23:28
To: Tomcat Users List
Subject: RE: Tomcat and Apache by Proxy http connections slow but https
fast
OK, I made a mistake there (sorry). The issue does still seem to be that
connecting to a webapp over SSL is faster than connecting to
another webapp
over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
behind Apache.
Any ideas why the SSL version would be fast and the normal (HTTP) version
not?

-Original Message-
From: Duncan Houston [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 18:03
To: Tomcat Users List
Subject: RE: Tomcat and Apache by Proxy http connections slow but https
fast
Some more info. The problem does not seem to be with HTTP vs HTTPS (was
testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
than B whether on HTTP or HTTPS).
I have a number of .war files deployed to JBoss's /deploy directory
(automatic deployment). Let's call them A and B, and let's say
each has an
image folder. Accessing an image from inside A's folder is fast, but
accessing an image from B's folder is slow.
Proxy setup appears to be the same for both apps.

-Original Message-
From: Duncan Houston [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 17:19
To: [EMAIL PROTECTED]
Subject: Tomcat and Apache by Proxy http connections slow but
https fast
Hi
Background: Firstly I should state that I am running Tomcat 4.0.1
with JBoss
2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
of this is
running on RedHat. Requests are passed through to Tomcat by
proxy, using
rewrite rules. I know, I should be running a newer version of JBoss 
Tomcat, and should be using mod_jk, but haven't had the time
to upgrade
quite yet.
The problem: Connections to webapps run on Tomcat via http are
slow over the
internet. It appears that establishing a new connection (for
page, images on
page etc) takes time - once established (seconds later) the data gets
transferred quickly. But, interestingly, connecting via https
is fast. My
test server, when hit on a test intranet, is very quick to respond.
Any ideas? I have set enableLookups=false, for what that is worth.
Help would be much appreciated.

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


RE: Tomcat and Apache Axis Security

2004-08-10 Thread Srofe, Douglas (c)
Actually I have tried that and it doesn't work.  One of the problems is that
class is visible to Tomcat only.  I tried placing a copy of the jar in the
common/lib area and get classloading problems.  I am not sure how to make
that work.  If you have any other ideas I would appreciate it.

Thanks for your help. 

-Original Message-
From: Isen,Ciji [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 09, 2004 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat and Apache Axis Security

Have you tried access it from the Principal.

GenericPrincipal p = (GenericPrincipal)request.getUserPrincipal();

String uid = p.getName();
String passwd = p.getPassword();


Srofe, Douglas (c) wrote:

We use single sign for our Tomcat applications.  We have another Tomcat 
that hosts various web services.  I would like to be able to send the 
logged on users name and password as credentials to the web service and 
have Tomcat authenticate it.  I have tested this part with a hardcoded 
user name and password and this works fine.  But I need to send the 
username and password used when the user logged on.  How do I get 
access to the password that was used when the user logged on so I can 
send it as part of the credentials to the web service?  Am I going to 
have to write custom authenticators and realms in order to do this?
 
Thanks for any response.
 

  


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

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



Re: Tomcat and Apache Axis Security

2004-08-09 Thread Isen,Ciji
Have you tried access it from the Principal.
GenericPrincipal p = (GenericPrincipal)request.getUserPrincipal();
String uid = p.getName();
String passwd = p.getPassword();
Srofe, Douglas (c) wrote:
We use single sign for our Tomcat applications.  We have another Tomcat that
hosts various web services.  I would like to be able to send the logged on
users name and password as credentials to the web service and have Tomcat
authenticate it.  I have tested this part with a hardcoded user name and
password and this works fine.  But I need to send the username and password
used when the user logged on.  How do I get access to the password that was
used when the user logged on so I can send it as part of the credentials to
the web service?  Am I going to have to write custom authenticators and
realms in order to do this?
Thanks for any response.
 

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


RE: Tomcat and apache problem

2004-07-22 Thread Chow C.Y. Terry
 Dear all,
 
   I am using Apache2.0-50 and tomcat 5.0-27 with mod_jk2, Apache is
 compiled by source and the tomcat and mod_jk are using binary
   The OS I using is Solaris9. After configuration, the web site for
 static page is normal, but when try to run servlets, it return 404 not
 found
   The HelloWorld.class is located under
 /$DocumentRoot/WEB-INF/classes.
 
   The catalina.out show the following:
   Jul 22, 2004 11:32:40 AM org.apache.coyote.http11.Http11Protocol
 init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Jul 22, 2004 11:32:40 AM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1800 ms
 Jul 22, 2004 11:32:41 AM org.apache.catalina.core.StandardService start
 INFO: Starting service Tomcat-Apache
 Jul 22, 2004 11:32:41 AM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
 Jul 22, 2004 11:32:41 AM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Jul 22, 2004 11:32:42 AM org.apache.catalina.core.StandardHost getDeployer
 INFO: Create Host deployer for direct deployment ( non-jmx )
 Jul 22, 2004 11:32:42 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Jul 22, 2004 11:32:42 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Jul 22, 2004 11:32:42 AM org.apache.jk.server.JkMain start
 INFO: APR not loaded, disabling jni components: java.io.IOException: java.
 lang.UnsatisfiedLinkError: no jkjni in java.library.path
 Jul 22, 2004 11:32:42 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=1/180
 config=/usr/local/jakarta/jakarta-tomcat-5.0.27/conf/jk2.properties
 Jul 22, 2004 11:32:42 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 2231 ms
 
   Attached plese find the tomcat config, and would you please give me
 some advice.
 
 Thank you very much.
 
  tomcat_problem.txt 
 Best Regard,
 
 Terry Chow
 IT Department
 Tel: 29458018
 Mobile: 92046004
 
workers2.properties
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
port=8009
host=127.0.0.1

# Define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/*.jsp]
worker=ajp13:localhost:8009

[uri:/servlets/*]
worker=ajp13:localhost:8009

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
#file=/usr/local/apache/logs/shm.file
file=/usr/local/apache/logs/jk2.shm
size=1048576

Virtual host

  Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location
Location /servlets/*
JkUriSet worker ajp13:localhost:8009
/Location

Tomcat server.xml

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 minProcessors=50 maxProcessors=400
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=0
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache defaultHost=stream-test.peoples.com.hk debug=0
 !-- Virtual host for stream-test --
  Host name=stream-test.peoples.com.hk debug=1 
appBase=/u02/stream-test/htdocs/html unpackWARs=tr
ue autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=stream-test_access. suffix=.log
 pattern=common resolveHosts=false/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=stream-test. suffix=.log
timestamp=true/

Context path= docBase=/u02/stream-test/htdocs/html debug=1 
reloadable=true /
  /Host


jk2.properties

 shm.file=/usr/local/apache/logs/jk2.shm



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

Re: Tomcat 5 Apache Authentication

2004-07-09 Thread Joseph Shraibman
[EMAIL PROTECTED] wrote:
Hmmm...so is there any workaround? For example, using an older version of the 
JK connector or some older combination of Tomcat/Apache and the JK connector?

Thanks,
Kevin
Not as far as I know.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 Apache Authentication

2004-07-08 Thread Joseph Shraibman
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25367
[EMAIL PROTECTED] wrote:
Hi all,
 I am having a problem getting Tomcat 5 to use Apache authentication. We
have an existing CGI application that is handled by Apache 2, and I am tring to
integrate some java stuff using Tomcat 5. Here is what I have:
##
## APACHE 2 conf/httpd.conf:
##
# Tomcat Connector
LoadModule jk2_module modules/mod_jk2.so
JKSet config.file /opt/apps/apache/conf/workers2.properties
# Tomcat 5
Alias /web/ja/ /opt/web/prod/ja/
Directory /opt/web/prod/ja/
  SSLRequireSSL
  AuthType Basic
  AuthUserFile /opt/work/apps/trade/conf/ft_webauth
  AuthGroupFile /opt/work/apps/trade/conf/ft_webauthg
  require group mygroup
  AllowOverride All
  order allow,deny
  allow from all
  Options MultiViews Indexes FollowSymLinks
/Directory
# CGI Webapp
ScriptAlias /web/ /opt/web/prod/
directory /opt/web/prod/
  SSLRequireSSL
  AuthUserFile /opt/work/apps/trade/conf/ft_webauth
  AuthGroupFile /opt/work/apps/trade/conf/ft_webauthg
  AuthName privy
  AuthType Basic
  require group ftgroup1 vedp demoskin umass choosemd wtctacoma wtcstl wtcc
belmont wtcchicago wtcdemo wtcfrance wisconsin aim medc efi testgroup webdev twr
dcca wtcdn matrade ft_g2 ft_g3 ft_g4 ft_g5 ft_g6 ft_g7 ft_g8 ft_g9
  AllowOverride All
  order allow,deny
  allow from all
  Options MultiViews ExecCGI
/directory
##
## workers2.properties
##
[shm]
info=Scoreboard. Required for reconfiguration
file=/opt/apps/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0
# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# java web app
[uri:/web/ja/*]
worker=ajp13:localhost:8009
group=lb
##
## TOMCAT 5 conf/server.xml
##
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
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
  Service name=Catalina
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 tomcatAuthentication=false /
Engine name=Catalina defaultHost=localhost debug=0
  Valve className=org.apache.catalina.valves.RequestDumperValve/
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
!-- Java Web App --
Context path=/web/ja docBase=/opt/web/prod/ja debug=2
reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger
 prefix=wtprod_file_log. suffix=.txt
 timestamp=true/
/Context
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
  /Host
/Engine
  /Service
/Server
##
## END SCRIPTS
##
Ok, so I placed tomcatAuthentication=false and also in my httpd.conf file, I
put the directory to my java stuff since I want it to be protected by Apache's
authentication. However, when I try my java app, the request.getRemoteUser()
comes up null, now do I get prompted for a password. Any help would be greatly
appreciated!
Thanks,
Kevin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Tomcat 5 Apache Authentication

2004-07-08 Thread kandryc
Hmmm...so is there any workaround? For example, using an older version of the 
JK connector or some older combination of Tomcat/Apache and the JK connector?

Thanks,
Kevin

Quoting Joseph Shraibman [EMAIL PROTECTED]:

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25367
 
 
 [EMAIL PROTECTED] wrote:
  Hi all,
   I am having a problem getting Tomcat 5 to use Apache authentication.
 We
  have an existing CGI application that is handled by Apache 2, and I am
 tring to
  integrate some java stuff using Tomcat 5. Here is what I have:
  
  ##
  ## APACHE 2 conf/httpd.conf:
  ##
  
  # Tomcat Connector
  LoadModule jk2_module modules/mod_jk2.so
  JKSet config.file /opt/apps/apache/conf/workers2.properties
  
  # Tomcat 5
  Alias /web/ja/ /opt/web/prod/ja/
  Directory /opt/web/prod/ja/
SSLRequireSSL
AuthType Basic
AuthUserFile /opt/work/apps/trade/conf/ft_webauth
AuthGroupFile /opt/work/apps/trade/conf/ft_webauthg
require group mygroup
AllowOverride All
order allow,deny
allow from all
Options MultiViews Indexes FollowSymLinks
  /Directory
  
  # CGI Webapp
  ScriptAlias /web/ /opt/web/prod/
  directory /opt/web/prod/
SSLRequireSSL
AuthUserFile /opt/work/apps/trade/conf/ft_webauth
AuthGroupFile /opt/work/apps/trade/conf/ft_webauthg
AuthName privy
AuthType Basic
require group ftgroup1 vedp demoskin umass choosemd wtctacoma wtcstl
 wtcc
  belmont wtcchicago wtcdemo wtcfrance wisconsin aim medc efi testgroup
 webdev twr
  dcca wtcdn matrade ft_g2 ft_g3 ft_g4 ft_g5 ft_g6 ft_g7 ft_g8 ft_g9
AllowOverride All
order allow,deny
allow from all
Options MultiViews ExecCGI
  /directory
  
  ##
  ## workers2.properties
  ##
  
  [shm]
  info=Scoreboard. Required for reconfiguration
  file=/opt/apps/tomcat/logs/jk2.shm
  size=1048576
  debug=0
  disabled=0
  
  # Defines a load balancer named lb. Use even if you only have one machine.
  [lb:lb]
  
  # Example socket channel, override port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
  
  # define the worker
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
  group=lb
  
  # java web app
  [uri:/web/ja/*]
  worker=ajp13:localhost:8009
  group=lb
  
  ##
  ## TOMCAT 5 conf/server.xml
  ##
  
  Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
  debug=0/
  
GlobalNamingResources
  
  Environment name=simpleValue type=java.lang.Integer value=30/
  
  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
  
Service name=Catalina
  
  Connector port=8009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 tomcatAuthentication=false /
  
  Engine name=Catalina defaultHost=localhost debug=0
  
Valve className=org.apache.catalina.valves.RequestDumperValve/
  
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt
timestamp=true/
  
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   debug=0 resourceName=UserDatabase/
  
Host name=localhost debug=0 appBase=webapps unpackWARs=true
  autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  
  !-- Java Web App --
  Context path=/web/ja docBase=/opt/web/prod/ja debug=2
  reloadable=true
 Logger className=org.apache.catalina.logger.FileLogger
   prefix=wtprod_file_log. suffix=.txt
   timestamp=true/
  /Context
  
  
  Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=localhost_access_log.
 suffix=.txt
   pattern=common resolveHosts=false/
  
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log. suffix=.txt
  timestamp=true/
  
/Host
  
  /Engine
  
/Service
  
  /Server
  
  ##
  ## END SCRIPTS
  ##
  
  Ok, so I placed tomcatAuthentication=false and also in my httpd.conf
 file, I
  put the directory to my java stuff since I want it to be protected by
 Apache's
  authentication. However, when I try my java app, the
 request.getRemoteUser()
  comes up null, now do I get prompted for a password. Any help would be
 greatly
  appreciated!
  
  Thanks,
  

RE: Tomcat and Apache

2004-05-18 Thread Dale, Matt

Have a look at the JK or JK2 connectors, they are used to connect Tomcat and Apache 
webserver.

Ta
Matt

-Original Message-
From: mpforste [mailto:[EMAIL PROTECTED]
Sent: 18 May 2004 15:43
To: Tomcat Users List
Subject: Tomcat and Apache


I am trying to start using Tomcat on my server without having to stop using
the Apache and PHP (at least for the moment)

While if I select http://localhost:8080/test.jsp it works

when I select http://mysite.com/test.jsp it doesn't

I have in my Apache config the following extract (which should work)
VirtualHost mysite.com:80
ServerAdmin [EMAIL PROTECTED]
ServerName mysite.com
ProxyPass / http://localhost:8080
ProxyPassReverse / http://localhost:8080
/VirtualHost

Sometimes it serves a jsp page but will not serve any graphics or other
files (and now it isn't even serving JSP's)

Any idea where I am going wrong or is there another way to do what I
need

Mike.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.681 / Virus Database: 443 - Release Date: 10/05/2004


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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Tomcat Filter Apache Axis ?

2004-05-04 Thread Shapira, Yoav

Hi,
Why don't you ask on the Axis mailing list?  Since you said your filter
works fine in other webapps, it's clearly an Axis issue.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rui Zhang [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 7:32 PM
To: Tomcat Users List
Subject: Re: Tomcat Filter  Apache Axis ?



Sorry, Axis' web.xml now recognised the filter\fliter pattern, but
Axis still did not work properly.

Rui

On Tue, 4 May 2004, Rui Zhang wrote:

 Thanks.

 I did change it to 2.3 DTD, but it still doesn't work.

 Cheers,

 Rui

 Oxford Univ Computing Lab
 
  What's the XML doctype declaration for the Axis web.xml?
 
  Servlet filters were introduced in servlet spec 2.3.
 
  If your doctype declaration specifies 2.2 or earlier, the DTD won't
  recognize the filter (and related) tags.
 
  (Solution: specify the 2.3 DTD or 2.4 schema.)
 
  -QM
 
  --
 
  software  -- http://www.brandxdev.net
  tech news -- http://www.RoarNetworX.com
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 



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



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




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 Filter Apache Axis ?

2004-05-03 Thread QM

On Mon, May 03, 2004 at 09:37:12PM +0100, Rui Zhang wrote:
:The Axis 1.1 does not support a filter.../filter in its web.xml. And if I 
insert
: the Filter into the Tomcat default web.xml, Axis even won't return its
: index.html page. The Filter, however, works fine with other webapps in my
: Tomcat.

What's the XML doctype declaration for the Axis web.xml?

Servlet filters were introduced in servlet spec 2.3.

If your doctype declaration specifies 2.2 or earlier, the DTD won't
recognize the filter (and related) tags.

(Solution: specify the 2.3 DTD or 2.4 schema.)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat Filter Apache Axis ?

2004-05-03 Thread Rui Zhang


Sorry, Axis' web.xml now recognised the filter\fliter pattern, but
Axis still did not work properly.

Rui

On Tue, 4 May 2004, Rui Zhang wrote:

 Thanks.

 I did change it to 2.3 DTD, but it still doesn't work.

 Cheers,

 Rui

 Oxford Univ Computing Lab
 
  What's the XML doctype declaration for the Axis web.xml?
 
  Servlet filters were introduced in servlet spec 2.3.
 
  If your doctype declaration specifies 2.2 or earlier, the DTD won't
  recognize the filter (and related) tags.
 
  (Solution: specify the 2.3 DTD or 2.4 schema.)
 
  -QM
 
  --
 
  software  -- http://www.brandxdev.net
  tech news -- http://www.RoarNetworX.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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



Re: Tomcat Filter Apache Axis ?

2004-05-03 Thread Rui Zhang
Thanks.

I did change it to 2.3 DTD, but it still doesn't work.

Cheers,

Rui

Oxford Univ Computing Lab

 What's the XML doctype declaration for the Axis web.xml?

 Servlet filters were introduced in servlet spec 2.3.

 If your doctype declaration specifies 2.2 or earlier, the DTD won't
 recognize the filter (and related) tags.

 (Solution: specify the 2.3 DTD or 2.4 schema.)

 -QM

 --

 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com


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




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



RE: Tomcat 5 - apache 13 howto

2004-04-06 Thread Shapira, Yoav

Hi,
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: C. Kukulies [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 12:58 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 - apache 13 howto

Is there a FAQ which answers the question:

Is there an HOWTO to get tomcat 5 running with apache13?

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

-
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: Tomcat and Apache on diff m/c's

2004-03-23 Thread Dale, Matt

Are you trying to perhaps use JNI to connect them? Thats the only thing I can think of.

-Original Message-
From: Steven Perry [mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 06:16
To: [EMAIL PROTECTED]
Subject: Tomcat and Apache on diff m/c's


Hello all,

I've successfully configured and run Apache 2.x and
Tomcat 5.x on the same machine numerous times without
any hitch. But, I'm having problems configuring them
on different machines.

I tried to use load-balancing but it seems not to be
working. I would appareciate any help.

Thank you,
Steven.



__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Tomcat and Apache on diff m/c's

2004-03-23 Thread Steven Perry
 Sorry, forgot to mention the connector I was using.
I to connect using JK.

--Steven

--- Dale, Matt [EMAIL PROTECTED] wrote:
 
 Are you trying to perhaps use JNI to connect them?
 Thats the only thing I can think of.
 
 -Original Message-
 From: Steven Perry [mailto:[EMAIL PROTECTED]
 Sent: 23 March 2004 06:16
 To: [EMAIL PROTECTED]
 Subject: Tomcat and Apache on diff m/c's
 
 
 Hello all,
 
 I've successfully configured and run Apache 2.x and
 Tomcat 5.x on the same machine numerous times
 without
 any hitch. But, I'm having problems configuring them
 on different machines.
 
 I tried to use load-balancing but it seems not to be
 working. I would appareciate any help.
 
 Thank you,
 Steven.
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on
 time.
 http://taxes.yahoo.com/filing.html
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
  Any opinions expressed in this E-mail may be those
 of the individual and not necessarily the company.
 This E-mail and any files transmitted with it are
 confidential and solely for the use of the intended
 recipient. If you are not the intended recipient or
 the person responsible for delivering to the
 intended recipient, be advised that you have
 received this E-mail in error and that any use or
 copying is strictly prohibited. If you have received
 this E-mail in error please notify the beCogent
 postmaster at [EMAIL PROTECTED]
 Unless expressly stated, opinions in this email are
 those of the individual sender and not beCogent Ltd.
 You must take full responsibility for virus checking
 this email and any attachments.
 Please note that the content of this email or any of
 its attachments may contain data that falls within
 the scope of the Data Protection Acts and that you
 must ensure that any handling or processing of such
 data by you is fully compliant with the terms and
 provisions of the Data Protection Act 1984 and 1998.
 
 
 
-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



RE: Tomcat 4 + Apache 2 + mod_jk (auto-config) + https

2004-02-25 Thread Yiannis Mavroukakis
Don't think you need to. I am running httpd2(SSL)+tomcat4/5+mod_jk2. Apache
will 
take care of the SSL side, and mod_jk should forward everything unencrypted
via
localhost(if that is your setup) to tomcat.

-Original Message-
From: Samuel Rutishauser [mailto:[EMAIL PROTECTED]
Sent: 25 February 2004 15:09
To: Tomcat Users List
Subject: Tomcat 4 + Apache 2 + mod_jk (auto-config) + https


Hello all,

I have Tomcat 4 + Apache 2 + mod_jk (in auto-config mode). Everything's 
fine, but I don't see how to tell Tomcat to build the generated 
mod_jk.conf as to listen to https traffic. Any ideas?

Thank you
Samuel Rutishauser


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: Tomcat 4 + Apache 2 + mod_jk (auto-config) + https

2004-02-25 Thread Samuel Rutishauser
You're right normally .. but I want to use the auto-generated 
conf/auto/mod_jk.conf , which includes everything necessary to a 
VirtualHost of apache ... without the SSL-Stuff!

Yiannis Mavroukakis wrote:

Don't think you need to. I am running httpd2(SSL)+tomcat4/5+mod_jk2. Apache
will 
take care of the SSL side, and mod_jk should forward everything unencrypted
via
localhost(if that is your setup) to tomcat.

-Original Message-
From: Samuel Rutishauser [mailto:[EMAIL PROTECTED]
Sent: 25 February 2004 15:09
To: Tomcat Users List
Subject: Tomcat 4 + Apache 2 + mod_jk (auto-config) + https
Hello all,

I have Tomcat 4 + Apache 2 + mod_jk (in auto-config mode). Everything's 
fine, but I don't see how to tell Tomcat to build the generated 
mod_jk.conf as to listen to https traffic. Any ideas?

Thank you
Samuel Rutishauser
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
 

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


RE: tomcat and apache

2004-02-02 Thread Yansheng Lin
Hi, you might get more answers if you ask this question on httpd mail list.
This is not a tomcat problem, rather it's the proxy configuration in httpd
that's giving you grief.  You might want to take a look on how you define you
Directory and Location directives.  Without looking at your directives, it's
hard to say where the problem could be...


-Original Message-
From: Mark Tebong [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 02, 2004 7:50 AM
To: Tomcat Users List (E-mail)
Subject: tomcat and apache


I have a little problem with my web site. It has to do with the session
disconnecting on my proxy server.
Basically, I have an apache 2.0 server that acts as a web proxy. Its IP is
192.168.11.11. I also have another server which is internal, and running tomcat
with IP 192.168.11.211. On the proxy server, I have it configured so that when a
request for a URL (say www.mydom1.com) comes in, the proxy sends it to
192.168.11.211/mydom1. 
www.mydom1.com maintains a session. When I access the pages of the site that use
the session thru www.mydom1.com, I get an exception. When I access it through
192.168.11.211/mydom1, it works fine. I am accessing it from IP 192.168.11.40.
But from outsite, the only way to access it is through the domain name, and it
gives the same error. 
Similarly, The web site has large graphics, and what happens is that half the
graphics is displayed when you try to access through the proxy, but when you
access it directly, everything is fine. 
This happens the same way from different computers.
I looked at the tomcat logs and I saw that the session was disconnecting when
you used the proxy. 
I have looked everywhere on the web, and I can't find any solutions. 
PLEASE HELP.

Thanks


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


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



Re: tomcat and apache+mod_jk on different servers - another story

2004-01-21 Thread QM
: possible to store JSP's on the server where apache is running? It's just
: a matter of convenience - it would be nice to upload the whole site with
: JSPs and have it running without remembering that you should upload all
: JSPs to some special place on a second server.

A sideways solution for your problem:
upload your site to the same location on each server , then configure
Apache and Tomcat to use that directory as the document root/context
base path.

A little work up front that pays off in spades.


Downside: this requires you use an expanded WAR file

Upside: site uploads just got a lot easier, since the code goes to the
same place regardless of the server's function (i.e. you could write a
quick loop to upload)

Upside: upgrading Tomcat/Apache is easier, because your site's content
exists separate from the Tomcat/Apache trees (and for several other
site management/architecture reasons)

This has worked very well for me, for quite some time now.  YMMV.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat and Apache on Separate servers

2004-01-06 Thread Camron G . Levanger
It's a great idea, what you want to do is configure as normal, and then 
edit the workers.properties to point to the remote tomcat.

Camron G. Levanger
The Dreamlab
www.dreamlabmedia.com
(866) 890-3705
On Jan 5, 2004, at 11:36 PM, Richard Wray wrote:
Hi All,

I have what I hope will be a simple question.  I have 2 Win 2K boxes.  
One
running Tomcat and the other Apache.

How do I deploy a web app on the Tomcat server and configure it to 
talk to
the Apache web server on a completely separate box.

Do I need to configure both ends?  Does it make sense to split the 
boxes
this way just to have Apache server static files?

Thanks for your time,

Regards
Tomcat-Apache Newbie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


smime.p7s
Description: S/MIME cryptographic signature


Re: Tomcat and Apache on Separate servers

2004-01-05 Thread Jacob Kjome
At 01:36 AM 1/6/2004 -0500, you wrote:

Hi All,

I have what I hope will be a simple question.  I have 2 Win 2K boxes.  One
running Tomcat and the other Apache.
How do I deploy a web app on the Tomcat server and configure it to talk to
the Apache web server on a completely separate box.
Do I need to configure both ends?  Does it make sense to split the boxes
this way just to have Apache server static files?
Here's a copy of information from the list a while back.  I would post the 
url to the archived message, but I don't have that at the 
moment.  Attribution of this solution goes to the original poster, not 
myself...

Here it goes.

Machine  A (Apache), Machine B (tomcat)
-
httpd.conf changes...
-
Below # LoadModule foo_module modules/mod_foo.so
Add following lines
#
# Load mod_jk
#
 LoadModule jk_module libexec/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
Below DocumentRoot /usr/local/apache/htdocs

Add following lines...

JkMount /examples ajp13
JkMount /examples/* ajp13
(if you want to configure a application examples running under webapps
on tomcat, just specify  /examples, you need not sepcify the full path
of the application)
Then create workers.properties under $Apache_Home$/conf/  like this

# In Unix, we use forward slashes:
ps=/
# list the workers by name
worker.list=ajp13
#
worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine)
worker.ajp13.host=hostname(Machine B)
worker.ajp13.type=ajp13
(no need to define tomcat_home and java_home parameters here, you define
them on catalina.sh on tomcat machine)
this is all you need to do on apache machine...

server.xml changes on  Machine B(tomcat machine)
--
Set the required environment variables JAVA_HOME AND CATALINA_HOME in
$TOMCAT_HOME$/bin/catalina.sh
Commen out the Standalone HTTP port(port 8080) Connector.

!--
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
--
Also Comment out the WARP connector

  Service name=Tomcat-Apache
!--
Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/
--
Change the both the Engine Tag and Host tag defaultHost to tomcat
hostName(ex: tomcat.apache.com)
(This should match with your workers.properties host name.)
Engine name=Standalone defaultHost=tomcat.apache.com debug=0
  Host name=tomcat.apache.com debug=0 appBase=webapps
unpackWARs=true
  /Host
/Engine
start tomcat and apache, you should be able to access examples from
apache machine
I have pretty much followed the http://www.ubeans.com/tomcat/
documentation..many many thanks to Pascal Forget.
Let me know, how it goes...

-Raj




Thanks for your time,

Regards
Tomcat-Apache Newbie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Tomcat and Apache on Separate servers

2004-01-05 Thread Richard Wray
WOW!!!

Thanks for the quick response.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 1:46 AM
To: Tomcat Users List
Subject: Re: Tomcat and Apache on Separate servers


At 01:36 AM 1/6/2004 -0500, you wrote:

Hi All,

I have what I hope will be a simple question.  I have 2 Win 2K boxes.  One
running Tomcat and the other Apache.

How do I deploy a web app on the Tomcat server and configure it to talk to
the Apache web server on a completely separate box.

Do I need to configure both ends?  Does it make sense to split the boxes
this way just to have Apache server static files?

Here's a copy of information from the list a while back.  I would post the 
url to the archived message, but I don't have that at the 
moment.  Attribution of this solution goes to the original poster, not 
myself...


Here it goes.

Machine  A (Apache), Machine B (tomcat)
-

httpd.conf changes...
-
Below # LoadModule foo_module modules/mod_foo.so

Add following lines
#
# Load mod_jk
#
  LoadModule jk_module libexec/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

Below DocumentRoot /usr/local/apache/htdocs

Add following lines...

JkMount /examples ajp13
JkMount /examples/* ajp13

(if you want to configure a application examples running under webapps
on tomcat, just specify  /examples, you need not sepcify the full path
of the application)

Then create workers.properties under $Apache_Home$/conf/  like this

# In Unix, we use forward slashes:
ps=/

# list the workers by name
worker.list=ajp13

#
worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine)
worker.ajp13.host=hostname(Machine B)
worker.ajp13.type=ajp13

(no need to define tomcat_home and java_home parameters here, you define
them on catalina.sh on tomcat machine)

this is all you need to do on apache machine...

server.xml changes on  Machine B(tomcat machine)
--

Set the required environment variables JAVA_HOME AND CATALINA_HOME in
$TOMCAT_HOME$/bin/catalina.sh

Commen out the Standalone HTTP port(port 8080) Connector.

!--
 Connector
className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
--


Also Comment out the WARP connector

   Service name=Tomcat-Apache
!--
 Connector
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true appBase=webapps
  acceptCount=10 debug=0/
--


Change the both the Engine Tag and Host tag defaultHost to tomcat
hostName(ex: tomcat.apache.com)
(This should match with your workers.properties host name.)

Engine name=Standalone defaultHost=tomcat.apache.com debug=0
   Host name=tomcat.apache.com debug=0 appBase=webapps
unpackWARs=true
   /Host
/Engine

start tomcat and apache, you should be able to access examples from
apache machine

I have pretty much followed the http://www.ubeans.com/tomcat/
documentation..many many thanks to Pascal Forget.


Let me know, how it goes...

-Raj




Thanks for your time,

Regards
Tomcat-Apache Newbie


-
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: Tomcat and apache - localhost?

2003-12-30 Thread Shapira, Yoav

Howdy,
Yes: read the Host configuration reference in the tomcat documentation,
specifically the section on Host Name Aliases.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sascha Alff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 9:34 AM
To: [EMAIL PROTECTED]
Subject: Tomcat and apache - localhost?

Hello,

i'm a new mailing-list member. today, i installed apache, tomcat and
the jk
connector.

i have one problem:
when i enter in the web-browser the URL http://localhost/examples - i
get
the tomcat sample-page. it works also with the tomcat port 8080. but my
computer has in the company network a hostname like
pcnbsaal.company.de.
my apache-webserver is available under localhost and the hostname
pcxxx.
it is possible, that tomcat also listen to localhost and the hostname
pcxxx?

sorry for my bad english :-)

regards,
sascha (from germany)


-
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: Tomcat and apache - localhost?

2003-12-30 Thread Sascha Alff
hi,

i have read the manual. i have definied a server alias. but it doesn't work.
only localhost work.
can you tell me more? it's the first time for me that i use tomcat.

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 3:37 PM
Subject: RE: Tomcat and apache - localhost?



Howdy,
Yes: read the Host configuration reference in the tomcat documentation,
specifically the section on Host Name Aliases.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sascha Alff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 9:34 AM
To: [EMAIL PROTECTED]
Subject: Tomcat and apache - localhost?

Hello,

i'm a new mailing-list member. today, i installed apache, tomcat and
the jk
connector.

i have one problem:
when i enter in the web-browser the URL http://localhost/examples - i
get
the tomcat sample-page. it works also with the tomcat port 8080. but my
computer has in the company network a hostname like
pcnbsaal.company.de.
my apache-webserver is available under localhost and the hostname
pcxxx.
it is possible, that tomcat also listen to localhost and the hostname
pcxxx?

sorry for my bad english :-)

regards,
sascha (from germany)


-
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: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

2003-11-05 Thread Ralph Einfeldt
Your quote from the site is a question, not a statement.

And I'm quie shure that the post parameters are not part 
of the header. (They are part of the 'body')

 -Original Message-
 From: Robert Leftwich [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 11:45 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and
 W2000
 
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/common/AJP
v13.html#Questions%20I%20Have 

What happens if the request headers  max packet size? There is no 
provision to send a second packet of request headers in case there are more 
than 8K 

So more correctly if the http request has more than 8k in the headers it 
will fail (e.g. posting a lot of form information) and one of the servlets 
I'm trying to hook into Apache is the Chiba XForms implementation which can 
(relatively) easily exceed this limit.

Robert 

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



  1   2   3   4   5   >