Should I keep Eclipse Java facet?
I am running Eclipse 3.1 on Mac OS X and everything is going fine. I did a clean & and build for my Struts application and noticed that my class files were not built.I have the Default output folder defined as:projectName/WebRoot/WEB-INF/classes but no classes are compiled there. I looked in the Tomcat deploy directory, and despite there being a classes folder, it also is empty. Looking at the project properties I have the following defined (I am guessing myEclipse put there here):webClasspathBuilderJ2EEProjectValidatorDeploymentDescriptorValidatorValidationStrutured Document and Model BuilderDeploymentBuilderJava BuilderAll are checked, but selecting Build Project or Build All doesn’t do a thing. I know I was compiling classes earlier, so what happened? The project name in the Package Explorer has a red X on it, as if there is a problem, inspecting the Project Properties doesn’t indicate anything.November 1, 2005 at 9:07 pm #240622 REPLYProfile photo of Riyad KallaRiyad KallaMemberLet’s figure out the problem first, that will cause a build to fail especially if it’s a classpath error. I would suggest first opening up your problems view, and seeing the error is there. If it’s not, click the down arrow in the corner of the problems view and select Filter, then click Select All to turn on the visibility for all errors, hit OK. See any new errors?If not, then try and restart MyEclipse adding -clean to your command line arguments (or your eclipse.ini file, as I mentioend in my other post), close and reopen your project and Clean it. Did that help?If you hover over the root node of the project that has the error marker, does the tooltip that popup show any helpful information?November 1, 2005 at 9:19 pm #240625 REPLYProfile photo of DavidDavidMemberWow, I didn’t even know about that “problems view” is that handy! Anyway, I did that ( could not find an “eclipse.ini” on my hard drive) and a bunch of errors like this appear:Severity Description Resource In Folder Location Creation Time2 Illegal type of archive for required library: ‘/usr/local/jakarta-struts-1.1/lib/struts-bean.tld’ in project JSI JSI November 1, 2005 8:11:09 PMSeverity Description Resource In Folder Location Creation Time2 Illegal type of archive for required library: ‘/usr/local/jakarta-struts-1.1/lib/tiles-config_1_1.dtd’ in project JSI JSI November 1, 2005 8:11:09 PMSo that shows me that I am missing libraries, even tho I have added them to my /project/lib directory. Is that the correct place for them to be deployed ?November 1, 2005 at 10:28 pm #240639 REPLYProfile photo of Riyad KallaRiyad KallaMemberYour libraries should be placed in your WebRoot/WEB-INF/lib directory. Additionally MyEclipse will, by default (unless you turned it off), automatically add all libs in that dir to your build path. If they don’t, you need to do it manually.When you deploy your project, everything from your WebRoot directory down is deployed out, so if your project relies ona resource, make sure it’s in the appropriate place in there somewhere.**The default web root dir name is WebRoot, you can change it to whatever you want in the MyEclipse settings under J2EE Project.
posted on 2017-05-31 11:38 阅读( ...) 评论( ...)