- This topic has 5 replies, 2 voices, and was last updated 10 years, 4 months ago by support-swapna.
-
AuthorPosts
-
dagger_ssMemberHello,
I have been running MyEclipse for a little bit here and noticed that my code was not hot deploying even though I have build automatically checked. I had a colleague check over all my configurations and he couldn’t figure it out either. Any help would be greatly appreciated. Let me know what information is needed and I will provide it.
Thanks again!
support-swapnaModeratordagger_ss,
Sorry that you are seeing this issue.
Can you please give us some more information to help us investigate futher?
1. Please share the server and its version details.
2. What kind of project is it ? Please share details about the project structure.
3. Are you starting your server in Debug mode? Hot-sync for Java classes will only work in that mode.
4. If you are working with Websphere, hot deployment works in “Classic Mode (Exploded mode)” and ‘In-Workspace’ deployment mode. In addition to that, please make sure the WAS server is configured to run in “Debug” mode.
5. Could you go to Project > Properties > Java Build Path and check the output folder for your source folders? You would need to check the output folder that is globally set and by chance if you have set an output folder per source folder (which should not be required). The output folder should be set to WebRoot/WEB-INF/classes
6.What if you make a change in a JSP or simple HTML file and save that – are those changes reflected without redeployment?
dagger_ssMemberHi swapna,
Certainly. If you need more information, just let me know.
Server: Tomcat 7 (7.0.54)
Project Structure: Tomcat web project
I only ever run the server in debug mode.
We are not using Websphere for this project.
My output folder is set to <project name>/bin. If I check the class files in those folders, the timestamps are being changed when I make changes in their respective java files.
Changes in the JSP files are not reflected unless I manually copy them to the tomcat directory, but this is how it is supposed to work.
Thanks again for the help.
support-swapnaModeratordagger_ss,
Sorry that you are seeing this issue. I could not replicate the issue at my end.
Here are the steps I followed for hot deployment :
1. Installed ‘SimpleJSPExample’ project to my workspace from MyEclipse > Examples On-Demand. Changed the output folder to SimpleJSPExample/bin.
2. Configured the Tomcat 7.0.54 and started it from the Servers view by by right clicking on Tomcat 7.x > Debug Server
3. Deployed the project from the Servers view by right clicking on Tomcat 7.x > Add Deployment. Open the project in MyEclipse Browser. Change the return message in the java class and refresh the browser. You should see the changes.
If you are still seeing issues even after following the steps for Tomcat configuration and deployment , please either prepare and send a sample project which exhibits the issue or strip the current project of its source code and attach all the .* files (.project,.settings,.classpath etc) to help us replicate the issue at our end.
Let us know how it works for you.
dagger_ssMemberHi Swapna,
I reinstalled myEclipse to a different directory and moved the workspace to a different directory and now hotswapping is working for SimpleJSPExample. Thanks for the help, I should be able to get it running on our project now.
support-swapnaModeratorHi,
Glad that you could get it working.
Let us know if you see any issues. -
AuthorPosts