RE: Changing the Servlets Directory

2001-09-19 Thread Hoggatt Matt - mahogg

Can anyone help me with this?

-Original Message-
From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 2:46 PM
To: '[EMAIL PROTECTED]'
Subject: Changing the Servlets Directory


After I installed Tomcat 3.2.3, my servlet directory is C:\Program
Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes.
Now I want to change it to, or add the directory C:\public_html\myServlets.

I've tried and tried and I cannot figure this out.  How is this done?

-Matt



Re: Changing the Servlets Directory

2001-09-19 Thread Kenny Ma

Tomcat is very difficult for user to change it's defualt setting...
I want to change the directory of servlet before, but now i already give up.

And I still cant resolve Tomcat cache problem.
Everytime I edit my servlet, I need to restart tomcat to get the latest 
result. I already added "reloadable = true" in server.xml.

I like Jserv more. Why stop develop Jserv ???


> After I installed Tomcat 3.2.3, my servlet directory is C:\Program
> Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes.
> Now I want to change it to, or add the directory C:\public_html\myServlets.
> 
> I've tried and tried and I cannot figure this out.  How is this done?
> 
> -Matt





/* Kenny Ma
   [EMAIL PROTECTED] */




Re: Changing the Servlets Directory

2001-09-19 Thread Dmitri Colebatch

Tomcat is a servlet container - it adheres to the servlet specification
(see http://java.sun.com/products/servlet).  If you also adhere to that
specification, then you will be able to deploy your application across any
number of different products, not just tomcat.

as for jserv... if you want to continue using it, then feel free.  but
afaik there is little or no support for it these days, and you certainly
wont see the functionality expanding like servlets...

cheers
dim

On Thu, 20 Sep 2001, Kenny Ma wrote:

> Tomcat is very difficult for user to change it's defualt setting...
> I want to change the directory of servlet before, but now i already give up.
> 
> And I still cant resolve Tomcat cache problem.
> Everytime I edit my servlet, I need to restart tomcat to get the latest 
> result. I already added "reloadable = true" in server.xml.
> 
> I like Jserv more. Why stop develop Jserv ???
> 
> 
> > After I installed Tomcat 3.2.3, my servlet directory is C:\Program
> > Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes.
> > Now I want to change it to, or add the directory C:\public_html\myServlets.
> > 
> > I've tried and tried and I cannot figure this out.  How is this done?
> > 
> > -Matt
> 
> 
> 
> 
> 
> /* Kenny Ma
>[EMAIL PROTECTED] */
> 
> 




Re: Changing the Servlets Directory

2001-09-20 Thread Ruben

Has Anybody know how to compile a servlet?
i tried with javac -g servlet name but i got an error. But not because of
the code. I think i have to use another compiler or smt i'm not usging.
i'm getting error trying to recompile servlets that are compiled and
working(bookstore sample servlets).
Thnks in advance
mariano




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Changing the Servlets Directory

2001-09-20 Thread Paul Foxton

hi,

You need to post your error message.

cheers,

Paul

> -Original Message-
> From: Ruben [mailto:[EMAIL PROTECTED]]
> Sent: 20 September 2001 15:17
> To: [EMAIL PROTECTED]
> Subject: Re: Changing the Servlets Directory
> 
> 
> Has Anybody know how to compile a servlet?
> i tried with javac -g servlet name but i got an error. But 
> not because of
> the code. I think i have to use another compiler or smt i'm 
> not usging.
> i'm getting error trying to recompile servlets that are compiled and
> working(bookstore sample servlets).
> Thnks in advance
> mariano
> 
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 



Re: Changing the Servlets Directory

2001-09-20 Thread Ruben

this is the error when i try to compile a servlet using javac -g servlet

Compiling C:\java\c05\SimpleServlet.java
Command line: "E:\jdk1.3\bin\javac.exe" -g  "C:\java\c05\SimpleServlet.java"
The current directory is: C:\java\c05
C:\java\c05\SimpleServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
C:\java\c05\SimpleServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
C:\java\c05\SimpleServlet.java:3: cannot resolve symbol
symbol  : class HttpServlet
location: class SimpleServlet
public class SimpleServlet extends HttpServlet
   ^
C:\java\c05\SimpleServlet.java:8: cannot resolve symbol
symbol  : class HttpServletRequest
location: class SimpleServlet


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Changing the Servlets Directory

2001-09-20 Thread Martin van den Bemt

You have to have the servlet.jar (or servlet classes) in your classpath when
you compile..

Mvgr,
Martin

> -Original Message-
> From: Ruben [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 9:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Changing the Servlets Directory
>
>
> this is the error when i try to compile a servlet using javac -g servlet
>
> Compiling C:\java\c05\SimpleServlet.java
> Command line: "E:\jdk1.3\bin\javac.exe" -g
> "C:\java\c05\SimpleServlet.java"
> The current directory is: C:\java\c05
> C:\java\c05\SimpleServlet.java:1: package javax.servlet does not exist
> import javax.servlet.*;
> ^
> C:\java\c05\SimpleServlet.java:2: package javax.servlet.http does
> not exist
> import javax.servlet.http.*;
> ^
> C:\java\c05\SimpleServlet.java:3: cannot resolve symbol
> symbol  : class HttpServlet
> location: class SimpleServlet
> public class SimpleServlet extends HttpServlet
>^
> C:\java\c05\SimpleServlet.java:8: cannot resolve symbol
> symbol  : class HttpServletRequest
> location: class SimpleServlet
>
>  _ Do You
> Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com




Re: Changing the Servlets Directory

2001-09-26 Thread Ruben

thnxk for you answer, but the problem is not the classpath. I have set the
classpath ok and i can import java.* whitout problems. i think the stuff is
in compilation syntax. mybe  i don't have to use javac to compile servlets.
is there another tool such as jasparser?
thnk
mariano



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com