| Author |
Always have to restart MyEclipse just to reflect changes in jsp
|
Kunal Lakhani
Ranch Hand
Joined: Jun 05, 2010
Posts: 609
|
|
Hello.
Whenever i do some some changes in jsp(like with EL) and again run it as MYECLIPSE SERVER APPLICATION, it does not show the new output. The result is same even after redeploying it.
But, when i close the MyEclipse, and open it again, and then run it, it runs perfectly, with the new desired output.
What is the problem here?
I am using MyEclipse8.5
|
kunal
|
 |
William P O'Sullivan
Ranch Hand
Joined: Mar 28, 2012
Posts: 860
|
|
Not sure, but you may be running in a non-development environment?
JSPs get converted into Java programs, hidden away in a temp/work folder within the app.server.
I sense your JSP is not getting recompiled when you save it.
WP
|
 |
Kunal Lakhani
Ranch Hand
Joined: Jun 05, 2010
Posts: 609
|
|
|
What should i do?
|
 |
Anthony Roberts
Greenhorn
Joined: Aug 29, 2011
Posts: 12
|
|
Check that the deployment is actually being done when you run as MyEclipse Server Application or when deploying. You can browse the deployment location from the deployment manager or from the servers view, by right clicking on the deployment. Some changes require the server to be running in debug mode to be picked up automatically but I don't think this is your situation.
Post on the MyEclipse forums (http://www.myeclipseide.com/forums) for better support.
|
 |
Sachin Pachari
Ranch Hand
Joined: Jan 16, 2012
Posts: 56
|
|
i think this may work, i had a similar problem, in Eclipse
try any one of the below set of steps.
1.every time you make changes,
2.build and clean your project,
3.and you can right-click on your server and the click clean. (the IDE will remove all the old files and then deploy your new deployment. )
you can also use this method,
1. After making your changes you can clean your project.
2.right click on the server in servers window, then click on Explore, this will open folder where the deployments are present, then you can delete the deployment manually.( ie this folder will have the war or the Exploded form of war, you can select the war and delete the war by simply right click and delete)
3. now right click on your project and run on server.
the reason behind this problem might be due to the fact that, the deployment is done once and the next time the IDE does not properly update the deployment,
so if you do any of the above steps you will be doing a fresh deployment right from the biginning.( ie you will be updating or replacing the deployment in the webapp or deployments)
hope this helps.
|
 |
Kunal Lakhani
Ranch Hand
Joined: Jun 05, 2010
Posts: 609
|
|
|
I have noticed that whenever i do some changes in jsp files, the problem occurs, i.e the the output is the old one, not reflecting the new changes, even though i delete the deployments manually. And, after restarting, it works. Changes in servlet files are automatically reflected.
|
 |
 |
|
|
subject: Always have to restart MyEclipse just to reflect changes in jsp
|
|
|