Have you tried changing 

WebAppConnection warp     warp magiccubedesa:38008

to 

WebAppConnection warp     warp 172.16.1.102:38008


Also, sometimes but not always it is usefull to explicity provide the
address="172.16.1.102" attrubute in the Tomcat connector tag.  While the
connector is suppose to bind to all interfaces if the address is not
provided, for sometimes it is useful to give it a nudge.  This also ensures
that you truly know what IP addressed you are binding to.

All this assumes of coure that tomcat in on the same machine as apache.


To state the obvious but always useful advice, it never hurts to shutdown
tomcat and apache, wait 30 seconds and then start tomcat, wait 30 secs and
then start apache.

-----Original Message-----
From: JACA Hugo (Personal Externo) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:00 AM
To: '[EMAIL PROTECTED]'
Subject: mod_webapp to connect Apache-Tomcat 


Hi,

I need to connect Oracle Apache with Tomcat using mod_webapp and it doesn't
work!
We have other Apaches running with Tomcat using mod_jk and it works!

I have Oracle9iAS running Oracle Portal with an intranet app http://intranet
, and now we want to add an app running on Tomcat 4.0 using the same Apache
3.1.19. Oracle Apache needs mod_jserv for intranet app, so I can't use
mod_jk.

I follow the instructions on howto configure mod_webapp, it seems to be ok,
but the jsp request are handled by Oracle Jserv, not Tomcat...
If someone is working with the same scenario, please help me.

Sun Solaris 2.8
Oracle9iAS with Apache 3.1.19
Tomcat 4.0

Config. files:

server.xml
<Server port="38005" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Standalone">
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="38080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="38443"
               acceptCount="10" debug="9" connectionTimeout="60000"/>
    <Connector
className="org.apache.catalina.connector.http10.HttpConnector"
               port="38082" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="38443"
               acceptCount="10" debug="9"/>
    <Engine name="Standalone" defaultHost="magiccubedesa" 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="magicCubedesa" debug="1" appBase="webapps"
       unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="magicCube_access_log."
suffix=".txt"
                 pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="magicCube_log." suffix=".txt"
           timestamp="true"/>
          <Context path="/manager" docBase="manager" debug="0"
privileged="true"/>
      </Host>
    </Engine>
  </Service>

  <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
               port="38008" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="9"/>

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

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

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

       <Valve className="org.apache.catalina.valves.AccessLogValve"
              prefix="apache_access." suffix=".txt" pattern="common"/>
    </Engine>
  </Service>
</Server>

httpd.conf:
# end of original file...
# Include the configuration files needed for jserv
include "/soft/oracle9ias/Apache/Jserv/etc/jserv.conf"

# Include the Oracle configuration file for custom settings
include "/soft/oracle9ias/Apache/Apache/conf/oracle_apache.conf"


# start of Apache-Tomcat config
NameVirtualHost 172.16.1.102:7777
<VirtualHost 172.16.1.102:7777>
   ServerName intranet
   DocumentRoot /soft/oracle9ias/Apache/Apache/htdocs
</VirtualHost>

<VirtualHost 172.16.1.102:7777>
   ServerName magiccubedesa
   DocumentRoot /opt/tomcat/jakarta-tomcat-4.0-c1/dist/webapps
   WebAppConnection warp     warp magiccubedesa:38008
   WebAppDeploy     examples warp /examples/
   WebAppDeploy     magicCube warp /magicCube/
</VirtualHost>


Thanks,
Hugo.



http://www.portalsociete.com 
Vis�tenos, lo estamos esperando. 

============================================================
La informaci�n aqu� contenida es confidencial y est� dirigida
solamente a las personas direccionadas en el mail.
No debe ser considerada como recomendaci�n de compra o venta
de valores. Todo acceso no autorizado, uso, reproducci�n, o
divulgaci�n est� prohibido.
Ni SOCIETE GENERALE ni ninguna de sus subsidiarias o filiales
asumir�n responsabilidad ni obligaci�n legal alguna por cualquier
informaci�n incorrecta o alterada contenida en este mensaje.

The information contained herein is confidential and is intended
solely for the addressee(s).  It shall not be construed as a
recommendation to buy or sell any security.  Any unauthorized
access, use, reproduction, disclosure or dissemination is prohibited.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall assume any legal liability or responsibility for any incorrect,
misleading or altered information contained herein.
============================================================



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

Reply via email to