Re: configuring tomcat on XP as a service

2005-05-04 Thread luke
Hi,

03May2005 @ 22:45 Greg Baynham thusly spake
 However, I have set the environment variables JAVA_HOME and PATH to both 
 reference my installation of the JSDK.  I have rebooted, but still get the 
Do the env var paths have spaces? 
Since I had a problem with that on windows once, I've made sure that all
subsequent installations had no spaces.
How about CATALINA_HOME?

Could help,
kind regards,
Luke
-- 
._
:|  .| |.|/.|_
:|__.|_|.|\.|_
:0421 276 282.

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



Re: configuring tomcat on XP as a service

2005-05-04 Thread Dominik Drzewiecki
Greg Baynham [EMAIL PROTECTED] wrote:
 I'm getting tripped up trying to get tomcat to run JSP code when it's 
 installed as a service.  when I access a JSP page I get this error:
 
  root cause
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 However, I have set the environment variables JAVA_HOME and PATH to both 
 
 reference my installation of the JSDK.  I have rebooted, but still get 
 the 
 error.
 
 specifics:
 tomcat 5.0.28
 windows XP home
 JAVA_HOME=C:\j2sdk1.4.2_06\bin
 PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Pro
 gram Files\Common Files\Adaptec Shared\System;%JAVA_HOME%

JAVA_HOME should point to the very directory the jdk is installed into.
Set the JAVA_HOME=C:\j2sdk1.4.2_06
You might also want to update your PATH so that it contains %JAVA_HOME%\bin

Your env variables should look like that then:

JAVA_HOME=C:\j2sdk1.4.2_06
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Progr
am Files\Common Files\Adaptec Shared\System;%JAVA_HOME%\bin

This should make it work.

cheers,
/dd


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



RE: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Shapira, Yoav

Hi,
You should put DefaultContext inside a Host.  But if you only have one
webapp, create a proper Context element for it instead of
DefaultContext.

The JDBC driver class name is supplied in your vendor documentation (in
this case McKoi).  A common one is com.mckoi.JDBCDriver.

The port number is whatever port your database is listening on.  Ask
your DBA if you're not sure.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 3:09 PM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

I am sort of stuck with configuring the server.xml
file under the $TOMCAT\conf directory for JNDI.

For the Tomcat 4.x, I put the following block of code;
i.e. DefaultContext right after the ending
/context element and before the ending /host
element in the server.xml file.

However, I do not see the context element in the
Tomcat 5.0.27.  There is the host element, though.

[code]
DefaultContext
 Resource name=jdbc/McKoiDB auth=Container
 type=javax.sql.DataSource/
ResourceParams name=jdbc/McKoiDB
  parameter
namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 parameter
   namedriverClassName/name
   value/value
 /parameter
 parameter
   nameurl/name

valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/val
ue
 /parameter
 parameter
   nameusername/name
   valuejavauser/value
 /parameter
 parameter
   namepassword/name
   valuejavadude/value
 /parameter
 parameter
   namemaxActive/name
   value20/value
 /parameter
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter

nameremoveAbandonedTimeout/name
value60/value
  /parameter
  parameter
namelogAbandoned/name
valuetrue/value
  /parameter

  /ResourceParams
  /DefaultContext
[/code]

1. Where should I put the DefaultContext in the
server.xml file?

2. What is the value I should give to the
driverClassName parameter?

3. What is the port number I should give to the url
parameter?  i.e.
jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-
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: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Caroline Jen
Thanks for replying.

I am building only one webapp.  What does create a
proper Context element instead of DefaultContext
mean?

Thanks
--- Shapira, Yoav [EMAIL PROTECTED] wrote:

 
 Hi,
 You should put DefaultContext inside a Host.  But if
 you only have one
 webapp, create a proper Context element for it
 instead of
 DefaultContext.
 
 The JDBC driver class name is supplied in your
 vendor documentation (in
 this case McKoi).  A common one is
 com.mckoi.JDBCDriver.
 
 The port number is whatever port your database is
 listening on.  Ask
 your DBA if you're not sure.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 3:09 PM
 To: [EMAIL PROTECTED]
 Subject: Configuring Tomcat 5.0.27 for JNDI (with
 the McKoi Database)
 
 I am sort of stuck with configuring the server.xml
 file under the $TOMCAT\conf directory for JNDI.
 
 For the Tomcat 4.x, I put the following block of
 code;
 i.e. DefaultContext right after the ending
 /context element and before the ending /host
 element in the server.xml file.
 
 However, I do not see the context element in the
 Tomcat 5.0.27.  There is the host element,
 though.
 
 [code]
 DefaultContext
Resource name=jdbc/McKoiDB
 auth=Container
type=javax.sql.DataSource/
 ResourceParams name=jdbc/McKoiDB
   parameter
 namefactory/name
 

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
parameter
  namedriverClassName/name
  value/value
/parameter
parameter
  nameurl/name
 

valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/val
 ue
/parameter
parameter
  nameusername/name
  valuejavauser/value
/parameter
parameter
  namepassword/name
  valuejavadude/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxIdle/name
  value30/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
   parameter

 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 
 nameremoveAbandonedTimeout/name
 value60/value
   /parameter
   parameter
 namelogAbandoned/name
 valuetrue/value
   /parameter
 
   /ResourceParams
   /DefaultContext
 [/code]
 
 1. Where should I put the DefaultContext in the
 server.xml file?
 
 2. What is the value I should give to the
 driverClassName parameter?
 
 3. What is the port number I should give to the url
 parameter?  i.e.

jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true
 
 
 
 ___
 Do you Yahoo!?
 Win 1 of 4,000 free domain names from Yahoo! Enter
 now.
 http://promotions.yahoo.com/goldrush
 

-
 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]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Peng Tuck Kwok
Perhaps you could also read this here 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html 

to get more details. 


On Fri, 3 Sep 2004 13:07:59 -0700 (PDT), Caroline Jen
[EMAIL PROTECTED] wrote:
 Thanks for replying.
 
 I am building only one webapp.  What does create a
 proper Context element instead of DefaultContext
 mean?
 
 Thanks
 
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 
  Hi,
  You should put DefaultContext inside a Host.  But if
  you only have one
  webapp, create a proper Context element for it
  instead of
  DefaultContext.
 
  The JDBC driver class name is supplied in your
  vendor documentation (in
  this case McKoi).  A common one is
  com.mckoi.JDBCDriver.
 
  The port number is whatever port your database is
  listening on.  Ask
  your DBA if you're not sure.
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Caroline Jen [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 03, 2004 3:09 PM
  To: [EMAIL PROTECTED]
  Subject: Configuring Tomcat 5.0.27 for JNDI (with
  the McKoi Database)
  
  I am sort of stuck with configuring the server.xml
  file under the $TOMCAT\conf directory for JNDI.
  
  For the Tomcat 4.x, I put the following block of
  code;
  i.e. DefaultContext right after the ending
  /context element and before the ending /host
  element in the server.xml file.
  
  However, I do not see the context element in the
  Tomcat 5.0.27.  There is the host element,
  though.
  
  [code]
  DefaultContext
 Resource name=jdbc/McKoiDB
  auth=Container
 type=javax.sql.DataSource/
  ResourceParams name=jdbc/McKoiDB
parameter
  namefactory/name
  
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
 parameter
   namedriverClassName/name
   value/value
 /parameter
 parameter
   nameurl/name
  
 
 valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/val
  ue
 /parameter
 parameter
   nameusername/name
   valuejavauser/value
 /parameter
 parameter
   namepassword/name
   valuejavadude/value
 /parameter
 parameter
   namemaxActive/name
   value20/value
 /parameter
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
parameter
  
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter
  
/ResourceParams
/DefaultContext
  [/code]
  
  1. Where should I put the DefaultContext in the
  server.xml file?
  
  2. What is the value I should give to the
  driverClassName parameter?
  
  3. What is the port number I should give to the url
  parameter?  i.e.
 
 jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true
  
  
  
  ___
  Do you Yahoo!?
  Win 1 of 4,000 free domain names from Yahoo! Enter
  now.
  http://promotions.yahoo.com/goldrush
  
 
 -
  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]
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Configuring Tomcat 5 to not display null value as word null

2004-08-22 Thread Rick Wong
Thanks for the response.  Unfortunately, the objects are not necessarily 
obtained directly from the request parameter.  Sometimes data is 
massaged or obtained from other sources.  I was hoping that there is a 
generic way to override the behavior.  Since you mentioned about the 
used of filter, I actually do have a servlet filter and a servlet 
request wrapper for my application.  Maybe I would just override the 
getWriter method with a PrintWriter wrapper that outputs  for null 
value?  Let me try to see what happens if I do that...

Thanks,
--
Rick
Justin Ruthenbeck wrote:
There is no Tomcat magic configuration parameter to make this happen.  
Instead, take a look at HttpServletRequestWrapper.  You can combine 
that with a Filter to override the behavior of getParameter() for the 
pages that need it such that it returns  instead of null when no 
such parameter value exists.

If you're unfamiliar with the above concepts, check Google, so see:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p4.html
Good luck,
justin
At 04:54 PM 8/20/2004, you wrote:
Hi,
I have the following JSP fragment:

case 1 = %=request.getParameter(no_such_thing)%
case 2 = ${requestScope[no_such_thing]}

The output of the page is
...
case 1 = null
case 2 =
...
Is there any way that Tomcat can be configured to not display the 
word null if the value is null?  It is easy to replace the above 
example in case 1 by case 2, but in my case it is not easy to make 
such change to my existing code base (which I am migrating from 
another servlet engine that outputs null as ).  I have pages with 
the input type=text elements displaying the string null when 
there is no default value.

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

__
Justin Ruthenbeck
Lead Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
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: Configuring Tomcat 5 to not display null value as word null

2004-08-21 Thread Tim Funk
Use JSTL.
c:out value=${param.no_such_thing}/
c:out value=${request.no_such_thing}/
-Tim
Rick Wong wrote:
Hi,
I have the following JSP fragment:

case 1 = %=request.getParameter(no_such_thing)%
case 2 = ${requestScope[no_such_thing]}

The output of the page is
...
case 1 = null
case 2 =
...
Is there any way that Tomcat can be configured to not display the word 
null if the value is null?  It is easy to replace the above example in 
case 1 by case 2, but in my case it is not easy to make such change to 
my existing code base (which I am migrating from another servlet engine 
that outputs null as ).  I have pages with the input type=text 
elements displaying the string null when there is no default value.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Justin Ruthenbeck
There is no Tomcat magic configuration parameter to make this 
happen.  Instead, take a look at HttpServletRequestWrapper.  You can 
combine that with a Filter to override the behavior of getParameter() for 
the pages that need it such that it returns  instead of null when no 
such parameter value exists.

If you're unfamiliar with the above concepts, check Google, so see:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p4.html
Good luck,
justin
At 04:54 PM 8/20/2004, you wrote:
Hi,
I have the following JSP fragment:

case 1 = %=request.getParameter(no_such_thing)%
case 2 = ${requestScope[no_such_thing]}

The output of the page is
...
case 1 = null
case 2 =
...
Is there any way that Tomcat can be configured to not display the word 
null if the value is null?  It is easy to replace the above example in 
case 1 by case 2, but in my case it is not easy to make such change to 
my existing code base (which I am migrating from another servlet engine 
that outputs null as ).  I have pages with the input type=text 
elements displaying the string null when there is no default value.

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

__
Justin Ruthenbeck
Lead Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Peng Tuck Kwok
Maybe he could check that in the jsp as well. Then maybe it's a little
simpler to do. say
(roughly) :
.
if (request.getParameter(blah)==null) { 
   print something meaningful instead. 
 

On Fri, 20 Aug 2004 18:15:48 -0700, Justin Ruthenbeck
[EMAIL PROTECTED] wrote:
 
 There is no Tomcat magic configuration parameter to make this
 happen.  Instead, take a look at HttpServletRequestWrapper.  You can
 combine that with a Filter to override the behavior of getParameter() for
 the pages that need it such that it returns  instead of null when no
 such parameter value exists.
 
 If you're unfamiliar with the above concepts, check Google, so see:
 http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p4.html
 
 Good luck,
 justin
 
 At 04:54 PM 8/20/2004, you wrote:
 Hi,
 
 I have the following JSP fragment:
 
 
 case 1 = %=request.getParameter(no_such_thing)%
 case 2 = ${requestScope[no_such_thing]}
 
 
 The output of the page is
 
 ...
 case 1 = null
 case 2 =
 ...
 
 Is there any way that Tomcat can be configured to not display the word
 null if the value is null?  It is easy to replace the above example in
 case 1 by case 2, but in my case it is not easy to make such change to
 my existing code base (which I am migrating from another servlet engine
 that outputs null as ).  I have pages with the input type=text
 elements displaying the string null when there is no default value.
 
 Thanks,
 --
 Rick
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 __
 Justin Ruthenbeck
 Lead Software Engineer, NextEngine Inc.
 justinr - AT - nextengine DOT com
 Confidential. See:
 http://www.nextengine.com/confidentiality.php
 __
 
 -
 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: Configuring Tomcat on different IP's

2004-03-31 Thread Parsons Technical Services
Uma,

Do a ping localhost from the command line. It will only resolve to one name.
So don't get concerned that it doesn't work. As long as the IPs work you are
fine.

Now for the access issue. Did you set up a security constraint in your
web.xml file?

Add this to the web.xml of the app on the https side.

  security-constraint
 web-resource-collection
web-resource-nameProtected Context/web-resource-name
  url-pattern/*/url-pattern
  /web-resource-collection
  !-- auth-constraint goes here if you require authentication --
  user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
   /security-constraint

This is from the link I sent you earlier:
http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

This will prevent access to the webapp through http and force the client to
https.

If I understand your problem, it is that the client can get to the webapp
from the http IP.

Add the following elements to your context as well:
crossContext=false
override=true
privileged=false'

As for the connector, I think Bill correct, so yes you can remove it.

Let us know how it goes.

Doug

PS When you get it working, add the word SOLVED to the end of your subject
line and post all your config files. Just one way to give back to the list.

Thanks

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:52 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 I am finally getting something to work after doing lot of experiments. Now
 the issue is
 1)It does not work with http://localhost, seems to be a problem with my
 DNS.
 2)It works with http://172.27.2.44

 This address (172.27.2.44) is defined in the first service and the host
 tag has a context as
   Context path= docBase=/IBS1 debug=0
   /Context
 Look its IBS1. This context has an index.jsp file which just fwd the
 request to https://172.27.2.246/IBS/Login.jsp

 This address (172.27.2.246) is defined in  the second service and the
 host tag has a context as
   Context path= docBase=/IBS debug=0
   /Context
 Look its IBS now. This context has all the files that needs to run under
 https.

 3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he
 goes to https://172.27.2.246/IBS/d1.jsp

 4)When the user changes the port to HTTP (in the address bar of the
 browser) and doesnt change the IP address as http://172.27.2.246
 /IBS/d1.jsp, then the user gets cannot find server. This is perfect.

 5)When the user changes the port to HTTP and change the IP address (in the
 address bar of the browser) as http://172.27.2.44/IBS/d1.jsp,  as I am
 internally checking for the session, the programme finds the session is
 invalid and sends him to (HTTP Login page) http://172.27.2.44
 /IBS/Login.jsp. Now the user still can access my IBS context files using
 http protocol and 80 port.

 Now see this IP configuration (172.27.2.44) on port 80 has got a context
 reference of IBS1 and it still supports IBS context that is on port 443.

 It seems to me that Tomcat 5 is still internally checking for the contexts
 somewhere else other than the server.xml file. If we can disable that then
 it should work fine.

 Can I know from where the Tomcat is reading the default context? So that
 I can disable them? or if there is any better solution to this please help
 me out.

 Thank you,
 Best Regards,
 Uma





  Parsons
  Technical
  Services  To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/30/2004 06:58   cc
  PM


  Please respond to
Tomcat Users
List   Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on different
   rta.apache.org  IP's










 Uma,

 This has moved beyond my experiance. Other than experimenting or diving
 into
 the source what I suggest now is to reply to this post and edit the
subject
 line to read:

 Two service on one Tomcat instance.[Was Re: Configuring Tomcat on
different
 IP's]

 In the hope that someone with more information will respond.

 You may try google with a search based on tomcat and two or multiple
 service.

 Sorry I ran out of ideas.

 Doug


 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 11:50 PM
 Subject: Re: Configuring Tomcat on different IP's


 
 
 
 
  Doug,
  I fogot to tell you that the first context has only one .jsp file. Here
 is
  the content of that index.jsp file
 
  %
  response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
  %
 
  Thanks
  Uma

Re: Configuring Tomcat on different IP's

2004-03-31 Thread UmamaheswarKalluru




Doug,
Thanks for reply. I am not clear with this line
Add this to the web.xml of the app on the https side.
Do you mean to add those lines in the web.xml of IBS context(which
contain HTTPS files)? or the web.xml file present in the conf directory?

Add the following elements to your context as well:
crossContext=false
override=true
privileged=false'
Should I add them to the IBS context or IBS1 context?

I will definitely post all of my configuration files to the mail-list. So
that it could be of some help to other developers.

Thank you,
Best Regards,
Uma



   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/31/2004 06:24   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Uma,

Do a ping localhost from the command line. It will only resolve to one
name.
So don't get concerned that it doesn't work. As long as the IPs work you
are
fine.

Now for the access issue. Did you set up a security constraint in your
web.xml file?

Add this to the web.xml of the app on the https side.

  security-constraint
 web-resource-collection
web-resource-nameProtected Context/web-resource-name
  url-pattern/*/url-pattern
  /web-resource-collection
  !-- auth-constraint goes here if you require authentication --
  user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
   /security-constraint

This is from the link I sent you earlier:
http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

This will prevent access to the webapp through http and force the client to
https.

If I understand your problem, it is that the client can get to the webapp
from the http IP.

Add the following elements to your context as well:
crossContext=false
override=true
privileged=false'

As for the connector, I think Bill correct, so yes you can remove it.

Let us know how it goes.

Doug

PS When you get it working, add the word SOLVED to the end of your subject
line and post all your config files. Just one way to give back to the list.

Thanks

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:52 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 I am finally getting something to work after doing lot of experiments.
Now
 the issue is
 1)It does not work with http://localhost, seems to be a problem with my
 DNS.
 2)It works with http://172.27.2.44

 This address (172.27.2.44) is defined in the first service and the host
 tag has a context as
   Context path= docBase=/IBS1 debug=0
   /Context
 Look its IBS1. This context has an index.jsp file which just fwd the
 request to https://172.27.2.246/IBS/Login.jsp

 This address (172.27.2.246) is defined in  the second service and the
 host tag has a context as
   Context path= docBase=/IBS debug=0
   /Context
 Look its IBS now. This context has all the files that needs to run under
 https.

 3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he
 goes to https://172.27.2.246/IBS/d1.jsp

 4)When the user changes the port to HTTP (in the address bar of the
 browser) and doesnt change the IP address as http://172.27.2.246
 /IBS/d1.jsp, then the user gets cannot find server. This is perfect.

 5)When the user changes the port to HTTP and change the IP address (in
the
 address bar of the browser) as http://172.27.2.44/IBS/d1.jsp,  as I am
 internally checking for the session

Re: Configuring Tomcat on different IP's

2004-03-31 Thread Parsons Technical Services

Uma,

 Doug,
 Thanks for reply. I am not clear with this line
 Add this to the web.xml of the app on the https side.
 Do you mean to add those lines in the web.xml of IBS context(which
 contain HTTPS files)?
Yes

or the web.xml file present in the conf directory?
No. Note that adding anything here will affect all apps on the server.


 Add the following elements to your context as well:
 crossContext=false
 override=true
 privileged=false'
 Should I add them to the IBS context or IBS1 context?
Both will be fine. This technically should not be needed, but to help
security I would do it.
Note add these after you get the addition to web.xml done and working. Then
when you add these to the context, do them one at a time instead of all
three at once. Just in case it breaks something.


 I will definitely post all of my configuration files to the mail-list. So
 that it could be of some help to other developers.

Sorry if my writing is confusing sometimes. Feel free to ask for
clarification any time.

Thank You

Doug




  Parsons
  Technical
  Services  To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/31/2004 06:24   cc
  PM


  Please respond to
Tomcat Users
List   Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on different
   rta.apache.org  IP's










 Uma,

 Do a ping localhost from the command line. It will only resolve to one
 name.
 So don't get concerned that it doesn't work. As long as the IPs work you
 are
 fine.

 Now for the access issue. Did you set up a security constraint in your
 web.xml file?

 Add this to the web.xml of the app on the https side.

   security-constraint
  web-resource-collection
 web-resource-nameProtected Context/web-resource-name
   url-pattern/*/url-pattern
   /web-resource-collection
   !-- auth-constraint goes here if you require authentication --
   user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
/security-constraint

 This is from the link I sent you earlier:
 http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

 This will prevent access to the webapp through http and force the client
to
 https.

 If I understand your problem, it is that the client can get to the webapp
 from the http IP.

 Add the following elements to your context as well:
 crossContext=false
 override=true
 privileged=false'

 As for the connector, I think Bill correct, so yes you can remove it.

 Let us know how it goes.

 Doug

 PS When you get it working, add the word SOLVED to the end of your subject
 line and post all your config files. Just one way to give back to the
list.

 Thanks

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 30, 2004 10:52 PM
 Subject: Re: Configuring Tomcat on different IP's


 
 
 
 
  Doug,
  I am finally getting something to work after doing lot of experiments.
 Now
  the issue is
  1)It does not work with http://localhost, seems to be a problem with my
  DNS.
  2)It works with http://172.27.2.44
 
  This address (172.27.2.44) is defined in the first service and the
host
  tag has a context as
Context path= docBase=/IBS1 debug=0
/Context
  Look its IBS1. This context has an index.jsp file which just fwd the
  request to https://172.27.2.246/IBS/Login.jsp
 
  This address (172.27.2.246) is defined in  the second service and the
  host tag has a context as
Context path= docBase=/IBS debug=0
/Context
  Look its IBS now. This context has all the files that needs to run under
  https.
 
  3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he
  goes to https://172.27.2.246/IBS/d1.jsp
 
  4)When the user changes the port to HTTP (in the address bar of the
  browser) and doesnt change the IP address as http://172.27.2.246
  /IBS/d1.jsp, then the user gets cannot find server. This is perfect.
 
  5)When the user changes the port to HTTP and change the IP address (in
 the
  address bar of the browser) as http://172.27.2.44/IBS/d1.jsp,  as I am
  internally checking for the session, the programme finds the session is
  invalid and sends him to (HTTP Login page) http://172.27.2.44
  /IBS/Login.jsp. Now the user still can access my IBS context files using
  http protocol and 80 port.
 
  Now see this IP configuration (172.27.2.44) on port 80 has got a context
  reference of IBS1 and it still supports IBS context that is on port 443.
 
  It seems to me that Tomcat 5 is still internally checking for the
 contexts
  somewhere else other than the server.xml file. If we can

Re: Configuring Tomcat on different IP's

2004-03-31 Thread UmamaheswarKalluru




Doug,
Thanks for the info. I will try these settings and get back to you.

Thank you,
Best Regards,
Uma



   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/31/2004 06:58   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   





Uma,

 Doug,
 Thanks for reply. I am not clear with this line
 Add this to the web.xml of the app on the https side.
 Do you mean to add those lines in the web.xml of IBS context(which
 contain HTTPS files)?
Yes

or the web.xml file present in the conf directory?
No. Note that adding anything here will affect all apps on the server.


 Add the following elements to your context as well:
 crossContext=false
 override=true
 privileged=false'
 Should I add them to the IBS context or IBS1 context?
Both will be fine. This technically should not be needed, but to help
security I would do it.
Note add these after you get the addition to web.xml done and working. Then
when you add these to the context, do them one at a time instead of all
three at once. Just in case it breaks something.


 I will definitely post all of my configuration files to the mail-list. So
 that it could be of some help to other developers.

Sorry if my writing is confusing sometimes. Feel free to ask for
clarification any time.

Thank You

Doug




  Parsons
  Technical
  Services
To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/31/2004 06:24
cc
  PM


  Please respond to
Tomcat Users
List
Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on
different
   rta.apache.org  IP's










 Uma,

 Do a ping localhost from the command line. It will only resolve to one
 name.
 So don't get concerned that it doesn't work. As long as the IPs work you
 are
 fine.

 Now for the access issue. Did you set up a security constraint in your
 web.xml file?

 Add this to the web.xml of the app on the https side.

   security-constraint
  web-resource-collection
 web-resource-nameProtected Context/web-resource-name
   url-pattern/*/url-pattern
   /web-resource-collection
   !-- auth-constraint goes here if you require authentication --
   user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
/security-constraint

 This is from the link I sent you earlier:
 http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

 This will prevent access to the webapp through http and force the client
to
 https.

 If I understand your problem, it is that the client can get to the webapp
 from the http IP.

 Add the following elements to your context as well:
 crossContext=false
 override=true
 privileged=false'

 As for the connector, I think Bill correct, so yes you can remove it.

 Let us know how it goes.

 Doug

 PS When you get it working, add the word SOLVED to the end of your
subject
 line and post all your config files. Just one way to give back to the
list.

 Thanks

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 30, 2004 10:52 PM
 Subject: Re: Configuring Tomcat on different IP's


 
 
 
 
  Doug,
  I am finally getting something to work after doing lot of experiments.
 Now
  the issue is
  1)It does not work

Re: Configuring Tomcat on different IP's

2004-03-30 Thread Parsons Technical Services
Uma,

This has moved beyond my experiance. Other than experimenting or diving into
the source what I suggest now is to reply to this post and edit the subject
line to read:

Two service on one Tomcat instance.[Was Re: Configuring Tomcat on different
IP's]

In the hope that someone with more information will respond.

You may try google with a search based on tomcat and two or multiple
service.

Sorry I ran out of ideas.

Doug


- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:50 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 I fogot to tell you that the first context has only one .jsp file. Here is
 the content of that index.jsp file

 %
 response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
 %

 Thanks
 Uma


 -
 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: Configuring Tomcat on different IP's

2004-03-30 Thread Emerson Cargnin
When i tested a configurations like this (although the two intances 
listended to the same port without ssl), i had to put the address at the 
Server element too.

Server port=8005  address=10.9.6.85



Parsons Technical Services wrote:
Uma,

I removed several of the elements that were commented out and made the
changes I thought it would need.
Unless someone can answer my question about which service picks up which
app, you will have to put the context in the server.xml . You can experiment
with it after you get it running by trying an external context and see which
service picks it up.
Give it a try.

Doug

!-- Example Server Configuration File --

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/
  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina
!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true address=192.68.xxx.xx2 /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host). --
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  !-- Because this Realm is here, an instance will be shared globally
--
  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  !-- Comment out the old realm but leave here for now in case we
   need to go back quickly --
  !--
  Realm className=org.apache.catalina.realm.MemoryRealm /
  --
  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.  Specify
either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
DefaultContext reloadable=true /

  /Host

/Engine

  /Service

  Service name=CatalinaHTTPS

!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --

Connector port=443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=C:\Documents and
Settings\kworker\server.keystore
   keystorePass=changeit
   address=192.68.xxx.xx1 /
!-- Define a 

RE: Configuring Tomcat on different IP's

2004-03-30 Thread Shapira, Yoav

Hi,

From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
When i tested a configurations like this (although the two intances
listended to the same port without ssl), i had to put the address at
the
Server element too.

Server port=8005  address=10.9.6.85

What are you talking about?  The Server element interface and standard
implementation don't support an address attribute.  The address
attribute would be ignored and has no impact on anything.

Yoav Shapira



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


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



Re: Configuring Tomcat on different IP's

2004-03-30 Thread UmamaheswarKalluru




Doug,
I am finally getting something to work after doing lot of experiments. Now
the issue is
1)It does not work with http://localhost, seems to be a problem with my
DNS.
2)It works with http://172.27.2.44

This address (172.27.2.44) is defined in the first service and the host
tag has a context as
  Context path= docBase=/IBS1 debug=0
  /Context
Look its IBS1. This context has an index.jsp file which just fwd the
request to https://172.27.2.246/IBS/Login.jsp

This address (172.27.2.246) is defined in  the second service and the
host tag has a context as
  Context path= docBase=/IBS debug=0
  /Context
Look its IBS now. This context has all the files that needs to run under
https.

3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he
goes to https://172.27.2.246/IBS/d1.jsp

4)When the user changes the port to HTTP (in the address bar of the
browser) and doesnt change the IP address as http://172.27.2.246
/IBS/d1.jsp, then the user gets cannot find server. This is perfect.

5)When the user changes the port to HTTP and change the IP address (in the
address bar of the browser) as http://172.27.2.44/IBS/d1.jsp,  as I am
internally checking for the session, the programme finds the session is
invalid and sends him to (HTTP Login page) http://172.27.2.44
/IBS/Login.jsp. Now the user still can access my IBS context files using
http protocol and 80 port.

Now see this IP configuration (172.27.2.44) on port 80 has got a context
reference of IBS1 and it still supports IBS context that is on port 443.

It seems to me that Tomcat 5 is still internally checking for the contexts
somewhere else other than the server.xml file. If we can disable that then
it should work fine.

Can I know from where the Tomcat is reading the default context? So that
I can disable them? or if there is any better solution to this please help
me out.

Thank you,
Best Regards,
Uma




   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/30/2004 06:58   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Uma,

This has moved beyond my experiance. Other than experimenting or diving
into
the source what I suggest now is to reply to this post and edit the subject
line to read:

Two service on one Tomcat instance.[Was Re: Configuring Tomcat on different
IP's]

In the hope that someone with more information will respond.

You may try google with a search based on tomcat and two or multiple
service.

Sorry I ran out of ideas.

Doug


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:50 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 I fogot to tell you that the first context has only one .jsp file. Here
is
 the content of that index.jsp file

 %
 response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
 %

 Thanks
 Uma


 -
 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: Configuring Tomcat on different IP's

2004-03-29 Thread Parsons Technical Services
Uma,

Sorry for the delay. I went to bed early for a change.

Attachments don't survive. You will need to put it in the body of the email.

List can you comment on if I am anywhere close on this or totally off my
rocker.

Thanks.

Doug

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:33 AM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 Can you look at this server.xml file to see if I have done everything
 correct?

 (See attached file: server.xml)

 Thank you,
 Best Regards,
 Uma



  Parsons
  Technical
  Services  To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/29/2004 12:31   cc
  PM


  Please respond to
Tomcat Users
List   Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on different
   rta.apache.org  IP's










 Okay to continue,

 In the Server element you can declare two services. In one service you
 would
 have the connector for the http and the context for your application. Note
 unless someone can tell me how to control which service a context is
 associate you will have to put your context in the server.xml.

 In the other sevice you will declare the https and the other context.

 Now for clarification I have NOT done this before and am basing it on what
 I
 read from the config documentaion.

 If you look in the server.xml file you will find the connector declaration
 for the http. If you have NOT used the admin application, you will also
 find
 the connector for the https but it will be commented out !---- .

 To try this first make a copy of the server.xml.
 Next copy and paste the service section from start tag service   to
 finish tag /service and paste it right after the service finish tag.
 In the second service tag you will need to change the name on the service
 and maybe the engine.
 Then comment out the http connector and uncomment the https connector.
 Add the address=  to each connector.
 Add the context for your applications in the appropriate service.

 Restart tomcat and see what the logs say.

 Again, I have never done this. But the configuration docs say:

 Quote
 The following components may be nested inside a Server element:

 Service - One or more service element.
 GlobalNamingResources - Configure the JNDI global resources for the
server.
 Unquote

 So having two services is okay.

 Now can someone tell me which service an application will be associated
 with
 if you use the context.xml in the app?

 Give it a try and read up on the docs at:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html

 Good luck.

 Doug

 - Original Message -
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 1:26 AM
 Subject: Re: Configuring Tomcat on different IP's


  Clicked too fast. There is more to come...
 
  - Original Message -
  From: Parsons Technical Services [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, March 29, 2004 1:19 AM
  Subject: Re: Configuring Tomcat on different IP's
 
 
   Uma,
  
   I think this will do what you want.
  
   For each connector defined, one for http and one for https use the
 address
   attribute to specify the IP to listen on.
  
   So in the https connector use address=192.68.xxx.xx1 and Tomcat will
   listen on 192.68.xxx.xx1 for only https request.
  
   On the http connector use address=192.68.xxx.xx2 and Tomcat will
 listen
   only for http request on 192.68.xxx.xx2 .
  
   Remember this affect all applications running on this instance of
 Tomcat.
  
   See this for details:
  
   http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
  
   Doug
  
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Sunday, March 28, 2004 11:58 PM
   Subject: Re: Configuring Tomcat on different IP's
  
  
   
   
   
   
Doug,
Thanks for the reply. It is just for security reasons out network
administrator has planned to do. So, I need to configure as such. I
 have
made the settings in the code to see if the user is using http or
 https
   and
block the user from using http.
   
But there should be some way of doing this, right?
   
Thank you,
Best Regards,
Uma
   
   
   
   
 Parsons
 Technical
 Services
  To
 parsonstechnical
 @earthlink.net   Tomcat Users List
   
 [EMAIL PROTECTED]
 03/29/2004 11:23
  cc
 AM

Re: Configuring Tomcat on different IP's

2004-03-29 Thread UmamaheswarKalluru
 out
; even if you wanted to.

filter=.*\.gif;.*\.js; means that we will not replicate the
session after requests with the URI
ending with .gif and .js are intercepted.
--

!--
Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true

Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver

className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=auto
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender

className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve

filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/
/Cluster
--



!-- Normally, users must authenticate themselves to each web app
 individually.  Uncomment the following entry if you would like
 a user to be authenticated the first time they encounter a
 resource protected by a security constraint, and then have
that
 user identity maintained across *all* web applications
contained
 in this virtual host. --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
--

!-- Access log processes all requests for this virtual host.  By
 default, log files are created in the logs directory
relative to
 $CATALINA_HOME.  If you wish, you can specify a different
 directory with the directory attribute.  Specify either a
relative
 (to $CATALINA_HOME) or absolute path to the desired directory.
--
!--
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common resolveHosts=false/
--

!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.  Specify
either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

DefaultContext reloadable=true /

  /Host

/Engine

  /Service












/Server







Thank you,
Best Regards,
Uma


   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/29/2004 06:01   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Uma,

Sorry for the delay. I went to bed early for a change.

Attachments don't survive. You will need to put it in the body of the
email.

List can you comment on if I am anywhere close on this or totally off my
rocker.

Thanks.

Doug

- Original Message -
From: [EMAIL

Re: Configuring Tomcat on different IP's

2004-03-29 Thread Parsons Technical Services
Uma,

I removed several of the elements that were commented out and made the
changes I thought it would need.

Unless someone can answer my question about which service picks up which
app, you will have to put the context in the server.xml . You can experiment
with it after you get it running by trying an external context and see which
service picks it up.

Give it a try.

Doug


!-- Example Server Configuration File --


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/

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

  /GlobalNamingResources

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


!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true address=192.68.xxx.xx2 /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --


!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host). --

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--

  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

  !-- Comment out the old realm but leave here for now in case we
   need to go back quickly --
  !--
  Realm className=org.apache.catalina.realm.MemoryRealm /
  --

  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false



!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.  Specify
either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

DefaultContext reloadable=true /

  /Host

/Engine

  /Service

  Service name=CatalinaHTTPS


!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --

Connector port=443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=C:\Documents and
Settings\kworker\server.keystore
   keystorePass=changeit
   address=192.68.xxx.xx1 /


!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8019
   enableLookups=false redirectPort=443 debug=0
   protocol=AJP/1.3 /

!-- Define the top level container in our 

Re: Configuring Tomcat on different IP's

2004-03-29 Thread UmamaheswarKalluru




Doug,
I am now testing it on my local machine. My network admin has provided me
with this IP configuration

Connection-specific DNS Suffix  . :
IP Address. . . . . . . . . . . . : 172.27.2.246
Subnet Mask . . . . . . . . . . . : 255.255.0.0
IP Address. . . . . . . . . . . . : 172.27.2.44
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 172.27.1.59

I have added the context within the host tag of each service.
I have changed the port from 8080 to 80 for the first service.

When I type http://localhost it doesn't work. I am pasting the stdout.txt
and the other two log files that are generated along with the server.xml
file. Can you please have a look at it and correct me?

There is an error in the stdout.txt.  see these lines
SEVERE: Error filterStart
Mar 30, 2004 9:41:45 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors


---STDOUT.TXT
Mar 30, 2004 9:41:22 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Mar 30, 2004 9:41:24 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 443
Mar 30, 2004 9:41:24 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6269 ms
Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 30, 2004 9:41:26 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 30, 2004 9:41:26 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:E:\Tomcat 5.0
\conf\Catalina\localhost\admin.xml
Mar 30, 2004 9:41:27 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 30, 2004 9:41:27 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 30, 2004 9:41:29 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 30, 2004 9:41:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:E:\Tomcat 5.0
\conf\Catalina\localhost\balancer.xml
Mar 30, 2004 9:41:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:E:\Tomcat 5.0
\conf\Catalina\localhost\manager.xml
Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /IBS from URL
file:E:\Tomcat 5.0\webapps\IBS
Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /IBS1 from URL
file:E:\Tomcat 5.0\webapps\IBS1
Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:E:\Tomcat 5.0\webapps\jsp-examples
Mar 30, 2004 9:41:37 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL file:E:\Tomcat 5.0\webapps\servlets-examples
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /struts from URL
file:E:\Tomcat 5.0\webapps\struts
Mar 30, 2004 9:41:38 AM org.apache.catalina.startup.ContextConfig
applicationConfig
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/struts]
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TEST from URL
file:E:\Tomcat 5.0\webapps\TEST
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /test1 from URL
file:E:\Tomcat 5.0\webapps\test1
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:E:\Tomcat 5.0\webapps\tomcat-docs
Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:E:\Tomcat 5.0\webapps\webdav
Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /workwear from URL
file:E:\Tomcat 5.0\webapps\workwear
Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /workwear1 from URL
file:E:\Tomcat 

Re: Configuring Tomcat on different IP's

2004-03-29 Thread UmamaheswarKalluru




Doug,
I fogot to tell you that the first context has only one .jsp file. Here is
the content of that index.jsp file

%
response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
%

Thanks
Uma


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



Re: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Uma,

First don't take this wrong but I got to ask Why?

Someone with more knowledge will have to chime in to say if this can be
done. But if the goal is to send all request for http://www.mysite.com to
https://www.mysite.com then Tomcat can do this for you. And without two IPs.
For details see;
http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

If you have some special reason for the two IPs then, never mind

Doug
www.parsonstechnical.com


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 11:23 PM
Subject: Configuring Tomcat on different IP's






 Hi,
 My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses
 (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal IP
 addresses (192.68.xxx.xx1 and 192.68.xxx.xx2)

 I have registered one domain name (www.mysite.com). The entire site should
 work only on https://

 I need to configure this domain in such a way that the first IP address
 (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd to
 https home page of the site) and this IP address will accept only 80 port.

 The second IP address (202.200.xxx.xx2) will server only 443 requests. And
 the pages that are accessed in https should not be accessed by http
 protocol.

 I understand that I need to create 2 contexts and place the dummy jsp page
 in one context and the rest of the files in the 2nd context.

 But how do I configure that the first context should work only on 80 and
 the second context should work only on 443 port?

 Any help would be great.

 Thanks
 Uma


 -
 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: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru




Doug,
Thanks for the reply. It is just for security reasons out network
administrator has planned to do. So, I need to configure as such. I have
made the settings in the code to see if the user is using http or https and
block the user from using http.

But there should be some way of doing this, right?

Thank you,
Best Regards,
Uma



   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/29/2004 11:23   cc 
 AM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Uma,

First don't take this wrong but I got to ask Why?

Someone with more knowledge will have to chime in to say if this can be
done. But if the goal is to send all request for http://www.mysite.com to
https://www.mysite.com then Tomcat can do this for you. And without two
IPs.
For details see;
http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

If you have some special reason for the two IPs then, never mind

Doug
www.parsonstechnical.com


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 11:23 PM
Subject: Configuring Tomcat on different IP's






 Hi,
 My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses
 (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal IP
 addresses (192.68.xxx.xx1 and 192.68.xxx.xx2)

 I have registered one domain name (www.mysite.com). The entire site
should
 work only on https://

 I need to configure this domain in such a way that the first IP address
 (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd to
 https home page of the site) and this IP address will accept only 80
port.

 The second IP address (202.200.xxx.xx2) will server only 443 requests.
And
 the pages that are accessed in https should not be accessed by http
 protocol.

 I understand that I need to create 2 contexts and place the dummy jsp
page
 in one context and the rest of the files in the 2nd context.

 But how do I configure that the first context should work only on 80 and
 the second context should work only on 443 port?

 Any help would be great.

 Thanks
 Uma


 -
 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: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Uma,

I think this will do what you want.

For each connector defined, one for http and one for https use the address
attribute to specify the IP to listen on.

So in the https connector use address=192.68.xxx.xx1 and Tomcat will
listen on 192.68.xxx.xx1 for only https request.

On the http connector use address=192.68.xxx.xx2 and Tomcat will listen
only for http request on 192.68.xxx.xx2 .

Remember this affect all applications running on this instance of Tomcat.

See this for details:

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

Doug


- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 11:58 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 Thanks for the reply. It is just for security reasons out network
 administrator has planned to do. So, I need to configure as such. I have
 made the settings in the code to see if the user is using http or https
and
 block the user from using http.

 But there should be some way of doing this, right?

 Thank you,
 Best Regards,
 Uma




  Parsons
  Technical
  Services  To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/29/2004 11:23   cc
  AM


  Please respond to
Tomcat Users
List   Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on different
   rta.apache.org  IP's










 Uma,

 First don't take this wrong but I got to ask Why?

 Someone with more knowledge will have to chime in to say if this can be
 done. But if the goal is to send all request for http://www.mysite.com to
 https://www.mysite.com then Tomcat can do this for you. And without two
 IPs.
 For details see;
 http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

 If you have some special reason for the two IPs then, never mind

 Doug
 www.parsonstechnical.com


 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 28, 2004 11:23 PM
 Subject: Configuring Tomcat on different IP's


 
 
 
 
  Hi,
  My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses
  (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal
IP
  addresses (192.68.xxx.xx1 and 192.68.xxx.xx2)
 
  I have registered one domain name (www.mysite.com). The entire site
 should
  work only on https://
 
  I need to configure this domain in such a way that the first IP address
  (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd
to
  https home page of the site) and this IP address will accept only 80
 port.
 
  The second IP address (202.200.xxx.xx2) will server only 443 requests.
 And
  the pages that are accessed in https should not be accessed by http
  protocol.
 
  I understand that I need to create 2 contexts and place the dummy jsp
 page
  in one context and the rest of the files in the 2nd context.
 
  But how do I configure that the first context should work only on 80 and
  the second context should work only on 443 port?
 
  Any help would be great.
 
  Thanks
  Uma
 
 
  -
  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: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Clicked too fast. There is more to come...

- Original Message - 
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:19 AM
Subject: Re: Configuring Tomcat on different IP's


 Uma,

 I think this will do what you want.

 For each connector defined, one for http and one for https use the address
 attribute to specify the IP to listen on.

 So in the https connector use address=192.68.xxx.xx1 and Tomcat will
 listen on 192.68.xxx.xx1 for only https request.

 On the http connector use address=192.68.xxx.xx2 and Tomcat will listen
 only for http request on 192.68.xxx.xx2 .

 Remember this affect all applications running on this instance of Tomcat.

 See this for details:

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

 Doug


 - Original Message - 
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, March 28, 2004 11:58 PM
 Subject: Re: Configuring Tomcat on different IP's


 
 
 
 
  Doug,
  Thanks for the reply. It is just for security reasons out network
  administrator has planned to do. So, I need to configure as such. I have
  made the settings in the code to see if the user is using http or https
 and
  block the user from using http.
 
  But there should be some way of doing this, right?
 
  Thank you,
  Best Regards,
  Uma
 
 
 
 
   Parsons
   Technical
   Services
To
   parsonstechnical
   @earthlink.net   Tomcat Users List
 [EMAIL PROTECTED]
   03/29/2004 11:23
cc
   AM
 
 
   Please respond to
 Tomcat Users
 List
Subject
   [EMAIL PROTECTED] Re: Configuring Tomcat on
different
rta.apache.org  IP's
 
 
 
 
 
 
 
 
 
 
  Uma,
 
  First don't take this wrong but I got to ask Why?
 
  Someone with more knowledge will have to chime in to say if this can be
  done. But if the goal is to send all request for http://www.mysite.com
to
  https://www.mysite.com then Tomcat can do this for you. And without two
  IPs.
  For details see;
  http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2
 
  If you have some special reason for the two IPs then, never mind
 
  Doug
  www.parsonstechnical.com
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, March 28, 2004 11:23 PM
  Subject: Configuring Tomcat on different IP's
 
 
  
  
  
  
   Hi,
   My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses
   (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal
 IP
   addresses (192.68.xxx.xx1 and 192.68.xxx.xx2)
  
   I have registered one domain name (www.mysite.com). The entire site
  should
   work only on https://
  
   I need to configure this domain in such a way that the first IP
address
   (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd
 to
   https home page of the site) and this IP address will accept only 80
  port.
  
   The second IP address (202.200.xxx.xx2) will server only 443 requests.
  And
   the pages that are accessed in https should not be accessed by http
   protocol.
  
   I understand that I need to create 2 contexts and place the dummy jsp
  page
   in one context and the rest of the files in the 2nd context.
  
   But how do I configure that the first context should work only on 80
and
   the second context should work only on 443 port?
  
   Any help would be great.
  
   Thanks
   Uma
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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





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



Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru




Doug,
There will be only one site running in the server, so there wont be much
problems. I never created a connector. Can you help me out with this? Any
sample .xml file would be helpful.

Thank you,
Best Regards,
Uma


   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/29/2004 11:49   cc 
 AM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Uma,

I think this will do what you want.

For each connector defined, one for http and one for https use the address
attribute to specify the IP to listen on.

So in the https connector use address=192.68.xxx.xx1 and Tomcat will
listen on 192.68.xxx.xx1 for only https request.

On the http connector use address=192.68.xxx.xx2 and Tomcat will listen
only for http request on 192.68.xxx.xx2 .

Remember this affect all applications running on this instance of Tomcat.

See this for details:

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

Doug


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 11:58 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 Thanks for the reply. It is just for security reasons out network
 administrator has planned to do. So, I need to configure as such. I have
 made the settings in the code to see if the user is using http or https
and
 block the user from using http.

 But there should be some way of doing this, right?

 Thank you,
 Best Regards,
 Uma




  Parsons
  Technical
  Services
To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/29/2004 11:23
cc
  AM


  Please respond to
Tomcat Users
List
Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on
different
   rta.apache.org  IP's










 Uma,

 First don't take this wrong but I got to ask Why?

 Someone with more knowledge will have to chime in to say if this can be
 done. But if the goal is to send all request for http://www.mysite.com to
 https://www.mysite.com then Tomcat can do this for you. And without two
 IPs.
 For details see;
 http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2

 If you have some special reason for the two IPs then, never mind

 Doug
 www.parsonstechnical.com


 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 28, 2004 11:23 PM
 Subject: Configuring Tomcat on different IP's


 
 
 
 
  Hi,
  My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses
  (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal
IP
  addresses (192.68.xxx.xx1 and 192.68.xxx.xx2)
 
  I have registered one domain name (www.mysite.com). The entire site
 should
  work only on https://
 
  I need to configure this domain in such a way that the first IP address
  (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd
to
  https home page of the site) and this IP address will accept only 80
 port.
 
  The second IP address (202.200.xxx.xx2) will server only 443 requests.
 And
  the pages that are accessed in https should not be accessed by http
  protocol.
 
  I understand that I need to create 2 contexts and place the dummy jsp
 page
  in one context and the rest of the files in the 2nd context.
 
  But how do I configure

Re: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Okay to continue,

In the Server element you can declare two services. In one service you would
have the connector for the http and the context for your application. Note
unless someone can tell me how to control which service a context is
associate you will have to put your context in the server.xml.

In the other sevice you will declare the https and the other context.

Now for clarification I have NOT done this before and am basing it on what I
read from the config documentaion.

If you look in the server.xml file you will find the connector declaration
for the http. If you have NOT used the admin application, you will also find
the connector for the https but it will be commented out !---- .

To try this first make a copy of the server.xml.
Next copy and paste the service section from start tag service   to
finish tag /service and paste it right after the service finish tag.
In the second service tag you will need to change the name on the service
and maybe the engine.
Then comment out the http connector and uncomment the https connector.
Add the address=  to each connector.
Add the context for your applications in the appropriate service.

Restart tomcat and see what the logs say.

Again, I have never done this. But the configuration docs say:

Quote
The following components may be nested inside a Server element:

Service - One or more service element.
GlobalNamingResources - Configure the JNDI global resources for the server.
Unquote

So having two services is okay.

Now can someone tell me which service an application will be associated with
if you use the context.xml in the app?

Give it a try and read up on the docs at:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html

Good luck.

Doug

- Original Message - 
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:26 AM
Subject: Re: Configuring Tomcat on different IP's


 Clicked too fast. There is more to come...

 - Original Message - 
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 1:19 AM
 Subject: Re: Configuring Tomcat on different IP's


  Uma,
 
  I think this will do what you want.
 
  For each connector defined, one for http and one for https use the
address
  attribute to specify the IP to listen on.
 
  So in the https connector use address=192.68.xxx.xx1 and Tomcat will
  listen on 192.68.xxx.xx1 for only https request.
 
  On the http connector use address=192.68.xxx.xx2 and Tomcat will
listen
  only for http request on 192.68.xxx.xx2 .
 
  Remember this affect all applications running on this instance of
Tomcat.
 
  See this for details:
 
  http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
 
  Doug
 
 
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Sunday, March 28, 2004 11:58 PM
  Subject: Re: Configuring Tomcat on different IP's
 
 
  
  
  
  
   Doug,
   Thanks for the reply. It is just for security reasons out network
   administrator has planned to do. So, I need to configure as such. I
have
   made the settings in the code to see if the user is using http or
https
  and
   block the user from using http.
  
   But there should be some way of doing this, right?
  
   Thank you,
   Best Regards,
   Uma
  
  
  
  
Parsons
Technical
Services
 To
parsonstechnical
@earthlink.net   Tomcat Users List
  
[EMAIL PROTECTED]
03/29/2004 11:23
 cc
AM
  
  
Please respond to
  Tomcat Users
  List
 Subject
[EMAIL PROTECTED] Re: Configuring Tomcat on
 different
 rta.apache.org  IP's
  
  
  
  
  
  
  
  
  
  
   Uma,
  
   First don't take this wrong but I got to ask Why?
  
   Someone with more knowledge will have to chime in to say if this can
be
   done. But if the goal is to send all request for http://www.mysite.com
 to
   https://www.mysite.com then Tomcat can do this for you. And without
two
   IPs.
   For details see;
   http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2
  
   If you have some special reason for the two IPs then, never mind
  
   Doug
   www.parsonstechnical.com
  
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Sunday, March 28, 2004 11:23 PM
   Subject: Configuring Tomcat on different IP's
  
  
   
   
   
   
Hi,
My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses
(202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2
internal
  IP
addresses (192.68.xxx.xx1 and 192.68.xxx.xx2)
   
I have registered one domain name (www.mysite.com). The entire site
   should
work only on https://
   
I need to configure this domain

Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru




I am using Tomcat 5.0.19 and using context tag within the server.xml file
is not recommended. Do you still want me try with this one?

Thank you,
Best Regards,
Uma


   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/29/2004 12:31   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Okay to continue,

In the Server element you can declare two services. In one service you
would
have the connector for the http and the context for your application. Note
unless someone can tell me how to control which service a context is
associate you will have to put your context in the server.xml.

In the other sevice you will declare the https and the other context.

Now for clarification I have NOT done this before and am basing it on what
I
read from the config documentaion.

If you look in the server.xml file you will find the connector declaration
for the http. If you have NOT used the admin application, you will also
find
the connector for the https but it will be commented out !---- .

To try this first make a copy of the server.xml.
Next copy and paste the service section from start tag service   to
finish tag /service and paste it right after the service finish tag.
In the second service tag you will need to change the name on the service
and maybe the engine.
Then comment out the http connector and uncomment the https connector.
Add the address=  to each connector.
Add the context for your applications in the appropriate service.

Restart tomcat and see what the logs say.

Again, I have never done this. But the configuration docs say:

Quote
The following components may be nested inside a Server element:

Service - One or more service element.
GlobalNamingResources - Configure the JNDI global resources for the server.
Unquote

So having two services is okay.

Now can someone tell me which service an application will be associated
with
if you use the context.xml in the app?

Give it a try and read up on the docs at:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html

Good luck.

Doug

- Original Message -
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:26 AM
Subject: Re: Configuring Tomcat on different IP's


 Clicked too fast. There is more to come...

 - Original Message -
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 1:19 AM
 Subject: Re: Configuring Tomcat on different IP's


  Uma,
 
  I think this will do what you want.
 
  For each connector defined, one for http and one for https use the
address
  attribute to specify the IP to listen on.
 
  So in the https connector use address=192.68.xxx.xx1 and Tomcat will
  listen on 192.68.xxx.xx1 for only https request.
 
  On the http connector use address=192.68.xxx.xx2 and Tomcat will
listen
  only for http request on 192.68.xxx.xx2 .
 
  Remember this affect all applications running on this instance of
Tomcat.
 
  See this for details:
 
  http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
 
  Doug
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Sunday, March 28, 2004 11:58 PM
  Subject: Re: Configuring Tomcat on different IP's
 
 
  
  
  
  
   Doug,
   Thanks for the reply. It is just for security reasons out network
   administrator has planned to do. So, I need to configure as such. I

Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru




Doug,
Can you look at this server.xml file to see if I have done everything
correct?

(See attached file: server.xml)

Thank you,
Best Regards,
Uma


   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/29/2004 12:31   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Okay to continue,

In the Server element you can declare two services. In one service you
would
have the connector for the http and the context for your application. Note
unless someone can tell me how to control which service a context is
associate you will have to put your context in the server.xml.

In the other sevice you will declare the https and the other context.

Now for clarification I have NOT done this before and am basing it on what
I
read from the config documentaion.

If you look in the server.xml file you will find the connector declaration
for the http. If you have NOT used the admin application, you will also
find
the connector for the https but it will be commented out !---- .

To try this first make a copy of the server.xml.
Next copy and paste the service section from start tag service   to
finish tag /service and paste it right after the service finish tag.
In the second service tag you will need to change the name on the service
and maybe the engine.
Then comment out the http connector and uncomment the https connector.
Add the address=  to each connector.
Add the context for your applications in the appropriate service.

Restart tomcat and see what the logs say.

Again, I have never done this. But the configuration docs say:

Quote
The following components may be nested inside a Server element:

Service - One or more service element.
GlobalNamingResources - Configure the JNDI global resources for the server.
Unquote

So having two services is okay.

Now can someone tell me which service an application will be associated
with
if you use the context.xml in the app?

Give it a try and read up on the docs at:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html

Good luck.

Doug

- Original Message -
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:26 AM
Subject: Re: Configuring Tomcat on different IP's


 Clicked too fast. There is more to come...

 - Original Message -
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 1:19 AM
 Subject: Re: Configuring Tomcat on different IP's


  Uma,
 
  I think this will do what you want.
 
  For each connector defined, one for http and one for https use the
address
  attribute to specify the IP to listen on.
 
  So in the https connector use address=192.68.xxx.xx1 and Tomcat will
  listen on 192.68.xxx.xx1 for only https request.
 
  On the http connector use address=192.68.xxx.xx2 and Tomcat will
listen
  only for http request on 192.68.xxx.xx2 .
 
  Remember this affect all applications running on this instance of
Tomcat.
 
  See this for details:
 
  http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
 
  Doug
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Sunday, March 28, 2004 11:58 PM
  Subject: Re: Configuring Tomcat on different IP's
 
 
  
  
  
  
   Doug,
   Thanks for the reply. It is just for security reasons out network
   administrator has planned to do. So, I need to configure as such. I
have
   made

RE: Configuring tomcat logs

2004-03-01 Thread Shapira, Yoav

Hi,

Does anybody know if it is possible to configure tomcat
to have a RollingFileAppender (as in log4j)
for its log files ?
I had a no space left on device due to too many logs in $TOMCAT/logs

Tomcat's logs are rotated nightly as you've probably noticed by now.
The catalina.out log is simply a trap for System.out/System.err and is
not rotated regularly by tomcat.  You can set swallowOutput=true on your
contexts to direct System.out/System.err output from them to the context
logs which are rotated, or you can use a 3rd program like cronlog to
rotate your logs.

Tomcat does not support all the configuration options of log4j's
RollingFileAppenders.  It is the server administrator's responsibility
to ensure enough space for logs: this is true for any server-side
program.

Yoav Shapira



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


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



RE: Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
Thank's for the explanation.

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoyé : lundi 1 mars 2004 15:31
À : Tomcat Users List
Objet : RE: Configuring tomcat logs



Hi,

Does anybody know if it is possible to configure tomcat
to have a RollingFileAppender (as in log4j)
for its log files ?
I had a no space left on device due to too many logs in $TOMCAT/logs

Tomcat's logs are rotated nightly as you've probably noticed by now.
The catalina.out log is simply a trap for System.out/System.err and is
not rotated regularly by tomcat.  You can set swallowOutput=true on your
contexts to direct System.out/System.err output from them to the context
logs which are rotated, or you can use a 3rd program like cronlog to
rotate your logs.

Tomcat does not support all the configuration options of log4j's
RollingFileAppenders.  It is the server administrator's responsibility
to ensure enough space for logs: this is true for any server-side
program.

Yoav Shapira



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


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


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



RE: Configuring Tomcat connections

2004-01-15 Thread Christian Cryder
Ok, so I tried upgrading to Tomcat 5.0.16, and I am still seeing similar
results (slightly better).

I am hitting the standard HelloWorld servlet
(http://localhost:8080/servlets-examples/servlet/HelloWorldExample). When I
get over about 16-17 simultaneous connections, I start getting connect
expections.

I am using the default server configuration from server.xml (and once again,
changing these values does not seem to make any difference whatsoever):

Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

So how come I can't get more than 20 connections at a time? What gives???

Christian

(I am running on Win2K Pro, by the way; latest service packs, 512 MB Ram)
--
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today


 -Original Message-
 From: Christian Cryder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 15, 2004 2:32 PM
 To: Tomcat-User
 Subject: Configuring Tomcat connections


 Can someone offer some suggestions on configuring the number of
 connections
 Tomcat 4.1 will accept? I am using a stress tester to access the sample
 servlet (http://localhost:8080/examples/servlet/HelloWorldExample).
 Somewhere around 14-15 concurrent requests, I start seeing
 java.net.ConnectException: Connection refused: connect

 Looking in the Tomcat server.xml file, I see

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false /

 I assume this is the connector I'm going through (since my URL is
 referring
 to port 8080). According to the docs
 (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/webapp.html)
 acceptCount and maxProcessors should affect this behavior, but I am not
 seeing any changes when I adjust them upwards. Should I be looking
 elsewhere? Anyone have any suggestions?

 Thanks,
 Christian
 --
 Christian Cryder
 Internet Architect, ATMReports.com
 Project Chair, BarracudaMVC - http://barracudamvc.org
 --
 Coffee? I could quit anytime, just not today


 -
 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: configuring tomcat 4.1.29 with apache 2 using mod_jk2. HELP me please

2003-11-10 Thread Andrew Davis
All you need for apache and mod_jk2 is the LoadModule line. Then you 
need a workers2.properties file in your apache_home/conf directory. 
You'll need to search on google or the apache.org site for 
workers2.properties file parameters.

AD

Dionisio Ruiz de Zarate wrote:

Hello.
i want to configura my tomcat with apache for using mod_jk2 in my linux
suse 9.
i know how to configure to use mok_jk, but i must to change to mod_jk2 and
i don'tknow .how to make this.
for configuring to use the mod jk i configure

IfModule mod_jk.c
JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties
JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log
JkLogLevel error
JKMount /*.jsp ajp13
/IfModule
ad i have one w workers.properties file

but this configuration with mod_jk2 doesn't run.

Can anybody helps me for using the mod_jk2 with tomcat 4.1.29 and apache 2
in one linux SO?
can anybody helps me or send one samle configuration?

Thanks

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

--
Andrew Davis, Founder
SoCalLinuxSolutions
[EMAIL PROTECTED]
760-525-4689
SoCalLinuxSolutions.com
Linux Consultation  Integration Services
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Configuring tomcat web server

2003-11-06 Thread Shapira, Yoav

Howdy,

I would like to add a DNS that throw on a directory.

What does this mean?

Yoav Shapira



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


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



Re: Configuring Tomcat

2003-10-30 Thread Adam Hardy
On 10/29/2003 10:57 PM Balan Srinivasan wrote:
Hi

I'm in the process of installing/configuring Tomcat on a Linux machine and I'm having troubles doing all this.

Would like to know if there is a step-by-step instruction available with you guys with 
reference to the configuration of
a Tomcat server. Would be nice if youhave it with reference to an Oracle database.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt



Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Shapira, Yoav

Howdy,
RemoteAddressFilter, RTFM.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hari Krishna ( Associate ) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 9:59 AM
To: Tomcat Users List
Subject: Configuring tomcat to serve request from specific IP addresses

Hi,

Is there any way to configure tomcat to enable its services (HTTP
request/responses ) to specific IP address(s) only ? If yes, Can these
configurations be made dynamically so that without restarting the
tomcat
changes should be active? I am using Tomcat 4.0.1 and is a standalone.
I
checked the tags and thier attributes of server.xml but couldn't find a
proper solution since I am not sure about the dynamic parameters.Can
any
one
help me out in this or suggest some pointers to go ahead?

regards
Hari


DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses
and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received
this
message by mistake please notify the sender by return  e-mail and
delete
this message from your system. Any unauthorized use or dissemination of
this message in whole or in part is strictly prohibited.  Please note
that
e-mails are susceptible to change and MindTree shall not be liable for
any
improper, untimely or incomplete transmission.

-
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: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#restrict

In 4.1.X, I think this can be configured on the fly via the admin webapp. But 
4.0.X will need a restart.

-Tim

Hari Krishna ( Associate ) wrote:

Hi,

Is there any way to configure tomcat to enable its services (HTTP
request/responses ) to specific IP address(s) only ? If yes, Can these
configurations be made dynamically so that without restarting the tomcat
changes should be active? I am using Tomcat 4.0.1 and is a standalone. I
checked the tags and thier attributes of server.xml but couldn't find a
proper solution since I am not sure about the dynamic parameters.Can any one
help me out in this or suggest some pointers to go ahead?
 


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


Re: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Christopher Schultz
Is there any way to configure tomcat to enable its services (HTTP
request/responses ) to specific IP address(s) only?
I'm sure you can do something like Apache's:

Deny From All
Allow From ip address
... but that would require a restart.

Programmatically, you can do this by poking the allowed ip address 
into the application scope and then checking the ip address of each 
request against that address; reject those that don't match. (Please see 
the past 24 hours of discussions about IP blocking, AOL/corporate users, 
etc.).

Just remember that you might want to have the ip changer servlet be 
unprotected, or your could lock yourself out very easily :)

-chris

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


RE: Configuring Tomcat to NOT run as Root

2003-08-26 Thread Purvis Robert
But if you don't run as root then you won't be able to use ports 80 or 443
because only root can grab those. Maybe this isn't a problem though, if you
are using 8080 and/or 8443.

Rob

-Original Message-
From: Scott W Ricketts [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 12:59
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to NOT run as Root


I am helping set up a Citrix NFuse server running on Solaris, using Tomcat 
and Apache 1.3.  The default install for NFuse 1.7 does not fire up 
Apache, rather it calls Tomcat to start alone.  The default also has this 
running as root, something I am very uncomfortable with.  I have Googled 
and searched archives, and whenever mentioned, it sounds rather trivial 
but I cannot find where in my config files to set this to run as 'nobody'.

I am totally clueless with Tomcat, can anyone help?





This email has been scanned for all viruses by the MessageLabs SkyScan
service.___

Note:  Please update your email address for this user to reflect the new
MeadWestvaco Corporation.  MeadWestvaco employee email addresses are in the
format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco Corporation
or subsidiary companies, which may be confidential, privileged or otherwise
protected from disclosure.  The information is intended to be used solely by
the recipient(s) named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this transmission or
its contents is prohibited.  If you have received this transmission in
error, please notify MeadWestvaco immediately at
[EMAIL PROTECTED]
___
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



Re: Configuring Tomcat to NOT run as Root

2003-08-26 Thread John Turner
Tomcat runs as whatever user executes the startup scripts in 
$CATALINA_HOME/bin.

If that user is root, then Tomcat runs as root.  If that user is 
nobody, then Tomcat's effective user is nobody.  There's no 
(current) facility in Tomcat to switch UID as Apache does after startup.

As root, something like:

su - SOMEUSER -c $CATALINA_HOME/bin/startup.sh

will run Tomcat as the user defined by SOMEUSER.

John

Scott W Ricketts wrote:

I am helping set up a Citrix NFuse server running on Solaris, using Tomcat 
and Apache 1.3.  The default install for NFuse 1.7 does not fire up 
Apache, rather it calls Tomcat to start alone.  The default also has this 
running as root, something I am very uncomfortable with.  I have Googled 
and searched archives, and whenever mentioned, it sounds rather trivial 
but I cannot find where in my config files to set this to run as 'nobody'.

I am totally clueless with Tomcat, can anyone help?




This email has been scanned for all viruses by the MessageLabs SkyScan
service.___
Note:  Please update your email address for this user to reflect the
new MeadWestvaco Corporation.  MeadWestvaco employee email addresses
are in the format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure.  The
information is intended to be used solely by the recipient(s)
named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited.  If you have
received this transmission in error, please notify MeadWestvaco
immediately at [EMAIL PROTECTED]
___


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


Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
I have tried the ENV values  suggested in

http://jakarta.apache.org/tomcat/faq/misc.html#compile 


i.e.:
_RUNJAVA=%JAVA_HOME%\bin\java
_RUNJAVAW=%JAVA_HOME%\bin\javaw
_RUNJDB=%JAVA_HOME%\bin\jdb
_RUNJAVAC=%JAVA_HOME%\bin\javac
but I'm still getting the HTTP Status 500 Error message:

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
OK so what am I still doing wrong?
How know if everything is OK? Is it enough to just do go to 
http://localhost:8080/, even when I have no servlets?

Or could I just try an older version of Tomcat?

Thanks for helping the novice

- Olumide

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


Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
I have tried the ENV values  suggested in

http://jakarta.apache.org/tomcat/faq/misc.html#compile

Here is the full error log - I hope it helps your diagnosis.

Thanks

- Olumde

**  ERROR *

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
   at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
   at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:536)



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


RE: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Shapira, Yoav

Howdy,
Is this the full trace: there's no root cause??

Take the .java file for your .jsp from tomcat's work directory and try
to compile it yourself.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Olumide [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:30 AM
To: Tomcat Users List
Subject: Re: Configuring Tomcat (NEWBIE)

 I have tried the ENV values  suggested in

 http://jakarta.apache.org/tomcat/faq/misc.html#compile


Here is the full error log - I hope it helps your diagnosis.

Thanks

- Olumde


**  ERROR *

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.

at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
andl
er.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
ava:
293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:
473)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
15)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
0)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
2)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:5
94)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
ection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
65)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
va:619)
at java.lang.Thread.run(Thread.java:536)




-
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

Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
Sweet success at last !!!  :-)

I have tried the ENV values  suggested in

http://jakarta.apache.org/tomcat/faq/misc.html#compile 


i.e.:
_RUNJAVA=%JAVA_HOME%\bin\java
_RUNJAVAW=%JAVA_HOME%\bin\javaw
_RUNJDB=%JAVA_HOME%\bin\jdb
_RUNJAVAC=%JAVA_HOME%\bin\javac 


After making the ENV changes, I reinstalled Tomcat and then it worked!

HOORAY!

- Olumide



but I'm still getting the HTTP Status 500 Error message:

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
OK so what am I still doing wrong?
How know if everything is OK? Is it enough to just do go to 
http://localhost:8080/, even when I have no servlets?

Or could I just try an older version of Tomcat?

Thanks for helping the novice

- Olumide



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


RE: Configuring Tomcat (NEWBIE)

2003-07-22 Thread Shapira, Yoav

Howy,
It's trying to load the page you requested, but failing, because of a
compilation error.  It looks like you're trying to run a JSP, not a
servlet.  Apache is correctly forwarding to tomcat, which attempts to
compile the JSP in order to serve it, but fails.

Post the JSP source code for more help.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Olumide [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat (NEWBIE)

Hello

I'm sure this is a FAQ and I've tried to retrieve the list of FAQ's
without success, so please bear with me.

I have installed the Apache HTTP server (its up and running) and Tomcat
(at least I can see a tomcat.exe is one of the currently running
processes on my Windows 2000 machine).

What more, when I try accessing the server, I get the  HTTP Status 500
error:

type: Exception report
message
description: The server encountered an internal error () that prevented
it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP An
error occurred at line: -1 in the jsp file: null Generated servlet
error: [javac] Since fork is true, ignoring compiler setting. [javac]
Compiling 1 source file [javac] Since fork is true, ignoring compiler
setting. at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
andl
er.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
ava:
293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
..
..
..

I can also see a blue bar below in the browser window in which is
written Apache Tomcat/4.1.24. So that  probably means tomcat is up
and
running. Ok, so why am I not getting the dynamic HTML pages I expected?
I am trying to run the Hello World sample servlet
(http://www.servlets.com/jservlet2/examples/ch02/HelloWorld.java) in
Jason Hunter's book, Java Servlet Programming. I have successfully
complied the HelloWorld source code and placed the *.class file in
the
directory: server_root/webapps/ROOT/WEB-INF/classes.

Thanks for helping the novice.


- Olumide


-
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: Configuring Tomcat (NEWBIE)

2003-07-22 Thread John Turner
Olumide wrote:

Hello

I'm sure this is a FAQ and I've tried to retrieve the list of FAQ's 
without success, so please bear with me.
I find this hard to believe.  You're saying that you cannot view
http://jakarta.apache.org/tomcat/faq ?
I am trying to run the Hello World sample servlet 
(http://www.servlets.com/jservlet2/examples/ch02/HelloWorld.java) in 
Jason Hunter's book, Java Servlet Programming. I have successfully 
complied the HelloWorld source code and placed the *.class file in the 
directory: server_root/webapps/ROOT/WEB-INF/classes.
Most servlet books are out of date.  They were written when Tomcat had 
something called the Invoker servlet enabled by default.  This is no 
longer the case, because the Invoker servlet is a security risk, so in 
later versions of Tomcat (released after the book was published) the 
Invoker is disabled.  Thus, the example from the book will not work.

See:

http://jakarta.apache.org/tomcat/faq/misc.html#compile
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
http://jakarta.apache.org/tomcat/faq/misc.html#evil
Also, as a novice, you are setting yourself up for some potential grief 
by using Apache.  There is no requirement to use Apache to learn JSP and 
servlet development.  You will make things much easier on yourself if 
you ignore Apache for now and simply use Tomcat.  Tomcat is perfectly 
capable of handling all of your needs, both as a normal web server and 
as a servlet container for JSP and servlet development.

You can always add Apache into your environment later should you feel 
the need to do so.

John



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


Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread Olumide

  You're saying that you cannot view
http://jakarta.apache.org/tomcat/faq ? 


I tried via e-mail to: [EMAIL PROTECTED], but got a 
back a message saying : FAQ - Frequently asked questions of the 
[EMAIL PROTECTED] list. None available yet. Thansks however 
for the new links.

Most servlet books are out of date.  They were written when Tomcat had 
something called the Invoker servlet enabled by default.  This is no 
longer the case, because the Invoker servlet is a security risk, so in 
later versions of Tomcat (released after the book was published) the 
Invoker is disabled.  Thus, the example from the book will not work.

See:

http://jakarta.apache.org/tomcat/faq/misc.html#compile
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
http://jakarta.apache.org/tomcat/faq/misc.html#evil 


Thanks again.

Also, as a novice, you are setting yourself up for some potential 
grief by using Apache. 
Ok I will stick to tomcat. Does this mean I should stop the Apache server?

There is no requirement to use Apache to learn JSP and servlet 
development.  You will make things much easier on yourself if you 
ignore Apache for now and simply use Tomcat.  Tomcat is perfectly 
capable of handling all of your needs, both as a normal web server and 
as a servlet container for JSP and servlet development. 
Er ... whats all the talk ablout JSP? All I'm trying to develop is a 
servlet. How closely are servlets related to JSP? I'm sorry to ask. Its 
only because I would like to know.

Thanks for the link 
http://jakarta.apache.org/tomcat/faq/misc.html#compile. I will try the 
environment issue.

- Olumide

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


Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread John Turner
Olumide wrote:

Also, as a novice, you are setting yourself up for some potential 
grief by using Apache. 


Ok I will stick to tomcat. Does this mean I should stop the Apache server?
Sure.  Then, change Tomcat's server.xml file so that the HTTP Connector 
configured for port 8080 is configured for port 80.  Then restart 
Tomcat.  You'll have to make sure that neither Apache nor anything else 
starts up on port 80 that would conflict with Tomcat.


There is no requirement to use Apache to learn JSP and servlet 
development.  You will make things much easier on yourself if you 
ignore Apache for now and simply use Tomcat.  Tomcat is perfectly 
capable of handling all of your needs, both as a normal web server and 
as a servlet container for JSP and servlet development. 


Er ... whats all the talk ablout JSP? All I'm trying to develop is a 
servlet. How closely are servlets related to JSP? I'm sorry to ask. Its 
only because I would like to know.
JSP are compiled into servlets.  JSP are optional, but you need 
something like Tomcat to deal with them.

John



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


Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread epyonne
  Also, as a novice, you are setting yourself up for some potential
  grief by using Apache.

 Ok I will stick to tomcat. Does this mean I should stop the Apache server?

  There is no requirement to use Apache to learn JSP and servlet
  development.  You will make things much easier on yourself if you
  ignore Apache for now and simply use Tomcat.  Tomcat is perfectly
  capable of handling all of your needs, both as a normal web server and
  as a servlet container for JSP and servlet development.

 Er ... whats all the talk ablout JSP? All I'm trying to develop is a
 servlet. How closely are servlets related to JSP? I'm sorry to ask. Its
 only because I would like to know.


Tomcat is a servlet container.  You can run servlet on Tomcat or you can run
JSP which will be translated to servlet on Tomcat as well.  Anyway, if all
you do are servlets, you do not need the application server.  It will save
yourself a lot of grief.

Hope this helps.

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



RE: Configuring Tomcat for multiple applications/users

2003-04-02 Thread Shapira, Yoav

Howdy,
As Filip said, keep it completely separate: three separate installations
(of different versions if you'd like).  For each installation, the
listening port will be different (80, 8088,  in your example), as
well as the server shutdown port.  For each installation, CATALINA_BASE
will equal CATALINA_HOME.  You can have them use the same of different
JAVA_HOME settings if you'd like.

And make sure your deployment scripts (or whatever deployment procedure
you use) deploys to the correct instance.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: dwightHugget [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:37 PM
To: Tomcat Users List
Subject: Configuring Tomcat for multiple applications/users

Can anyone point me to how to get this type of setup.
I want to have multiple instance of tomcat running on the same machine
under
different ports, say 80, 8080,  .
Would I achieve this if I setup an env variable called CATALINA_BASE as
described in the RUNNING.txt file ?

I have only one server box and want to have a production, development,
and
experiment capability.

Finally, how can I run 2 different release of Tomcat ?
Say, I want to run 4.1.24 and 5 on the same machine.

thanks
--
Dwight Hugget


-
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: Configuring Tomcat for multiple applications/users

2003-04-01 Thread Filip Hanik
just install several version of tomcat like

c:\tomcat\jakarta-tomcat-5
c:\tomcat\jakarta-tomcat-4.24.1-A
c:\tomcat\jakarta-tomcat-4.24.1-B

and then under each conf/ directory, modify the port numbers in the
server.xml
Filip

 -Original Message-
 From: dwightHugget [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 8:37 PM
 To: Tomcat Users List
 Subject: Configuring Tomcat for multiple applications/users


 Can anyone point me to how to get this type of setup.
 I want to have multiple instance of tomcat running on the same
 machine under
 different ports, say 80, 8080,  .
 Would I achieve this if I setup an env variable called CATALINA_BASE as
 described in the RUNNING.txt file ?

 I have only one server box and want to have a production,
 development, and
 experiment capability.

 Finally, how can I run 2 different release of Tomcat ?
 Say, I want to run 4.1.24 and 5 on the same machine.

 thanks
 --
 Dwight Hugget


 -
 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: Configuring Tomcat to use a JDBC Realm

2003-03-29 Thread Dean A. Hoover
Isn't mysql a client program? If so, I can connect with
the user/pw.
Tarun Ramakrishna Elankath wrote:

Seems like an access problem to me.
Dean, did you try connecting to the server from a mysql client with the
given username/password to check whether you are able to connect ?


On Sat, 2003-03-29 at 07:50, Dean A. Hoover wrote:
 

Can you be a little more specific? I'm not a mysql expert.
   



-
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: Configuring Tomcat to use a JDBC Realm

2003-03-28 Thread Galbayar Dorjgotov
check mysql port

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to use a JDBC Realm


I am attempting to use JDBC Realm as described in the Apress
book by James Goodwill. My os is RH 8.0. I'm using MySQL
4.0.12 and Connector/J 3.06. I am using Tomcat 4.0.6. I set
up a tomcatusers database and a test user as per the book.

I dropped mysql-connector-java-3.0.6-stable-bin.jar into
$TOMCAT_HOME/common/lib

I modified the server.xml file as follows:
  !-- Realm className=org.apache.catalina.realm.MemoryRealm /
  --

  !-- Replace the above Realm with one of the following to get a Realm
   stored in a database and accessed via JDBC --

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=com.mysql.jdbc.Driver

connectionURL=jdbc:mysql://localhost/tomcatusers?user=test;password=test
  userTable=users userNameCol=user_name
userCredCol=user_pass
  userRoleTable=user_roles roleNameCol=role_name


I then attempt to go to http://localhost:8080/apress/login.jsp in my
mozilla browser. Nothing happens. I go to check for a clue in the
logs. This is what I get:

- Root Cause -
java.sql.SQLException: Server configuration denies access to data source
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:392)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511)
at com.mysql.jdbc.Connection.init(Connection.java:485)
at com.mysql.jdbc.Driver.connect(Driver.java:341)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Anyone got any ideas how I can fix this?

Thanks.

Dean Hoover






-
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: Configuring Tomcat to use a JDBC Realm

2003-03-28 Thread Dean A. Hoover
Can you be a little more specific? I'm not a mysql expert.

Galbayar Dorjgotov wrote:

check mysql port

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to use a JDBC Realm
I am attempting to use JDBC Realm as described in the Apress
book by James Goodwill. My os is RH 8.0. I'm using MySQL
4.0.12 and Connector/J 3.06. I am using Tomcat 4.0.6. I set
up a tomcatusers database and a test user as per the book.
I dropped mysql-connector-java-3.0.6-stable-bin.jar into
$TOMCAT_HOME/common/lib
I modified the server.xml file as follows:
 !-- Realm className=org.apache.catalina.realm.MemoryRealm /
 --
 !-- Replace the above Realm with one of the following to get a Realm
  stored in a database and accessed via JDBC --
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost/tomcatusers?user=test;password=test
 userTable=users userNameCol=user_name
userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name
I then attempt to go to http://localhost:8080/apress/login.jsp in my
mozilla browser. Nothing happens. I go to check for a clue in the
logs. This is what I get:
- Root Cause -
java.sql.SQLException: Server configuration denies access to data source
   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:392)
   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511)
   at com.mysql.jdbc.Connection.init(Connection.java:485)
   at com.mysql.jdbc.Driver.connect(Driver.java:341)
   at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Anyone got any ideas how I can fix this?

Thanks.

Dean Hoover





-
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: Configuring Tomcat to use a JDBC Realm

2003-03-28 Thread Tarun Ramakrishna Elankath
Seems like an access problem to me.
Dean, did you try connecting to the server from a mysql client with the
given username/password to check whether you are able to connect ?



On Sat, 2003-03-29 at 07:50, Dean A. Hoover wrote:
 Can you be a little more specific? I'm not a mysql expert.



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



RE: Configuring Tomcat with IIS Web Server

2003-03-04 Thread Varley, Roger
 
 I'm working on Configuring Tomcat with IIS Web Server
 http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfro
 m O'Reilly
 Net. I think that I have followed everything exactly. I get a 
 404. tomcat is
 the first and only ISAPI redirector in my list, it has a 
 green arrow. I've
 triple-checked my conf files.
 

Who/What is issuing the 404? IIS or Tomcat? Check the IIS logs.

Regards
Roger

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



RE: Configuring Tomcat with IIS Web Server

2003-03-04 Thread Jay Lee
Here is how you can find the problems:
1) try http://localhost:8080/examples to see if the tomcat is on.
2) try http://localhost to test your IIS.  You should have a default page
under wwwroot.
3) If both working, which means your configuration on following was wrong.
Generally, it goes to registery software\Apache Software Foundation\Jakarta
Isapi Redirector\1.0\  it will check your worker_file and your
worder_mount_file.  make sure the configurations are set right.  Meanwhile
change log_level to debug.  After you reboot machine, you can find if
your isapi_redirector.dll is working by checking the log file
iis_redirector.log.

this should help and good luck.
jay

-Original Message-
From: Brewer, Michael [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 7:03 AM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat with IIS Web Server


I'm working on Configuring Tomcat with IIS Web Server
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfrom O'Reilly
Net. I think that I have followed everything exactly. I get a 404. tomcat is
the first and only ISAPI redirector in my list, it has a green arrow. I've
triple-checked my conf files.

Anyone?

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


RE: Configuring Tomcat with IIS Web Server

2003-03-04 Thread Mark Eggers
Michael,

There are three other issues that you need to be
concerned about with IIS.

1. Make sure you set up virtual directories to point
to the %TOMCAT_HOME%\webapps\appname for each Tomcat
application you wish to serve via IIS.

2. Make sure your System account (which runs IIS) has
read access to those directories.

3. In the Default Web Site--Properties--Documents
add both index.jsp and index.html to the list of
default documents.

HTH

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Configuring Tomcat 4.1.18 to handle 401 http errors

2003-02-26 Thread Oliver Schoenwald
Hi Yoav,

if I add this to the deployment description the my401ProcessingServlet 
would be called after
an error-code 401 occured. But as this servlet is part of the container, 
too, it won't be able to
send the same error 401 to the client - the container would catch this 
error and call
my401ProcessingServlet again and again. And this error is necessary 
because only then the
browser knows that he has to repeat the authentication.

(What we *want* to do is to send the 401 error back to the client so 
that the browser is forced
to repeat the authentication (popping up the login window) to allow the 
user to change his
actual login. The joke is, that this actually worked under Tomcat 3.2 
and with the former
Servlet API 2.2, but not under Tomcat 4.1.18 and the Servlet API 2.3.).

In other words: it seems that I can *not* do whatever I want under the 
new Servlet API 2.3,
because the new tomcat engine masks all errors = 400 to a 
self-constructed html-page.
Only during the authentication-phase of the realm the errors like 401 
are send to the client
normally. I still hope that there is a standard-conform way for servlets 
to force the container to
send http errors to the client - or at least to inform the 
authentication realm that the current
authentication should be invalidated and repeated (without automatically 
accepting the already
used authentication data).

Oliver Schönwald
FernUniversität Hagen - LVU Entwicklungsgruppe
University Hagen  - Education and Knowledge Space: Virtual University, 
Development Task Force

Shapira, Yoav wrote:

Howdy,
How about adding this to your web.xml:
error-page
 error-code401/error-code
 location/my401ProcessingServlet/location
/error-page
Then do whatever you want in the servlet you map to the /my401ProcessingServlet url-pattern.

Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Oliver Schoenwald [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:18 AM
To: Tomcat Users List
Subject: Configuring Tomcat 4.1.18 to handle 401 http errors
Good morning!

some days ago I already asked a question regarding this context, but I
had some time to
dive a bit into the Servlet API 2.3 Specification. So far, it seems that
the specification states
that the container, not the servlet, is the layer attached to the
client. And the container,
not the servlet, controls, which and how any http errors created by a
servlet within the container
are handled, mapped and sent back to the client.
Some digging in the catalina source code retrieved that
in HttpResponseBase.java there is a method finishResponse where the
handling of
every HTTP error = 400 is hard-coded to be transformed into a simple,
valid html-page with
a plainly written error summary.
However, we need the http error 401 to be send 'as is' to the client. It
doesn't have to be directly,
but the container should not catch this error and create an html page
out of it.
Does someone know how I can achieve this? Or has the Servlet API changed
the communication
protocol so far that this is just no longer possible without violating
the standard?
In that case, how SHOULD a servlet invalidate the current authentication
so that the currently
buffered authentication data (buffered by the client/browser) are no
longer accepted and the browser
is forced to ask the user again for authentication?


Thank you in advance,

Oliver Schönwald



-
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]
 

--
Oliver Schönwald, Diplom-Informatiker
Entwicklungsgruppe Lernraum Virtuelle Universität - FernUniversität Hagen
Universitätsstr.21/AVZ - 58084 Hagen
Fon: +49 2331 987 1721 - Fax: +49 2331 987 



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


RE: Configuring Tomcat 4.1.18 to handle 401 http errors

2003-02-25 Thread Shapira, Yoav

Howdy,
How about adding this to your web.xml:

error-page
  error-code401/error-code
  location/my401ProcessingServlet/location
/error-page

Then do whatever you want in the servlet you map to the /my401ProcessingServlet 
url-pattern.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Oliver Schoenwald [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:18 AM
To: Tomcat Users List
Subject: Configuring Tomcat 4.1.18 to handle 401 http errors

  Good morning!

some days ago I already asked a question regarding this context, but I
had some time to
dive a bit into the Servlet API 2.3 Specification. So far, it seems that
the specification states
that the container, not the servlet, is the layer attached to the
client. And the container,
not the servlet, controls, which and how any http errors created by a
servlet within the container
are handled, mapped and sent back to the client.

Some digging in the catalina source code retrieved that
in HttpResponseBase.java there is a method finishResponse where the
handling of
every HTTP error = 400 is hard-coded to be transformed into a simple,
valid html-page with
a plainly written error summary.

However, we need the http error 401 to be send 'as is' to the client. It
doesn't have to be directly,
but the container should not catch this error and create an html page
out of it.

Does someone know how I can achieve this? Or has the Servlet API changed
the communication
protocol so far that this is just no longer possible without violating
the standard?
In that case, how SHOULD a servlet invalidate the current authentication
so that the currently
buffered authentication data (buffered by the client/browser) are no
longer accepted and the browser
is forced to ask the user again for authentication?




Thank you in advance,


Oliver Schönwald



-
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: Configuring TOMCAT to work behind a proxy

2003-02-12 Thread Arijit Mukherjee
Hi

Since posting the original message (pls refer to the mail below), I have
scanned the whole mailing list archive, searched google - and used up
all suggestions that I could find - like defining CATALINA_OPTS,
modifying server.xml etc etc - nothing worked. The weird bit is, when I
call a remote web service from another small web service (on Axis 1.0)
and deployed on Tomcat 4.1.18, I do not even need to set up the proxies
etc in configuration files or environment variables - simply a couple
System.setProperty() statements in the web service code does the trick
and accesses the remote web service.

But the same piece of code doesn't work inside an OGSA service. I am
always getting an exception - mostly it is connection timed out - in
couple of cases I have seen network unreachable. Following is the
exception I get:

48078 [Thread-55] INFO  org.apache.axis.enterprise  - Mapping Exception
to AxisFault AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: java.net.ConnectException: Connection timed out: connect
 faultActor: null
 faultDetail:
stackTrace: java.net.ConnectException: Connection timed out:
connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.lt;initgt;(Socket.java:290)
at java.net.Socket.lt;initgt;(Socket.java:118)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocket
Factory.java:131)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:158)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:115)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
at org.apache.axis.client.Call.invoke(Call.java:2365)
at org.apache.axis.client.Call.invoke(Call.java:2062)
at org.apache.axis.client.Call.invoke(Call.java:1986)
at org.apache.axis.client.Call.invoke(Call.java:1509)
at
uk.org.ogsadai.dqp.gqes.operators.OperationCallOp.testFunction(Unknown
Source)

Can anyone help please?

Regards
Arijit

  -Original Message-
 From: Arijit Mukherjee  
 Sent: 11 February 2003 15:19
 To:   '[EMAIL PROTECTED]'
 Subject:  Configuring TOMCAT to work behind a proxy
 
 Hi
 
 I am trying to write some Grid Services (OGSA) which will run on
 TOMCAT (version 4.18 - windows 2000) and access external web services
 (over the internet). I am behind a proxy server. A simple java client
 can access the web services when I set the system properties specific
 for my proxy host and port - but setting the same inside the OGSA
 service doesn't work. I searched the internet about help in running
 Tomcat behind a proxy - and one solution was to define CATALINA_OPTS
 as -DproxyHost=host -DproxyPort=port - tried it - but the same
 problem - my request to connect to the web service times out. If I
 change this option to -Dhttp.proxyHost and -Dhttp.proxyPort then there
 are whole lot of errors when my OGSA services are reading namespaces
 from the schema or wsdl files - seems like it is trying to get
 everything onto the proxy server when I set -Dhttp.proxyHost and
 -Dhttp.proxyPort.
 
 Actually, I need to configure TOMCAT in such a way that it recognizes
 the applications running on localhost and those that are on a remote
 host. For remote host, it would go through the proxy, for localhost -
 it wouldn't. It would be even better if it doesn't go to the proxy for
 local addresses - like within the same network. I tries to do some
 fiddling with the server.xml file - but couldn't make it work.
 
 How is this possible?
 
 Regards
 Arijit
 
 And when the night is cloudy,
 There is still a light that shines on me,
 Shine on until tomorrow, let it be. 
 
 John Lennon/Paul McCartney
 



Re: Configuring Tomcat 4.1 with iPlanet iWS 6.0

2003-02-07 Thread Mark Strecker
I am going through this process with v4.1.8 and you have two choices : 
in process and out of process connections. You can use the jk2 (ajp13 
protocol, since you are using Tomcat 4.x) native connector to run 
iplanet and connect to Tomcat via TCP or you can use the JNI connector 
for in process. You can find the connectors from the downloads page and 
pretty good instructions on compiling it. If you are on nt, it will be 
quite easy.
Go here to learn about jk, iplanet specific config and workers :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

Mark

Chris Gow wrote:

Hi:

I've just downloaded and setup Tomcat 4.1 and have it working in its 
default configuration.  I am now trying to get Tomcat working with 
iPlanet iWS.  I'm a little (ok a lot) confused about how to go about 
configuring this.  Do I use jk2? If so, where do I get the binary 
from? Is there a binary anywhere?

tia

-- chris




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





RE: Configuring tomcat with apache - webapp - linux server

2003-01-05 Thread Denise Mangano
Vincent,

Not sure which connector you are looking to use, but go here:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

I checked and you'll find the binaries for linux for the latest version of
mod_jk, and v2.0.1 of mod_jk2.

HTH
Denise

-Original Message-
From: Vincent Geneste
To: [EMAIL PROTECTED]
Sent: 1/5/2003 12:51 PM
Subject: Configuring tomcat with apache - webapp - linux server

Hi,

I would like connect tomcat 4.1.18 with apache 2.x under linux.
I search the connector binarie file (not RPM) on the jakarta ftp site 
but the directories are empty (binary or RPM)

Is someone able to help me ?

Thank's for your help and sorry for my poor english.

Vincent.


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

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




RE: configuring tomcat not to generate java source

2002-12-04 Thread Manavendra Gupta
so what do you think should happen to the jsp pages if tomcat does not
generate code?

-Original Message-
From: Ronen Shenkar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 1:12 PM
To: [EMAIL PROTECTED]
Subject: configuring tomcat not to generate java source


I wonder if there is a way to configure tomcat 3.2 not to generate the java
code, I suppose that it should make some performance improvement.
Thanks, ronen



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


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




RE: Configuring Tomcat 4.0.3

2002-11-01 Thread Turner, John

For more info on how Tomcat 4 finds classes, you need to read the
ClassLoader HOWTO:

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

And perhaps the Application Developer's Guide:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

John

 -Original Message-
 From: Kaustuv Sharma [mailto:skaustuva;neline.com]
 Sent: Friday, November 01, 2002 2:49 AM
 To: [EMAIL PROTECTED]
 Subject: Configuring Tomcat 4.0.3
 
 
 
 Hi,
 
 I have an existing system which  consists of JSP files and 
 jars running on Tomcat 3.2.1 on Linux 6.1 platform. I have to 
 upgrade it to Tomcat 4.0.3 on Red Hat Linux 8.0. However, now 
 I am having problems in loading the jar files. Before the 
 jars were under a different location than the Tomcat location 
 as also the JSP files. and i used to simply run a script to 
 load the jars on to the classpath, after i start the Tomcat 
 server. However, now in the new system I am not being able to 
 load the jars in the classpath. Tomcat simple won't find the 
 jar files. How do I point Tomcat4.4  to the jar location? I 
 would also like to mention here that I am being able to load 
 the JSP files. In the context path, under server.xml, i am 
 pointing the docbase to my application path. Is there any 
 option to point to my classes also here? 
 I am using a similar context path as below:
 
 Host name=myapplication.com
 Context path=
 debug=0
 docbase=/home/opt/myapplication/myfiles
 crossContext=true
 reloadable=true
 trusted=false
 
 
 Also I am not using WARs
 
 If somebody can suggest any solution it will surely be a great help.
 
 Thanking you in advance,
 
 Regards,
 
 Kaustuv Sharma
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: configuring tomcat 4.1.12 creating mod_jk.conf-auto

2002-10-28 Thread Hamilton, Andrew
In server.xml use:

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=false/

inside either a host definition or a context definition.  Inside a host
definition you will get a virtual host block, inside a context you will get
the Jk* configuration parameters.  For me the configuration is written in
$TOMCAT_HOME/conf/auto/mod_jk.conf.

Regards,

Drew


-Original Message-
From: [EMAIL PROTECTED] [mailto:Rainer.Bruch;t-online.de]
Sent: Monday, October 28, 2002 1:59 PM
To: Tomcat User List
Subject: configuring tomcat 4.1.12 creating mod_jk.conf-auto


how and where do i have to configure tomcat 4.1.12 to create automatically
the 'mod_jk.conf-auto' for 'apche 1.3.x' or 'apache2'?

regards
raibru

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread Hendrik Coetzee
Hi François

Found this site - has a couple of very good how-to's.  Check it out,
maybe it will help...

http://www.galatea.com/flashguides/index

 
 
Hendrik Coetzee


-Original Message-
From: François Vallet [mailto:fvallet;infovista.com] 
Sent: 18 October 2002 09:36 AM
To: 'Tomcat Users List'
Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2


Hello Guys

Do you know if it we can associate apache 1.3.26 -JK2- Tomcat 4.1.12

If YES
Do you have a good url where there is a pretty good
documentation to
install them ?

Else
What is wrong ! 

Thanks in advance
François


 -Original Message-
 From: David Scott [mailto:dascott;mindspring.com]
 Sent: vendredi 18 octobre 2002 05:00
 To: Tomcat Users List
 Subject: Configuring log files in Tomcat 4.1
 
 I get an annoying SSL warning in catalina.out on every request if the
 client is not authenticated by certificate, which in our application
 means every request.  I would love to configure logging to (a) not log
 this warning message and (b) call catalina.out something else.  The
docs
 aren't much help in this.  Does anyone have any specifics on how I can
 configure log files and redirect System.out and System.err messages?
 
 I'm using Tomcat 4.1.12.
 
 Thanks.
 
 David
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread François Vallet
Ok thanks!
But i've followed the tutorial...
And I have this error when I startup apache
invalid command jkworkersfile :(

Do you know why ?


 -Original Message-
 From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
 Sent: vendredi 18 octobre 2002 09:50
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 Hi François
 
 Found this site - has a couple of very good how-to's.  Check it out,
 maybe it will help...
 
 http://www.galatea.com/flashguides/index
 
 
 
 Hendrik Coetzee
 
 
 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: 18 October 2002 09:36 AM
 To: 'Tomcat Users List'
 Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
 Hello Guys
 
 Do you know if it we can associate apache 1.3.26 -JK2- Tomcat 4.1.12
 
 If YES
   Do you have a good url where there is a pretty good
 documentation to
 install them ?
 
 Else
   What is wrong !
 
 Thanks in advance
 François
 
 
  -Original Message-
  From: David Scott [mailto:dascott;mindspring.com]
  Sent: vendredi 18 octobre 2002 05:00
  To: Tomcat Users List
  Subject: Configuring log files in Tomcat 4.1
 
  I get an annoying SSL warning in catalina.out on every request if the
  client is not authenticated by certificate, which in our application
  means every request.  I would love to configure logging to (a) not log
  this warning message and (b) call catalina.out something else.  The
 docs
  aren't much help in this.  Does anyone have any specifics on how I can
  configure log files and redirect System.out and System.err messages?
 
  I'm using Tomcat 4.1.12.
 
  Thanks.
 
  David
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread Turner, John

I don't think JK2 uses JkWorkersFile.

John

 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Friday, October 18, 2002 9:43 AM
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
 Ok thanks!
 But i've followed the tutorial...
 And I have this error when I startup apache
 invalid command jkworkersfile :(
 
 Do you know why ?
 
 
  -Original Message-
  From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
  Sent: vendredi 18 octobre 2002 09:50
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  Hi François
  
  Found this site - has a couple of very good how-to's.  Check it out,
  maybe it will help...
  
  http://www.galatea.com/flashguides/index
  
  
  
  Hendrik Coetzee
  
  
  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: 18 October 2002 09:36 AM
  To: 'Tomcat Users List'
  Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
  Hello Guys
  
  Do you know if it we can associate apache 1.3.26 -JK2- 
 Tomcat 4.1.12
  
  If YES
  Do you have a good url where there is a pretty good
  documentation to
  install them ?
  
  Else
  What is wrong !
  
  Thanks in advance
  François
  
  
   -Original Message-
   From: David Scott [mailto:dascott;mindspring.com]
   Sent: vendredi 18 octobre 2002 05:00
   To: Tomcat Users List
   Subject: Configuring log files in Tomcat 4.1
  
   I get an annoying SSL warning in catalina.out on every 
 request if the
   client is not authenticated by certificate, which in our 
 application
   means every request.  I would love to configure logging 
 to (a) not log
   this warning message and (b) call catalina.out something 
 else.  The
  docs
   aren't much help in this.  Does anyone have any specifics 
 on how I can
   configure log files and redirect System.out and 
 System.err messages?
  
   I'm using Tomcat 4.1.12.
  
   Thanks.
  
   David
  
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
  
  
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread François Vallet
I use mod_JK not jk2 !
But if you have a good url to how to use jk2 instead of jk I will be pleased
to try it !


 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: vendredi 18 octobre 2002 15:44
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
 I don't think JK2 uses JkWorkersFile.
 
 John
 
  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: Friday, October 18, 2002 9:43 AM
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
  Ok thanks!
  But i've followed the tutorial...
  And I have this error when I startup apache
  invalid command jkworkersfile :(
 
  Do you know why ?
 
 
   -Original Message-
   From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
   Sent: vendredi 18 octobre 2002 09:50
   To: 'Tomcat Users List'
   Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
   Hi François
  
   Found this site - has a couple of very good how-to's.  Check it out,
   maybe it will help...
  
   http://www.galatea.com/flashguides/index
  
  
  
   Hendrik Coetzee
  
  
   -Original Message-
   From: François Vallet [mailto:fvallet;infovista.com]
   Sent: 18 October 2002 09:36 AM
   To: 'Tomcat Users List'
   Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
   Hello Guys
  
   Do you know if it we can associate apache 1.3.26 -JK2-
  Tomcat 4.1.12
  
   If YES
 Do you have a good url where there is a pretty good
   documentation to
   install them ?
  
   Else
 What is wrong !
  
   Thanks in advance
   François
  
  
-Original Message-
From: David Scott [mailto:dascott;mindspring.com]
Sent: vendredi 18 octobre 2002 05:00
To: Tomcat Users List
Subject: Configuring log files in Tomcat 4.1
   
I get an annoying SSL warning in catalina.out on every
  request if the
client is not authenticated by certificate, which in our
  application
means every request.  I would love to configure logging
  to (a) not log
this warning message and (b) call catalina.out something
  else.  The
   docs
aren't much help in this.  Does anyone have any specifics
  on how I can
configure log files and redirect System.out and
  System.err messages?
   
I'm using Tomcat 4.1.12.
   
Thanks.
   
David
   
   
--
To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread Turner, John

Sorry...an earlier post from you said: Hello Guys, Do you know if it we can
associate apache 1.3.26 -JK2- Tomcat 4.1.12.  And the subject of this
thread is  [Configuring] Tomcat 4.1.12   apache 1.3.26  jk2.  Silly me
for assuming you are using JK2. 

John

 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Friday, October 18, 2002 10:03 AM
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
 I use mod_JK not jk2 !
 But if you have a good url to how to use jk2 instead of jk I 
 will be pleased
 to try it !
 
 
  -Original Message-
  From: Turner, John [mailto:JTurner;AAS.com]
  Sent: vendredi 18 octobre 2002 15:44
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
  I don't think JK2 uses JkWorkersFile.
  
  John
  
   -Original Message-
   From: François Vallet [mailto:fvallet;infovista.com]
   Sent: Friday, October 18, 2002 9:43 AM
   To: 'Tomcat Users List'
   Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
   Ok thanks!
   But i've followed the tutorial...
   And I have this error when I startup apache
   invalid command jkworkersfile :(
  
   Do you know why ?
  
  
-Original Message-
From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
Sent: vendredi 18 octobre 2002 09:50
To: 'Tomcat Users List'
Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
Hi François
   
Found this site - has a couple of very good how-to's.  
 Check it out,
maybe it will help...
   
http://www.galatea.com/flashguides/index
   
   
   
Hendrik Coetzee
   
   
-Original Message-
From: François Vallet [mailto:fvallet;infovista.com]
Sent: 18 October 2002 09:36 AM
To: 'Tomcat Users List'
Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
   
Hello Guys
   
Do you know if it we can associate apache 1.3.26 -JK2-
   Tomcat 4.1.12
   
If YES
Do you have a good url where there is a pretty good
documentation to
install them ?
   
Else
What is wrong !
   
Thanks in advance
François
   
   
 -Original Message-
 From: David Scott [mailto:dascott;mindspring.com]
 Sent: vendredi 18 octobre 2002 05:00
 To: Tomcat Users List
 Subject: Configuring log files in Tomcat 4.1

 I get an annoying SSL warning in catalina.out on every
   request if the
 client is not authenticated by certificate, which in our
   application
 means every request.  I would love to configure logging
   to (a) not log
 this warning message and (b) call catalina.out something
   else.  The
docs
 aren't much help in this.  Does anyone have any specifics
   on how I can
 configure log files and redirect System.out and
   System.err messages?

 I'm using Tomcat 4.1.12.

 Thanks.

 David


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
   
   
--
To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread Aryeh Katz
 I use mod_JK not jk2 !
 But if you have a good url to how to use jk2 instead of jk I will be
 pleased to try it !

Sorry about this, stupid email client doesn't reply to list.
Problem was caused by the lack of a LoadModule line.
resolved by adding:
LoadModule jk_module libexec/mod_jk.so
Aryeh

  -Original Message-
  From: Turner, John [mailto:JTurner;AAS.com]
  Sent: vendredi 18 octobre 2002 15:44
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
  I don't think JK2 uses JkWorkersFile.
 
  John
 
   -Original Message-
   From: François Vallet [mailto:fvallet;infovista.com]
   Sent: Friday, October 18, 2002 9:43 AM
   To: 'Tomcat Users List'
   Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
   Ok thanks!
   But i've followed the tutorial...
   And I have this error when I startup apache
   invalid command jkworkersfile :(
  
   Do you know why ?
  
  
-Original Message-
From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
Sent: vendredi 18 octobre 2002 09:50
To: 'Tomcat Users List'
Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
Hi François
   
Found this site - has a couple of very good how-to's.  Check it
out, maybe it will help...
   
http://www.galatea.com/flashguides/index
   
   
   
Hendrik Coetzee
   
   
-Original Message-
From: François Vallet [mailto:fvallet;infovista.com]
Sent: 18 October 2002 09:36 AM
To: 'Tomcat Users List'
Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
   
Hello Guys
   
Do you know if it we can associate apache 1.3.26 -JK2-
   Tomcat 4.1.12
   
If YES
Do you have a good url where there is a pretty good
documentation to
install them ?
   
Else
What is wrong !
   
Thanks in advance
François
   
   
 -Original Message-
 From: David Scott [mailto:dascott;mindspring.com]
 Sent: vendredi 18 octobre 2002 05:00
 To: Tomcat Users List
 Subject: Configuring log files in Tomcat 4.1

 I get an annoying SSL warning in catalina.out on every
   request if the
 client is not authenticated by certificate, which in our
   application
 means every request.  I would love to configure logging
   to (a) not log
 this warning message and (b) call catalina.out something
   else.  The
docs
 aren't much help in this.  Does anyone have any specifics
   on how I can
 configure log files and redirect System.out and
   System.err messages?

 I'm using Tomcat 4.1.12.

 Thanks.

 David


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
   
   
--
To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
 commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



---
Aryeh Katz
VASCO
www.vasco.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread François Vallet
Ok i don't user JK2 anymore and i use JK an it's works perfectly !
Thanks  all
F.


 -Original Message-
 From: Aryeh Katz [mailto:aryeh;vasco.com]
 Sent: vendredi 18 octobre 2002 17:13
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
  I use mod_JK not jk2 !
  But if you have a good url to how to use jk2 instead of jk I will be
  pleased to try it !
 
 Sorry about this, stupid email client doesn't reply to list.
 Problem was caused by the lack of a LoadModule line.
 resolved by adding:
 LoadModule jk_module libexec/mod_jk.so
 Aryeh
 
   -Original Message-
   From: Turner, John [mailto:JTurner;AAS.com]
   Sent: vendredi 18 octobre 2002 15:44
   To: 'Tomcat Users List'
   Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
   I don't think JK2 uses JkWorkersFile.
  
   John
  
-Original Message-
From: François Vallet [mailto:fvallet;infovista.com]
Sent: Friday, October 18, 2002 9:43 AM
To: 'Tomcat Users List'
Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
   
Ok thanks!
But i've followed the tutorial...
And I have this error when I startup apache
invalid command jkworkersfile :(
   
Do you know why ?
   
   
 -Original Message-
 From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
 Sent: vendredi 18 octobre 2002 09:50
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2

 Hi François

 Found this site - has a couple of very good how-to's.  Check it
 out, maybe it will help...

 http://www.galatea.com/flashguides/index



 Hendrik Coetzee


 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: 18 October 2002 09:36 AM
 To: 'Tomcat Users List'
 Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2


 Hello Guys

 Do you know if it we can associate apache 1.3.26 -JK2-
Tomcat 4.1.12

 If YES
   Do you have a good url where there is a pretty good
 documentation to
 install them ?

 Else
   What is wrong !

 Thanks in advance
 François


  -Original Message-
  From: David Scott [mailto:dascott;mindspring.com]
  Sent: vendredi 18 octobre 2002 05:00
  To: Tomcat Users List
  Subject: Configuring log files in Tomcat 4.1
 
  I get an annoying SSL warning in catalina.out on every
request if the
  client is not authenticated by certificate, which in our
application
  means every request.  I would love to configure logging
to (a) not log
  this warning message and (b) call catalina.out something
else.  The
 docs
  aren't much help in this.  Does anyone have any specifics
on how I can
  configure log files and redirect System.out and
System.err messages?
 
  I'm using Tomcat 4.1.12.
 
  Thanks.
 
  David
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org



 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
--
To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
  commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 ---
 Aryeh Katz
 VASCO
 www.vasco.com
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread François Vallet
Ok sorry !
But why there two connectors by default with tomcat 4.1.12 ? (port 8080 and
port 8009 )

The documentation about tomcat 4.1.12 is not really easy to find .. sorry
for my silly questions ...



 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: vendredi 18 octobre 2002 16:52
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
 Sorry...an earlier post from you said: Hello Guys, Do you know if it we
can
 associate apache 1.3.26 -JK2- Tomcat 4.1.12.  And the subject of this
 thread is  [Configuring] Tomcat 4.1.12   apache 1.3.26  jk2.  Silly me
 for assuming you are using JK2.
 
 John
 
  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: Friday, October 18, 2002 10:03 AM
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
  I use mod_JK not jk2 !
  But if you have a good url to how to use jk2 instead of jk I
  will be pleased
  to try it !
 
 
   -Original Message-
   From: Turner, John [mailto:JTurner;AAS.com]
   Sent: vendredi 18 octobre 2002 15:44
   To: 'Tomcat Users List'
   Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
   I don't think JK2 uses JkWorkersFile.
  
   John
  
-Original Message-
From: François Vallet [mailto:fvallet;infovista.com]
Sent: Friday, October 18, 2002 9:43 AM
To: 'Tomcat Users List'
Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
   
Ok thanks!
But i've followed the tutorial...
And I have this error when I startup apache
invalid command jkworkersfile :(
   
Do you know why ?
   
   
 -Original Message-
 From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
 Sent: vendredi 18 octobre 2002 09:50
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2

 Hi François

 Found this site - has a couple of very good how-to's.
  Check it out,
 maybe it will help...

 http://www.galatea.com/flashguides/index



 Hendrik Coetzee


 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: 18 October 2002 09:36 AM
 To: 'Tomcat Users List'
 Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2


 Hello Guys

 Do you know if it we can associate apache 1.3.26 -JK2-
Tomcat 4.1.12

 If YES
   Do you have a good url where there is a pretty good
 documentation to
 install them ?

 Else
   What is wrong !

 Thanks in advance
 François


  -Original Message-
  From: David Scott [mailto:dascott;mindspring.com]
  Sent: vendredi 18 octobre 2002 05:00
  To: Tomcat Users List
  Subject: Configuring log files in Tomcat 4.1
 
  I get an annoying SSL warning in catalina.out on every
request if the
  client is not authenticated by certificate, which in our
application
  means every request.  I would love to configure logging
to (a) not log
  this warning message and (b) call catalina.out something
else.  The
 docs
  aren't much help in this.  Does anyone have any specifics
on how I can
  configure log files and redirect System.out and
System.err messages?
 
  I'm using Tomcat 4.1.12.
 
  Thanks.
 
  David
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org



 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
--
To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Configuring] Tomcat 4.1.12 apache 1.3.26 jk2

2002-10-18 Thread Turner, John

8080 is the Tomcat stand-alone HTTP connector...that connector is a web
server.  It can be enabled or disabled at your preference.

8009 is the default connector port when using JK or JK2.  It can also be
enabled or disabled at your preference.

John


 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Friday, October 18, 2002 11:25 AM
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
 Ok sorry !
 But why there two connectors by default with tomcat 4.1.12 ? 
 (port 8080 and
 port 8009 )
 
 The documentation about tomcat 4.1.12 is not really easy to 
 find .. sorry
 for my silly questions ...
 
 
 
  -Original Message-
  From: Turner, John [mailto:JTurner;AAS.com]
  Sent: vendredi 18 octobre 2002 16:52
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
  Sorry...an earlier post from you said: Hello Guys, Do you 
 know if it we
 can
  associate apache 1.3.26 -JK2- Tomcat 4.1.12.  And the 
 subject of this
  thread is  [Configuring] Tomcat 4.1.12   apache 1.3.26  
 jk2.  Silly me
  for assuming you are using JK2.
  
  John
  
   -Original Message-
   From: François Vallet [mailto:fvallet;infovista.com]
   Sent: Friday, October 18, 2002 10:03 AM
   To: 'Tomcat Users List'
   Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
  
  
   I use mod_JK not jk2 !
   But if you have a good url to how to use jk2 instead of jk I
   will be pleased
   to try it !
  
  
-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: vendredi 18 octobre 2002 15:44
To: 'Tomcat Users List'
Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
   
   
I don't think JK2 uses JkWorkersFile.
   
John
   
 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Friday, October 18, 2002 9:43 AM
 To: 'Tomcat Users List'
 Subject: RE: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2


 Ok thanks!
 But i've followed the tutorial...
 And I have this error when I startup apache
 invalid command jkworkersfile :(

 Do you know why ?


  -Original Message-
  From: Hendrik Coetzee [mailto:hendrik;mantisnet.co.za]
  Sent: vendredi 18 octobre 2002 09:50
  To: 'Tomcat Users List'
  Subject: RE: [Configuring] Tomcat 4.1.12  apache 
 1.3.26  jk2
 
  Hi François
 
  Found this site - has a couple of very good how-to's.
   Check it out,
  maybe it will help...
 
  http://www.galatea.com/flashguides/index
 
 
 
  Hendrik Coetzee
 
 
  -Original Message-
  From: François Vallet [mailto:fvallet;infovista.com]
  Sent: 18 October 2002 09:36 AM
  To: 'Tomcat Users List'
  Subject: [Configuring] Tomcat 4.1.12  apache 1.3.26  jk2
 
 
  Hello Guys
 
  Do you know if it we can associate apache 1.3.26 -JK2-
 Tomcat 4.1.12
 
  If YES
  Do you have a good url where there is a pretty good
  documentation to
  install them ?
 
  Else
  What is wrong !
 
  Thanks in advance
  François
 
 
   -Original Message-
   From: David Scott [mailto:dascott;mindspring.com]
   Sent: vendredi 18 octobre 2002 05:00
   To: Tomcat Users List
   Subject: Configuring log files in Tomcat 4.1
  
   I get an annoying SSL warning in catalina.out on every
 request if the
   client is not authenticated by certificate, which in our
 application
   means every request.  I would love to configure logging
 to (a) not log
   this warning message and (b) call catalina.out something
 else.  The
  docs
   aren't much help in this.  Does anyone have any specifics
 on how I can
   configure log files and redirect System.out and
 System.err messages?
  
   I'm using Tomcat 4.1.12.
  
   Thanks.
  
   David
  
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
--
To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
   mailto:tomcat-user-help

RE: Configuring Tomcat to start with different verisons of a Web App

2002-10-07 Thread Tim Moore

 -Original Message-
 From: Scott Goldstein [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, October 07, 2002 2:52 PM
 To: [EMAIL PROTECTED]
 Subject: Configuring Tomcat to start with different verisons 
 of a Web App
 
 
 At any one time, I have multiple versions of a product that 
 I'm working on on 
 my development box.  In other words, I'm usually fixing bugs 
 in the previos 
 one or two releases while moving forward on the next release.
 
 This leaves me with three web applications in three seperate 
 directory 
 structures.  I would like to start Tomcat through an icon on 
 my desktop.  To 
 be able to handle all three versions of the web app that I'm 
 working on, I 
 would like to have three seperate icons, one for each web app 
 version.  
 Unfortunately, I haven't figured out how to do this with 
 Tomcat.  It seems 
 that I have to manually edit conf/server.xml in order to 
 start and stop with 
 different web apps installed.
 
 Can anyone provide suggestions on how to start and stop 
 Tomcat with different 
 web apps installed without having to edit conf/server.xml?

Check out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt

Section 4 on Multiple Tomcat 4 Instances.  You can write small batch
scripts that change the value of CATALINA_BASE and then start the
server.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

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




Re: Configuring Tomcat to start with different verisons of a WebApp

2002-10-07 Thread Mark R. Diggory

A, stupid me. I didn't configure CATALINA_BASE and I've moved the 
location of webapps so I didn't need multiple copies of my 
webapplication for testing on each version! (Mark whack's himself on the 
head!)

I'll try that and see if it solves the problem.

-Mark

Tim Moore wrote:

-Original Message-
From: Scott Goldstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 07, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to start with different verisons 
of a Web App


At any one time, I have multiple versions of a product that 
I'm working on on 
my development box.  In other words, I'm usually fixing bugs 
in the previos 
one or two releases while moving forward on the next release.

This leaves me with three web applications in three seperate 
directory 
structures.  I would like to start Tomcat through an icon on 
my desktop.  To 
be able to handle all three versions of the web app that I'm 
working on, I 
would like to have three seperate icons, one for each web app 
version.  
Unfortunately, I haven't figured out how to do this with 
Tomcat.  It seems 
that I have to manually edit conf/server.xml in order to 
start and stop with 
different web apps installed.

Can anyone provide suggestions on how to start and stop 
Tomcat with different 
web apps installed without having to edit conf/server.xml?



Check out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt

Section 4 on Multiple Tomcat 4 Instances.  You can write small batch
scripts that change the value of CATALINA_BASE and then start the
server.

  






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




RE: Configuring Tomcat to start with different verisons of a Web App

2002-10-07 Thread Sexton, George

Why not have 3 different web apps context1, context2, context3 and run them
all in the same container?

-Original Message-
From: Scott Goldstein [mailto:[EMAIL PROTECTED]]
Sent: 07 October, 2002 12:52 PM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to start with different verisons of a Web
App


At any one time, I have multiple versions of a product that I'm working on
on
my development box.  In other words, I'm usually fixing bugs in the previos
one or two releases while moving forward on the next release.

This leaves me with three web applications in three seperate directory
structures.  I would like to start Tomcat through an icon on my desktop.  To
be able to handle all three versions of the web app that I'm working on, I
would like to have three seperate icons, one for each web app version.
Unfortunately, I haven't figured out how to do this with Tomcat.  It seems
that I have to manually edit conf/server.xml in order to start and stop with
different web apps installed.

Can anyone provide suggestions on how to start and stop Tomcat with
different
web apps installed without having to edit conf/server.xml?

Thanks.

Scott


Just a mirror for the sun...
 My smiling eyes are just a mirror for the sun.



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


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




Re: Configuring Tomcat to start with different verisons of a WebApp

2002-10-07 Thread Mark R. Diggory

Sorry, I answered in the wrong thread, please ignore this message
Mark R. Diggory wrote:

 A, stupid me. I didn't configure CATALINA_BASE and I've moved the 
 location of webapps so I didn't need multiple copies of my 
 webapplication for testing on each version! (Mark whack's himself on 
 the head!)

 I'll try that and see if it solves the problem.

 -Mark

 Tim Moore wrote:

 -Original Message-
 From: Scott Goldstein [mailto:[EMAIL PROTECTED]] Sent: 
 Monday, October 07, 2002 2:52 PM
 To: [EMAIL PROTECTED]
 Subject: Configuring Tomcat to start with different verisons of a 
 Web App


 At any one time, I have multiple versions of a product that I'm 
 working on on my development box.  In other words, I'm usually 
 fixing bugs in the previos one or two releases while moving forward 
 on the next release.

 This leaves me with three web applications in three seperate 
 directory structures.  I would like to start Tomcat through an icon 
 on my desktop.  To be able to handle all three versions of the web 
 app that I'm working on, I would like to have three seperate icons, 
 one for each web app version.  Unfortunately, I haven't figured out 
 how to do this with Tomcat.  It seems that I have to manually edit 
 conf/server.xml in order to start and stop with different web apps 
 installed.

 Can anyone provide suggestions on how to start and stop Tomcat with 
 different web apps installed without having to edit conf/server.xml?
   


 Check out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt

 Section 4 on Multiple Tomcat 4 Instances.  You can write small batch
 scripts that change the value of CATALINA_BASE and then start the
 server.

  






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






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




Re: Configuring Tomcat to start with different verisons of a Web App

2002-10-07 Thread Andreas Probst

Hi Scott,

you could simply have 3 Tomcats, e.g. .../tomcat1, .../tomcat2, 
.../tomcat3. All you need is to have 3 icons linked to the right 
startup script. If you run only one at a time it will work fine.

Andreas


On 7 Oct 2002 at 14:51, Scott Goldstein wrote:

 At any one time, I have multiple versions of a product that I'm working on on 
 my development box.  In other words, I'm usually fixing bugs in the previos 
 one or two releases while moving forward on the next release.
 
 This leaves me with three web applications in three seperate directory 
 structures.  I would like to start Tomcat through an icon on my desktop.  To 
 be able to handle all three versions of the web app that I'm working on, I 
 would like to have three seperate icons, one for each web app version.  
 Unfortunately, I haven't figured out how to do this with Tomcat.  It seems 
 that I have to manually edit conf/server.xml in order to start and stop with 
 different web apps installed.
 
 Can anyone provide suggestions on how to start and stop Tomcat with different 
 web apps installed without having to edit conf/server.xml?
 
 Thanks.
 
 Scott
 
 
 Just a mirror for the sun...
  My smiling eyes are just a mirror for the sun.
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: Configuring tomcat 4.1.10 for working with both http and https

2002-09-10 Thread Giovanni Cuccu

At 18:19 09/09/2002 +0200, you wrote:
I found that if I use the old connector (JK) all works well. It seems like 
the jk2 connector (which is much faster than its predecessor) still need 
some testing before going really usable.
Giovanni
Hi all,
 I have just downloaded tomcat 4.1.10 and replaced tomcat 4.0.4
in the previous version I had a site working with both http and https.
Now I switched to the jk2 connector and I have this problem
the jk2 connector can't works with https and  http together.
In the server.xml i had to put the attribute scheme to https in order to 
work with https but if I try to get the same site with http I get the fist 
manually digited page in http but if I submit a form with a relative url 
(/context/servlet) as a target the response switches over https
here is a scheme
jsp page---(submit to a servlet)--servlet(redirecting with relative 
url)---other jsp page
httphttp--https
 
(switch made automatically)
the same happens if the scheme is set to http and I'd like to see the site 
in https mode (in this case the switch is from htts to http)
can I avoid this situation?
In tomcat 4.0.4 all worked as I expected.
here is my tomcat 4.1.10 server.xml
...
  Service name=Tomcat-ApacheSSL

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true appBase=webapps scheme=https
  acceptCount=10 debug=0 
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /

 Engine className=org.apache.catalina.core.StandardEngine
  name=Apache debug=0 defaultHost=giovanni
  Host name=giovanni debug=0 appBase=webapps unpackWARs=true
 Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig append=true /
  /Host
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/

 /Engine

   /Service
...
and here is the tomcat 4.0.4 one

   Service name=Tomcat-Apache

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

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

 !-- Replace localhost with what your Apache ServerName is set to --
 Engine className=org.apache.catalina.core.StandardEngine
  name=Apache debug=0
  Host name=giovanni debug=0 appBase=webapps unpackWARs=true
 Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig append=true /
 !--Context path=/Portal docBase=Portal  debug=0 /--
  /Host
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/

   !-- Because this Realm is here, an instance will be shared 
 globally --
   Realm className=org.apache.catalina.realm.MemoryRealm /

 /Engine

   /Service

thanks in advance,
Giovanni



Giovanni Cuccu
Sw [EMAIL PROTECTED]
Dianoema S.p.A.
Via de' Carracci 93 40131 Bologna
Tel: 051-4193911
e-mail:[EMAIL PROTECTED]





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






Giovanni Cuccu
Sw [EMAIL PROTECTED]
Dianoema S.p.A.
Via de' Carracci 93 40131 Bologna
Tel: 051-4193911
e-mail:[EMAIL PROTECTED]





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




Re: Configuring Tomcat 4.0

2002-09-10 Thread Mauro Daniel Ardolino

Well.  I think is better to tell you how I did to make a servlet work.
First of all I created a folder under webapps (e.g. miFirstServlet).
After that I put a simple html file called index.html inside this folder.

Example of simple index.html:
html
headtitleMy first servlet/title/head
body
h1This is really my first servlet!/h1
a href=http://localhost:8080/miFirstServlet/servlet/miFirstServlet/FirstClick here 
to see the servlet working/a
/body
/html

Explanation of the URL:
/miFirstServlet:  the name of the application folder
/servlet   :  indicates that is a servlet (see down).
/miFirstServlet:  name of the package
/First :  name of the class

Put First.class in webapps/WEB-INF/classes/miFirstServlet/.
(make sure the name of the package of First.class is miFirstServlet)

The web.xml file is simple an is explained inside the example web.xml
file that you can download at:
http://localhost:8080/tomcat-docs/appdev/deployment.html
Make sure to declare the servlet and his servlet-class like this:
...
 servlet-classmiFirstServlet.First/servlet-class
...

This file goes here:
webapps/WEB-INF/.

What you are doing is putting an application on Tomcat.  There are
2 ways of doing so:
1) Doing what I have just explained before.
2) Putting a .war instead of the folder webapps/miFirstServlet 
   (e.g. miFirstServlet.war)

I hope this can help you. Bye,

Mauro



On Mon, 9 Sep 2002, srilatha sagar wrote:

 Hi!
 
 
 I've copied the .class files
 c:\tomcat4\webapps\ROOT\WEB-INF\classes
 
 
 I've include the following lines in autoexec.bat:
 set JAVA_HOME=c:\jdk1.2
 set
 CLASSPATH=.;C:\tomcat4\common\lib\servlet.jar;%CLASSPATH%
 
 set PATH=%PATH%;%JAVA_HOME%\bin
 
 I've uncommented the following line in
 c:\tomcat4\conf\server.xml: 
 Context path= docBase=ROOT debug=0/
 
 
 I did not create the web.xml.If required,where should
 it be created and what should be included in that
 file.
 
 I've wriiten a simple servlet and not in a package,and
 the URL to access it is:
 (First.class is the servlet)
 
 http://localhost:8080/First
 
 
 Thanks,
 SriLatha.
 
 
 
 --- Mauro Daniel Ardolino [EMAIL PROTECTED]
 wrote:
  Some questions:
  
  Where did you put the files of your applications?
  (*.class, *.jsp, *.html)
  Did you create the web.xml file?
  If so, did you declare your servlet there?
  How did you write the URL to access your servlet?
  Is your servlet in a package?
  
  
  More information at:
 
 http://localhost:8080/tomcat-docs/appdev/deployment.html
  
  (notice localhost:8080 means in your own PC with
  Tomcat running).
  
  
  Mauro
  
  
  
  On Mon, 9 Sep 2002, srilatha sagar wrote:
  
   Hi!
   I've installed tomcat 4.0 and jdk1.2 on windows 98
   machine.The server is installed and i'm able to
  run
   the examples/jsp and examples/servlet files.
   
   But when it comes to my own Servlet files,it's
  giving
   the error:HTTP 404,file not found.
   
   Please let me know,as how to configure tomcat 4.0
  on
   win98 machine,so as to execute servlets and also
  where
   to set the environment variables,and which system
   files to be updated for configuration.
   
   Thanks,
   SriLatha.
   
   
   
   
   
   
   __
   Do You Yahoo!?
   Yahoo! Finance - Get real-time stock quotes
   http://finance.yahoo.com
   
   --
   To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
   
   
  
  -- 
  Ing.Mauro Daniel Ardolino
  Departamento de Desarrollo y Servicios
  Altersoft
  Billinghurst 1599 - Piso 9
  C1425DTE - Capital Federal
  Tel/Fax: 4821-3376 / 4822-8759
  mailto: [EMAIL PROTECTED]
  website: http://www.altersoft.com.ar
  
  
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Re: Configuring Tomcat 4.0

2002-09-09 Thread Mauro Daniel Ardolino

Some questions:

Where did you put the files of your applications? (*.class, *.jsp, *.html)
Did you create the web.xml file?
If so, did you declare your servlet there?
How did you write the URL to access your servlet?
Is your servlet in a package?


More information at:
http://localhost:8080/tomcat-docs/appdev/deployment.html

(notice localhost:8080 means in your own PC with Tomcat running).


Mauro



On Mon, 9 Sep 2002, srilatha sagar wrote:

 Hi!
 I've installed tomcat 4.0 and jdk1.2 on windows 98
 machine.The server is installed and i'm able to run
 the examples/jsp and examples/servlet files.
 
 But when it comes to my own Servlet files,it's giving
 the error:HTTP 404,file not found.
 
 Please let me know,as how to configure tomcat 4.0 on
 win98 machine,so as to execute servlets and also where
 to set the environment variables,and which system
 files to be updated for configuration.
 
 Thanks,
 SriLatha.
 
 
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Re: Configuring Tomcat 4.0

2002-09-09 Thread srilatha sagar

Hi!


I've copied the .class files
c:\tomcat4\webapps\ROOT\WEB-INF\classes


I've include the following lines in autoexec.bat:
set JAVA_HOME=c:\jdk1.2
set
CLASSPATH=.;C:\tomcat4\common\lib\servlet.jar;%CLASSPATH%

set PATH=%PATH%;%JAVA_HOME%\bin

I've uncommented the following line in
c:\tomcat4\conf\server.xml: 
Context path= docBase=ROOT debug=0/


I did not create the web.xml.If required,where should
it be created and what should be included in that
file.

I've wriiten a simple servlet and not in a package,and
the URL to access it is:
(First.class is the servlet)

http://localhost:8080/First


Thanks,
SriLatha.



--- Mauro Daniel Ardolino [EMAIL PROTECTED]
wrote:
 Some questions:
 
 Where did you put the files of your applications?
 (*.class, *.jsp, *.html)
 Did you create the web.xml file?
 If so, did you declare your servlet there?
 How did you write the URL to access your servlet?
 Is your servlet in a package?
 
 
 More information at:

http://localhost:8080/tomcat-docs/appdev/deployment.html
 
 (notice localhost:8080 means in your own PC with
 Tomcat running).
 
 
 Mauro
 
 
 
 On Mon, 9 Sep 2002, srilatha sagar wrote:
 
  Hi!
  I've installed tomcat 4.0 and jdk1.2 on windows 98
  machine.The server is installed and i'm able to
 run
  the examples/jsp and examples/servlet files.
  
  But when it comes to my own Servlet files,it's
 giving
  the error:HTTP 404,file not found.
  
  Please let me know,as how to configure tomcat 4.0
 on
  win98 machine,so as to execute servlets and also
 where
  to set the environment variables,and which system
  files to be updated for configuration.
  
  Thanks,
  SriLatha.
  
  
  
  
  
  
  __
  Do You Yahoo!?
  Yahoo! Finance - Get real-time stock quotes
  http://finance.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 -- 
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: configuring tomcat 4.0.4 for jdbc

2002-08-13 Thread RahulKrishna Gupta

just pur the relevant jar files in TOMCAT_HOME/common/lib directory and 
restart tomcat

-Rahul

Neha Srivastava wrote:

 hi,
 I am using Tomcat 4.0.4 and am trying to use jdbc in servlets .
  
 It is not able to find the data source name.
  
 kindly tell me how to configure Tomcat4.0.4 for jdbc.
  
 Thanks and regards
 neha
  



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

  



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





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




Re: configuring tomcat 4.0.4 for jdbc

2002-08-13 Thread Neha Srivastava

Thanks

It is solved.

regds
neha
- Original Message -
From: RahulKrishna Gupta [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:58 AM
Subject: Re: configuring tomcat 4.0.4 for jdbc


 just pur the relevant jar files in TOMCAT_HOME/common/lib directory and
 restart tomcat

 -Rahul

 Neha Srivastava wrote:

  hi,
  I am using Tomcat 4.0.4 and am trying to use jdbc in servlets .
 
  It is not able to find the data source name.
 
  kindly tell me how to configure Tomcat4.0.4 for jdbc.
 
  Thanks and regards
  neha
 
 
 
 
 **Disclaimer
 
 Information contained in this E-MAIL being proprietary to Wipro Limited
is
 'privileged' and 'confidential' and intended for use only by the
individual
  or entity to which it is addressed. You are notified that any use,
copying
 or dissemination of the information contained in the E-MAIL in any manner
 whatsoever is strictly prohibited.
 

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




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




**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


RE: Configuring Tomcat for Numerous Connections/Transactions

2002-08-02 Thread Turner, John


Server platform?  OS?  Is there a database involved?  If so, which one?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 3:19 PM
To: Tomcat Users List
Subject: Configuring Tomcat for Numerous Connections/Transactions


Greetings!

I'm fairly new to configuring Tomcat, so I was hoping for a little advice or
pointers to specific documentation.  I'm running a server that has to
service numerous connection/transactions per second.  Aside from setting
minProcesses and maxProcesses to higher values (than the default), any
advice for handling numerous connections?  Specifically, it has to handle
upwards of 75 transactions per second and the box is quite capable of this,
just looking for some good configuration advice.

Thanks!

Jeff


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

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




RE: Configuring Tomcat for Numerous Connections/Transactions

2002-08-02 Thread Marinko, Jeff

Dual 1 GHz Intel machine, running WinNT (or 2K).  No database involved.
That help?

Thanks!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 12:25 PM
To: 'Tomcat Users List'
Subject: RE: Configuring Tomcat for Numerous Connections/Transactions



Server platform?  OS?  Is there a database involved?  If so, which one?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 3:19 PM
To: Tomcat Users List
Subject: Configuring Tomcat for Numerous Connections/Transactions


Greetings!

I'm fairly new to configuring Tomcat, so I was hoping for a little advice or
pointers to specific documentation.  I'm running a server that has to
service numerous connection/transactions per second.  Aside from setting
minProcesses and maxProcesses to higher values (than the default), any
advice for handling numerous connections?  Specifically, it has to handle
upwards of 75 transactions per second and the box is quite capable of this,
just looking for some good configuration advice.

Thanks!

Jeff


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

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



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




RE: configuring tomcat to run behind iPlanet Web Server...

2002-07-10 Thread Turner, John


Google is your friend.  Always.

http://tomcatbook.sourceforge.net/book/defaulthtml/ch06.html

for other results:
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=iplanet+tomcat+integr
ationbtnG=Google+Search

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Sesha Nandyal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: configuring tomcat to run behind iPlanet Web Server...


How do I configure Tomcat to run behind iPlanet Web Server? I have the
tomcat-jk2.jar. How do I use this jar? Any pointers to docs would be
very helpful.

Thanks
Sesha


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

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




Re: configuring tomcat to run behind iPlanet Web Server...

2002-07-10 Thread Sesha Nandyal

John,
   Thanks for the reply - however, the first link uses NSAPI (C Version). I am
trying to use the java version, tomcat-jk2.jar (the jakarta site has a note
about it). So far I have not been able to find any doc that tells how this jar
could be used.

   Incidentally, what is Coyote connector? Does it do the job of having Tomcat
run behind an iPlanet Web Server?

Sesha


Turner, John wrote:

 Google is your friend.  Always.

 http://tomcatbook.sourceforge.net/book/defaulthtml/ch06.html

 for other results:
 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=iplanet+tomcat+integr
 ationbtnG=Google+Search

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Sesha Nandyal [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 10, 2002 11:57 AM
 To: [EMAIL PROTECTED]
 Subject: configuring tomcat to run behind iPlanet Web Server...

 How do I configure Tomcat to run behind iPlanet Web Server? I have the
 tomcat-jk2.jar. How do I use this jar? Any pointers to docs would be
 very helpful.

 Thanks
 Sesha

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

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



Re: configuring tomcat to run behind iPlanet Web Server...

2002-07-10 Thread Cunningham Emmett


Let me provide a few pointers. 
   
http://developer.iplanet.com/docs/technote/webserver/migratin.html

The short story is to use the NSAPI redirector
and AJP13. Configure the AJP13 Connection handler
in server.xml.

The redirector is typically included in the tomcat
distribution. Though some folks have had a difficult
time with getting it to build on Solaris.

On the iPlanet side it's also fairly easy if you
are doing simple stuff.


--- Sesha Nandyal [EMAIL PROTECTED] wrote:
 How do I configure Tomcat to run behind iPlanet Web
 Server? I have the
 tomcat-jk2.jar. How do I use this jar? Any pointers
 to docs would be
 very helpful.
 
 Thanks
 Sesha
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Re: configuring tomcat to run behind iPlanet Web Server...

2002-07-10 Thread Sesha Nandyal

I am having troubles in creating the nsapi_redirector.so binary. If anyone has
one for Solaris Operating System, can you please mail it to me or point me to a
place where I can get it from. I am using the latest Tomcat engine and the
latest iPlanet Web Server( .a.k.a Sun One Web Server).

Thanks
Sesha


Sesha Nandyal wrote:

 How do I configure Tomcat to run behind iPlanet Web Server? I have the
 tomcat-jk2.jar. How do I use this jar? Any pointers to docs would be
 very helpful.

 Thanks
 Sesha

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


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




RE: Configuring Tomcat w/ SQL Server

2002-07-03 Thread Andrew Conrad

Your question is a little fuzzy (on the same server as SQL or just to
connect to a SQL Server?)
But to connect to a SQL Server, Oracle, or any other DB, put your JDBC
drivers in a place where they are accessible.

For server wide access, put them in your %CATALINA%\lib folder,
otherwise put them in the lib folder of your webapp

-Andrew

-Original Message-
From: Reid, Rose L [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 03, 2002 12:52 PM
To: '[EMAIL PROTECTED]'
Subject: Configuring Tomcat w/ SQL Server


How do you configure Tomcat 3.2 on a SQL 2000 Server?  And on an Oracle
Server?

Thanks,
Rose Reid


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

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




RE: Configuring Tomcat w/ SQL Server

2002-07-03 Thread Reid, Rose L

Andrew,

Well the server has Windows Server 2000 and SQL Server 2000.  I just want to
be able to configure Tomcat on it so I can run my Java Servlets for our web
application. We are going from an Access 97 database to a SQL database.

If we were to go to an Oracle database, do you know if I would need to get
Oracle JServer or could I still use Tomcat to connect my Java Servlets to
the server (with Windows Server 2000)?  

-rose

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 3:13 PM
To: 'Tomcat Users List'
Subject: RE: Configuring Tomcat w/ SQL Server


Your question is a little fuzzy (on the same server as SQL or just to
connect to a SQL Server?)
But to connect to a SQL Server, Oracle, or any other DB, put your JDBC
drivers in a place where they are accessible.

For server wide access, put them in your %CATALINA%\lib folder,
otherwise put them in the lib folder of your webapp

-Andrew

-Original Message-
From: Reid, Rose L [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 03, 2002 12:52 PM
To: '[EMAIL PROTECTED]'
Subject: Configuring Tomcat w/ SQL Server


How do you configure Tomcat 3.2 on a SQL 2000 Server?  And on an Oracle
Server?

Thanks,
Rose Reid


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

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

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




RE: Configuring Tomcat w/ SQL Server

2002-07-03 Thread Andrew Conrad

You can connect with Tomcat.  Jserver may have better support than
Tomcat though.  Sometimes you get what you pay for.  


-Andrew

-Original Message-
From: Reid, Rose L [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 03, 2002 5:20 PM
To: 'Tomcat Users List'
Subject: RE: Configuring Tomcat w/ SQL Server


Andrew,

Well the server has Windows Server 2000 and SQL Server 2000.  I just
want to be able to configure Tomcat on it so I can run my Java Servlets
for our web application. We are going from an Access 97 database to a
SQL database.

If we were to go to an Oracle database, do you know if I would need to
get Oracle JServer or could I still use Tomcat to connect my Java
Servlets to the server (with Windows Server 2000)?  

-rose

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 3:13 PM
To: 'Tomcat Users List'
Subject: RE: Configuring Tomcat w/ SQL Server


Your question is a little fuzzy (on the same server as SQL or just to
connect to a SQL Server?) But to connect to a SQL Server, Oracle, or any
other DB, put your JDBC drivers in a place where they are accessible.

For server wide access, put them in your %CATALINA%\lib folder,
otherwise put them in the lib folder of your webapp

-Andrew

-Original Message-
From: Reid, Rose L [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 03, 2002 12:52 PM
To: '[EMAIL PROTECTED]'
Subject: Configuring Tomcat w/ SQL Server


How do you configure Tomcat 3.2 on a SQL 2000 Server?  And on an Oracle
Server?

Thanks,
Rose Reid


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

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

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

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




RE: RE: Configuring Tomcat 4

2002-03-27 Thread Larry Chambers

I did as much as I could from these instructions.  I didn't figure out 
service+ but it doesn't bother me to start tomcat first.  However now when I 
try to use a jsp page it wants to download it instead of doing like html 
files.  There should be a total idiots guide to tomcat.  Why is it they made 
apache so easy to configure yet tomcat so hard?  It's ridiculous!



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




RE: RE: Configuring Tomcat 4

2002-03-27 Thread Lawrence, Gareth

You need to deploy a web application properly :-)

http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html

Notes:

1. Create Directory in web-apps (eg test) create sub-folder WEB-INF with
sub-folders inside lib and classes


2. Add the following entry to the TOMCAT_HOME/conf/server.xml file, setting
the values for the path and docBase to the name of your web application.
Notice again that the name we are using is onjava.

Context path=/test docBase=test debug=0 reloadable=true /

2. Create web.xml and copy to WEB-INF

Default setup:

?xml version=1.0 encoding=ISO-8859-1?

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

web-app
/web-app

3. try your jsp now :-)

You'll probably need to look at the article too :-))

G.

-Original Message-
From: Larry Chambers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 March 2002 2:44 p.m.
To: [EMAIL PROTECTED]
Subject: RE: RE: Configuring Tomcat 4


I did as much as I could from these instructions.  I didn't figure out 
service+ but it doesn't bother me to start tomcat first.  However now when I

try to use a jsp page it wants to download it instead of doing like html 
files.  There should be a total idiots guide to tomcat.  Why is it they made

apache so easy to configure yet tomcat so hard?  It's ridiculous!



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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

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




RE: RE: Configuring Tomcat 4

2002-03-27 Thread Lawrence, Gareth

Ignore Notice again that the name we are using is onjava.

Lol :-)

G.

-Original Message-
From: Lawrence, Gareth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 March 2002 2:47 p.m.
To: 'Tomcat Users List'
Subject: RE: RE: Configuring Tomcat 4


You need to deploy a web application properly :-)

http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html

Notes:

1. Create Directory in web-apps (eg test) create sub-folder WEB-INF with
sub-folders inside lib and classes


2. Add the following entry to the TOMCAT_HOME/conf/server.xml file, setting
the values for the path and docBase to the name of your web application.

Context path=/test docBase=test debug=0 reloadable=true /

2. Create web.xml and copy to WEB-INF

Default setup:

?xml version=1.0 encoding=ISO-8859-1?

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

web-app
/web-app

3. try your jsp now :-)

You'll probably need to look at the article too :-))

G.

-Original Message-
From: Larry Chambers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 March 2002 2:44 p.m.
To: [EMAIL PROTECTED]
Subject: RE: RE: Configuring Tomcat 4


I did as much as I could from these instructions.  I didn't figure out 
service+ but it doesn't bother me to start tomcat first.  However now when I

try to use a jsp page it wants to download it instead of doing like html 
files.  There should be a total idiots guide to tomcat.  Why is it they made

apache so easy to configure yet tomcat so hard?  It's ridiculous!



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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

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

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




RE: Configuring Tomcat 4

2002-03-26 Thread Chris Pheby

Apache, MySQL, Tomcat, Netbeans and Mozilla
---

Hope this helps


Chris.

-

1) Install Apache
Install Apache_1.3.22-win32-x86.exe (Windows Installer of latest stable
release) to c:\server\ (actually places it in Apache subdirectory of
c:\server). During installation select the Run as Service for all Users
option.

Verify the installation in Control Panel / Services by checking for Apache.

2) Install MySQL
Install mysql-max-3.23.49-win.zip by unzipping and running setup.exe

Recommend installing to c:\server\mysql

Create c:\winnt\my.ini with the following contents:

[mysqld]
basedir=C:/projects/mysql
datadir=C:/projects/mysql/data

When you are done add c:\server\mysql\bin to the path environment variable.

You can get MySQL-Front from www.mysqlfront.de if you need a graphical front
end for the database.

Also available is MyODBC, which allows MySQL to be connected to by
applications utilising ODBC.

You can use the winmysqladmin utility to make mysql-max run as a service
instead of mysql which supports transactions with berkeley db tables.

3) Install Java 2 Standard Edition 1.4
Run the J2SE installer, and choose to install to c:\Program Files\Java\J2SE.
Install all components and set it as a plugin for all browsers

Add the following to the PATH variable:

c:\Progra~1\J2SE\bin.
Install Tomcat 4.0.4 beta 1 LE
Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take
care to install Tomcat as a Service when offered the option by the
installer.

Set the following environment variables:

JAVA_HOME - c:\Progra~1\Java\J2SE
CATALINA_HOME - c:\Progra~1\Java\Tomcat

4) Integrate Tomcat and Apache
Stop the Tomcat and Apache services. Then download mod_webapp from
jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract
libapr.dll and mod_webapp.so to c:\server\apache\modules.

Add the following lines to httpd.conf:

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
You need to configure a connector in httpd.conf (examples shown for the
modules you can export initially - remove the comments to enable them):

IfModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8008
WebAppInfo /webapp-info
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy webdav warpConnection /webdav
/IfModule
Before restarting Apache download Service+ from ActivePlus and use it to set
Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
automatically).

5) Install JDBC Driver for MySQL
Download the MySQL JDBC driver.

Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and extract
mm.mysql-2.0.11-bin.jar and place it in c:\program
files\java\j2se\jre\lib\ext. It will now be automatically available to Java
programs, without needing to add it to the classpath.

6) Install Mozilla Plugin
Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
Files\Mozilla\Plugins.

Restart Mozilla

7) Install NetBeans
Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
automatically detect the JDK.

Netbeans can debug Tomcat, if you want to enable this first remove the
existing Tomcat Service:

net stop Apache Tomcat
c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall Apache Tomcat
Next install the modified Tomcat service which is enabled for debugging:

Tomcat.exe -install Apache Tomcat
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_
socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom
cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out
c:\progra~1\java\tomcat\logs\stdout.log -err
c:\progra~1\java\tomcat\logs\stderr.log
Make the service depend on MySQL as before

Once Tomcat has been restarted go to Netbeans, and select the Debug / Attach
menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of the
machine Tomcat is on, and 12999 as the port. It is now possible to debug the
running Tomcat server.

To assist debugging mount the Tomcat Sources in the Netbeans explorer:

C:\Program Files\Java\J2SE\src
C:\Program Files\Java\Tomcat\src\catalina\src\share
C:\Program Files\Java\Tomcat\src\catalina\src\test
C:\Program Files\Java\Tomcat\src\jasper\src\share

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Larry Chambers
Sent: 26 March 2002 02:20
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat 4


I would like to configure Tomcat, but the xml files are not very easy to
follow.  All i'm trying to do right now is set up everything to make another
directory ROOT, which is the one that I have apache pointing to right now.
If it would be easier to just configure apache to send requests to tomcat
then how can I do that?  I've heard 

  1   2   >