RE: jsp and tomcat 4

2001-07-18 Thread Jann VanOver

My bad -- b6 isn't out yet.  I guess you're supposed to get a more recent
"nightly build" of b5.

-Original Message-
From: Jann VanOver 
Sent: Wednesday, July 18, 2001 1:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: jsp and tomcat 4


Move to b6.  b5 has a problem recompiling JSPs 

-Original Message-
From: David White [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: jsp and tomcat 4


I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

> -Original Message-
> From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp and tomcat 4
>
>
> You need to make changes to a jsp file, not java file.  Tomcat will detect
> changes automatically and will translate jsps into java files and
> then compile
> them.
> ---
> Oskar
>
> Marco Magistrali wrote:
>
> > Hi,
> >
> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in
> browser because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
> >
> > tanks
> > Marco
>



RE: jsp and tomcat 4

2001-07-18 Thread Jann VanOver

Move to b6.  b5 has a problem recompiling JSPs 

-Original Message-
From: David White [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: jsp and tomcat 4


I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

> -Original Message-
> From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp and tomcat 4
>
>
> You need to make changes to a jsp file, not java file.  Tomcat will detect
> changes automatically and will translate jsps into java files and
> then compile
> them.
> ---
> Oskar
>
> Marco Magistrali wrote:
>
> > Hi,
> >
> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in
> browser because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
> >
> > tanks
> > Marco
>



RE: jsp and tomcat 4

2001-07-18 Thread Esther Kim

We've found that if you change the name of the JSP before bringing it into Tomcat and 
rename it to its actual name in Tomcat, it sees the new code.  You might try that.






RE: jsp and tomcat 4

2001-07-17 Thread Craig R. McClanahan



On Tue, 17 Jul 2001, David White wrote:

> [snip]
> I recall someone on this list mentioning that Tomcat 4b5 had a known bug
> regarding detection of changes in source files, so I've assumed that was the
> problem I've been seeing.
> 

That is indeed the case.  It's fixed in nightly build 20010717 (which also
incorporates the security vulnerability fix), and will be fixed in the
Tomcat 4.0-beta-6 release that will be forthcoming later this week.

Craig





Re: jsp and tomcat 4

2001-07-17 Thread Bill Pfeiffer

This is a known bug with Tomcat 4.0b5 release and WinNT/2000.  Get a recent
nightly build and the problem should go away.

HTH,

Bill Pfeiffer
- Original Message -
From: "D. Jay Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 9:21 AM
Subject: Re: jsp and tomcat 4


> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in browser
because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
>
> This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had
to
> manually fix my system's time, and that changed the timestamps so that the
> older cached versions had "newer" timestamps than the JSP file I was
editing).
>
> Otherwise I always get automatic recompilation if I only change the
> JSP file (if I change a package I call from there I have to go through
> hoops, but that's another story).
>
> This was on linux.
> --
> D. Jay Newman   ! For the pleasure and the profit it
derives
> [EMAIL PROTECTED]  ! I arrange things, like furniture, and
> http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello
Dolly




RE: jsp and tomcat 4

2001-07-17 Thread David White

I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

> -Original Message-
> From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp and tomcat 4
>
>
> You need to make changes to a jsp file, not java file.  Tomcat will detect
> changes automatically and will translate jsps into java files and
> then compile
> them.
> ---
> Oskar
>
> Marco Magistrali wrote:
>
> > Hi,
> >
> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in
> browser because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
> >
> > tanks
> > Marco
>




Re: jsp and tomcat 4

2001-07-17 Thread Oskar Zinger

You need to make changes to a jsp file, not java file.  Tomcat will detect
changes automatically and will translate jsps into java files and then compile
them.
---
Oskar

Marco Magistrali wrote:

> Hi,
>
> I have a question:
> if I modify a JSP under tomcat4 i don't see any change in browser because
> tomcat4 get the .class of JSP in cache (directory work)
>
> How can I say to recompile the jsp if there are changes in java??
>
> tanks
> Marco




Re: jsp and tomcat 4

2001-07-17 Thread Marco Magistrali

ok, you restart tomcat. But with tomcat 3.1 the jsp was recompiled every time i
modified java without restart tomcat, it's right??
I wouldn't to restart tomcat. Is it impossible??
tnx

"D. Jay Newman" wrote:

> Sort of. When I change a "system" package (one I put into
>/usr/local/java/jre/lib/ext/), then I have to stop and restart tomcat.
>
> > there are way to force recompilation when I modify java in jsp??
> > I'm working on winnt with tomcat 4.0b5
> >
> > "D. Jay Newman" wrote:
> >
> > > > I have a question:
> > > > if I modify a JSP under tomcat4 i don't see any change in browser because
> > > > tomcat4 get the .class of JSP in cache (directory work)
> > > >
> > > > How can I say to recompile the jsp if there are changes in java??
> > >
> > > This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
> > > manually fix my system's time, and that changed the timestamps so that the
> > > older cached versions had "newer" timestamps than the JSP file I was editing).
> > >
> > > Otherwise I always get automatic recompilation if I only change the
> > > JSP file (if I change a package I call from there I have to go through
> > > hoops, but that's another story).
> > >
> > > This was on linux.
> > > --
> > > D. Jay Newman   ! For the pleasure and the profit it derives
> > > [EMAIL PROTECTED]  ! I arrange things, like furniture, and
> > > http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly
> >
>
> --
> D. Jay Newman   ! For the pleasure and the profit it derives
> [EMAIL PROTECTED]  ! I arrange things, like furniture, and
> http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly




Re: jsp and tomcat 4

2001-07-17 Thread D. Jay Newman

Sort of. When I change a "system" package (one I put into
   /usr/local/java/jre/lib/ext/), then I have to stop and restart tomcat.

> there are way to force recompilation when I modify java in jsp??
> I'm working on winnt with tomcat 4.0b5
> 
> "D. Jay Newman" wrote:
> 
> > > I have a question:
> > > if I modify a JSP under tomcat4 i don't see any change in browser because
> > > tomcat4 get the .class of JSP in cache (directory work)
> > >
> > > How can I say to recompile the jsp if there are changes in java??
> >
> > This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
> > manually fix my system's time, and that changed the timestamps so that the
> > older cached versions had "newer" timestamps than the JSP file I was editing).
> >
> > Otherwise I always get automatic recompilation if I only change the
> > JSP file (if I change a package I call from there I have to go through
> > hoops, but that's another story).
> >
> > This was on linux.
> > --
> > D. Jay Newman   ! For the pleasure and the profit it derives
> > [EMAIL PROTECTED]  ! I arrange things, like furniture, and
> > http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly
> 


-- 
D. Jay Newman   ! For the pleasure and the profit it derives
[EMAIL PROTECTED]  ! I arrange things, like furniture, and
http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly



Re: jsp and tomcat 4

2001-07-17 Thread Marco Magistrali

there are way to force recompilation when I modify java in jsp??
I'm working on winnt with tomcat 4.0b5

"D. Jay Newman" wrote:

> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in browser because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
>
> This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
> manually fix my system's time, and that changed the timestamps so that the
> older cached versions had "newer" timestamps than the JSP file I was editing).
>
> Otherwise I always get automatic recompilation if I only change the
> JSP file (if I change a package I call from there I have to go through
> hoops, but that's another story).
>
> This was on linux.
> --
> D. Jay Newman   ! For the pleasure and the profit it derives
> [EMAIL PROTECTED]  ! I arrange things, like furniture, and
> http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly




Re: jsp and tomcat 4

2001-07-17 Thread D. Jay Newman

> I have a question:
> if I modify a JSP under tomcat4 i don't see any change in browser because
> tomcat4 get the .class of JSP in cache (directory work)
> 
> How can I say to recompile the jsp if there are changes in java??

This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
manually fix my system's time, and that changed the timestamps so that the
older cached versions had "newer" timestamps than the JSP file I was editing).

Otherwise I always get automatic recompilation if I only change the
JSP file (if I change a package I call from there I have to go through
hoops, but that's another story).

This was on linux.
-- 
D. Jay Newman   ! For the pleasure and the profit it derives
[EMAIL PROTECTED]  ! I arrange things, like furniture, and
http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly



jsp and tomcat 4

2001-07-17 Thread Marco Magistrali


Hi,

I have a question:
if I modify a JSP under tomcat4 i don't see any change in browser because
tomcat4 get the .class of JSP in cache (directory work)

How can I say to recompile the jsp if there are changes in java??


tanks
Marco