Need Help in Server.XML

2003-03-26 Thread Surendra Kumar
Hi,
We were using Tomcat version 3.3.1 in our product and everything wad
working fine. Recently Tomcat released 3.3.1a with
security updates. To fix the security issue we have replaced the 4 jar files
(tomcat.jar, tomcat_modules.jar, tomcat_util.jar, facade22.jar)
mentioned in the report.
After updating the jar files our product is not working and throwing
class not found exception.
In server.xml we have the following configuration

#
LoaderInterceptor11 useApplicationLoader=true jarSeparator=;
additionalJars=C:\PROGRA~1\myclasspath;C:\PROGRA~1\classpath debug=10 /
#

After updating the tomcat jar files, the dir
C:\PROGRA~1\myclasspath;C:\PROGRA~1\classpath is not added in the
context's
classpath and all access to class files in this directory throws Class Not
Found Exception

We have narrowed down the problem to tomcat_modules.jar. If we replace
this jar file from 3.3.1 version, everything works
fine.

I have downloaded the source for 3.3.1 and 3.3.1a and i didn't find any
change in LoaderInterceptor11.java. But the size of classfiles
in both jar are not same.

I have enabled debug for this module and the only difference i could note is
an extra / character is missing at the end of classpath
with new jar files. following are diff

 LoaderInterceptor11: file:C:/PROGRA~1/myclasspath
 LoaderInterceptor11: file:C:/PROGRA~1//classpath
 LoaderInterceptor11: DEFAULT:/test adding: file:C:/PROGRA~1/myclasspath
 LoaderInterceptor11: DEFAULT:/test adding: file:C:/PROGRA~1/classpath
---
 LoaderInterceptor11: file:C:/PROGRA~1/myclasspath/
 LoaderInterceptor11: file:C:/PROGRA~1/classpath/
 LoaderInterceptor11: DEFAULT:/test adding:
file:C:/PROGRA~1/CSCOpx/myclasspath/
 LoaderInterceptor11: DEFAULT:/test adding:
file:C:/PROGRA~1/CSCOpx/classpath/


I need help on debugging this. Thanks for any help and suggestion.

Regards
Surendra


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



Re: help with server.xml

2002-08-03 Thread Michael E. Locasto

Mona,

I'm assuming you are running Tomcat 4.04 standalone, on :8080. Not quite
sure
exactly what the issue is here, but I have some suggestions:

Just for fun, try a different browser to see if the problem is client side.

Does the user Tomcat is installed as have permissions to read those
directories '/scratch/project/telescience'?

Also, turn up your log levels (crank all those 'debug' attributes up to 99),
restart Tomcat, and look at your server log files and see what they say.
Post any errors here if you still have problems.

Regards,
Michael


- Original Message -
From: Mona Wong-Barnum [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 10:35 PM
Subject: help with server.xml



 Hi:

 I'm new to Tomcat and am trying to configure 4.0.4.  I modified
 server.xml appBase and docBase:

   Host name=localhost debug=0
   appBase=/scratch/project/telescience/webapps unpackWARs=true

   [...]

 !-- Tomcat Root Context --
 Context path= docBase=/scratch/project/telescience debug=0/

   /Host

   I have a index.html in the /scratch/project/telescience/ directory.
When
 I tried to access that page via the URL using Netscape, I keep getting:

   A network error occurred while Netscape was receiving data.
   (Network Error. I/O error)

   Try connecting again.

   What am I doing wrong?  I looked all over for an answer but having
found
 it so I decided to post to the list.

   All help is really appreciated.

 Sincerely,

 Mona

 ==
 Mona Wong-Barnum
 National Center for Microscopy and Imaging Research
 University of California, San Diego
 http://ncmir.ucsd.edu/

 The truth shall set you free, but first it will piss you off
 A Landmark instructor
 ==



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


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




help with server.xml

2002-08-02 Thread Mona Wong-Barnum


Hi:

I'm new to Tomcat and am trying to configure 4.0.4.  I modified 
server.xml appBase and docBase:

  Host name=localhost debug=0
  appBase=/scratch/project/telescience/webapps unpackWARs=true
  
  [...]
  
!-- Tomcat Root Context --
Context path= docBase=/scratch/project/telescience debug=0/

  /Host
  
  I have a index.html in the /scratch/project/telescience/ directory.  When 
I tried to access that page via the URL using Netscape, I keep getting:
  
  A network error occurred while Netscape was receiving data.
  (Network Error. I/O error)
  
  Try connecting again.
  
  What am I doing wrong?  I looked all over for an answer but having found 
it so I decided to post to the list.
  
  All help is really appreciated.
  
Sincerely,

Mona

==
Mona Wong-Barnum
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/

The truth shall set you free, but first it will piss you off
A Landmark instructor
==



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




Re: HELP on server.xml PLEASE

2002-02-03 Thread Janet Kaufman

  
  
- Original Message -
From: Micael Padraig Og mac Grene
Sent: Saturday, February 02, 2002 2:06 AM
To: Tomcat Users List
Subject: Re: HELP on server.xml PLEASE
  
Thanks, Rick.  I guess I was not clear.  What I need is a way to set the
context for different urls rather than aliases for a single url. Micael

At 05:58 PM 2/1/02 -0500, you wrote:
Michael,

There should be a folder under the tomcat installation director called
webapps.  Under that folder you should create a new folder for your jsp
pages.  Lets call your new folder home for argument sake.  Under the
home folder you should have created a folder called WEB-INF.  Under
WEB-INF you should have created two additional folders called classes and
lib.  So, your directory structure should look like this:

Tomcat
 -home
 --WEB-INF
 ---classes
 ---lib

Place your jsp files under the home directory, the custom classes under
the WEB-INF\classes directory and your custom JAR files under the
WEB-INF\lib directory.

Now to access your files go to: http://server:port/home/something.jsp or
html.

Hope this helps!
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 01, 2002 4:13 PM
Subject: HELP on server.xml PLEASE


  My forte is Java and at the XML configuration of Tomcat I suck.  Could
  someone please help me with this?  It would be greatly appreciated.
 
  If I add the following to servlet.xml, then I get the startup.sh to create
  the proper directories under TOMCAT_HOME/work/.  But, then I cannot reach
  my site with the urls.  If I don't add these, then I can reach the site,
  but without the create of the appropriate subfolders.  What is up?
 
 
 
  Context path=/ourforge
  docBase=webapps/ourforge
  debug=0
  reloadable=true
  /Context
  Context path=/micael
  docBase=webapps/micael
  debug=0
  reloadable=true 
  /Context
  Context path=/db
  docBase=webapps/db
  debug=0
  reloadable=true 
  /Context
  Context path=/ctr
  docBase=webapps/ctr
  debug=0
  reloadable=true 
  /Context
 
  !-- Example Server Configuration File --
  !-- Note that component elements are nested corresponding to their
parent-child relationships with each other --
 
  !-- A Server is a singleton element that represents the entire JVM,
which may contain one or more Service instances.  The Server
listens for a shutdown command on the indicated port.
 
Note:  A Server is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--
 
  Server port=8005 shutdown=SHUTDOWN debug=0
 
 
 !-- A Service is a collection of one or more Connectors that share
  a single Container (and therefore the web applications visible
  within that Container).  Normally, that Container is an Engine,
  but this is not required.
 
  Note:  A Service is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --
 
 !-- Define the Tomcat Stand-Alone Service --
 Service name=Tomcat-Standalone
 
   !-- A Connector represents an endpoint by which requests are
received
and responses are returned.  Each Connector passes requests on
to the
associated Container (normally an Engine) for processing.
 
By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second
  Connector
entry.  SSL support requires the following steps (see the SSL
Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR
files
  into $JAVA_HOME/jre/lib/ext.
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
  (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
  with a password value of changeit for both the certificate
and
  the keystore itself.
 
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost().  This can have an adverse impact on
performance, so you can disable it by setting the
enableLookups attribute to false.  When DNS lookups are
disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
   --
 
   !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
   Connector
className=org.apache.catalina.connector.http.HttpConnector
  port=8080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=6/
   !-- Note : To disable connection

Re: HELP on server.xml PLEASE

2002-02-02 Thread Rich Hansen

 Okay.  try to change the following from:

 docBase=webapps/ourforge

 to:

 docBase=ourforge

 Here is an example I have:

 Context path=/search
 docBase=quest/portalsearch
 crossContext=false
 debug=0
 reloadable=true
 /Context

 Note: the quest folder resides under the webapps folder such as
 webapps\quest

 - Rich

 - Original Message -
 From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, February 02, 2002 1:52 AM
 Subject: Re: HELP on server.xml PLEASE


  Thanks, Rick.  I guess I was not clear.  What I need is a way to set the
  context for different urls rather than aliases for a single url. Micael
 
  At 05:58 PM 2/1/02 -0500, you wrote:
  Michael,
  
  There should be a folder under the tomcat installation director called
  webapps.  Under that folder you should create a new folder for your
jsp
  pages.  Lets call your new folder home for argument sake.  Under the
  home folder you should have created a folder called WEB-INF.  Under
  WEB-INF you should have created two additional folders called classes
 and
  lib.  So, your directory structure should look like this:
  
  Tomcat
   -home
   --WEB-INF
   ---classes
   ---lib
  
  Place your jsp files under the home directory, the custom classes
under
  the WEB-INF\classes directory and your custom JAR files under the
  WEB-INF\lib directory.
  
  Now to access your files go to:
http://server:port/home/something.jsp
 or
  html.
  
  Hope this helps!
  - Original Message -
  From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, February 01, 2002 4:13 PM
  Subject: HELP on server.xml PLEASE
  
  
My forte is Java and at the XML configuration of Tomcat I suck.
Could
someone please help me with this?  It would be greatly appreciated.
   
If I add the following to servlet.xml, then I get the startup.sh to
 create
the proper directories under TOMCAT_HOME/work/.  But, then I cannot
 reach
my site with the urls.  If I don't add these, then I can reach the
 site,
but without the create of the appropriate subfolders.  What is up?
   
   
   
Context path=/ourforge
docBase=webapps/ourforge
debug=0
reloadable=true
/Context
Context path=/micael
docBase=webapps/micael
debug=0
reloadable=true 
/Context
Context path=/db
docBase=webapps/db
debug=0
reloadable=true 
/Context
Context path=/ctr
docBase=webapps/ctr
debug=0
reloadable=true 
/Context
   
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
   
!-- A Server is a singleton element that represents the entire
JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
   
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this
 level.
  --
   
Server port=8005 shutdown=SHUTDOWN debug=0
   
   
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web applications
 visible
within that Container).  Normally, that Container is an
 Engine,
but this is not required.
   
Note:  A Service is not itself a Container, so you may
not
define subcomponents such as Valves or Loggers at this
 level.
--
   
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
   
 !-- A Connector represents an endpoint by which requests are
  received
  and responses are returned.  Each Connector passes
requests
 on
  to the
  associated Container (normally an Engine) for
processing.
   
  By default, a non-SSL HTTP/1.1 Connector is established on
 port
  8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443
 by
  following the instructions below and uncommenting the
second
Connector
  entry.  SSL support requires the following steps (see the
 SSL
  Config
  HOWTO in the Tomcat 4.0 documentation bundle for more
 detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the
JAR
  files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg
 RSA
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg
RSA
  (Unix)
with a password value of changeit for both the
 certificate
  and
the keystore itself.
   
  By default, DNS lookups are enabled when a web application
 calls
  request.getRemoteHost().  This can have

HELP on server.xml PLEASE

2002-02-01 Thread Micael Padraig Og mac Grene

My forte is Java and at the XML configuration of Tomcat I suck.  Could 
someone please help me with this?  It would be greatly appreciated.

If I add the following to servlet.xml, then I get the startup.sh to create 
the proper directories under TOMCAT_HOME/work/.  But, then I cannot reach 
my site with the urls.  If I don't add these, then I can reach the site, 
but without the create of the appropriate subfolders.  What is up?



Context path=/ourforge
docBase=webapps/ourforge
debug=0
reloadable=true
/Context
Context path=/micael
docBase=webapps/micael
debug=0
reloadable=true 
/Context
Context path=/db
docBase=webapps/db
debug=0
reloadable=true 
/Context
Context path=/ctr
docBase=webapps/ctr
debug=0
reloadable=true 
/Context

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


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

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

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

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

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

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

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 !-- Note : To disable connection timeouts, set connectionTimeout value
  to -1 --

 !-- Define an SSL HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
 /Connector
 --

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

 !-- Define a Proxied HTTP/1.1 Connector on port 8081 --
 !-- See proxy documentation for more information about using this. --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8081 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 connectionTimeout=6
proxyPort=80/
 --

 !-- Define a non-SSL HTTP/1.0 Test Connector 

Re: HELP on server.xml PLEASE

2002-02-01 Thread August Detlefsen

I am pretty sure that you need to add the contexts within your virtual
hosts. If the same context needs to be accessed from multiple virtual
hosts, you have to define it for each one. 

Does anyone know of a way to deploy a context across multiple virtual
hosts? 




--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote:
 My forte is Java and at the XML configuration of Tomcat I suck. 
 Could 
 someone please help me with this?  It would be greatly appreciated.
 
 If I add the following to servlet.xml, then I get the startup.sh to
 create 
 the proper directories under TOMCAT_HOME/work/.  But, then I cannot
 reach 
 my site with the urls.  If I don't add these, then I can reach the
 site, 
 but without the create of the appropriate subfolders.  What is up?
 
 
 
   Context path=/ourforge
   docBase=webapps/ourforge
   debug=0
   reloadable=true
   /Context
   Context path=/micael
   docBase=webapps/micael
   debug=0
   reloadable=true 
   /Context
   Context path=/db
   docBase=webapps/db
   debug=0
   reloadable=true 
   /Context
   Context path=/ctr
   docBase=webapps/ctr
   debug=0
   reloadable=true 
   /Context
 
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
   parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the entire
 JVM,
   which may contain one or more Service instances.  The Server
   listens for a shutdown command on the indicated port.
 
   Note:  A Server is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this
 level.
   --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
 
!-- A Service is a collection of one or more Connectors that
 share
 a single Container (and therefore the web applications
 visible
 within that Container).  Normally, that Container is an
 Engine,
 but this is not required.
 
 Note:  A Service is not itself a Container, so you may
 not
 define subcomponents such as Valves or Loggers at this
 level.
 --
 
!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
 
  !-- A Connector represents an endpoint by which requests are
 received
   and responses are returned.  Each Connector passes requests
 on to the
   associated Container (normally an Engine) for processing.
 
   By default, a non-SSL HTTP/1.1 Connector is established on
 port 8080.
   You can also enable an SSL HTTP/1.1 Connector on port 8443
 by
   following the instructions below and uncommenting the
 second 
 Connector
   entry.  SSL support requires the following steps (see the
 SSL Config
   HOWTO in the Tomcat 4.0 documentation bundle for more
 detailed
   instructions):
   * Download and install JSSE 1.0.2 or later, and put the JAR
 files
 into $JAVA_HOME/jre/lib/ext.
   * Execute:
   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg
 RSA 
 (Windows)
   $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg
 RSA  (Unix)
 with a password value of changeit for both the
 certificate and
 the keystore itself.
 
   By default, DNS lookups are enabled when a web application
 calls
   request.getRemoteHost().  This can have an adverse impact
 on
   performance, so you can disable it by setting the
   enableLookups attribute to false.  When DNS lookups are
 disabled,
   request.getRemoteHost() will return the String version of
 the
   IP address of the remote client.
  --
 
  !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
  Connector
 className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
 acceptCount=10 debug=0
 connectionTimeout=6/
  !-- Note : To disable connection timeouts, set
 connectionTimeout value
   to -1 --
 
  !-- Define an SSL HTTP/1.1 Connector on port 8443 --
  !--
  Connector
 className=org.apache.catalina.connector.http.HttpConnector
 port=8443 minProcessors=5 maxProcessors=75
 enableLookups=true
  acceptCount=10 debug=0 scheme=https secure=true
Factory
 className=org.apache.catalina.net.SSLServerSocketFactory
 clientAuth=false protocol=TLS/
  /Connector
  --
 
  !-- Define an AJP 1.3 Connector on port 8009 --
  !--
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
  --
 
  !-- Define a Proxied HTTP/1.1 

Re: HELP on server.xml PLEASE

2002-02-01 Thread Rich Hansen

Michael,

There should be a folder under the tomcat installation director called
webapps.  Under that folder you should create a new folder for your jsp
pages.  Lets call your new folder home for argument sake.  Under the
home folder you should have created a folder called WEB-INF.  Under
WEB-INF you should have created two additional folders called classes and
lib.  So, your directory structure should look like this:

Tomcat
-home
--WEB-INF
---classes
---lib

Place your jsp files under the home directory, the custom classes under
the WEB-INF\classes directory and your custom JAR files under the
WEB-INF\lib directory.

Now to access your files go to: http://server:port/home/something.jsp or
html.

Hope this helps!
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 01, 2002 4:13 PM
Subject: HELP on server.xml PLEASE


 My forte is Java and at the XML configuration of Tomcat I suck.  Could
 someone please help me with this?  It would be greatly appreciated.

 If I add the following to servlet.xml, then I get the startup.sh to create
 the proper directories under TOMCAT_HOME/work/.  But, then I cannot reach
 my site with the urls.  If I don't add these, then I can reach the site,
 but without the create of the appropriate subfolders.  What is up?



 Context path=/ourforge
 docBase=webapps/ourforge
 debug=0
 reloadable=true
 /Context
 Context path=/micael
 docBase=webapps/micael
 debug=0
 reloadable=true 
 /Context
 Context path=/db
 docBase=webapps/db
 debug=0
 reloadable=true 
 /Context
 Context path=/ctr
 docBase=webapps/ctr
 debug=0
 reloadable=true 
 /Context

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

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

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

 Server port=8005 shutdown=SHUTDOWN debug=0


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

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

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

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

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

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

  !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
  Connector
className=org.apache.catalina.connector.http.HttpConnector
 port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=6/
  !-- Note : To disable connection timeouts, set connectionTimeout
value
   to -1 --

  !-- Define an SSL HTTP/1.1 Connector on port 8443 --
  !--
  Connector
className=org.apache.catalina.connector.http.HttpConnector
 port=8443 minProcessors=5 maxProcessors=75
 enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
Factory className=org.apache.catalina.net.SSLServerSocketFactory
 clientAuth

Re: HELP on server.xml PLEASE

2002-02-01 Thread Micael Padraig Og mac Grene

Thanks, Rick.  I guess I was not clear.  What I need is a way to set the 
context for different urls rather than aliases for a single url. Micael

At 05:58 PM 2/1/02 -0500, you wrote:
Michael,

There should be a folder under the tomcat installation director called
webapps.  Under that folder you should create a new folder for your jsp
pages.  Lets call your new folder home for argument sake.  Under the
home folder you should have created a folder called WEB-INF.  Under
WEB-INF you should have created two additional folders called classes and
lib.  So, your directory structure should look like this:

Tomcat
 -home
 --WEB-INF
 ---classes
 ---lib

Place your jsp files under the home directory, the custom classes under
the WEB-INF\classes directory and your custom JAR files under the
WEB-INF\lib directory.

Now to access your files go to: http://server:port/home/something.jsp or
html.

Hope this helps!
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 01, 2002 4:13 PM
Subject: HELP on server.xml PLEASE


  My forte is Java and at the XML configuration of Tomcat I suck.  Could
  someone please help me with this?  It would be greatly appreciated.
 
  If I add the following to servlet.xml, then I get the startup.sh to create
  the proper directories under TOMCAT_HOME/work/.  But, then I cannot reach
  my site with the urls.  If I don't add these, then I can reach the site,
  but without the create of the appropriate subfolders.  What is up?
 
 
 
  Context path=/ourforge
  docBase=webapps/ourforge
  debug=0
  reloadable=true
  /Context
  Context path=/micael
  docBase=webapps/micael
  debug=0
  reloadable=true 
  /Context
  Context path=/db
  docBase=webapps/db
  debug=0
  reloadable=true 
  /Context
  Context path=/ctr
  docBase=webapps/ctr
  debug=0
  reloadable=true 
  /Context
 
  !-- Example Server Configuration File --
  !-- Note that component elements are nested corresponding to their
parent-child relationships with each other --
 
  !-- A Server is a singleton element that represents the entire JVM,
which may contain one or more Service instances.  The Server
listens for a shutdown command on the indicated port.
 
Note:  A Server is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--
 
  Server port=8005 shutdown=SHUTDOWN debug=0
 
 
 !-- A Service is a collection of one or more Connectors that share
  a single Container (and therefore the web applications visible
  within that Container).  Normally, that Container is an Engine,
  but this is not required.
 
  Note:  A Service is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --
 
 !-- Define the Tomcat Stand-Alone Service --
 Service name=Tomcat-Standalone
 
   !-- A Connector represents an endpoint by which requests are
received
and responses are returned.  Each Connector passes requests on
to the
associated Container (normally an Engine) for processing.
 
By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second
  Connector
entry.  SSL support requires the following steps (see the SSL
Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR
files
  into $JAVA_HOME/jre/lib/ext.
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
  (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
  with a password value of changeit for both the certificate
and
  the keystore itself.
 
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost().  This can have an adverse impact on
performance, so you can disable it by setting the
enableLookups attribute to false.  When DNS lookups are
disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
   --
 
   !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
   Connector
className=org.apache.catalina.connector.http.HttpConnector
  port=8080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=6/
   !-- Note : To disable connection timeouts, set connectionTimeout
value
to -1 --
 
   !-- Define an SSL HTTP/1.1 Connector on port 8443 --
   !--
   Connector
className

Re: Need help for server.xml

2001-10-27 Thread Nikola Milutinovic

Jean-Luc BEAUDET wrote:

 Sorry if this is the second Post...
 I made a little mistake !
 
 Hi all,
 
 I'm newbie with the Tomcat env.
 
 Runnin' SOLARIS 8 Apache 1.3.20 and ApacheJServ 1.1.2 i had to decide to
 
 shift to Tomcat 4.0.1 especially for jsp's.
 
 I'm happy with it but i'd like to:
 
 keep my servlets zones as they were already
 create new ones mostly independant of the $CATALINA_HOME/webapps
 and maybe on different boxes.
 
 I could easily create my first Context  by modifying the server.xml
 file:
 !-- Cecile Project Context --
 Context path=/cecile docBase=cecile debug=0
 privileged=true/
 
 But i am bind with $CATALINA_HOME/webapps/cecile dir.
 
 I'd like to create smth like /MyOwnDir/Mywebapp/jsp/servlets files.

I have a web server which holds 3 virtual hosts on Apache, so I started playing 
with virtual hosts under Tomcat. I think that is a generally good way of 
separating things - if you need virtual hosts and don't find it an overkill. The 
most important atribute for you is appBase of a Host ... element, allowing 
you to specify the application base directory for all web applications on that 
virtual host.

If, OTOH, you don't need that, you can setup a Context docBase=ABSOLUTE_PATH 
... and load it that way. Or setup symbolic links in $CATALINA_HOME/webapps.

Nix.


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




Need help for server.xml...

2001-10-26 Thread Jean-Luc BEAUDET

Hi all,

I'm newbie with the Tomcat env.

Runnin' SOLARIS 8 Apache 1.3.20 and ApacheJServ 1.1.2 i had to decide to

shift to Tomcat 4.0.1 especially for jsp's.

I'm happy with it but i'd like to:

keep my servlets zones as they were already
create new ones mostly independant of the $CATALINA_HOME/webapps
and maybe on different boxes.

I could easily create my first Context  by modifying the server.xml
file:
!-- Cecile Project Context --
Context path=/cecile docBase=cecile debug=0
privileged=true/

But i am bind with $CATALINA_HOME/webapps/cecile dir.

I'd like to create smth like /MyOwnDir/Mywebapp/jsp/servlets files.

Any help welcome.

Jean-Luc :Oo)





Need help for server.xml

2001-10-26 Thread Jean-Luc BEAUDET


Sorry if this is the second Post...
I made a little mistake !

Hi all,

I'm newbie with the Tomcat env.

Runnin' SOLARIS 8 Apache 1.3.20 and ApacheJServ 1.1.2 i had to decide to

shift to Tomcat 4.0.1 especially for jsp's.

I'm happy with it but i'd like to:

keep my servlets zones as they were already
create new ones mostly independant of the $CATALINA_HOME/webapps
and maybe on different boxes.

I could easily create my first Context  by modifying the server.xml
file:
!-- Cecile Project Context --
Context path=/cecile docBase=cecile debug=0
privileged=true/

But i am bind with $CATALINA_HOME/webapps/cecile dir.

I'd like to create smth like /MyOwnDir/Mywebapp/jsp/servlets files.

Any help welcome.

Jean-Luc :Oo)