博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
faceted project validation builder
阅读量:4983 次
发布时间:2019-06-12

本文共 4199 字,大约阅读时间需要 13 分钟。

 

 

Should I keep Eclipse Java facet?
Facets automate some parts of project configuration and deployment.For example inform you when is not added to web.xml in dynamic web project. Stuff like that.When you add JPA facet, eclipse will create persistence.xml and will keep notifying when you create entity class but don't configure it in persistence file.There's lots more, adding facets to projects also reconfigures how your project structure looks in eclipse.Basically they do exactly as you quoted: " Adds support for writing applications using Java programming language.Every facet add something new so if you want more specific answer you have to answer question about specific facet. If you don't know what they can do for you - turn them off. You can always add them when you learn more.Real life example:Adding JPA facet messed up my project using ObjectDB by creating persistence file, which, turned out, I didn't even need. 
 
 
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 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/FlyAway2013/p/5587699.html

你可能感兴趣的文章
多线程池以及futures python新的线程包
查看>>
3389无法连接的5种原因分析
查看>>
C++拾遗(三)关于复合类型
查看>>
理解mvc
查看>>
WCF入门简单教程(图文) VS2010版
查看>>
jQuery EasyUI API 中文文档 - ComboBox组合框
查看>>
“ORA-12545: 因目标主机或对象不存在,连接失败”怎么办?
查看>>
DataList数据绑定的一个简单代码
查看>>
新闻页面的链接可以简单地实现了
查看>>
Internal关键字
查看>>
HIS项目框架搭建流程
查看>>
Access Control
查看>>
使用mpvue开发小程序教程(一)
查看>>
NOIP2013普及组 -SilverN
查看>>
substring和substr小结
查看>>
onbeforeunload与onunload事件
查看>>
escape()、encodeURI()、encodeURIComponent()区别详解
查看>>
retry
查看>>
使用jQuery插件轻松实现动态流动的网页布局
查看>>
[转]6个HelloWorld
查看>>