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:
> >>> >>>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).
> >>>
> >>>  
> >>>   >>>   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
> >>>===
> =
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>  
> >>>
> >>>   >>>modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
> >>>
> >>>  
> >>>
> >>>
> >>>  
> >>>   >>>className="org.apache.catalina.mbeans.ServerLifecycleListener"
> >>>debug="0"/>
> >>>   >>>className="org.apache.catalina.mbeans.GlobalResourcesLifecy
> cleListener"
> >>>debug="0"/>
> >>>
> >>>  
> >>>  
> >>>
> >>>
> >>> >>>value="30"/>
> >>>
> >>>
> >>> >>>  type="org.apache.catalina.UserDatabase"
> >>>   description="User database that can be updated and saved">
> >>>
> >>>
> >>>  
> >>>factory
> >>>
> >>>org.apache.catalina.users.MemoryUserDatabaseFactory
> >>>  
> >>>  
> >>>pathname
> >>>conf/tomcat-users.xml
> >>>  
> >>>
> >>>
> >>>  
> >>>
> >>>  
> >>>
> >>>  
> >>>  
> >>>
> >>>
> >>>
> >>>
> >>> className="org.apache.coyote.tomcat4.CoyoteConnector"
> >>>port="8080" minProcessors="5" maxProcessors="75"
> >>>  enableLookups="true" redirectPort="8443"
> >>>  acceptCount="10" debug="0" connectionTi

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:
>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).
>>>
>>>  
>>>  >>   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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>>  >>modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
>>>
>>>  
>>>
>>>
>>>  
>>>  >>className="org.apache.catalina.mbeans.ServerLifecycleListener"
>>>debug="0"/>
>>>  >>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>>>debug="0"/>
>>>
>>>  
>>>  
>>>
>>>
>>>>>value="30"/>
>>>
>>>
>>>>>  type="org.apache.catalina.UserDatabase"
>>>   description="User database that can be updated and saved">
>>>
>>>
>>>  
>>>factory
>>>
>>>org.apache.catalina.users.MemoryUserDatabaseFactory
>>>  
>>>  
>>>pathname
>>>conf/tomcat-users.xml
>>>  
>>>
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>  
>>>
>>>
>>>
>>>
>>>>>port="8080" minProcessors="5" maxProcessors="75"
>>>  enableLookups="true" redirectPort="8443"
>>>  acceptCount="10" debug="0" connectionTimeout="2"
>>>  useURIValidationHack="false" />
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>   port="8009" minProcessors="5" maxProcessors="75"
>>>   enableLookups="true" redirectPort="8443"
>>>   acceptCount="10" debug="0" connectionTimeout="2"
>>>   useURIValidationHack="false"
>>>
>>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>  
>>>
>>>  
>>>  >>  prefix="catalina_log." suffix=".txt"
>>>  timestamp="true"/>
>>>
>>>  
>>>
>>>  
>>>  >> debug="0" resourceName="UserDatabase"/>
>>>
>>>  
>>>  
>>>
>>>  
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>
>>>
>>>
>>>  
>>>  >>   unpackWARs="true" autoDeploy="true" noRoot="false">
>>>
>>>
>>>
>>>
>>>
>>>>>
>>>modJk="c:/apache_2/Apache2/modules/mod_jk.dll"
>>>append="true" forwardAll="false" />
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>> directory="logs"  prefix="localhost_log." suffix=".txt"
>>>timestamp="true"/>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>>>className="org.apache.catalina.logger.FileLogger"
>>> prefix="localhost_Root_log." suffix=".txt"
>>>  timestamp="true"/>
>>>
>>>
>>>
>>>
>>>
>>>>> reloadable="true" crossContext="true">
>>>  >> prefix="localhost_examples_log." suffix=".txt"
>>>  timestamp="true"/>
>>>  >> home="com.wombat.empl.EmployeeRecordHome"
>>>   remote="com.wombat.empl.EmployeeRecord"/>
>>>
>>>  
>>>
>>>  
>>>  
>>>  >>  value="15"/>
>>>  >>value="context.param.value"
>>> override="false"/>
>>>  >>type="javax.sql.DataSource"/>
>>>  
>>>usersa
>>>password
>>>driverClassName
>>>  org.hsql.jdbcDriver
>>>driverName
>>>  jdbc:HypersonicSQL:database
>>>  
>>>  >>type="javax.mail.Session"/>

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:
> >> > >> >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).
> >> >
> >> >  
> >> >   >> >   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
> >> >=
> >> ===
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >  
> >> >
> >> >   >> >modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
> >> >
> >> >  
> >> >
> >> >
> >> >  
> >> >   >> >className="org.apache.catalina.mbeans.ServerLifecycleListener"
> >> >debug="0"/>
> >> >   >> >className="org.apache.catalina.mbeans.GlobalResourcesLifecycl
> >> eListener"
> >> >debug="0"/>
> >> >
> >> >  
> >> >  
> >> >
> >> >
> >> > >> >value="30"/>
> >> >
> >> >
> >> > >> >  type="org.apache.catalina.UserDatabase"
> >> >   description="User database that can be updated and saved">
> >> >
> >> >
> >> >  
> >> >factory
> >> >
> >> >org.apache.catalina.users.MemoryUserDatabaseFactory
> >> >  
> >> >  
> >> >pathname
> >> >conf/tomcat-users.xml
> >> >  
> >> >
> >> >
> >> >  
> >> >

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:
>> >> >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).
>> >
>> >  
>> >  > >   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
>> >=
>> ===
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >  
>> >
>> >  > >modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
>> >
>> >  
>> >
>> >
>> >  
>> >  > >className="org.apache.catalina.mbeans.ServerLifecycleListener"
>> >debug="0"/>
>> >  > >className="org.apache.catalina.mbeans.GlobalResourcesLifecycl
>> eListener"
>> >debug="0"/>
>> >
>> >  
>> >  
>> >
>> >
>> >> >value="30"/>
>> >
>> >
>> >> >  type="org.apache.catalina.UserDatabase"
>> >   description="User database that can be updated and saved">
>> >
>> >
>> >  
>> >factory
>> >
>> >org.apache.catalina.users.MemoryUserDatabaseFactory
>> >  
>> >  
>> >pathname
>> >conf/tomcat-users.xml
>> >  
>> >
>> >
>> >  
>> >
>> >  
>> >
>> >  
>> >  
>> >
>> >
>> >
>> >
>> >> >port="8080" minProcessors="5" maxProcessors="75"
>> >  enableLookups="true" redirectPort="8443"
>> >  acceptCount="10" debug="0" connectionTimeout="2"
>> >  useURIValidationHack="false" />
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >> >   port="8009" minProcessors="5" maxProcessors="75"
>> >   enableLookups="true" redirectPort="8443"
>> >   acceptCount="10" debug="0" connectionTimeout="2"
>> >   useURIValidatio

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:
> >> >>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).
> >>
> >>  
> >>   >>   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
> >>
> 
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>  
> >>
> >>   >>modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
> >>
> >>  
> >>
> >>
> >>  
> >>   >>className="org.apache.catalina.mbeans.ServerLifecycleListener"
> >>debug="0"/>
> >>   >>className="org.apache.catalina.mbeans.GlobalResourcesLifecyc
> leListener"
> >>debug="0"/>
> >>
> >>  
> >>  
> >>
> >>
> >> >>value="30"/>
> >>
> >>
> >> >>  type="org.apache.catalina.UserDatabase"
> >>   description="User database that can be updated and saved">
> >>
> >>
> >>  
> >>factory
> >>
> >>org.apache.catalina.users.MemoryUserDatabaseFactory
> >>  
> >>  
> >>pathname
> >>conf/tomcat-users.xml
> >>  
> >>
> >>
> >>  
> >>
> >>  
> >>
> >>  
> >>  
> >>
> >>
> >>
> >>
> >> >>port="8080" minProcessors="5" maxProcessors="75"
> >>  enableLookups="true" redirectPort="8443"
> >>  acceptCount="10" debug="0" connectionTimeout="2"
> >>  useURIValidationHack="false" />
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> >>   port="8009" minProcessors="5" ma

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:
> > >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).
> >
> >  
> >   >   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
> >=
> ===
> >
> >
> >
> >
> >
> >
> >
> >
> >  
> >
> >   >modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
> >
> >  
> >
> >
> >  
> >   >className="org.apache.catalina.mbeans.ServerLifecycleListener"
> >debug="0"/>
> >   >className="org.apache.catalina.mbeans.GlobalResourcesLifecycl
> eListener"
> >debug="0"/>
> >
> >  
> >  
> >
> >
> > >value="30"/>
> >
> >
> > >  type="org.apache.catalina.UserDatabase"
> >   description="User database that can be updated and saved">
> >
> >
> >  
> >factory
> >
> >org.apache.catalina.users.MemoryUserDatabaseFactory
> >  
> >  
> >pathname
> >conf/tomcat-users.xml
> >  
> >
> >
> >  
> >
> >  
> >
> >  
> >  
> >
> >
> >
> >
> > >port="8080" minProcessors="5" maxProcessors="75"
> >  enableLookups="true" redirectPort="8443"
> >  acceptCount="10" debug="0" connectionTimeout="2"
> >  useURIValidationHack="false" />
> >
> >
> >
> >
> >
> >
> >
> >
> > >   port="8009" minProcessors="5" maxProcessors="75"
> >   enableLookups="true" redirectPort="8443"
> >   acceptCount="10" debug="0" connectionTimeout="2"
> >   useURIValidationHack="false"
> >
> >protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  
> >  
> >
> >  
> >   >  prefix="catalina_log." suffix=".txt"
> >  timestamp="true"/>
> >
> >  
> >
> >  
> >   > debug="0" resourceName="UserDatabase"/>
> >
> >  
> >  
> >
> >  
> >  
> >
> >  
> >
> >  

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:
>>>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).
>>
>>  
>>  >   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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>
>>  >modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
>>
>>  
>>
>>
>>  
>>  >className="org.apache.catalina.mbeans.ServerLifecycleListener"
>>debug="0"/>
>>  >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>>debug="0"/>
>>
>>  
>>  
>>
>>
>>>value="30"/>
>>
>>
>>>  type="org.apache.catalina.UserDatabase"
>>   description="User database that can be updated and saved">
>>
>>
>>  
>>factory
>>
>>org.apache.catalina.users.MemoryUserDatabaseFactory
>>  
>>  
>>pathname
>>conf/tomcat-users.xml
>>  
>>
>>
>>  
>>
>>  
>>
>>  
>>  
>>
>>
>>
>>
>>>port="8080" minProcessors="5" maxProcessors="75"
>>  enableLookups="true" redirectPort="8443"
>>  acceptCount="10" debug="0" connectionTimeout="2"
>>  useURIValidationHack="false" />
>>
>>
>>
>>
>>
>>
>>
>>
>>>   port="8009" minProcessors="5" maxProcessors="75"
>>   enableLookups="true" redirectPort="8443"
>>   acceptCount="10" debug="0" connectionTimeout="2"
>>   useURIValidationHack="false"
>>
>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>
>>  
>>  >  prefix="catalina_log." suffix=".txt"
>>  timestamp="true"/>
>>
>>  
>>
>>  
>>  > debug="0" resourceName="UserDatabase"/>
>>
>>  
>>  
>>
>>  
>>  
>>
>>  
>>
>>  
>>
>>
>>
>>
>>  
>>  >   unpackWARs="true" autoDeploy="true" noRoot="false">
>>
>>
>>
>>
>>
>>>
>>modJk="c:/apache_2/Apache2/modules/mod_jk.dll"
>>append="true" forwardAll="false" />
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> directory="logs"  prefix="localhost_log." suffix=".txt"
>>timestamp="true"/>
>>
>>
>>
>>
>>
>>  
>>>className="org.apache.catalina.logger.FileLogger"
>> prefix="localhost_Root_log." suffix=".txt"
>>  timestamp="true"/>
>>
>>
>>
>>
>>
>>> reloadable="true" crossContext="true">
>>  > prefix="localhost_examples_log." suffix=".txt"
>>  timestamp="true"/>
>>  > home="com.wombat.empl.EmployeeRecordHome"
>>   remote="com.wombat.empl.EmployeeRecord"/>
>>
>>  
>>
>>  
>>  
>>  >  value="15"/>
>>  >value="context.param.value"
>> override="false"/>
>>  >type="javax.sql.DataSource"/>
>>  
>>usersa
>>password
>>driverClassName
>>  org.hsql.jdbcDriver
>>driverName
>>  jdbc:HypersonicSQL:database
>>  
>>  >type="javax.mail.Session"/>
>>  
>>
>>  mail.smtp.host
>>  localhost
>>
>>  
>>  >global="simpleValue"
>>type="java.lang.Integer"/>
>>
>>
>>  
>>
>>
>>
>>  
>>
>>
>>
>>
>>--
>>Tref Gare
>>Development Consultant
>>Areeba
>>
>>-Original Message-
>>From: Peter [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, 13 December 2002 1:57 PM
>>To: [EMAIL P

RE: newbie almost connected...

2002-12-13 Thread 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:
>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).
>
>  
> 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
>
>
>
>
>
>
>
>
>
>  
>
>  modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
>
>  
>
>
>  
>  className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"/>
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0"/>
>
>  
>  
>
>
>value="30"/>
>
>
>  type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved">
>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
>  
>
>  
>
>  
>  
>
>
>
>
>port="8080" minProcessors="5" maxProcessors="75"
>  enableLookups="true" redirectPort="8443"
>  acceptCount="10" debug="0" connectionTimeout="2"
>  useURIValidationHack="false" />
>
>
>
>
>
>
>
>
>   port="8009" minProcessors="5" maxProcessors="75"
>   enableLookups="true" redirectPort="8443"
>   acceptCount="10" debug="0" connectionTimeout="2"
>   useURIValidationHack="false"
>
>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>  
>
>  
>prefix="catalina_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>
>  
>   debug="0" resourceName="UserDatabase"/>
>
>  
>  
>
>  
>  
>
>  
>
>  
>
>
>
>
>  
> unpackWARs="true" autoDeploy="true" noRoot="false">
>
>
>
>
>
>
>modJk="c:/apache_2/Apache2/modules/mod_jk.dll"
>append="true" forwardAll="false" />
>
>
>
>
>
>
>
>
>
>
>
> directory="logs"  prefix="localhost_log." suffix=".txt"
>timestamp="true"/>
>
>
>
>
>
>  
>className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_Root_log." suffix=".txt"
>  timestamp="true"/>
>
>
>
>
>
> reloadable="true" crossContext="true">
>   prefix="localhost_examples_log." suffix=".txt"
>  timestamp="true"/>
>   home="com.wombat.empl.EmployeeRecordHome"
>   remote="com.wombat.empl.EmployeeRecord"/>
>
>  
>
>  
>  
>value="15"/>
>  value="context.param.value"
> override="false"/>
>  type="javax.sql.DataSource"/>
>  
>usersa
>password
>driverClassName
>  org.hsql.jdbcDriver
>driverName
>  jdbc:HypersonicSQL:database
>  
>  type="javax.mail.Session"/>
>  
>
>  mail.smtp.host
>  localhost
>
>  
>  global="simpleValue"
>type="java.lang.Integer"/>
>
>
>  
>
>
>
>  
>
>
>
>
>--
>Tref Gare
>Development Consultant
>Areeba
>
>-Original Message-
>From: Peter [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 13 December 2002 1:57 PM
>To: [EMAIL PROTECTED]
>Subject: newbie almost connected...
>
>...in this document,
>
>http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html
>
>...when you say, one should do the following;
>
>3 in the Host container add the following Listener directive (yes, it
>looks very similar to the one above):
>
>append="true" forwardAll="false"
>modJk="/usr/local/apache2/modules/mod_jk.so" />
>
>
>..That they should add the above 'Listener Directive' to this section of
>the server.xml file?
>
>
>   

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:
>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).
>
>  
> 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
>
>
>
>
>
>
>
>
>
>  
>
>  modJk="c:/apache_2/Apache2/modules/mod_jk.dll" />
>
>  
>
>
>  
>  className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"/>
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0"/>
>
>  
>  
>
>
>value="30"/>
>
>
>  type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved">
>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
>  
>
>  
>
>  
>  
>
>
>
>
>port="8080" minProcessors="5" maxProcessors="75"
>  enableLookups="true" redirectPort="8443"
>  acceptCount="10" debug="0" connectionTimeout="2"
>  useURIValidationHack="false" />
>
>
>
>
>
>
>
>
>   port="8009" minProcessors="5" maxProcessors="75"
>   enableLookups="true" redirectPort="8443"
>   acceptCount="10" debug="0" connectionTimeout="2"
>   useURIValidationHack="false"
>
>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>  
>
>  
>prefix="catalina_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>
>  
>   debug="0" resourceName="UserDatabase"/>
>
>  
>  
>
>  
>  
>
>  
>
>  
>
>
>
>
>  
> unpackWARs="true" autoDeploy="true" noRoot="false">
>
>
>
>
>
>
>modJk="c:/apache_2/Apache2/modules/mod_jk.dll"
>append="true" forwardAll="false" />
>
>
>
>
>
>
>
>
>
>
>
> directory="logs"  prefix="localhost_log." suffix=".txt"
>timestamp="true"/>
>
>
>
>
>
>  
>className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_Root_log." suffix=".txt"
>  timestamp="true"/>
>
>
>
>
>
> reloadable="true" crossContext="true">
>   prefix="localhost_examples_log." suffix=".txt"
>  timestamp="true"/>
>   home="com.wombat.empl.EmployeeRecordHome"
>   remote="com.wombat.empl.EmployeeRecord"/>
>
>  
>
>  
>  
>value="15"/>
>  value="context.param.value"
> override="false"/>
>  type="javax.sql.DataSource"/>
>  
>usersa
>password
>driverClassName
>  org.hsql.jdbcDriver
>driverName
>  jdbc:HypersonicSQL:database
>  
>  type="javax.mail.Session"/>
>  
>
>  mail.smtp.host
>  localhost
>
>  
>  global="simpleValue"
>type="java.lang.Integer"/>
>
>
>  
>
>
>
>  
>
>
>
>
>--
>Tref Gare
>Development Consultant
>Areeba
>
>-Original Message-
>From: Peter [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 13 December 2002 1:57 PM
>To: [EMAIL PROTECTED]
>Subject: newbie almost connected...
>
>...in this document,
>
>http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html
>
>...when you say, one should do the following;
>
>3 in the Host container add the following Listener directive (yes, it
>looks very similar to the one ab

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: 


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).

  
  


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









  

  

  


  
  
  

  
  








  
factory
 
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  






































  
  

  
  

  

  
  

  
  

  
  

  

  




  
  























  







  
  

  

  
  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  


  



  




--
Tref Gare
Development Consultant
Areeba

-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 13 December 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: newbie almost connected...

...in this document,

http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html

...when you say, one should do the following;  

3 in the Host container add the following Listener directive (yes, it
looks very similar to the one above):

 


..That they should add the above 'Listener Directive' to this section of
the server.xml file?









...If not what do you mean by "in the Host container add the following
Listener directive (yes, it looks very similar to the one above):"


...also

4 change the name parameter in the Host directive to your apache
ServerName (the default is localhost)

What file would I find the Host directive in?


I'm totally new to this and I'd appreciate any help!

Thanks,
Peter
(I'm trying these directions with RH 8.0, Apache 2.0.4 and tomcat
4.1.17)

__
The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: