Re: How to get changed class to reload

2001-05-21 Thread Gary Lundquest

It seems that others are having the same problem.  Does it work in some
cases and not in others?  If you can't get a changed class to reload, how do
you develop applications?  Is there another way of working that bypasses the
need to frequently test changes to a class?  It seems that the
shutdown-startup process would eat up a lot of extra time in the development
process.  But I'm new to JSP and Java so I may be missing a better way of
doing it.  How do most Java developers do it?  Or does the reload work for
most people?
-Gary Lundquest

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 9:35 PM
Subject: Re: How to get changed class to reload


> Hi,
> Oooops I have the Java sources in the class directory and in addition
> some java sources and class files n outher directories on my machine. And
> whenever I touch my JSP or ine of the java files in classes directory,
> everything what needs to be rempiled is recompiled, even the javas in
total
> differnent directories. So I have no idea why that doesn't work with you
> configuration.
>
> Sascha
>
>
>
>
>
>
> Gary Lundquest <[EMAIL PROTECTED]> on 05/17/2001 09:23:45 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: sascha kolski/Dcsimtech)
> Subject:  Re: How to get changed class to reload
>
>
>
>
> Yes, I looked at that, and reloadable is set to true.  But it does not
> reload.
>
> - Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 1:07 AM
> Subject: Re: How to get changed class to reload
>
>
> > HI,
> >
> > just have a look at your server.xml in tomcat/conf directory.
> >
> > There are context definitions.
> >
> > In these context definitions you can set a flag named reloadable to
true:
> >
> > looks like this:
> >
> >  reloadable="true"/>
> >
> > for the context test.
> >
> > Sascha
> >
> >
> >
>
>
>
>
>
>
>
>




Re: How to get changed class to reload

2001-05-17 Thread Gary Lundquest

It seems that others are having the same problem.  Does it work in some
cases and not in others?  If you can't get a changed class to reload, how do
you develop applications?  Is there another way of working that bypasses the
need to frequently test changes to a class?  It seems that the
shutdown-startup process would eat up a lot of extra time in the develop
process.  But I'm new to JSP and Java so I may be missing a better way of
doing it.  How do most Java developers do it?  Or does the reload work for
most people?
-Gary Lundquest


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 9:35 PM
Subject: Re: How to get changed class to reload


> Hi,
> Oooops I have the Java sources in the class directory and in addition
> some java sources and class files n outher directories on my machine. And
> whenever I touch my JSP or ine of the java files in classes directory,
> everything what needs to be rempiled is recompiled, even the javas in
total
> differnent directories. So I have no idea why that doesn't work with you
> configuration.
>
> Sascha
>
>
>
>
>
>
> Gary Lundquest <[EMAIL PROTECTED]> on 05/17/2001 09:23:45 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: sascha kolski/Dcsimtech)
> Subject:  Re: How to get changed class to reload
>
>
>
>
> Yes, I looked at that, and reloadable is set to true.  But it does not
> reload.
>
> - Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 17, 2001 1:07 AM
> Subject: Re: How to get changed class to reload
>
>
> > HI,
> >
> > just have a look at your server.xml in tomcat/conf directory.
> >
> > There are context definitions.
> >
> > In these context definitions you can set a flag named reloadable to
true:
> >
> > looks like this:
> >
> >  reloadable="true"/>
> >
> > for the context test.
> >
> > Sascha
> >
> >
> >
>
>
>
>
>
>
>
>




Re: How to get changed class to reload

2001-05-17 Thread skolski

Hi,
Oooops I have the Java sources in the class directory and in addition
some java sources and class files n outher directories on my machine. And
whenever I touch my JSP or ine of the java files in classes directory,
everything what needs to be rempiled is recompiled, even the javas in total
differnent directories. So I have no idea why that doesn't work with you
configuration.

Sascha






Gary Lundquest <[EMAIL PROTECTED]> on 05/17/2001 09:23:45 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: sascha kolski/Dcsimtech)
Subject:  Re: How to get changed class to reload




Yes, I looked at that, and reloadable is set to true.  But it does not
reload.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 1:07 AM
Subject: Re: How to get changed class to reload


> HI,
>
> just have a look at your server.xml in tomcat/conf directory.
>
> There are context definitions.
>
> In these context definitions you can set a flag named reloadable to true:
>
> looks like this:
>
> 
>
> for the context test.
>
> Sascha
>
>
>










Re: How to get changed class to reload

2001-05-17 Thread Gary Lundquest

Yes, I looked at that, and reloadable is set to true.  But it does not
reload.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 1:07 AM
Subject: Re: How to get changed class to reload


> HI,
>
> just have a look at your server.xml in tomcat/conf directory.
>
> There are context definitions.
>
> In these context definitions you can set a flag named reloadable to true:
>
> looks like this:
>
> 
>
> for the context test.
>
> Sascha
>
>
>




Re: How to get changed class to reload

2001-05-16 Thread skolski

Hi,

I think you are wrong and my Tomcat Server makes me quite shure about
this.

You can put a reloadable flag in the context defifnition in the server.xml.
(See my posting from 1 minute ago for details)

Sascha





Re: How to get changed class to reload

2001-05-16 Thread skolski

HI,

just have a look at your server.xml in tomcat/conf directory.

There are context definitions.

In these context definitions you can set a flag named reloadable to true:

looks like this:



for the context test.

Sascha





Re: How to get changed class to reload

2001-05-16 Thread Venkatesh Sangam

Hi,

Actually u have to restart the Tomcat Server whenever a change is made to 
the servlet ..
there is no other go ..
the server does not automatically detect the change in the class file ..
Once u start the server ..the class file is actually loaded once ..this the 
advantage ..coz you need not compile the servelt everytime you load the 
servlet ..but you have to restart the tomcat server once a change is made



From: Gary Lundquest <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How to get changed class to reload
Date: Wed, 16 May 2001 22:54:32 -0500

I am a new tomcat user (ver 3.2.1) on RedHat 7.0.  I put a test servlet in
the webapps/examples/WEB-INF/classes directory and it ran fine.  But when I
modifiy the .java file and recompile it with javac, I cannot get the
modified version to display in the browser.  I'm pretty sure it is not a
cache problem in my browser.  I even deleted the .class file and the old
result still displayed.  I can get the changes to appear by shutting down
and starting up tomcat.  But I cannot figure out how to get the old class
out of tomcat's cache (short of shutting it down).  I've read most of the
included documentation and it talks a lot about being able to reload a
changed class, but no matter where I've tried to put the servlet class in
the directory structure, or what I add to the XML files, I can't get it to
reload.  What is the trick to it?  How does tomcat detect whether the class
file has been modified - does it check the file date each time it is called?
Do I need to be using some tool other than a text editor and the javac
compiler for the servlet class?

Any help will be appreciated.  Thanks.
-Gary Lundquest



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




How to get changed class to reload

2001-05-16 Thread Gary Lundquest

I am a new tomcat user (ver 3.2.1) on RedHat 7.0.  I put a test servlet in
the webapps/examples/WEB-INF/classes directory and it ran fine.  But when I
modifiy the .java file and recompile it with javac, I cannot get the
modified version to display in the browser.  I'm pretty sure it is not a
cache problem in my browser.  I even deleted the .class file and the old
result still displayed.  I can get the changes to appear by shutting down
and starting up tomcat.  But I cannot figure out how to get the old class
out of tomcat's cache (short of shutting it down).  I've read most of the
included documentation and it talks a lot about being able to reload a
changed class, but no matter where I've tried to put the servlet class in
the directory structure, or what I add to the XML files, I can't get it to
reload.  What is the trick to it?  How does tomcat detect whether the class
file has been modified - does it check the file date each time it is called?
Do I need to be using some tool other than a text editor and the javac
compiler for the servlet class?

Any help will be appreciated.  Thanks.
-Gary Lundquest