- This topic has 18 replies, 2 voices, and was last updated 19 years ago by
Riyad Kalla.
-
AuthorPosts
-
Bill ManuelMemberI have the lastest version of eclipse (3.1.2) and the lastest version of ME (MyEclipse4.1GA_E3). I have a web project (EAR and WAR file). For some reason my project keeps losing references to the web.xml file. The file exists, but after a day of work, ME cannot find the file anymore. Something is going on that is removing the references to the file. If I view the properties of the web module (war) under MyEclipse-Web the context root is wrong. When I create the project, I change the Web-Root folder to WebContent and it now says WebRoot.
I am going back to the older version of ME until someone can figure this out. I have been screwing around with this for a week now.
I have tried to Refresh the project, but that doesnt help. The only thing I can figure out is to delete the project and bring it in from CVS again. We are not stroring project files or metadata files in CVS so I know this is not the problem. What else could it be.
Riyad KallaMemberlastest version of ME (MyEclipse4.1GA_E3)
The latest version is actually 4.1.1, you might want to update using Help > Software Updates > Find and Install
What do you mean by “loosing reference to web.xml”, is the web.xml file actually being deleted from your project, or you mean something else? When it gets deleted how do you get it back? Do you use Ant or other external scripts on your project to build or run portions of it?
Bill ManuelMemberI tried to be as specific as possible. The file is still there but in the problems tab I have the error that matches the subject of this post. I am also using tomcat to deploy the app to and the deploy will not work anymore. The only way I can get everything back to normal is delete the project and start over. I have to create a new project and then connect it to CVS.
Bill ManuelMemberOh, I listed the wrong ME version. I was using 4.1.1. I did not try to get updates. I assumed that the downloaded contained the lastest version.
Riyad KallaMemberIt sounds like the only problem that is happening, that you touched on, is your web root dir setting under MyEclipse-WEb is incorrect or getting ignored. You can open your .mymetadata file(from the Navigator view) and change it manually there to point to the dir that is really your web root, then save that close and reopen your project and see if things stop misbehaving.
Bill ManuelMemberOk, now I’m really stumped, I went back to 4.1GA and it is still happening. Is it possible this is an Eclipse problem and not ME? I dunno, but this is getting old really quick.
Bill ManuelMember.mymetadata does not exist in the web module. It only exists in the Enterprise App. The settings are there for that. I understand what you are saying, but why are they gone. I don’t want to keep fixing it. It has happened to me every day at least once.
Bill ManuelMemberOh, and I am not using any other build mechanisms. I have a build file, but I only run it when I deploy to our test server or production server. I have not executed the build in quite some time.
Riyad KallaMemberbmanuel,
There is obviously something wrong here. Your web project has to have a .mymetadata file in order for it to be a MyEclipse web project. Right click on it and go to MyEclipse, do you see an option “Add Web Capabilities”?I have a feeling this is either source control related or something is borked with your install. While I understand you are getting frustrated I have to point out that if it was *this* easy to break your project and MyEclipse did it randomly, we’d have no users. They would have all ripped out their hair and given up. So there is something particular to your setup that is going on here.
Is the EAR and Web Project something you can send me to see what is going on?
Bill ManuelMemberYeah, I’m on the fifth floor and I am going to jump out the window. Basically everytime I compile or do a full build, the error comes back. I have started over from scratch several times. Here are my steps:
Create a new Enterprise Application Project (J2EE 1.4, with a web project module and NO EJB modules)
Name the project STESWebAppEar with a web module name of STESWebApp and a context of /STESWebApp
Open the properties of the project and go to Java Build Path/Libriaries. I remove the 2 libraries that are added and I put in a JRE Library for java 1.4.2.9 and a User library for all of the jar files in my tomcat common/lib directory.I then share the project so I can connect it to CVS. We do not store .project files or .metadata or .* files in the repository, so there are no deletions/changes there. Once I share the project, I just overwrite my web module with the contents of the CVS head.
Once the compile is done, I setup a MyEclipse sever deployment to Tomcat 5.0.28. Then I start the server. After I change a few files, my workspace loses the web.xml file again. The file still exists, but I get the “Missing web.xml deployment descriptor in WEB-INF folder” warning in my Problems tab. I have used MyEclipse for a little over a year and really have never had problems like this before. I have 2 other developers working on this project and they are not having this problem.
I do not see “Add Web Capabilities” under the MyEclipse context menu. I have other things there, but not the Web option.
Bill ManuelMemberI have gone back to Eclipse 3.1.0 and MyEclipse 4.0GA and I am still having the problem. I thought maybe it was that I was naming the web module different than the name under CVS but that is not the problem either.
Bill ManuelMemberI’m not sure if I mentioned this but if I view Properties > MyEclipse-Web > Context Root my Web-Root folder is not correct. It should be listed as WebContent (which I specified when I created the proejct) but it says WebRoot. Also, the Web Context-root say “/” instead of “/STESWebApp”. Obviously this is why it can’t find the web.xml but I have no idea why this would be reset.
Installation process > extract .zip file for eclipse, extract manual install for ME > open eclipse and install ME manually. Add CVS repo. Add tomcat 5.0.28 settings to Application Servers. Create the project as previously mentioned. Deploy the application using the ME deployment tool. I do not have a build file running, nor do I have any other plugins installed besides ME.
Bill ManuelMemberOh, just in case you are going to suggest it, I have also used the installer for ME as well as the manual proces. I just feel more conforatable with the manual process. I have been using eclipse for years and prefer adding extension points my self. I just don’t like all the additional clutter that comes with the install.
Riyad KallaMemberFirst off let me appologize for this issue, I don’t know what is causing it yet, but it’s driving me nuts just reading what is happening. I appreciate that you haven’t jumped out of the window yet.
Have you tried this setup yet with a brand new *workspace* (File > Switch Workspace > C:\tempworkspace, hit OK). Also from the current install of MyEclipse, please give me your MyEclipse > About > Configuration Summary result (not the one under the Help > About menu, that’s huge, use ours).
Bill ManuelMemberThanks for the concern. I have created a new workspace many times. I actually just delete the workspace and let Eclipse recreate it. Like I said, I have tried everything. I am going to search my windows registery for any references to ME and delete them. I am also going to uninstall all versions of java/eclipse and start over with everything. I am losing so many hours of productivity over something so simple. If I can’t get this soon, I am going to give NetBeans another try.
-
AuthorPosts