Below is what I did, I hope that it helps. I am new to Tomcat and Java in 
general although I have had to deploy and configure ServletExec.

Peter

httpd.conf
---------------------------------------------------------------
# Make sure that you have provided a ServerName and ServerPort

WebAppConnection conn warp localhost:8008
WebAppDeploy ROOT conn /tomcat/
WebAppDeploy examples conn /examples/
WebAppDeploy tomcat-docs conn /tomcat-docs/
WebAppDeploy webdav conn /webdav/
WebAppInfo /webapp-info



server.xml
---------------------------------------------------------------
<Service name="Tomcat-Apache">

   <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="false" appBase="webapps" acceptCount="10" debug="0"/>

    <Engine className="org.apache.catalina.connector.warp.WarpEngine" 
name="intranet" debug="0">
                                                                            
change to your appropriate value  ^^^^^^^

       <Logger className="org.apache.catalina.logger.FileLogger" 
prefix="apache_log." suffix=".txt" timestamp="true"/>

       <Realm className="org.apache.catalina.realm.MemoryRealm" />

       <Host name="intranet" debug="0" appBase="webapps" unpackWARs="true">
     change value  ^^^^^^^

         <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"  prefix="apache_access." suffix=".log" pattern="common"/>

         <Logger className="org.apache.catalina.logger.FileLogger" 
directory="logs"  prefix="apache." suffix=".log" timestamp="true"/>

         <!-- Tomcat Root Context -->
         <!--
           <Context path="" docBase="ROOT" debug="0"/>
         -->

         <!-- Tomcat Manager Context -->
         <Context path="/manager" docBase="manager" debug="0" 
privileged="true"/>

         <!-- Tomcat Examples Context -->
         <Context path="/examples" docBase="examples" debug="0" 
reloadable="true" crossContext="true">
           <Logger className="org.apache.catalina.logger.FileLogger" 
prefix="apache_examples." suffix=".log" timestamp="true"/>
           <Ejb name="ejb/EmplRecord" type="Entity" 
home="com.wombat.empl.EmployeeRecordHome" 
remote="com.wombat.empl.EmployeeRecord"/>
           <Environment name="maxExemptions" type="java.lang.Integer" 
value="15"/>
           <Parameter name="context.param.name" value="context.param.value" 
override="false"/>
           <Resource name="jdbc/EmployeeAppDb" auth="SERVLET" 
type="javax.sql.DataSource"/>
           <ResourceParams name="jdbc/EmployeeAppDb">
             <parameter><name>user</name><value>sa</value></parameter>
             <parameter><name>password</name><value></value></parameter>
             <parameter><name>driverClassName</name>
               <value>org.hsql.jdbcDriver</value></parameter>
             <parameter><name>driverName</name>
               <value>jdbc:HypersonicSQL:database</value></parameter>
           </ResourceParams>

           <Resource name="mail/Session" auth="Container" 
type="javax.mail.Session"/>
           <ResourceParams name="mail/Session">
             <parameter>
               <name>mail.smtp.host</name>
               <value>localhost</value>
             </parameter>
           </ResourceParams>
         </Context>

       </Host>

     </Engine>

   </Service>



On 13:03 07-03-2002 Buck Woodson wrote:
> Thanks, Peter.  I too tried this Sun article route without success on 
> WIN2K.  Win2K doesn't like the virtual host business at all.  The other 
> article I quoted works in Win2K except for the serving gifs etc. problem.  
> Its not strictly a directory problem either, having the gif in the same path 
> as the jsp you have the same problem.  With Tomcat by itself, no problem.
> 
> You can't even hang the gif directory off of Apache's DocumentRoot and see 
> it work like you'd want it to.
> 
> Here is the Apache access log to the typical failed service:
> <ipAddress> - - [06/Mar/2002:16:27:14 -0600] "GET /examples/images/code.gif 
> HTTP/1.1" 500 305
> 
> Here is the access log to the kluge direct navigate and back-navigate:
> <ipAddress> - - [06/Mar/2002:16:27:14 -0600] "GET 
> /examples/images/execute.gif HTTP/1.1" 304 0
> 
> Sorry I failed to mention the Windows 2000.
> 
> 
>> From: "Peter Johnson" <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with 
>> mod_webapp
>> Date: Thu, 7 Mar 2002 09:24:01 +1100 (EST)
>> 
>> I followed the site below and all works ok. Basically it describes some 
>> simple changes to
>> be made in server.xml
>> 
>> http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
>> 
>> Peter
>> 
>> > Set up these as per this URL, JSP will be functional but no gifs in  
>> examples:
>> > http://www.webmasterbase.com/article.php?pid=44&aid=305
>> >
>> > Then go to
>> >
>> > http://<yourApacheServerName>/examples/jsp/index.html
>> >
>> > Images don't serve from Apache nor from Tomcat.
>> >
>> > Apache thinks it should serve them from DocumentRoot/examples.
>> >
>> > Using Apache "Alias" and "Redirect" also fails.
>> >
>> > Oddly enough, you can successfully browse
>> > http://<yourApacheServerName>/examples/images, manually select each 
>> image  file, it
>> > displays properly, then go back to the jsp with the gifs and all is  well 
>> for the
>> > moment.
>> >
>> > I've spent a lot of time digging and
>> > trying things with no success.  Any help would be appreciated.
>> >
>> > Is Tomcat and Apache incompatible (if someone wants to step out, get 
>> crazy  and
>> > actually have graphics in a web page)?
>> >
>> > Thanks
>> >
>> > _________________________________________________________________
>> > MSN Photos is the easiest way to share and print your photos:
>> > http://photos.msn.com/support/worldwide.aspx
>> >
>> >
>> > --
>> > To unsubscribe:   <mailto:[EMAIL PROTECTED]> For 
>> additional
>> > commands: <mailto:[EMAIL PROTECTED]> Troubles with the 
>> list:
>> > <mailto:[EMAIL PROTECTED]>
>> 
>> 
>> 
>> -----------------------------------------
>> This email was sent using SquirrelMail.
>>    "Webmail for nuts!"
>> http://squirrelmail.org/
>> 
>> 
>> 
>> --
>> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>> For additional commands: <mailto:[EMAIL PROTECTED]>
>> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>> 
> 
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to