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]



configuring tomcat on XP as a service

2005-05-03 Thread Greg Baynham
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:\Program 
Files\Common Files\Adaptec Shared\System;%JAVA_HOME%


Any help would be appreciated,
GRB 

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


Configuring Tomcat to delay accepting of connections until apps are ready/loaded

2005-04-08 Thread Jeremy Nix
I'm running into a particular problem running web services off of tomcat
in our production environment.  It seems that our client is requesting
services from us at the exact time that Tomcat is being rejacked.
Tomcat seems to be accepting the connection quickly, but doesn't respond
to it for another 25 seconds or so.  Are my observations correct?  Does
Tomcat open its sockets before it can physically handle the request?  If
so, is there some way to configure tomcat to open the sockets just prior
to having all web applications loaded?  I'm working on a 15 second
processing time window, and if Tomcat accepts the request and waits 25
seconds before passing it along to my code to process it, then I've
already burnt my 15 seconds.

Any help would be appreciated.

Here is my current environment:
- Tomcat: 4.1.30
- JDK: 1.4.2_06

___
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com




Problem Configuring Tomcat 5.0.28 and IIS5.0

2005-02-11 Thread Kumar, Modha
Hi All
 
I am trying to configure IIS5 with tomcat5.0.28. My tomcat works fine. I
have tested IIS http://localhost/ http://localhost/  it shows the IIS page
fine.
However if I try to access jsp-examples
http://localhost:8080/jsp-examples/jsp2/el/basic-arithmetic.jsp
http://localhost:8080/jsp-examples/jsp2/el/basic-arithmetic.jsp  is fine
however 
http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp
http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp  throws page
cannot be found error
 
Here is what I did 

Downloaded isapi_redirect-1.2.8.dll is for IIS 5 and later Web Server.
Rename to isapi_redirect.dll 
 
1. Default Website properties (In internet information services) in the
isapi filters tab, I have
green arrow. Properties (Fileter name: tomcat executable:C:\Tomcat
5.0.28\conf\isapi_redirect.dll)
 
2.In server.xml added this entry
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
3.workers.properties
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=testWorker
 

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
 
4.uriworkmap.properties
/jsp-examples/*=testWorker
/jsp-examples/*.jsp=testWorker
/jsp-examples/servlet/*=testWorker
 
5.jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
 
## COMMENTS WILL BE _LOST_
 
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
 
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm
 
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
 
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
 
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
 
6.jk_iis.log
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
/localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp' from 3 maps
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/servlet/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*.jsp'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (760): Default redirection of
/jsp-examples/jsp2/el/basic-arithmetic.jsp
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/jsp-examples/jsp2/el/basic-arithmetic.jsp' from 3 maps
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/servlet/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match
testWorker - /jsp-examples/
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/jsp-examples/*.jsp'
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
map_uri_to_worker::jk_uri_worker_map.c (808): Found a suffix match
testWorker - *.jsp
[Fri Feb 11 06:13:22 2005] [2864:2668] [debug]
HttpFilterProc::jk_isapi_plugin.c (770): check if
[/jsp-examples/jsp2/el/basic-arithmetic.jsp] is points to the web-inf
directory
[Fri Fe


Configuring Tomcat 4.0 to communicate with an SSL-enabled Apache server

2005-01-21 Thread Richard.R.Myers
Where can one find information on configuring Tomcat 4.0 to communicate with
an SSL-enabled Apache server?

The 4.0 Tomcat documents on SSL (See
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html under the
heading SSL and Tomcat)
has this paragraph:

It is important to note that configuring Tomcat to take advantage of secure
sockets is usually only necessary when running it as a standalone web server.
When running Tomcat primarily as a Servlet/JSP container behind another web
server, such as Apache or Microsoft IIS, it is usually necessary to configure
the primary web server to handle the SSL connections from users. Typically,
this server will negotiate all SSL-related functionality, then pass on any
requests destined for the Tomcat container only after decrypting those
requests. Likewise, Tomcat will return cleartext responses, which will then
be encrypted by the primary server before being returned to the user's
browser. In this environment, Tomcat knows that communications between the
primary web server and the client are taking place over a secure connection
(because your application needs to be able to ask about this), but it does
not participate in the encryption or decryption itself.

The 3.3 Tomcat documents (See
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html under
the heading Tomcat and SSL)
has the same paragraph, which is then followed by this paragraph:

Information on configuring Apache for SSL can be found at either the
Apache-SSL pages, or the apache-mod_ssl project. For information on
configuring Tomcat to communicate with an SSL-enabled Apache server, see the
Tomcat with Apache and mod_jk section.


The 4.0 version has no such additional paragraph and no Tomcat with Apache
and mod_jk section either.

Richard Myers



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



Configuring Tomcat as a service of Apache

2004-09-21 Thread Luis zorita
Hi users:
I´m running Tomcat 5.0.28 and Apache 2.0.51 in w2000 server.
Now I'm trying to configure tomcat  as a service of Apache.
After reading 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html . i 
found there is a way to  auto-configure Apache setting in Tomcat..
The problem is that I don't find in server.xml the directive to 
autoconfigure Tomcat.
Any help?
Thanks
Luis Zorita

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


Configuring Tomcat 5.0.27 to run PHP 5.0.1 scripts

2004-09-15 Thread d~l

I may be in a minority here .. very sparse information found so far on this  ..

I would like to configure Tomcat 5.0.27 to run PHP 5.0.1 scripts on Tomcat server (in 
addition to PHP running on Apache server).

I do understand that PHP usually runs on Apache server (I have that combination 
working already).  I need a hybrid configuration.
__

My configuration:-

Two servers running on same Windows XP Pro platform (localhost testing mode) ..

*   Apache 2 running PHP 5.0.1  (port 88)
*   Tomcat  5.0.27 running some webapps (port 8080)

Also, Apache server is connected to Tomcat server via mod_jk2 connector

but I also require PHP 5.0.1 scripts to run on Tomcat  5.0.27..

.. for PHP (Apache) --- PHP (Tomcat) inter-server communications.

__

Searching around I found this single reference:-

http://wiki.apache.org/jakarta-tomcat/Tomcat/UsingPhp

note: on that site I read this ..



3. Patch for PHP configure Script
This is a patch for PHP's configure script to account for the servlet jar name 
change (from servlet.jar in Servlet Spec 2.3 and previous [tomcat 4 and 
previous] to servlet-api.jar in Servlet Spec 2.4 and above [tomcat 5 and 
later]):


I do have servlet-api.jar in my Tomcat 5.0.27 configuration .. \common\lib\

Does this mean I need to compile PHP 5.0.1 from source (I have used the PHP 
binary installer, not a build)?

I have in c:\Tomcat5\common\lib\

phpsrvlt.jar(copied from PHP)
servlet-api.jar
__

Here is what I have setup so far in Tomcat 5.0.27 .. 

(1) copied  phpsrvlt.jar from c:\php\ext\ intoc:\Tomcat5\common\lib\ 

(2) enabled php_java.dll extension (from this link  .. http://uk2.php.net/java/  ) 
not sure if I really need this .. but enabled it anyway

extension=php_java.dll 

(3) in C:\Tomcat5\conf\web.xml .. 

mime-mapping 
extensionphp/extension 
mime-typeapplication/x-httpd-php/mime-type 
 /mime-mapping 

 welcome-file-list 
welcome-fileindex.php/welcome-file 
 welcome-file-list 


But note ... no PHP 5.0.1 servlet mapping has yet been created in Tomcat web.xml. 

Is there a PHP 5.0.1 servlet mapping definition somewhere? 

__

Summary:-

Is there a configuration guide anywhere for configuring PHP 5.0.1 to run on Tomcat 
5.0.27 ... showing php.ini settings, and other settings in Tomcat?

__

Thanks

d~l



Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Caroline Jen
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/value
  /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]



Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Caroline Jen
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
valuecom.mckoi.JDBCDriver/value
  /parameter
  parameter
nameurl/name

valuejdbc:mckoi://localhost:/databasename?autoReconnect=true/value
  /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 port number I should give to the url
parameter?  i.e. jdbc:mckoi://localhost:/DatabaseName?autoReconnect=true



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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


Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Rick Wong
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]


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]



Problem configuring Tomcat 5 to work with Apache 2.0.50 using JK2

2004-07-13 Thread David A. Frischknecht
Hello,
I'm trying to get Tomcat 5 to work with Apache 2.0.50 on a Win2K Pro 
box.  Tomcat works fine by itself, and so does Apache.  However, when I 
follow the steps in the JK2 documentation and then try to test it, I get 
an HTTP error 500.  I've included the appropriate lines from the Apache 
error log file.  I've also included the lines from my jk2.properties, 
workers2.properties, and server.xml files.  Any help would be appreciated

Dave
--jk2.properties--
# list of needed handlers.
handler.list=apr,channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8009
--server.xml--
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector port=8009
  enableLookups=false redirectPort=8443 debug=0
  protocol=AJP/1.3 /
--workers2.properties--
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/servlets-examples/*]
worker=ajp13:localhost:8009
--error.log--
[Tue Jul 13 13:55:58 2004] [error] channelApr.open() attempt to connect 
to 127.0.0.1:8009 (127.0.0.1) failed 730061
[Tue Jul 13 13:55:58 2004] [error] ajp13.connect() failed 
ajp13:localhost:8009
[Tue Jul 13 13:55:59 2004] [error] ajp13.service() failed to connect 
endpoint errno=0 No error
[Tue Jul 13 13:55:59 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8009 1 1
[Tue Jul 13 13:55:59 2004] [error] mod_jk2.handler() Error connecting to 
tomcat 12, status 0

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


configuring tomcat and apache on windows 2000

2004-06-15 Thread Ian Parfitt
greetings
 
I'm trying to get tomcat running with apache on windows 2000.   I used
to work in UNIX a lot but have become lazy with Windows, so please
excuse my questions, the first of which is why isn't there an option to
download a windows version of apache with the tomcat servlet engine
built in? Or at least tomcat with the Jserv module included? I've got
apache http server 2.0.49 running and have downloaded and installed
jakarta-tomcat-4.1.30 and downloaded
jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip.  I extracted
the mod_jk2.so file from the latter zip to the modules folder in the
Apache2 folder.   I added a line to load that module to the httpd.conf
file.   I created a workers2.properties file (in notepad) and then cut
and pasted this
 
[channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
 
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
 
  [uri:/examples/*]
  worker=ajp13:localhost:8009

 
into it.   Then I added 
 
# The default port is 8009 but you can use another one
# channelSocket.port=8009
 
to the bottom of the jk2.properties file (in
c:\jakarta-tomcat-4.1.30\conf)
 
Apache runs, and when I run the startup.bat file tomcat starts, but
then tomcat seems to be hung at 
INFO:  Jk running ID=0 time=0/31
config=C:\jakarta-tomcat-4.1.30\bin\jk2.properties
 
Any clues or help would be greatly appreciated.
 
Ian Parfitt
Selkirk College
Castlegar, BC


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]



Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru




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]



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

Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
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

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



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]



Configuring Tomcat connections

2004-01-15 Thread Christian Cryder
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]



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]



Tools for Installing/Configuring Tomcat 4.x on Mac OS 10.2.8 and for Migrating Tomcat 3.x web applications to Tomcat 4.x

2003-11-25 Thread Asad Habib
Hello. Does anyone know of any software tools that manage the
installation/configuration of Tomcat 4.x on Mac OS 10.2.8 and
also the migration of Tomcat 3.x web applications(using JSP/Servlet
technology) to Tomcat 4.x? Thanks.

-Asad


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



Re: Tools for Installing/Configuring Tomcat 4.x on Mac OS 10.2.8 and for Migrating Tomcat 3.x web applications to Tomcat 4.x

2003-11-25 Thread Deepak Parbhoo
Hi.
Have a look at this site 
'http://www.micromata.com/M_tec/schroedinger/index.html'.
Not sure if it will handle all your requirements though.

DP

Asad Habib wrote:

Hello. Does anyone know of any software tools that manage the
installation/configuration of Tomcat 4.x on Mac OS 10.2.8 and
also the migration of Tomcat 3.x web applications(using JSP/Servlet
technology) to Tomcat 4.x? Thanks.
-Asad

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


Problems configuring Tomcat

2003-11-12 Thread crow none
Hi, i`m sorry to bother you but i have a little problem when i try to 
configure the security constraint using the deployment descriptor , an error 
like this appears  ERROR reading  java.io.FileInputstream
At Line 19 /web-app/security-constraint/.

I`d really appreciate it  if you could help me.

_
MSN. Más Útil Cada Día  http://www.msn.es/intmap/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


configuring tomcat 4.1.29 with apache 2 using mod_jk2. HELP me please

2003-11-10 Thread Dionisio Ruiz de Zarate
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]



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]


error configuring tomcat + apache with mod_jk2

2003-11-10 Thread Dionisio Ruiz de Zarate
Hello.
i am tryinf to cofigure the tomcat 4.1.29 +  apache 2.0.47 into one linux
machine.
for this pourpose i have configure in the apche conf file this:

LoadModule jk2_module /usr/lib/apache2/mod_jk2.so
Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location

and into the workers2.properties fiel i have this:

[logger.apache2]
level=DEBUG
[shm]
file=/opt/jakarta/tomcat/logs/shm_log.txt
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
#definir un worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:192.168.1.254/*.jsp]
worker=ajp13:localhost:8009
[status:status]
[uri:/jkstatus/*]
worker=status:status

i have compile the mod_jk2.so file
but when i try to load one jsp page always it produces the 500 error:

Server error!
El servidor encontro un error interno y fue imposible completar su
solicitud. Existe tambien la posibilidad de que el servidor este
sobrecargado o de algn error en un programa de CGI.
Favor de contactar al webmaster en caso de que usted crea que existe un
error en el servidor.
Error 500
192.168.1.1
Mon Nov 10 22:43:08 2003
Apache/2.0.47 (Linux/SuSE)


must i to configure the apache conf file (httpd.conf) in other form? must i
add some thing?
must i cahnge the workers2.properties file?

can anybody helpos me?
thanks



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



Re: error configuring tomcat + apache with mod_jk2

2003-11-10 Thread Andrew Davis
Try an 'apachectl configtest'. With mod_jk2, I don't believe any 
directives are allowed/permitted in httpd.conf. I was in a similar boat 
last week, only I'm using Apache 1.3.27. My *understanding* is that you 
should only Load/Add the module in httpd.conf. The workers2.properties 
file needs to be in apache_home/conf. There is also a jk2.properties 
file in tomcat_home/home that needs similar entries. I've pasted the 
relevant portions of my config files below for your reference (this is a 
working config for me at this time):

httpd.conf:

VirtualHost qa-wap1:80
ServerName qa-wap1
ServerAlias qa-wap1.sd.mydomain.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog /var/log/httpd/qa-wap1_error_log
TransferLog /var/log/httpd/qa-wap1_access_log
CustomLog /var/log/httpd/qa-wap1_referer_log referer
CustomLog /var/log/httpd/qa-wap1_agent_log agent
#
RewriteEngine on
RewriteLogLevel 0
RewriteRule ^(.*) https://qa-wap1$1 [R=301]
/VirtualHost
VirtualHost qa-wap1:443
ServerName qa-wap1
ServerAlias qa-wap1.sd.mydomain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/tomcat/webapps/MyCompany
ErrorLog /var/log/httpd/qa-wap1_ssl_error_log
TransferLog /var/log/httpd/qa-wap1_ssl_access_log
CustomLog /var/log/httpd/qa-wap1_ssl_referer_log referer
CustomLog /var/log/httpd/qa-wap1_ssl_agent_log agent
DirectoryIndex index.htm
# SSL Options
SSLEngine on
SSLCipherSuite
ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/httpd/certs/qa-wap1.crt
SSLCertificateKeyFile /etc/httpd/certs/qa-wap1.key
# End SSL Options
/VirtualHost
# Load mod_jk2
LoadModule jk2_module modules/mod_jk2.so
AddModule mod_jk2.c
workers2.properties:

#[logger.apache13]
#level=DEBUG
[shm]
file=/var/log/httpd/shm.file
size=1048576
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket.localhost:8009
# Uri mapping
[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/*.do]
worker=ajp13:localhost:8009
[uri:/servlet/*]
worker=ajp13:localhost:8009
[uri:/services/*]
worker=ajp13:localhost:8009
server.xml (snip - this is what correlates to the workers2.properties 
file for mapping to tomcat):

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   minProcessors=5
   maxProcessors=75
   acceptCount=10
   debug=0/
jk2.properties:

  ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
  ## WHEN YOU EDIT THE FILE.
  ## COMMENTS WILL BE _LOST_
  ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
handler.list=request,container,channelSocket

channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
Dionisio Ruiz de Zarate wrote:

Hello.
i am tryinf to cofigure the tomcat 4.1.29 +  apache 2.0.47 into one linux
machine.
for this pourpose i have configure in the apche conf file this:
LoadModule jk2_module /usr/lib/apache2/mod_jk2.so
Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location
and into the workers2.properties fiel i have this:

[logger.apache2]
level=DEBUG
[shm]
file=/opt/jakarta/tomcat/logs/shm_log.txt
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
#definir un worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:192.168.1.254/*.jsp]
worker=ajp13:localhost:8009
[status:status]
[uri:/jkstatus/*]
worker=status:status
i have compile the mod_jk2.so file
but when i try to load one jsp page always it produces the 500 error:
Server error!
El servidor encontro un error interno y fue imposible completar su
solicitud. Existe tambien la posibilidad de que el servidor este
sobrecargado o de algún error en un programa de CGI.
Favor de contactar al webmaster en caso de que usted crea que existe un
error en el servidor.
Error 500

Configuring tomcat web server

2003-11-06 Thread Dominique Boyer
letterHi,

I'm quite newbie in tomcat configuration !

I would like to add a DNS that throw on a directory.
I think that i have to work with connector (Coyote HTTP/1.1), but i have no
idea of what file to change and no example.

Is someone have a file or a example ?

my version is : Apache Tomcat/4.1.29


Thanks a lot



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


Configuring Tomcat

2003-10-29 Thread Balan Srinivasan
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.

Thanks  BRgds
Balan Srinivasan
201.860.2955


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Hari Krishna \( Associate \)
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]



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]


Configuring tomcat for 2 ip addresses

2003-10-09 Thread Srinivasu Gandu
Hi All,

I am using tomcat 4.1.24 Standalone on linux red hat machine. J2EE
architecture. I have two applications to launch in same machine tomcat (one
instance).
How do I do the following configuration in server.xml?
Example:
1) I have people hitting using www.domain1.com (IP Address:000.00.00.0) to
the folder1(app1) under tomcat web-apps directory.

2) I have people hitting using www.domain2.com (IP Address:111.11.11.1) to
the folder2(app2) under tomcat web-apps directory.

I have done configuring Context tag. I am unable to configuring the Host
tag by looking at the documentation. Kind of newbi to the set up.
I need help in configuring Host tag. Any code example will help, will
appreciate it.

Thanks - Srini.

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



error configuring tomcat

2003-09-23 Thread Dionisio Ruiz de Zarate
Hello.
i want to configure intomcat one new context
(http://localhost/myNewContext/ )
I have the new structure:

$home
|--webapps
  |--ROOT
  | |..
  |--myNewcontext

and in the conf file i put:
Context path=/myNewContext docBase= debug=0 reloadable=true
crossContext=true


but it doesn't run well
can you help me for configure one new context?
thanks



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



RE: error configuring tomcat

2003-09-23 Thread robert.tomlin
docBase=myNewcontext

-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]
Sent: 23 September 2003 13:21
To: [EMAIL PROTECTED]
Subject: error configuring tomcat


Hello.
i want to configure intomcat one new context
(http://localhost/myNewContext/ )
I have the new structure:

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



RE: error configuring tomcat

2003-09-23 Thread Shapira, Yoav

Howdy,
What's under myNewContext?  Specifically, is there a valid
WEB-INF/web.xml file?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: error configuring tomcat

Hello.
i want to configure intomcat one new context
(http://localhost/myNewContext/ )
I have the new structure:

$home
|--webapps
  |--ROOT
  | |..
  |--myNewcontext

and in the conf file i put:
Context path=/myNewContext docBase= debug=0 reloadable=true
crossContext=true


but it doesn't run well
can you help me for configure one new context?
thanks



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



Configuring Tomcat to NOT run as Root

2003-08-26 Thread Scott W Ricketts
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]
___

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]


A problem with configuring tomcat with apache.

2003-07-28 Thread J. Joe Wang
Dear all,

I am trying to configure tomcat 4.0.4 with apache 1.3.26 on redhat 7.2.
The installation of apache is a normal one. i.e. ./configure, make, make
install. The installation of tomcat 4.0.4 is also a normal one. And I
followed the install.txt come with webapp_module. 
i.e. 
(1)copy mod_webapp.so apache directory/libexec/., 
(2)modified apache httpd.conf with LoadModule webapp_module
libexec/mod_webapp.so and AddModule mod_webapp.c, 
(3)add 
IfModule mod_webapp.c
WebAppConnection warpConn warp localhost:8008
WebAppDeploy examples warpConn /examples
WebAppInfo /webapp-info
/IfModule
to the end of httpd.conf.

But when I tried to start the apache, it gave out a warn and couldn't be
started.  
Here is the message.
[warn] module mod_webapp.c is already added, skippingSyntax error on
line 1037 of /usr/local/apache/conf/httpd.conf:

Both of the WebAppDeploy examples warpConn /examples and WebAppInfo
/webapp-info can give out this warn message. If I removed them, then the
apache can be started. 

So can anybody help me out with this problem. I guess it is due to some
mis-configuration, but I really have no idea what is wrong. 

Any information will be highly appreciated!

Thanks,
Joe



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



Re: A problem with configuring tomcat with apache.

2003-07-28 Thread John Turner
Are you sure there is only one LoadModule/AddModule pair for mod_webapp?

What is on line 1037 of httpd.conf?

John

J. Joe Wang wrote:
Dear all,

I am trying to configure tomcat 4.0.4 with apache 1.3.26 on redhat 7.2.
The installation of apache is a normal one. i.e. ./configure, make, make
install. The installation of tomcat 4.0.4 is also a normal one. And I
followed the install.txt come with webapp_module. 
i.e. 
(1)copy mod_webapp.so apache directory/libexec/., 
(2)modified apache httpd.conf with LoadModule webapp_module
libexec/mod_webapp.so and AddModule mod_webapp.c, 
(3)add 
IfModule mod_webapp.c
WebAppConnection warpConn warp localhost:8008
WebAppDeploy examples warpConn /examples
WebAppInfo /webapp-info
/IfModule
to the end of httpd.conf.

But when I tried to start the apache, it gave out a warn and couldn't be
started.  
Here is the message.
[warn] module mod_webapp.c is already added, skippingSyntax error on
line 1037 of /usr/local/apache/conf/httpd.conf:

Both of the WebAppDeploy examples warpConn /examples and WebAppInfo
/webapp-info can give out this warn message. If I removed them, then the
apache can be started. 

So can anybody help me out with this problem. I guess it is due to some
mis-configuration, but I really have no idea what is wrong. 

Any information will be highly appreciated!

Thanks,
Joe


-
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: A problem with configuring tomcat with apache.

2003-07-28 Thread J. Joe Wang
Hi John,

Thanks for the reply!
Yeah, there is only one LoadModule/AddModule pair for mod_webapp. 
Here is the LoadModule/AddModule block in my httpd.conf.
  LoadModule php4_modulelibexec/libphp4.so
  LoadModule webapp_module libexec/mod_webapp.so

  AddModule mod_webapp.c

The line 1035 is
  IfModule mod_webapp.c
The line 1036 is 
  WebAppConnection warpConn warp localhost:8008
The line 1037 is 
  WebAppDeploy examples warpConn /examples
The line 1038 is 
  WebAppInfo /webapp-info
And the line 1039 (last line of httpd.conf)
  /IfModule

If I remove line 1037 and 1038, then the apache can be started. 

Thanks!



On Mon, 2003-07-28 at 10:42, John Turner wrote:
 Are you sure there is only one LoadModule/AddModule pair for mod_webapp?
 
 What is on line 1037 of httpd.conf?
 
 John
 
 J. Joe Wang wrote:
  Dear all,
  
  I am trying to configure tomcat 4.0.4 with apache 1.3.26 on redhat 7.2.
  The installation of apache is a normal one. i.e. ./configure, make, make
  install. The installation of tomcat 4.0.4 is also a normal one. And I
  followed the install.txt come with webapp_module. 
  i.e. 
  (1)copy mod_webapp.so apache directory/libexec/., 
  (2)modified apache httpd.conf with LoadModule webapp_module
  libexec/mod_webapp.so and AddModule mod_webapp.c, 
  (3)add 
  IfModule mod_webapp.c
  WebAppConnection warpConn warp localhost:8008
  WebAppDeploy examples warpConn /examples
  WebAppInfo /webapp-info
  /IfModule
  to the end of httpd.conf.
  
  But when I tried to start the apache, it gave out a warn and couldn't be
  started.  
  Here is the message.
  [warn] module mod_webapp.c is already added, skippingSyntax error on
  line 1037 of /usr/local/apache/conf/httpd.conf:
  
  Both of the WebAppDeploy examples warpConn /examples and WebAppInfo
  /webapp-info can give out this warn message. If I removed them, then the
  apache can be started. 
  
  So can anybody help me out with this problem. I guess it is due to some
  mis-configuration, but I really have no idea what is wrong. 
  
  Any information will be highly appreciated!
  
  Thanks,
  Joe
  
  
  
  -
  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: A problem with configuring tomcat with apache.

2003-07-28 Thread Eric J. Pinnell
Hi,

This is the mod_webapp config that comes with Solaris.  I think I ran it
for about a day or two.

in httpd.conf the last line is:

include /etc/apache/tomcat.conf

tomcat.conf:

LoadModule webapp_modulelibexec/mod_webapp.so
AddModule mod_webapp.c
WebAppConnectionconnwarplocalhost:8008
WebAppDeployexamplesconn/examples/
# WebAppInfo  /webapp-info

So not much different from your file except for a trailing slash on
/examples/ .
They also comment out WebAppInfo by default for security reasons.

There is no ifmodule statement.  If you want to turn tomcat off you
comment out the include from httpd.conf.

-e


On Mon, 28 Jul 2003, J. Joe Wang wrote:

 Hi John,

 Thanks for the reply!
 Yeah, there is only one LoadModule/AddModule pair for mod_webapp.
 Here is the LoadModule/AddModule block in my httpd.conf.
   LoadModule php4_modulelibexec/libphp4.so
   LoadModule webapp_module libexec/mod_webapp.so

   AddModule mod_webapp.c

 The line 1035 is
   IfModule mod_webapp.c
 The line 1036 is
   WebAppConnection warpConn warp localhost:8008
 The line 1037 is
   WebAppDeploy examples warpConn /examples
 The line 1038 is
   WebAppInfo /webapp-info
 And the line 1039 (last line of httpd.conf)
   /IfModule

 If I remove line 1037 and 1038, then the apache can be started.

 Thanks!



 On Mon, 2003-07-28 at 10:42, John Turner wrote:
  Are you sure there is only one LoadModule/AddModule pair for mod_webapp?
 
  What is on line 1037 of httpd.conf?
 
  John
 
  J. Joe Wang wrote:
   Dear all,
  
   I am trying to configure tomcat 4.0.4 with apache 1.3.26 on redhat 7.2.
   The installation of apache is a normal one. i.e. ./configure, make, make
   install. The installation of tomcat 4.0.4 is also a normal one. And I
   followed the install.txt come with webapp_module.
   i.e.
   (1)copy mod_webapp.so apache directory/libexec/.,
   (2)modified apache httpd.conf with LoadModule webapp_module
   libexec/mod_webapp.so and AddModule mod_webapp.c,
   (3)add
   IfModule mod_webapp.c
   WebAppConnection warpConn warp localhost:8008
   WebAppDeploy examples warpConn /examples
   WebAppInfo /webapp-info
   /IfModule
   to the end of httpd.conf.
  
   But when I tried to start the apache, it gave out a warn and couldn't be
   started.
   Here is the message.
   [warn] module mod_webapp.c is already added, skippingSyntax error on
   line 1037 of /usr/local/apache/conf/httpd.conf:
  
   Both of the WebAppDeploy examples warpConn /examples and WebAppInfo
   /webapp-info can give out this warn message. If I removed them, then the
   apache can be started.
  
   So can anybody help me out with this problem. I guess it is due to some
   mis-configuration, but I really have no idea what is wrong.
  
   Any information will be highly appreciated!
  
   Thanks,
   Joe
  
  
  
   -
   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: A problem with configuring tomcat with apache.

2003-07-28 Thread John Turner
Sounds like you have mod_webapp loaded anyway.  Is it statically linked 
or somehing?

Sorry, I don't use mod_webapp (and you shouldn't, either! ;) ), so I 
can't help much beyond the basic Apache-related config stuff like 
LoadModule and AddModule.

John

J. Joe Wang wrote:

Hi John,

Thanks for the reply!
Yeah, there is only one LoadModule/AddModule pair for mod_webapp. 
Here is the LoadModule/AddModule block in my httpd.conf.
  LoadModule php4_modulelibexec/libphp4.so
  LoadModule webapp_module libexec/mod_webapp.so

  AddModule mod_webapp.c

The line 1035 is
  IfModule mod_webapp.c
The line 1036 is 
  WebAppConnection warpConn warp localhost:8008
The line 1037 is 
  WebAppDeploy examples warpConn /examples
The line 1038 is 
  WebAppInfo /webapp-info
And the line 1039 (last line of httpd.conf)
  /IfModule

If I remove line 1037 and 1038, then the apache can be started. 

Thanks!





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


Re: A problem with configuring tomcat with apache.

2003-07-28 Thread J. Joe Wang
Hi John,

Then what do you think I should use?

Thanks,
Joe
On Mon, 2003-07-28 at 12:17, John Turner wrote:
 Sounds like you have mod_webapp loaded anyway.  Is it statically linked 
 or somehing?
 
 Sorry, I don't use mod_webapp (and you shouldn't, either! ;) ), so I 
 can't help much beyond the basic Apache-related config stuff like 
 LoadModule and AddModule.
 
 John
 
 J. Joe Wang wrote:
 
  Hi John,
  
  Thanks for the reply!
  Yeah, there is only one LoadModule/AddModule pair for mod_webapp. 
  Here is the LoadModule/AddModule block in my httpd.conf.
LoadModule php4_modulelibexec/libphp4.so
LoadModule webapp_module libexec/mod_webapp.so
  
AddModule mod_webapp.c
  
  The line 1035 is
IfModule mod_webapp.c
  The line 1036 is 
WebAppConnection warpConn warp localhost:8008
  The line 1037 is 
WebAppDeploy examples warpConn /examples
  The line 1038 is 
WebAppInfo /webapp-info
  And the line 1039 (last line of httpd.conf)
/IfModule
  
  If I remove line 1037 and 1038, then the apache can be started. 
  
  Thanks!
  
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: A problem with configuring tomcat with apache.

2003-07-28 Thread John Turner
mod_webapp is no longer actively developed, and has some problems that 
will most likely never be addressed unless someone wants to revive the 
project.

The recommended connectors are JK (mod_jk.so) or JK2 (mod_jk2.so). 
There are pros and cons to either, which you choose is up to you.

http://jakarta.apache.org/tomcat/faq/connectors.html

John

J. Joe Wang wrote:

Hi John,

Then what do you think I should use?

Thanks,
Joe
On Mon, 2003-07-28 at 12:17, John Turner wrote:
Sounds like you have mod_webapp loaded anyway.  Is it statically linked 
or somehing?

Sorry, I don't use mod_webapp (and you shouldn't, either! ;) ), so I 
can't help much beyond the basic Apache-related config stuff like 
LoadModule and AddModule.

John

J. Joe Wang wrote:


Hi John,

Thanks for the reply!
Yeah, there is only one LoadModule/AddModule pair for mod_webapp. 
Here is the LoadModule/AddModule block in my httpd.conf.
 LoadModule php4_modulelibexec/libphp4.so
 LoadModule webapp_module libexec/mod_webapp.so

 AddModule mod_webapp.c

The line 1035 is
 IfModule mod_webapp.c
The line 1036 is 
 WebAppConnection warpConn warp localhost:8008
The line 1037 is 
 WebAppDeploy examples warpConn /examples
The line 1038 is 
 WebAppInfo /webapp-info
And the line 1039 (last line of httpd.conf)
 /IfModule

If I remove line 1037 and 1038, then the apache can be started. 

Thanks!





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


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


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


Re: Help needed in configuring tomcat 4.1.24

2003-07-24 Thread Zach Gatu
Make sure the your Connector directive ends with / or /Connector, 
i.e. make sure that it's a valid xml tag.

Also take out !-- WEB_PORT -- from within Connector ... /

Restart Tomcat and see if you can shut it down without errors.

Zach.

Sarika Inamdar wrote:

Hi All,

We need to start tomcat with a user-defined port. To enable the same ,
in server.xml, we give the following 

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
!-- WEB_PORT --port=8080  
   minProcessors=5 maxProcessors=75

In our start script, we grep for WEB_PORT and replace the default port
value with a user-defined port.
With this modification, tomcat starts properly. But when I give
shutdown.sh command to stop tomcat , I get the following parse exception
:
bash-2.03# ./shutdown.sh 
Using CATALINA_BASE:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_HOME:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /export/spare/CSCOPerfE/tools/jdk
Jul 23, 2003 3:12:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 93 column 5: Element type Connector
must be followed by either attribute specifications,  or /.
org.xml.sax.SAXParseException: Element type Connector must be followed
by either attribute specifications,  or /.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)

Is there anyway we can avoid this exception ? Any help in this regard
would be useful.
Thanks in Advance,
Sarika






-
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: Help needed in configuring tomcat 4.1.24

2003-07-24 Thread Tang
Hi, your server.xml file isn't a well form xml file, so XML parser reports
error. It seems no way to place a comment block into a tag. So you should
remove !--WEB_PORT-- tag from server.xml when done.

- Original Message -
From: René Vangsgaard ML [EMAIL PROTECTED]
To: 'Sarika Inamdar ' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 6:27 PM
Subject: RE: Help needed in configuring tomcat 4.1.24


The xml parser complains about the comment inside the tag. I think you have
to use grep when you shutdown as well in order to remove the WEB_PORT
comment.

/René

-Original Message-
From: Sarika Inamdar
To: [EMAIL PROTECTED]
Sent: 23-07-03 11:53
Subject: Help needed in configuring tomcat 4.1.24

Hi All,

We need to start tomcat with a user-defined port. To enable the same ,
in server.xml, we give the following

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
!-- WEB_PORT --port=8080
   minProcessors=5 maxProcessors=75


In our start script, we grep for WEB_PORT and replace the default port
value with a user-defined port.

With this modification, tomcat starts properly. But when I give
shutdown.sh command to stop tomcat , I get the following parse exception
:
bash-2.03# ./shutdown.sh
Using CATALINA_BASE:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_HOME:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /export/spare/CSCOPerfE/tools/jdk
Jul 23, 2003 3:12:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 93 column 5: Element type Connector
must be followed by either attribute specifications,  or /.
org.xml.sax.SAXParseException: Element type Connector must be followed
by either attribute specifications,  or /.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)

Is there anyway we can avoid this exception ? Any help in this regard
would be useful.

Thanks in Advance,
Sarika







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



Help needed in configuring tomcat 4.1.24

2003-07-23 Thread Sarika Inamdar
Hi All,

We need to start tomcat with a user-defined port. To enable the same ,
in server.xml, we give the following 

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
!-- WEB_PORT --port=8080  
   minProcessors=5 maxProcessors=75


In our start script, we grep for WEB_PORT and replace the default port
value with a user-defined port.

With this modification, tomcat starts properly. But when I give
shutdown.sh command to stop tomcat , I get the following parse exception
:
bash-2.03# ./shutdown.sh 
Using CATALINA_BASE:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_HOME:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /export/spare/CSCOPerfE/tools/jdk
Jul 23, 2003 3:12:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 93 column 5: Element type Connector
must be followed by either attribute specifications,  or /.
org.xml.sax.SAXParseException: Element type Connector must be followed
by either attribute specifications,  or /.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)

Is there anyway we can avoid this exception ? Any help in this regard
would be useful.

Thanks in Advance,
Sarika







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



RE: Help needed in configuring tomcat 4.1.24

2003-07-23 Thread René Vangsgaard ML
The xml parser complains about the comment inside the tag. I think you have
to use grep when you shutdown as well in order to remove the WEB_PORT
comment.

/René

-Original Message-
From: Sarika Inamdar 
To: [EMAIL PROTECTED]
Sent: 23-07-03 11:53
Subject: Help needed in configuring tomcat 4.1.24

Hi All,

We need to start tomcat with a user-defined port. To enable the same ,
in server.xml, we give the following 

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
!-- WEB_PORT --port=8080  
   minProcessors=5 maxProcessors=75


In our start script, we grep for WEB_PORT and replace the default port
value with a user-defined port.

With this modification, tomcat starts properly. But when I give
shutdown.sh command to stop tomcat , I get the following parse exception
:
bash-2.03# ./shutdown.sh 
Using CATALINA_BASE:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_HOME:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /export/spare/CSCOPerfE/tools/jdk
Jul 23, 2003 3:12:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 93 column 5: Element type Connector
must be followed by either attribute specifications,  or /.
org.xml.sax.SAXParseException: Element type Connector must be followed
by either attribute specifications,  or /.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)

Is there anyway we can avoid this exception ? Any help in this regard
would be useful.

Thanks in Advance,
Sarika







-
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: Help needed in configuring tomcat 4.1.24

2003-07-23 Thread Shapira, Yoav

Howdy,
You have to be consistent in your grep/replace operation for startup and
shutdown.  Alternatively you can do it in one place, catalina.sh.

I really dislike XML comments inside tags: they're confusing and hard to
read.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 5:54 AM
To: [EMAIL PROTECTED]
Subject: Help needed in configuring tomcat 4.1.24

Hi All,

We need to start tomcat with a user-defined port. To enable the same ,
in server.xml, we give the following

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
!-- WEB_PORT --port=8080
   minProcessors=5 maxProcessors=75


In our start script, we grep for WEB_PORT and replace the default
port
value with a user-defined port.

With this modification, tomcat starts properly. But when I give
shutdown.sh command to stop tomcat , I get the following parse
exception
:
bash-2.03# ./shutdown.sh
Using CATALINA_BASE:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_HOME:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /export/spare/CSCOPerfE/tools/jdk
Jul 23, 2003 3:12:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 93 column 5: Element type Connector
must be followed by either attribute specifications,  or /.
org.xml.sax.SAXParseException: Element type Connector must be
followed
by either attribute specifications,  or /.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn
o
wn Source)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
U
nknown Source)

Is there anyway we can avoid this exception ? Any help in this regard
would be useful.

Thanks in Advance,
Sarika







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


Configuring Tomcat (NEWBIE)

2003-07-22 Thread Olumide
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(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)
..
..
..

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]


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]



Configuring tomcat to use seperate conf/server.xml files

2003-07-09 Thread Owen Fellows
Hi,

I'm trying to configure multiple instances of the same tomcat.

I want to have one tomcat and one webapp but multiple server.xml files (distinct datasourve per application).

Is this possible in tomcat 4.1.12.
I've tried setting CATALINA_HOME to the tomcat installation
and setting CATALINA_BASE to be the directory with conf/server.xml in.
It seems to find the webapp (via a sym link) but get the following output in the logs dir

2003-07-10 15:17:27 WebappLoader[]: Deploying class repositories to work directory my 
dir/Standalone/localhost/_
2003-07-10 15:17:27 WebappLoader[]: Reloading checks are enabled for this Context
2003-07-10 15:17:27 ContextConfig[]: Missing application web.xml, using defaults only
2003-07-10 15:17:27 StandardManager[]: Seeding random number generator class 
java.security.SecureRandom
2003-07-10 15:17:27 StandardManager[]: Seeding of random number generator has been 
completed
2003-07-10 15:17:27 StandardWrapper[:default]: Loading container servlet default
2003-07-10 15:17:27 StandardWrapper[:invoker]: Loading container servlet invoker
and
2003-07-10 15:17:33 StandardHost[localhost]: Removing web application at context path
Thanks for any help,
Owen


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


_Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Kyle Lange
Hi,

If this has come through 2ce now, please forgive. The 1st one I sent came back
with the signup response. 


I'm hoping someone can help me out here pls.

Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my 
sendmail is configured to listen on a different port to 25.

Is there any way, without having to rewrite code, to configure 
server.xml to contact sendmail on a port different to 25?

I would've thought I could add the port nr. to the end of the host decl. in my
mail.smtp.host resource-param, but it doesn't appear to like that.

If I've missed a piece of documentation, please just point it out.

MTiA

K



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



RE: _Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Shapira, Yoav

Howdy,
Does specifying a mail.smtp.port work?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kyle Lange [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:50 AM
To: [EMAIL PROTECTED]
Subject: _Not_ Port 25. Configuring Tomcat for sendmail

Hi,

If this has come through 2ce now, please forgive. The 1st one I sent
came
back
with the signup response.


I'm hoping someone can help me out here pls.

Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my
sendmail is configured to listen on a different port to 25.

Is there any way, without having to rewrite code, to configure
server.xml to contact sendmail on a port different to 25?

I would've thought I could add the port nr. to the end of the host
decl. in
my
mail.smtp.host resource-param, but it doesn't appear to like that.

If I've missed a piece of documentation, please just point it out.

MTiA

K



-
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: _Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Kyle Lange
Works like a charm.

Thank you Yoav. 

Is that documented somewhere and I just plain missed it?

K

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 3:01 PM
To: Tomcat Users List
Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail 



Howdy,
Does specifying a mail.smtp.port work?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kyle Lange [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:50 AM
To: [EMAIL PROTECTED]
Subject: _Not_ Port 25. Configuring Tomcat for sendmail

Hi,

If this has come through 2ce now, please forgive. The 1st one I sent
came
back
with the signup response.


I'm hoping someone can help me out here pls.

Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my 
sendmail is configured to listen on a different port to 25.

Is there any way, without having to rewrite code, to configure 
server.xml to contact sendmail on a port different to 25?

I would've thought I could add the port nr. to the end of the host
decl. in
my
mail.smtp.host resource-param, but it doesn't appear to like that.

If I've missed a piece of documentation, please just point it out.

MTiA

K



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




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


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


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



RE: _Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Shapira, Yoav

Howdy,
I'm probably opening a can of worms here...

- It's not super clearly documented, but
- If you know your JNDI, and
- You look at this code:
http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/
apache/naming/factory/MailSessionFactory.java?rev=1.2content-type=text/
vnd.viewcvs-markup
- And you look at this JavaDoc:
http://java.sun.com/products/javamail/1.3/docs/javadocs/com/sun/mail/smt
p/package-summary.html

It's pretty sad that I had the contents of the above two URLs in my head
already without consulting them ;(

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kyle Lange [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:05 AM
To: 'Tomcat Users List'
Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail

Works like a charm.

Thank you Yoav.

Is that documented somewhere and I just plain missed it?

K

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 3:01 PM
To: Tomcat Users List
Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail



Howdy,
Does specifying a mail.smtp.port work?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kyle Lange [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:50 AM
To: [EMAIL PROTECTED]
Subject: _Not_ Port 25. Configuring Tomcat for sendmail

Hi,

If this has come through 2ce now, please forgive. The 1st one I sent
came
back
with the signup response.


I'm hoping someone can help me out here pls.

Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However
my
sendmail is configured to listen on a different port to 25.

Is there any way, without having to rewrite code, to configure
server.xml to contact sendmail on a port different to 25?

I would've thought I could add the port nr. to the end of the host
decl. in
my
mail.smtp.host resource-param, but it doesn't appear to like that.

If I've missed a piece of documentation, please just point it out.

MTiA

K



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




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


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


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




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]



_Not_ Port 25. Configuring Tomcat for sendmail; SORRY 'bout the Rcpt.

2003-06-13 Thread Kyle Lange
It's set up by default and forgot to switch it off. 


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



Configuring Tomcat for multiple applications/users

2003-04-02 Thread dwightHugget
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]



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]



Configuring Tomcat for multiple applications/users

2003-04-01 Thread dwightHugget
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]



  1   2   3   4   >