LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2007, 04:56 PM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
why can't I see the changes on my JSP pages?


Hi!

I'm using eclipse 3 with the tomcat's plugin. When I make a change on a JSP page, I don't see any change on my browser even when I restart tomcat or make refresh. I'm totally a newbie regarding JSP, tomcat and eclipse. I guess I forgot something in the configuration, but I do not know what. thank you for any help.
 
Old 07-28-2007, 12:33 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I don't know about those programs you're using but here's something very basic you should take into account when playing around with browsers and modifying pages you view in them: most browsers hold some kind of cache, and try to load the pages you've viewed before from the cache to load them faster (in case the page sat on the opposite side of the Earth, behind crappy connections) if it thinks there are no changes; it could be that if you refresh the page very frequently, your browser just picks up a copy from the cache and displays that. Refreshing could also do a "meta refresh", not actually refreshing the whole page but just the visible parts. For example with php pages using meta refresh refreshes the page content and maybe some nice clock thing you've built there, but not all of the content; for example some information brought from a database trough the php code would not be visible until you did a *real* refresh.

In cases like this (you view a page you modify in a browser) I'd try to turn off caching, and make sure the whole page is re-fetched and executed from the server, not just some cache copy of it, or parts of the page.

Beyond that I can't say what it could be. If the changes are saved to a file and that file is read by your browser, there should be no problems.
 
Old 08-11-2007, 06:51 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
thanks for the answer, but I don't think that the browser is the problem. When I start others browsers they show the same thing. I looked at the file, and saw that ecplipse (or tomcat?) doesn't recompile the files that I change. I have to delete the old compiled ones, so that it compiles again.
 
Old 05-23-2009, 07:17 AM   #4
joe262
LQ Newbie
 
Registered: Apr 2009
Distribution: gentoo, xubuntu, opensuse, solaris 10, opensolaris, centos
Posts: 12

Rep: Reputation: Disabled
I am having the same dang problem.

it seems that the java class resulting from compiling the jsp stays in the 'work' directory, and the only way i have found to force tomcat to recompile the jsp is to delete that class file each and every time.

There has got to be a better way, i am sure there is, i just dont know what it is.

here is an excerpt from my /opt/tomcat6/conf/web.xml

Code:
     <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param> 
            <param-name>development</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param> 
            <param-name>modificationTestInterval</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>keepgenerated</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>
as you can see i have development mode turned on, which is *supposed* to fix this. idk. any help would be appreciated. using Tomcat 6 on CentOS 5.something on an eapps VPS.

thanks,

Joe
 
Old 05-23-2009, 07:46 AM   #5
joe262
LQ Newbie
 
Registered: Apr 2009
Distribution: gentoo, xubuntu, opensuse, solaris 10, opensolaris, centos
Posts: 12

Rep: Reputation: Disabled
Ok. Never mind. It is working now : )

Solution was to add: reloadable="true"
in the server.xml <Host> heading.
 
Old 05-23-2009, 07:53 AM   #6
joe262
LQ Newbie
 
Registered: Apr 2009
Distribution: gentoo, xubuntu, opensuse, solaris 10, opensolaris, centos
Posts: 12

Rep: Reputation: Disabled
Sorry, on second thought that didnt fix it. I only thought it did.
Grrrrr : (
 
Old 05-23-2009, 06:54 PM   #7
joe262
LQ Newbie
 
Registered: Apr 2009
Distribution: gentoo, xubuntu, opensuse, solaris 10, opensolaris, centos
Posts: 12

Rep: Reputation: Disabled
Ok, turns out that the FTP client i was using was failing to update the modification time on the jsp files. Fixed that and now it works. : )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat : unable to access the jsp pages minil Programming 11 01-28-2006 09:19 AM
Compilation of JSP pages prior to deployment (with ant)? eantoranz Programming 0 03-31-2005 10:23 AM
Serving up JSP pages from Linux to Windows 1newbie2 Linux - Networking 1 03-28-2005 05:13 AM
why can't see my jsp pages updated? jyu1 Linux - Software 0 09-26-2003 10:24 PM
.jsp pages in Galeon Enlightened Linux - Software 5 06-26-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration