You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by SIVA SHANKAR <SS...@MIMHP.com> on 2001/04/12 22:35:43 UTC

Problem in reflecting changes made on a JSP File

Hi,

I installed Tomcat on a Windows NT Machine.  Everything is working fine.
All the samples are working great.  I did create a JSP file which will
connect to a SQL Server database and retrieve data from a table.  Initially
it works fine.  After that When I did some modifications on the file, but
it's not reflecting those changes. 

I found that it's creating a .java & .class file in the work directory, when
I hit the file for the first time.  Even after deleting that file, it
could'nt reflect those changes.  But after I restarted the service
(jakarta), it is working.

Somebody please help me to solve this problem.

Thank you in advance.

Siva.


Problem running tomcat embedded in jboss.

Posted by Todd Chaffee <tc...@toddbiz.com>.
I was running tomcat w/ apache with no problems and decided to try using
jboss with embedded tomcat.  I download the latest version (jboss 2.2 +
tomcat 3.2.1) and am now get a mod_jk error any time I request a .jsp page:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

Any suggestions?

- Todd Chaffee

Re: Problem in reflecting changes made on a JSP File

Posted by Sharail Affendi <sh...@cryptonics.com.my>.
Hi Siva ,

I'm trying to deploy Tomcat on NT, on which should lead to success, I shall
continue to test tomcat on Aix...

But even on NT I'm stuck. Could you help me out ? It just stops starting
Apache Tomcat during the Catalina boot-up... why ? I'm running NT on Celeron
and no other Web Server is runing...why stuck ? I used JRE 2 and JSDK1.3

Please suggest what should I do to deploy aTomcat on my NT 4.0 Server
machine..

Thanx

Yahoo Messenger= sharque2000

----- Original Message -----
From: SIVA SHANKAR <SS...@MIMHP.com>
To: <to...@jakarta.apache.org>
Sent: Friday, April 13, 2001 4:35 AM
Subject: Problem in reflecting changes made on a JSP File


> Hi,
>
> I installed Tomcat on a Windows NT Machine.  Everything is working fine.
> All the samples are working great.  I did create a JSP file which will
> connect to a SQL Server database and retrieve data from a table.
Initially
> it works fine.  After that When I did some modifications on the file, but
> it's not reflecting those changes.
>
> I found that it's creating a .java & .class file in the work directory,
when
> I hit the file for the first time.  Even after deleting that file, it
> could'nt reflect those changes.  But after I restarted the service
> (jakarta), it is working.
>
> Somebody please help me to solve this problem.
>
> Thank you in advance.
>
> Siva.
>
>


RE: Problem in reflecting changes made on a JSP File

Posted by Arik Kfir <ar...@mail.com>.
That's how Tomcat (and basically any JSP web server) works - each JSP page
is translated into a Servlet (e.g. a .java file and a .class file) and the
next time you request the JSP file, the web server simply runs the servlet
rather than loading the JSP file again. However, there is an attribute in
Tomcat that tells it to check the JSP file if it was modified since the last
time it compiled it - and if so, re-compile it again into a servlet.

The fact that you deleted the .java+.class files didn't matter because they
were already in memory. The web server doesn't read them (the servlet class)
from the file-system each time.

If you want to make Tomcat to check your JSP file for changes each request,
edit your SERVER.XML file (which is in the conf directory) and set the
attribute "reloadable" to true.

Best regards,

Arik Kfir
Team Leader
Israel.

-----Original Message-----
From: SIVA SHANKAR [mailto:SSHANKAR@MIMHP.com]
Sent: Thursday, April 12, 2001 10:36 PM
To: tomcat-user@jakarta.apache.org
Subject: Problem in reflecting changes made on a JSP File


Hi,

I installed Tomcat on a Windows NT Machine.  Everything is working fine.
All the samples are working great.  I did create a JSP file which will
connect to a SQL Server database and retrieve data from a table.  Initially
it works fine.  After that When I did some modifications on the file, but
it's not reflecting those changes.

I found that it's creating a .java & .class file in the work directory, when
I hit the file for the first time.  Even after deleting that file, it
could'nt reflect those changes.  But after I restarted the service
(jakarta), it is working.

Somebody please help me to solve this problem.

Thank you in advance.

Siva.