RE: moving webapps

2001-03-22 Thread Andy Cole

Hi. I have setup a few virtual host in the server like :
Host name="202.157.131.51"
Context path="/servlets"
docBase="/usr/home/amos/amos.webvis.net/htdocs/servlets"
debug="0"
reloadable="true"
/Context
/Host

But the servlets or the class files are placed under
/usr/home/amos/amos.webvis.net/htdocs/servlets/WEB-INF/classess then it
works. It seems like it is following the default tomcat setting. May I find
out how can I change it to other directory instead of WEB-INF/classes?
Thanks and I am using tomcat alone...

--Original Message--
From: "Filip Hanik" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: March 22, 2001 2:04:18 AM GMT
Subject: RE: moving webapps


set up a context in the server.xml file

Context path="/mywebapp"
docBase="/usr/htdocs"
crossContext="false"
debug="0"
reloadable="true" 
/Context


Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

 -Original Message-
 From: Oleg Timofeyev [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 21, 2001 4:51 PM
 To: [EMAIL PROTECTED]
 Subject: moving webapps


 How can I move my webapps direcory from tomcat to /htdocs , I am
 running TOMCAT as standalone.

 --
 --
 Oleg Timofeyev
 ReadySetNet
 [EMAIL PROTECTED]
 http://www.readysetnet.com
 Phone : 323 469 2000
 Fax : 323 469 2155



---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





RE: servlet prefix problem

2001-03-21 Thread Andy Cole

True and I am trying on virtual host as well ...

--Original Message--
From: Arif Tayebali [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Sent: March 20, 2001 8:55:38 PM GMT
Subject: RE: servlet prefix problem


I'm facing the same problem...haven't figured it out and dont think anyone
else has either. This topic is quite an old topic, I can only wonder why no
one has addressed it.

-Original Message-
From: Yang,Chun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 11:20 AM
To: '[EMAIL PROTECTED]'
Subject: servlet prefix problem


Hello all, I don't seem to be able to change the prefix for accessing
servlets. The default servlet prefix is "/servlet/" and according to the
instructions/coments in server.xml, this prefix can be adjusted. So I tried
changing the following lines in server.xml

RequestInterceptor
className="org.apache.tomcat.request.InvokerInterceptor"
debug="0" prefix="/foo/bar/servlets/" /

I made sure there is a slash at the beginning and the end of the prefix.
Somehow it doesn't work. When I looked at the generated mod_jk_conf-auto
file, I noticed the JkMount directive is still directing everything in
/servlet/* to ajp12. I would assume by changing the prefix in server.xml,
there would be a JkMount directive for /foo/bar/servlets/* to ajp12.

What have I done wrong and what am I missing here ?

Thanks.


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





RE: Servlet path configuration in Tomcat/Apache

2001-03-18 Thread Andy Cole

Hi. I am trying to change the physical path for servlets as well in Unix
Enivroment. Do you have a copy of server.xml for me to check against mine?
Appreciate if you can share and thanks in advance.

--Original Message--
From: "Zhengan Cai" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: March 15, 2001 4:51:02 AM GMT
Subject: Servlet path configuration in Tomcat/Apache


Dear Sir/Madam:

I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured
both Apache and Tomcat, set the path and classpath to the system. Apache can
run JSP and Servlets for the system provided test examples only.

Now I would like to add my own servlet files(in .class) to Tomcat. I created
a folder " mytest" at the same level of "examples" in the tomcat, ie:

c:\tomcat\webapps\examples
c:\tomcat\webapps\mytest

I added "mytest" in the "Server.xml" to let the system create new context.

In the "examples" test HTML file, the servlet path has been set up to "
.../servlet/HelloWorldExample"...

Comparing to that, I setup my servlet path to "../servlet/x"

Now my problem is: I create a test HTML file with test button on it. When I
click the button, it says the page can't be found.

If you have time, Could you tell me:

1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache?

2. How to configure the Tomcat or Apache for the Servlet path?

Thanks very much. Have a nice day!

Terry


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





Re: potential bug

2001-03-16 Thread Andy Cole

Hi. Is there anyway I can change the default path WEB-INF/classess for
servlet to point to others path with virtual hosts? Thanks.

--Original Message--
From: "Tagunov Anthony" [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
Sent: March 16, 2001 9:38:52 PM GMT
Subject: Re: potential bug


On Fri, 16 Mar 2001 15:53:38 EST, [EMAIL PROTECTED] wrote:

Can anyone confirm a problem I have encountered withe Tomcat. Lets say that
I
write a servlet called Test.java and put it in the classes directory  in
the
Web-Inf directory, and I decide to change it a little later. So I recompile
the servlet and produce a new class file. And have in mind the server is
running this whole time. Well, the problem I have encountered is that when
I
put the new servlet class in the 'classes' directory, where all the classes
live, the change doesn't take affect, and sometimes it does. If it doesn''t
take affect I have to restart the server to see the new changes. Does
anyone
else have the same problem..
else have the same problem..

Configure the context in server.xml. set reloadable="true" where appropriate


Best regards,
Tagunov Anthony


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





Re: potential bug

2001-03-16 Thread Andy Cole

Hi. Is there anyway I can change the default path WEB-INF/classess for
servlet to point to others path with virtual hosts? Thanks.

--Original Message--
From: "Tagunov Anthony" [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
Sent: March 16, 2001 9:38:52 PM GMT
Subject: Re: potential bug


On Fri, 16 Mar 2001 15:53:38 EST, [EMAIL PROTECTED] wrote:

Can anyone confirm a problem I have encountered withe Tomcat. Lets say that
I
write a servlet called Test.java and put it in the classes directory  in
the
Web-Inf directory, and I decide to change it a little later. So I recompile
the servlet and produce a new class file. And have in mind the server is
running this whole time. Well, the problem I have encountered is that when
I
put the new servlet class in the 'classes' directory, where all the classes
live, the change doesn't take affect, and sometimes it does. If it doesn''t
take affect I have to restart the server to see the new changes. Does
anyone
else have the same problem..
else have the same problem..

Configure the context in server.xml. set reloadable="true" where appropriate


Best regards,
Tagunov Anthony


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





RE: A beginner for tomcat.

2001-03-15 Thread Andy Cole

Hi. I was doing some testing on virtual host with different ip addresses in
tomcat. I was wondering how can I set the path for jsp and servlets like :
/usr/local/jakarta-tomcat-3.2/webapps/examples/WEB-INF/classes
I have implemented a virtual host with docBase /usr/home/test/www/servlets.
If I copy the whole stuffs under
/usr/local/jakarta-tomcat-3.2/webapps/examples/* to
/usr/home/test/www/servlets. It recognise the the servlets for it is
/usr/home/test/www/servlets/WEB-INF/classes. May I know which setting that I
can make this path different for the example...? Thanks a million if someone
can enlighten me.


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





RE: A beginner for tomcat.

2001-03-15 Thread Andy Cole

Hi. I was doing some testing on virtual host with different ip addresses in
tomcat. I was wondering how can I set the path for jsp and servlets like :
/usr/local/jakarta-tomcat-3.2/webapps/examples/WEB-INF/classes
I have implemented a virtual host with docBase /usr/home/test/www/servlets.
If I copy the whole stuffs under
/usr/local/jakarta-tomcat-3.2/webapps/examples/* to
/usr/home/test/www/servlets. It recognise the the servlets for it is
/usr/home/test/www/servlets/WEB-INF/classes. May I know which setting that I
can make this path different for the example...? Thanks a million if someone
can enlighten me.


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com