Apologies. I have added the following to httpd.conf

#Adding Web application in Tomcat 4.0.3
WebAppConnection conn      warp  localhost:8008
WebAppDeploy     ROOT  conn  /tomcat
WebAppDeploy     examples  conn  /tomcat/examples
WebAppDeploy     manager  conn  /tomcat/manager
WebAppDeploy     webdav  conn  /tomcat/webdav
WebAppDeploy     tomcat-docs  conn  /tomcat/tomcat-docs
WebAppDeploy     XyloWeb conn /XyloWeb
WebAppInfo /webapp-info

as well as

LoadModule webapp_module libexec/httpd/mod_webapp.so

my server.xml file is : (I made my modifications bold)

<Server port="8005" shutdown="SHUTDOWN" debug="0">

   <Service name="Tomcat-Standalone">


     <Connector 
className="org.apache.catalina.connector.http.HttpConnector"
                port="8080" minProcessors="5" maxProcessors="75"
                enableLookups="true" redirectPort="8443"
                acceptCount="10" debug="0" connectionTimeout="60000"/>

     <Engine name="Standalone" defaultHost="localhost" debug="0">

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

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

       <Host name="localhost" debug="0" appBase="webapps" 
unpackWARs="false">


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

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

         <Context path="/" docBase="ROOT" debug="0" reloadable="true"/>

         <Context path="/XyloWeb" docBase="XyloWeb.war" debug="0" 
reloadable="true"/>

         <Context path="/manager" docBase="manager"
          debug="0" privileged="true"/>

         <Context path="/examples" docBase="examples" debug="0"
                  reloadable="true">
           <Logger className="org.apache.catalina.logger.FileLogger"
                      prefix="localhost_examples_log." suffix=".txt"
                  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>
   <Service name="Tomcat-Apache">

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

     <Engine className="org.apache.catalina.connector.warp.WarpEngine"
      name="Apache" debug="0" appBase="webapps">

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

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

     </Engine>

   </Service>

</Server>


Again, sorry for not sending all information.

Thanks
Alex


On Wednesday, June 5, 2002, at 09:54 PM, Pier Fumagalli wrote:

> Should I "guess" your configuration files? (Ok, a SEGV is not good, but 
> at
> least include all relevant data).
>
>     Pier
>
> "Alexander Hartner" <[EMAIL PROTECTED]> wrote:
>
>> I am having such problems running tomcat 4.0.3 on my ibook. I can get
>> tomcat started, and I can access it via port 8080. I can also deploy my
>> war files by copying them to the webapps directory, but updates are not
>> reflected until I have restarted Tomcat. I found some advise to add
>> unpackWAR=false in my server.xml file which now allows my to reload my
>> application via the manager app (great), but now the mod_web_app
>> complains that is cannot deploy my application. In the apache_log file
>> in tomcat's log directory the error reported indicates that it cannot
>> find the directory of my webapp, which no longer exist since the war
>> file does not get extracted.
>>
>> Before I added the unpackWAR=false I had to restart tomcat all the 
>> time,
>> which resulted in a whole list of problems by itself. I keep on getting
>> the error that my web app is not deployed, even though that my
>> application is deployed and accessible directly via port 8080.
>>
>> I also tried to build the latest mod_web_app.so, which I succeeded
>> doing, but it did not work either. I then got error :
>> 2002-05-19 23:26:29 WarpEngine[Apache]: Mapping request
>> 2002-05-19 23:26:29 WarpHost[butterfly]: Mapping request for Host
>> 2002-05-19 23:26:30 [org.apache.catalina.connector.warp.WarpConnection]
>> Exception on socket
>> java.io.IOException: Premature packet header end
>>       at
>> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:
>> 237)
>>       at
>> org.apache.catalina.connector.warp.WarpRequestHandler.handle
>> (WarpRequestHandler.java:112)
>>       at
>> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:
>> 194)
>>       at java.lang.Thread.run(Thread.java:496)
>>
>> in apache_log.2002-05-19.txt and error :
>>
>> [Sun May 19 23:26:30 2002] [notice] child pid 23875 exit signal Bus
>> error (10)
>>
>> in /private/var/log/httpd/error_log.
>>
>> Is anybody else having these problem, or is anybody else even using
>> tomcat on macosx ?
>>
>> Thanks
>> Alex
>>
>
> --
> [Perl] combines all the worst aspects of C and Lisp:  a billion of 
> different
> sublanguages in  one monolithic executable.  It combines the power of C 
> with
> the readability of PostScript. [Jamie Zawinski - DNA Lounge - San 
> Francisco]
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>
>

Reply via email to