LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2009, 02:09 AM   #1
Sunday03
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
Unhappy why have to kill tomcat whenever recompile and run a project?


Hi,

Now I'm facing a problem that is :
Before running a project after recompiling,i have to kill current running tomcat process and close the browswer on which the current running project? (so that the program run successfully otherwise the blank page is displayed on the browser.)

Have anyone encountered this problem??? (I'm a newbie..)

I'm doing WebService with java by using netbeans IDE 6.1 and tomcat 6.0.14 on linux platform.

Thanks in advance.

Regards..

Last edited by Sunday03; 04-06-2009 at 02:23 AM.
 
Old 04-06-2009, 08:26 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

If you're not already doing it, definitely set your headers to "no_cache":
Code:
<%
  response.setHeader("Cache-Control","no-cache"); 
  response.setHeader("Pragma","no-cache"); 
  response.setDateHeader ("Expires", -1); 
%>
Here's more info:
http://www.onjava.com/pub/a/onjava/e..._3/index2.html

'Hope that helps .. PSM
 
  


Reply



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
how to run a servlet using tomcat me4linux Linux - Networking 0 01-28-2007 04:42 AM
how to get Tomcat to run on startup? TrevorS Slackware 8 09-19-2006 10:24 PM
I can't run tomcat hus Programming 2 05-11-2005 11:48 AM
How do you run Tomcat as nobody? vous Linux - Software 11 03-24-2005 01:15 PM
run java and tomcat varunbihani Linux - Software 2 09-17-2003 04:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:56 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