- This topic has 11 replies, 4 voices, and was last updated 16 years, 8 months ago by Loyal Water.
-
AuthorPosts
-
sheenmicroMemberHi,
I’ve just inherited an Eclipse Project which I had successfully set up in MyEclipse. The project had been using an ant build, however I had got it building and deploying in MyEclipse. However, it wasn’t being built correctly, eg all the class files weren’t getting deployed because I’d missed the fact that MyEclipse had created it’s own WEB-INF in the project root as opposed to using the webroot I had specified. I had changed .mymetadata to:-
<?xml version=”1.0″ encoding=”UTF-8″?>
<project-module
type=”WEB”
name=”project-web-application”
id=”myeclipse.1149517628281″
context-root=”/project”
j2ee-spec=”1.4″
archive=”project.war”>
<attributes>
<attribute name=”webrootdir” value=”<web-src>” />
</attributes>
</project-module>When I changed the <attribute name=”webrootdir” value=”/web-src” /> The class files ended up in the correct directory,
ie project-web-application/web-src/WEB-INF/classes . However, when I try to deploy I get an error message
:
Deployment is out of date due to changes in the underlying project contents. You’ll need to manually redeploy to update the deployed archiveDespite ‘cleaning’ the project several times in desperation and undeployoing the web-app manually I still get the same message. I can still rebuilld and deploy OK using the ant build, and I have used the Weblogic console to undeploy before trying to redeploy using the MyEclipse build. How do I clear the ‘glitch’ so that I can build and deploy using MyEclipse ?
I’m using Eclipse 3.1.2 with MyEclipse 4.1.1 GA
Riyad KallaMember1) Be sure that the app server is not running when you deploy to it
2) Right click on your project root and do a “Refresh”
3) Clean the project
4) Recreate the deploymentThe key is #2, if your ant script is creating resources in your project, Eclipse freaks out when the filesystem contents come out of sync with the contents it actually sees. You can turn on auto refresh under Window > Prefs > General > Workspace
sheenmicroMember@support-rkalla wrote:
1) Be sure that the app server is not running when you deploy to it
2) Right click on your project root and do a “Refresh”
3) Clean the project
4) Recreate the deploymentThe key is #2, if your ant script is creating resources in your project, Eclipse freaks out when the filesystem contents come out of sync with the contents it actually sees. You can turn on auto refresh under Window > Prefs > General > Workspace
Thanks. What is the correct format for <attribute name=”webrootdir” value=”<web-src>” /> ? The Projects I already have use <attribute name=”webrootdir” value=”/WebRoot” /> but examples on these boards seem to indicate that if you change it then you enclose the directory name in < > tags and leave off the leading /
Riyad KallaMemberThanks. What is the correct format for <attribute name=”webrootdir” value=”<web-src>” /> ? The Projects I already have use <attribute name=”webrootdir” value=”/WebRoot” /> but examples on these boards seem to indicate that if you change it then you enclose the directory name in < > tags and leave off the leading /
I thought that was a typo, I have no idea where you say the HTML control code suggestions but it was likely a browser bug than a suggestion. The value needs to be a path relative to the root of your project, so something like /WebRoot, or /web or /www:
<attribute name="webrootdir" value="/whateverIwant" />
Please point out the threads that you read where you got the tip to use HTML control codes, I’ll go edit them and fix them.
sheenmicroMembertch 🙂
http://myeclipseide.com/PNphpBB2+file-viewtopic-t-10639-highlight-webroot+folder.html – this is the only one I can find now, although I’m sure I’ve seen it more than once
Riyad KallaMemberVery strange… anyway thanks for pointing that out.
chittamtaMemberThis message has not been recovered.
chittamtaMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
chittamtaMemberThis message has not been recovered.
chittamtaMemberThis message has not been recovered.
Loyal WaterMemberThis message has not been recovered.
-
AuthorPosts