- This topic has 11 replies, 4 voices, and was last updated 17 years, 2 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
June 7, 2006 at 11:13 am #253225
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
June 7, 2006 at 11:17 am #253228
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 /
June 7, 2006 at 11:33 am #253229
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.
June 7, 2006 at 11:51 am #253231
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 onceJune 7, 2006 at 12:02 pm #253232
Riyad KallaMemberVery strange… anyway thanks for pointing that out.
April 14, 2008 at 6:14 am #283968
chittamtaMemberThis message has not been recovered.
April 14, 2008 at 6:16 am #283969
chittamtaMemberThis message has not been recovered.
April 14, 2008 at 6:53 am #283973
Loyal WaterMemberThis message has not been recovered.
April 21, 2008 at 6:08 am #284207
chittamtaMemberThis message has not been recovered.
April 21, 2008 at 6:12 am #284208
chittamtaMemberThis message has not been recovered.
April 21, 2008 at 8:40 am #284220
Loyal WaterMemberThis message has not been recovered.
-
AuthorPosts