troubleshooting Question

Cannot deploy Rad-7 application to Tomcat web server

Avatar of Alaska Cowboy
Alaska CowboyFlag for United States of America asked on
JSPWindows XPJava App Servers
8 Comments1 Solution670 ViewsLast Modified:
I just recently set up a new machine to run Tomcat and a web application for our department. Everything had been migrated from an older machine, but I got the new machine set up and working ok. The application is accessed from the network like this:
http://xpc-120268/edwdev/dailyProcessingStatus.htm?filter=missing

However, I cannot deploy an enhancement to the new machine, while I can deploy the enhancement to the old machine.  I checked Windows permissions and they appear to be consistent on both machines.

Here's what I see:
- enhancement deployed normally to old machine (as I've done numerous times)
- on the new machine, the new enhancement doesn't show, the old code shows . . .

If I delete the files from my webapps folder (for this test in a dev environment), then the application won't run, as we expect.

If I deploy the WAR file (by extracting in WinZip), then the application runs BUT WITH THE OLD CODE. Where in the world is it getting the old code ???

When I do "view, source", I see Code snippet A (the old code).

If I look in \webapps\edwdev\WEB-INF\jsp, I see code snippet B, which has my enhancement

So why doesn't it run ?

It's like even if the new .jsp is there, it pulls the old .jsp from some memory vault or something . . .
======== Code snippet A (old code) =========
	<script type="text/javascript" id="js">
	var t;
	$(document).ready(function() 
    		{         
    		t = setTimeout( "refresh()", 60*1000 );
    		
    		$("#refresh").click(function () {
    			if ($("#refresh:checked").length > 0) {
				  	$.post("refreshStatus.htm", {refresh: "true"}, function(data){}, "text");
				  } else {
				  	$.post("refreshStatus.htm", {refresh: "false"}, function(data){}, "text");				  	
				  }
    		});
    		
			$("#statusEDW").tablesorter();  
			
			$("#filterAll").click(function () { 
			      document.location='?filter=all&DATE=null'; 
			 });

			$("#filterClientProd").click(function () { 
			      document.location='?filter=clientprod&DATE=null';
			 });

			$("#filterMemIDM").click(function () { 
			      document.location='?filter=memidm&DATE=null'; 
			 });

			$("#filterClaim").click(function () { 
   	              document.location='?filter=claim&DATE=null';
			 });


=============== Code snippet B ================================
	<script type="text/javascript" id="js">
	
    var monthMM = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
    var d = new Date();
    date = monthMM[d.getMonth()] + "" + pad2(d.getDate()) + "" +  d.getFullYear(); 

	function pad2(number) {
	  return(number < 10 ? '0' : '') + number;
	}
	
	var t;
	$(document).ready(function() 
    		{         
    		t = setTimeout( "refresh()", 60*1000 );
    		
    		$("#refresh").click(function () {
    			if ($("#refresh:checked").length > 0) {
				  	$.post("refreshStatus.htm", {refresh: "true"}, function(data){}, "text");
				  } else {
				  	$.post("refreshStatus.htm", {refresh: "false"}, function(data){}, "text");				  	
				  }
    		});
    		
			$("#statusEDW").tablesorter();  
			
			$("#filterAll").click(function () { 
				 if (<%=request.getParameter("DATE")%> > 0) {
				    document.location='?filter=all&DATE=<%=request.getParameter("DATE")%>';
				 } else { 
				    document.location='?filter=all&DATE=' + date;
				 }
			 });

			$("#filterClientProd").click(function () { 
				 if (<%=request.getParameter("DATE")%> > 0) {
				    document.location='?filter=clientprod&DATE=<%=request.getParameter("DATE")%>';
				 } else { 
				    document.location='?filter=clientprod&DATE=' + date;
				 }
			 });

			$("#filterMemIDM").click(function () { 
				 if (<%=request.getParameter("DATE")%> > 0) {
				    document.location='?filter=memidm&DATE=<%=request.getParameter("DATE")%>';
				 } else { 
				    document.location='?filter=memidm&DATE=' + date;
				 }
			 });
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros