RE: newbie almost connected...

2002-12-16 Thread Turner, John

Post error messages, config file snippets, log file snippets, etc.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 2:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 almost
 
 10. Verify examples at http://localhost/examples. On success, 
 apache is working correctly, and JSP and servlet requests are 
 being passed to tomcat.
 
 I can't get the step copmpleted...
 
 I tried localhost and the ip address.  What now?
 
 Thanks,
 Peter
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my full 
 server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 =
 ===
 
 !-- 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
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycl
 eListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container is 
 an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at 
 this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector passes 
 requests on
 to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established on port
 8080.
  You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
  following the instructions below and uncommenting the second
 Connector
  entry.  SSL support requires the following steps 
 (see the SSL
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for 
 more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR
 files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat 
 -keyalg RSA
 (Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
 (Unix)
with a password value

RE: newbie almost connected...

2002-12-16 Thread Turner, John

What do you mean by cannot browse?  What is the error message?  404?  Is
your Apache DocumentRoot set correctly?

Since you are very new to this, please understand that there is no
requirement that you use Apache + Connector + Tomcat to work with Tomcat.
You can easily work with Tomcat all by itself, and develop JSP and servlets
to your heart's content, all without messing with Apache or anything else
except for Tomcat.

Using Apache and a connector is a scenario that people use for specific
reasons (most of them production-related).  If you are just looking for a
way to start working with JSP and servlets and want to write some apps,
don't worry about Apache, JK, or JK2.  Just use Tomcat all by itself and
have fun.

John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 14, 2002 1:21 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 I'm connectd and http://www.ccc.com:8080 gets me to the 
 tomcat index.jsp page fine
 
 
 ...however I can not browse www.ccc.com ?
 
 What do I need to change if my index.html is located in 
 /opt/mysite/index.html?
 
 
 
 Thanks,
 Peter
 
 
 My bad...I forgot to add the second directive to server.xml...
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my full 
 server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 
 
 
 !-- 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
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecyc
 leListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container is 
 an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so 
 you may not
define subcomponents such as Valves or Loggers 
 at this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector passes 
 requests on
 to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established

RE: newbie almost connected...

2002-12-16 Thread Peter
I came across a link on the jakarta website that said Coyote was enabled by default in 
4.1.*, so I undid the changes in your HOWTO and voila, it worked.

Now I can't find the link...if I do I'll post it.

thanks for the response,
Peter
(Red Hat 8.0, Apache 2.0.4, Tomcat 4.1.7)

Turner, John [EMAIL PROTECTED] wrote:


Post error messages, config file snippets, log file snippets, etc.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 2:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 almost
 
 10. Verify examples at http://localhost/examples. On success, 
 apache is working correctly, and JSP and servlet requests are 
 being passed to tomcat.
 
 I can't get the step copmpleted...
 
 I tried localhost and the ip address.  What now?
 
 Thanks,
 Peter
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my full 
 server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 =
 ===
 
 !-- 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
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycl
 eListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container is 
 an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at 
 this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector passes 
 requests on
 to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established on port
 8080.
  You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
  following the instructions below and uncommenting the second
 Connector
  entry.  SSL support requires the following steps 
 (see the SSL
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for 
 more detailed
  instructions):
  * Download

RE: newbie almost connected...

2002-12-16 Thread Turner, John

Yes, CoyoteConnector is enabled by default for JK/JK2 requests on port 8009
on Tomcat 4.1.12.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:33 AM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 I came across a link on the jakarta website that said Coyote 
 was enabled by default in 4.1.*, so I undid the changes in 
 your HOWTO and voila, it worked.
 
 Now I can't find the link...if I do I'll post it.
 
 thanks for the response,
 Peter
 (Red Hat 8.0, Apache 2.0.4, Tomcat 4.1.7)
 
 Turner, John [EMAIL PROTECTED] wrote:
 
 
 Post error messages, config file snippets, log file snippets, etc.
 
 John
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 13, 2002 2:25 PM
  To: [EMAIL PROTECTED]
  Subject: RE: newbie almost connected...
  
  
  almost
  
  10. Verify examples at http://localhost/examples. On success, 
  apache is working correctly, and JSP and servlet requests are 
  being passed to tomcat.
  
  I can't get the step copmpleted...
  
  I tried localhost and the ip address.  What now?
  
  Thanks,
  Peter
  
  
  
  
  Tref Gare [EMAIL PROTECTED] wrote:
  
  You're on the right track.
  
  Yes you should add the second listener directive (ie:
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true forwardAll=false
  modJk=/usr/local/apache2/modules/mod_jk.so /
  
  to server.xml at that location:
  that location in this instance meaning within the HOST element.
  
  And
  What file would I find the Host directive in?
  
  it's still in server.xml.. same area you've just added 
 the Listener
  directive.  Have a look in there and you should be able 
 to locate a
  name parameter.
  
  Ie: in my case it looks like this (where devbox is the 
 name of my
  server).
  
!-- Define the default virtual host --
Host name=devbox debug=0 appBase=C:/WWW
 unpackWARs=true autoDeploy=true noRoot=false
  
  
  If that is all still too muddy for you, I'll append my full 
  server.xml
  below as I'm using a similar setup (tho on windows not Linux so be
  careful for anything that needs a file path - like appBase 
  in the above
  example).
  
  Server.xml follows
  =
  ===
  
  !-- 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
  
!-- = ADDITION added for mod_jk support --
  
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
  
!-- = ADDITION ends --
  
  
!-- Uncomment these entries to enable JMX MBeans support --
Listener
  className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycl
  eListener
  debug=0/
  
!-- Global JNDI resources --
GlobalNamingResources
  
  !-- Test entry for demonstration purposes --
  Environment name=simpleValue type=java.lang.Integer
  value=30/
  
  !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
  /Resource
  ResourceParams name=UserDatabase
parameter
  namefactory/name
  
  valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
/parameter
  /ResourceParams
  
/GlobalNamingResources
  
!-- A Service is a collection of one or more 
 Connectors that
  share
 a single Container (and therefore the web 
  applications visible
 within that Container).  Normally, that Container is 
  an Engine,
 but this is not required.
  
 Note:  A Service is not itself a Container, so 
 you may not
 define subcomponents such as Valves or Loggers at 
  this level.
 --
  
!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
  
  !-- A Connector represents an endpoint by which 
 requests are
  received
   and responses are returned.  Each Connector passes 
  requests on
  to the
   associated Container (normally

RE: newbie almost connected...

2002-12-16 Thread Peter
I changed the port number in server.xml from 8080 to 80 so now I can browse 
www.ccc.com

...next question, how can I take my TOMCAT/webapps/mysite home and change it to the 
/opt/mysite directory?

Thanks,
Peter

[EMAIL PROTECTED] (Peter) wrote:

I'm connectd and http://www.ccc.com:8080 gets me to the tomcat index.jsp page fine


...however I can not browse www.ccc.com ?

What do I need to change if my index.html is located in /opt/mysite/index.html?



Thanks,
Peter


My bad...I forgot to add the second directive to server.xml...




Tref Gare [EMAIL PROTECTED] wrote:

You're on the right track.

Yes you should add the second listener directive (ie:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so /

to server.xml at that location:
that location in this instance meaning within the HOST element.

And
What file would I find the Host directive in?

it's still in server.xml.. same area you've just added the Listener
directive.  Have a look in there and you should be able to locate a
name parameter.

Ie: in my case it looks like this (where devbox is the name of my
server).

  !-- Define the default virtual host --
  Host name=devbox debug=0 appBase=C:/WWW
   unpackWARs=true autoDeploy=true noRoot=false


If that is all still too muddy for you, I'll append my full server.xml
below as I'm using a similar setup (tho on windows not Linux so be
careful for anything that needs a file path - like appBase in the above
example).

Server.xml follows


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

  !-- = ADDITION added for mod_jk support --

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=c:/apache_2/Apache2/modules/mod_jk.dll /

  !-- = ADDITION ends --


  !-- Uncomment these entries to enable JMX MBeans support --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

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

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

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

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

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

 By default, DNS lookups are enabled when a web application
calls
 

RE: newbie almost connected...

2002-12-16 Thread Turner, John

If CATALINA_HOME isn't /opt/tomcat or something similar, you can't by
default.  I guess you could enable symlinks (search the archives for
allowLinking) and do it that way.

Someone else may have a better solution.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 I changed the port number in server.xml from 8080 to 80 so 
 now I can browse 
 www.ccc.com
 
 ...next question, how can I take my TOMCAT/webapps/mysite 
 home and change it to the /opt/mysite directory?
 
 Thanks,
 Peter
 
 [EMAIL PROTECTED] (Peter) wrote:
 
 I'm connectd and http://www.ccc.com:8080 gets me to the 
 tomcat index.jsp page fine
 
 
 ...however I can not browse www.ccc.com ?
 
 What do I need to change if my index.html is located in 
 /opt/mysite/index.html?
 
 
 
 Thanks,
 Peter
 
 
 My bad...I forgot to add the second directive to server.xml...
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my 
 full server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 ===
 =
 
 !-- 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
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecy
 cleListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container 
 is an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so 
 you may not
define subcomponents such as Valves or Loggers 
 at this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector 
 passes requests on
 to the
  associated Container (normally an Engine) for 
 processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established on port
 8080.
  You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
  following the instructions below and uncommenting 
 the second
 Connector
  entry.  SSL support requires the following steps 
 (see the SSL

RE: newbie almost connected...

2002-12-14 Thread Peter
I'm connectd and http://www.ccc.com:8080 gets me to the tomcat index.jsp page fine


...however I can not browse www.ccc.com ?

What do I need to change if my index.html is located in /opt/mysite/index.html?



Thanks,
Peter


My bad...I forgot to add the second directive to server.xml...




Tref Gare [EMAIL PROTECTED] wrote:

You're on the right track.

Yes you should add the second listener directive (ie:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so /

to server.xml at that location:
that location in this instance meaning within the HOST element.

And
What file would I find the Host directive in?

it's still in server.xml.. same area you've just added the Listener
directive.  Have a look in there and you should be able to locate a
name parameter.

Ie: in my case it looks like this (where devbox is the name of my
server).

  !-- Define the default virtual host --
  Host name=devbox debug=0 appBase=C:/WWW
   unpackWARs=true autoDeploy=true noRoot=false


If that is all still too muddy for you, I'll append my full server.xml
below as I'm using a similar setup (tho on windows not Linux so be
careful for anything that needs a file path - like appBase in the above
example).

Server.xml follows


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

  !-- = ADDITION added for mod_jk support --

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=c:/apache_2/Apache2/modules/mod_jk.dll /

  !-- = ADDITION ends --


  !-- Uncomment these entries to enable JMX MBeans support --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

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

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

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

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

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

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

RE: newbie almost connected...

2002-12-13 Thread Peter
almost

10. Verify examples at http://localhost/examples. On success, apache is working 
correctly, and JSP and servlet requests are being passed to tomcat.

I can't get the step copmpleted...

I tried localhost and the ip address.  What now?

Thanks,
Peter




Tref Gare [EMAIL PROTECTED] wrote:

You're on the right track.

Yes you should add the second listener directive (ie:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so /

to server.xml at that location:
that location in this instance meaning within the HOST element.

And
What file would I find the Host directive in?

it's still in server.xml.. same area you've just added the Listener
directive.  Have a look in there and you should be able to locate a
name parameter.

Ie: in my case it looks like this (where devbox is the name of my
server).

  !-- Define the default virtual host --
  Host name=devbox debug=0 appBase=C:/WWW
   unpackWARs=true autoDeploy=true noRoot=false


If that is all still too muddy for you, I'll append my full server.xml
below as I'm using a similar setup (tho on windows not Linux so be
careful for anything that needs a file path - like appBase in the above
example).

Server.xml follows


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

  !-- = ADDITION added for mod_jk support --

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=c:/apache_2/Apache2/modules/mod_jk.dll /

  !-- = ADDITION ends --


  !-- Uncomment these entries to enable JMX MBeans support --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

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

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

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

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

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

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

RE: newbie almost connected...

2002-12-12 Thread Tref Gare
You're on the right track.

Yes you should add the second listener directive (ie: 
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so /

to server.xml at that location: 
that location in this instance meaning within the HOST element.

And 
What file would I find the Host directive in?

it's still in server.xml.. same area you've just added the Listener
directive.  Have a look in there and you should be able to locate a
name parameter.

Ie: in my case it looks like this (where devbox is the name of my
server).

  !-- Define the default virtual host --
  Host name=devbox debug=0 appBase=C:/WWW 
   unpackWARs=true autoDeploy=true noRoot=false


If that is all still too muddy for you, I'll append my full server.xml
below as I'm using a similar setup (tho on windows not Linux so be
careful for anything that needs a file path - like appBase in the above
example).

Server.xml follows


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

  !-- = ADDITION added for mod_jk support --

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig   
modJk=c:/apache_2/Apache2/modules/mod_jk.dll /

  !-- = ADDITION ends --


  !-- Uncomment these entries to enable JMX MBeans support --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

  /GlobalNamingResources

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

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

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

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

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

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

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0