- This topic has 7 replies, 2 voices, and was last updated 18 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
onirikeMemberHi,
We have a J2EE project linked to a Tomcat 5.5 server.
Web folder: /web
Web root: / (it’s then deployed in the ROOT directory in Tomcat).When adding images in the project and then trying to redeploy the project into Tomcat the new images are not deployed. Since we are deploying in the ROOT Tomcat directory and that this directory contains other files that are also needed for this project (mostly tons of .pdf and .html files) we are using the Overwrite mode – add/modify only when deploying.
It seems that the only way to deploy a new image would be to delete the deployment and re-create it. That is not a solutiuon for us because doing this completly delete the content of the ROOT directory.Am I missing something? Is there another way to do this?
Environment:
Eclipse : 3.1.2
MyEclipse 4.1.1 GAThanks,
Riyad KallaMemberAs long as you are using an exploded deployment these changes should be synced in real time. Also make sure that if you are adding the images externally (like saving them from Photoshop into your project dir) you need to Refresh your project (Right click on your project root > Refresh). Then Eclipse will see the new files and start a build cycle on them (in the case of images, nothing) but MyEclipse will see the new files as well and deploy them as part of the build cycle.
onirikeMemberHi,
That’s exactly what we are doing. We are saving directly in our image folder with Photoshop. From there we are going in MyEclipse and do Refresh we can see the new image in Eclipse but either with the hot-deploy OR by manually deploying the image it never gets in Tomcat.
That’s really strange. When deploying a .war (packaged archive) it works. Seems like there is a bug to detect that there is a new image and that MyEclipse should deploy it. Could that be possible?
Thanks!
Riyad KallaMemberDid you make sure you are using an exploded deployment? That is the only way MyEclipse will deploy the file *and* it will do it automatically and immediately after you perform the refresh (you do not need to open the deployment dialog and hit deploy, it should already be there).
onirikeMemberHi!
Ok you are right, this works. But why when Tomcat is stopped and I try to deploy manually the image is not deployed? That’s really strange isn’t it?
If Tomcat is running, the hot deploy works fine but if it’s not there is like no way to have the image deployed.
Thanks for your help, it’s appreciated!
Riyad KallaMemberBut why when Tomcat is stopped and I try to deploy manually the image is not deployed? That’s really strange isn’t it?
As long as you have done the refresh first, yes that is very strange. Are you using exploded or packaged deployment? So when you hit deploy (after the refresh) then go check the dir or the WAR contents, you don’t see your images? Very odd…
onirikeMemberHum… We are using exploded deployment. I think I did press the Refresh button. And yes after the deployment I don’t see the image. Could it be linked to the fact that I have selected the option “Overwrite mode – add/modify only” when deploying in the ROOT of Tomcat?
Riyad KallaMemberIt could be a bug with that setting I suppose. If you recreate the deployment with the normal replace mode, does it work now?
-
AuthorPosts