Dear Khrisnan,

You have to restart your apache after you make changes
to tomcat.conf

Regs.

Gozal

-----Original Message-----
From: Peter Gozal [mailto:[EMAIL PROTECTED]]
Sent: 25 Juli 2000 13:12
To: A mailing list about Java Server Pages specification and reference
Subject: RE: TOMCAT context mapping


Dear Khrisnan,

I once have this problem too
and I tried editing tomcat.conf
and adding ApJServMount directive
for the newly created context.
so if you make new context in your
server.xml like:

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

You can add in tomcat.conf

        ApJServMount /kicha /root

It works with me...

Regs.

Gozal

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Krishnan
> Sent: 07 Agustus 2000 21:02
> To: [EMAIL PROTECTED]
> Subject: TOMCAT context mapping
>
>
> Hi all,
> I have installed apache 1.3.9 and tomcat 3.1. I am able to run
> the examples stored under tomcat directory by both using the
> following url.
>
> http://localhost/examples/servlet/helloWorld and
> http://localhost:8080/examples/servlet/helloWorld
>
> Now, i created a new context called "kicha" and added that in the
> server.xml file. Similarly, i created one folder called web-inf
> and created one file called web.xml file. Now, i am able to run
> my jsp and servlet by typing the following url.
>
> http://localhost:8080/kicha/servlet/helloWorld  . But when i try
> the following url
> http://localhost/kicha/servlet/helloWorld , i am getting error
> for both jsp and servlets that "The requested URL
> /kicha/helloWorld.jsp was not found on this server".
> Tomcat is able to run my program, where is apache is not able to do that.
> Can you please tell me that where i am going wrong.
>
> thanks
> krishnan
>
> -----Original Message-----
> From:   Xing guohong [SMTP:[EMAIL PROTECTED]]
> Sent:   Monday, July 10, 2000 12:05 PM
> To:     [EMAIL PROTECTED]
> Subject:             Re: TOMCAT context mapping
>
> Hi,
>     Question 1:
>         By default, You should invoke it like that pattent:
> http://server:port/your web application/servlet/your servlet . And you can
> config your web application respective. Create a WEB.XML file under the
> web-inf directory of the web applicateion and edit it yourself,
> refering to
> TOMCAT_HOME\doc\appdev\deployment.html file.
>
>     Question 3:
>         Yes, you must set the TOMCAT_HOME environment variable.
> In Windows,
> set it just like set other environment variables, such as path, classpath
> and ... In Linux and unix, edit the profile file and add the enviroment
> variable. And at the same time, you's better set the JAVA_HOME environment
> variable, otherwise add the tools.jar to you classpath
> environment variable.
>
>     Hope this hepls. Any puzzzzzzle on them,  contact me.
>
>
> Xgh.
>
> ----- Original Message -----
> From: "hua ge" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 03, 2000 8:37 PM
> Subject: TOMCAT context mapping
>
>
> > Hello ,
> > Can anyone help me with either of my following questions?
> > highly appreciate with any help.
> >
> > Question 1:  *** regarding context mapping*******
> >
> > I tried to run the examples come with Tomcat in the examples context ,
> root
> > context and test context (which are already mapped in the server.xml),
> then
> > I created another new context in the server.xml following the syntext of
> > examples context and put one servlet in the Web-inf/classes folder under
> the
> > new context, but when I invoke this servlet, the browser show
> error 'page
> > could not found'. Does someone know why? do I need do more
> configure other
> > than the server.xml to map a new context?
> >
> >
> > Qustion 2: **** regarding resourceBundle  ******
> > one servlet example in the tomcat such as SessionExample.java ,
> it's using
> > resourceBundle to get bundle from LocalStrings.property file.
> > the source code has one statement like :
> > ResourceBundle rb = ResourceBundle.getBundle("LocalStrings");
> > the example works fine in example context itself, but if I copy the
> > SessionExample.class & the LocalStrings.property files to
> another context
> > say the test context coming with Tomcat package, the program
> won't work. I
> > double the problem could be at the resourceBundle.
> > but I already copied the property file together with the servlet class.
> >
> > anyone know why?
> >
> >
> > Question 3:  **** regarding tomcat install & set up *****
> >
> > after I download and install the jakarta-tomcat.zip file,
> > I started the server by invoking the startup batch file,
> > the server is up and I can run above examples as well,
> > but when I try to shutdown the server by invoking shutdown batch file, I
> got
> > error on the command line ' bad file name or command', the server won't
> > stop.
> >
> > Can someone give me a hint? I did not do any configure on the startup or
> > shutdown batch file. do I need to? some instructions say ' set
> > TOMCAT_HOME=.....', where should I set it? in the startup and shutdown
> batch
> > file?
> >
> > thanks
>
> ==================================================================
> =========
> 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

===========================================================================
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