faceted project validation builder

Should I keep Eclipse Java facet?

Facets automate some parts of project configuration and deployment.For example inform you when servletis 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):

webClasspathBuilder
J2EEProjectValidator
DeploymentDescriptorValidator
Validation
Strutured Document and Model Builder
DeploymentBuilder
Java Builder

All 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 REPLY
Profile photo of Riyad Kalla
Riyad Kalla

Member
Let’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 REPLY
Profile photo of David
David

Member
Wow, 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 Time
2 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 PM

Severity Description Resource In Folder Location Creation Time
2 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 PM

So 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 REPLY
Profile photo of Riyad Kalla
Riyad Kalla

Member
Your 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.
时间: 2024-10-21 06:36:53

faceted project validation builder的相关文章

报Thymeleaf Validation Builder‘ on project ‘xxx‘ 错误

Eclipse中maven项目执行Maven clear的时候,报Errors running builder 'Thymeleaf Validation Builder' on project '项目名'.的错误,如图: 解决方案:右键项目名-->Properties-->Builders,右边"Thymeleaf Validation Builder"前面的对勾全部去掉,点击"Apply and Close"即可 原文地址:https://blog.

Target runtime Apache Tomcat v6.0 is not defined. phyy Unknown Faceted Project Problem

Description Resource Path Location TypeTarget runtime Apache Tomcat v6.0 is not defined. phyy Unknown Faceted Project Problem 找到工程.settings目录 修改注释部分即可 <?xml version="1.0" encoding="UTF-8"?> <faceted-project> <!-- <run

Faceted Project Problem异常解决

从svn将项目down到eclipse中,出现了如下异常 这个时候我们找到settings文件夹,如果eclipse没有显示settings文件夹,就在Package Explorer的下拉视图菜单中选择Filters,取消选中.* resources过滤器即可.如图: 找到并打开org.eclipse.wst.common.project.facet.core.xml文件,如图 将“aaa”改成我们运行tomcat名字即可: 原文地址:https://www.cnblogs.com/gwxpp

Myeclipse导入项目后显示不是web项目Project Facets

能找到Project Facets 从myeclipse导入eclipse导致不能识别为web项目(java项目转为web项目) 1.进入项目目录,找到.project文件,打开. 2.找到<natures>...</natures>代码段. 3.在第2步的代码段中加入如下标签内容并保存: <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.e

meclipse中project facet问题

meclipse中project facet问题 (2012-02-14 14:59:48) 转载▼ 标签: 杂谈 分类: 技术 一般出现在从别处import的项目上,只有项目文件夹上有红叉,其他地方都正常,现总结个人的几个解决方案: 有几种可能:1,编码设置是否一致,也即是你项目原来的编码和现在eclipse用的默认编码是否一致2,导入项目中jar路径可能已经被改变,多数情况下都是这个原因造成,我也曾经遇见过,你要确保你的jar包路径都没问题.myeclipse有查看jar路径的视图你可切换看

Java compiler level does not match the version of the installed Java project fac

Java compiler level does not match the version of the installed Java project fac 问题一: 问:项目图标报错,Problems 试图有一条错误显示“Java compiler level does not match the version of the installed Java project facet.” . 答:这个是因为Facted Project 中的Java 版本设定与项目的Java 版本设定不一致

java项目红叉问题 project facet

一般出现在从别处import的项目上,只有项目文件夹上有红叉,其他地方都正常,现总结个人的几个解决方案: 有几种可能: 1,编码设置是否一致,也即是你项目原来的编码和现在eclipse用的默认编码是否一致 2,导入项目中jar路径可能已经被改变,多数情况下都是这个原因造成,我也曾经遇见过,你要确保你的jar包路径都没问题.myeclipse有查看jar路径的视图你可切换看看,报红X的就都是路径被改动过的,重新加进来就OK. 3,在problem控制台里有如下错误提示:Java compiler

Intellij-安装CodeGenerator插件并且添加Builder模板

Intellij IDEA 2018.1.2版本 CodeGenerator插件地址:https://github.com/lotabout/CodeGenerator/releases 步骤一:安装插件 下载CodeGenerator.jar到本地磁盘,打开Intellij安装插件的界面进行安装 步骤二:添加Builder模式的模板 ## Tutorial for writing your templates ## ## 1. First you need to know basic synt

Eclipse工作常见问题总结

一.Eclipse常见快捷键使用 自动完成单词:Alt+/ 重命名:Shift+Alt+r(统一改变字段或方法名) 生成getter/setter方法: Shift+Alt+s,然后r 删除当前行:Ctrl+d 定位到前(后)一个编辑点:标准为Alt+左(右)箭头 , 修改方法为: Windows->preference->keys, View标签页,找到 Navigate: Backward(forward) history. 注意要删除一个组合键时要用右键菜单,而不能用Delete键 在当