Hi,
        I am also facing the same problem and I tried all what has been said
but still I am unable to execute the class file from apache. Is there
something else that needs to be done? Also, is the installation of Apache
JServ 1.1.1 needed if we are using Tomcat 3.1 and copied the
ApacheModuleJServ.dll to modules/ folder in Apache.

Thanks,
Ashish
-----Original Message-----
From: Xing guohong [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 10, 2000 2:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat and Apache Configuration


Hi,
    I guest that your Tomcat's port is 8080 and Apache's port is 80. If it
is.
    1) In your httpd.conf file(in the apache program/conf/), you must
include the tomcat.conf file in TOMCAT_HOME/conf directory. For example:
Append the following line in your httpd.conf file, Include
"d:\java\Tomcat\conf\tomcat.conf"
    2) Modify the tomcat.conf file.
        If in Windows:
        # Tell Apache on win32 to load the Apache JServ communication module
        LoadModule jserv_module modules/ApacheModuleJServ.dll
        If in unix:
        # Tell Apache on Unix to load the Apache JServ communication module
        # For shared object builds only!!!
        # @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
        LoadModule jserv_module libexec/mod_jserv.so
    3)Copy the ApacheModuleJServ.dll file to the apache/modules

http://jakarta.apache.org/builds/tomcat/release/v3.0/win32/ApacheModuleJServ
.dll(download it)
        or
        ... for unix platform.
    4)Start apache and tomcat, you can run them both successfully.

    Help this hepls

xgh.

----- Original Message -----
From: "Laiwu Luo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 11:14 PM
Subject: Tomcat and Apache Configuration


> I have set up Tomcat 3.1 to run with Apache 1.3.12 on NT box. But I run
> into the certain problems when I run the demo servlet codes "snoop" and
> "servletToJsp" in "examples/wen-inf/classes" directory. Since the
> following servlet mappings have been added "web.xml":
>
>   <servlet-mapping>
>   <servlet-name>snoop</servlet-name>
>   <url-pattern>/snoop</url-pattern>
>   </servlet-mapping>
>
>   <servlet-mapping>
>   <servlet-name>servletToJsp</servlet-name>
>   <url-pattern>/servletToJsp</url-pattern>
>   </servlet-mapping>
>
> I can successfully run these demo codes by simply typing:
> "http://localhost:8080/examples/snoop" and
> "http://localhost:8080/examples/servletToJsp". I can also successfully
> run the codes by typing "http://localhost/examples/servlet/snoop" and
> "http://localhost/examples/servlet/servletToJsp".
>
> However I cann't run them successfully by typing
> "http://localhost/examples/snoop"  and
> "http://localhost/examples/servletToJsp". The message I got are like
> "Not Found The requested URL /examples/snoop (or servletToJsp) was not
> found on this server".
>
> Can someone please let me know what is wrong in my configuration?
>
> Thanks,
>
> Laiwu Luo
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


Visit http://www.NetVarsity.com for online learning

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to