Eclipse juno getting error during build [duplicate] - eclipse

I am working on Blackberry webworks, Phonegap framework, Apache Ant and configured them in Eclipse 3.6 with sample index.html.
I followed the article Getting Started with PhoneGap BlackBerry WebWorks
But I am getting an error message after running the project:
"Errors running builder 'Faceted Project Validation Builder' on project 'MyProject' "
How do I properly configure the project to support cross-platform?

Right click on your project >>> Properties >>> Project Facets >>> uncheck Static web Module.

I tried the previous response and was not very successful.
Do this:-
install Eclipse Java EE Developer Tools using the Eclipse -> Help -> Install new software -> Work with -> (your Eclipse version's download repository. e.g.:) Indigo.
In the filter field type, then checkbox, Eclipse Java EE Developer Tools.
Download and let it install. No more problems.

In the maven web project.
1.Clear the maven project.
2.Build the maven project.
3.Go to the Project Facts on right click on project -> properties -> project facts.
4.On the top right side tab select the Runtimes -> select appropriate Apache version(8.5) that is installed on your machine.
5.Then Run the project.
It's Solve in my case, try once in your case.

Maybe you have a wrong item in Runtime settings of Project Facets. Right click on project >>> Properties >>> Project Facets >>> Runtime and modify it. Runtime settings of Project Facets

Related

Can't choose an existing server in a Dynamic Web Project a in Eclipse

My colleague just set up a Dynamic Web Project in Eclipse and he also configured the server. He shared the entire project on a git repository and I cloned it. When I try to run the html file I click on 'run on server' but then I'm not able to choose an existing server already configured. Eclipse force me to create a new server with default configuration. I am attaching a screenshot of Eclipse
https://www.youtube.com/watch?v=ipqTnzTPgj0
Help --> Install new software ---> install " eclipse repository - https://download.eclipse.org/releases/oxygen ".
Then install the package for -- Web,XML, Java EE and OSGi Enterprise Development.
Reboot your computer and eclipse. Then it will work. Good luck.
It works for me:
Properties -> Project Facets and do it like this
Right click on you project and go to properties. Go to Project Facets and on Dynamic Web Module click the little drop down menu and select 3.1. I initially had it at 4.0 and it was not supported in my version of Eclipse.

Eclipse or Spring Suit Error - Maven Project - Dynamic Web module cannot be changed to 3.1

I have configure external Maven 3.9 to spring tool suit.
I did all possible way what was mentioned in different post from stackover flow but failed to overcome below error Cannot change version of project facet Dynamic Web Module to 3.1
Can any one please help me to resolve it.
I will give you the steps I did to create the Maven Project.
New -> Maven Project -> Selected maven-arcetype-webapp
**
As some blog suggested updated the web.xml to latest 3.1
Changed the System Library from 1.5 to 1.8
Still when i try to change the Dynamic Web Module in project facet, its gives me the error I shared.
Even some blogs suggested me to change the xml file from navigator view of project facet. After which if i do an Maven -> Update Project. Again things get worse.
It gives me below error.
I am really fed up to find a solution have done enough research. Please any one help me on this.
I want a Maven Project with JRE 1.8 with Project Facet - Web module 3.1 without any error.
And also if I take a Maven update project (The JRE should not change to 1.5 which is really annoying)
Go to properties of you project , in Project Facets.
The Window on the right, select Runtimes : then you will have your JRE (JRE 7 or 8) check the box and you will have it in the left the box checked Java : choose your version of Java : 1.8 and you'll see that Dynamic Web Module will disappear. After that uncheck the choosen runtime jre and the Dynamic Web Module will reappear . here you have to choose your version 3.1 without the error then -> Apply OK

Eclipse: Can't run project on Tomcat server

I have installed the Tomcat plugin and it works if i create a New Dynamic Web Project, and import an existing basic maven webapp into it. I can run it with the option of running it "as server".
However, when i did an Import existing project, in Eclipse, of an existing basic maven app, I had to right-click on the Project, choose Configure and convert it to a Faceted project, then right-click on the Project, choose Properties, and choose Targeted runtimes, and choose Tomcat and JRE. However, i still cannot run the project, "as server". When i click Run, i just see Java Applet, Java Application and JUnit Test as the options with which to run the project. I don't see Server.
Looks like the answer is:
May be Dynamic Web Module in Project Facet is not selected
Go to :- Project > Properties > Project Facets > check Dynamic Web Module
Answer from Mohit Saluja for the following question: Eclipse Juno, maven project not able to run on server
Navigate to Project > Properties > Project Facets .
In the Runtimes Tab check the apache version which is installed in your lappy, and uncheck others .
Import the project as an existing maven project (you'll need m2e installed and either m2e-wtp or webby) and the maven configurators should set it up as a dynamic web project for you and get you ready to go. Then with m2e you can "run on server" or with webby you can "run as webby"

Eclipse doesn't have "Project facets" after install of JBoss WTP adapter

I'm trying to use project facets in Eclipse but the "project facets" section under "project -> properties" is gone. I noticed this when switching to Eclipse Juno from Eclipse Indigo. I thought this was related to Juno, so I switched back to Indigo, only to find the "project facets" were gone there too.
I tried both versions as a fresh install and with a clean workspace.
Searching the web for this issue only came up with "go to 'project -> properties -> project facets'", but this simply isn't possible.
UPDATE:
I managed to break it down. The facet related stuff disappears after I installed the "JBossAS Tools" package from the JBoss update site (http://download.jboss.org/jbosstools/updates/development/juno/).
Steps to reproduce:
Install Eclipse Juno (4.2.0)
Install project facets from http://download.eclipse.org/releases/juno
Under "Modeling": "EMF Facet SDK (Incubation)"
Under "Web, XML, Java EE and OSGi Enterprise Development": "Eclipse Faceted Project Framework"
After a restart see that Eclipse has possibility to create a faceted project (File -> New -> Other -> Faceted Project)
Install "JBossAS Tools" from http://download.jboss.org/jbosstools/updates/development/juno/
Restart, check for faceted things, aaand it's gone.
This might depend on which install of eclipse you are using. In any case, you can download the needed packages to get Facets working.
Facets are part of the Web Tools Platform. If you can't find it in the package manager, you can download it here:
http://download.eclipse.org/webtools/downloads/
You should create your Eclipse project using File / New / Project... / General / Faceted Project wizard or use project's popup menu Configure / Convert to Faceted From....
I installed the "JBossAS Tools" package from the nightly built update site. This didn't cause problems regarding project facets.
Nightly update site: http://download.jboss.org/jbosstools/updates/nightly/core/trunk/

How to create, use and run the tutorials from "The Java EE 6 Tutorial" in Eclipse?

The Java EE 6 Tutorial references java ee example projects available through the java ee 6 sdk update tool. The tutorial is oriented towards users of NetBeans and not Eclipse, but NetBeans is not an option for me.
I am new to Java EE and don't know how to take these samples and make an eclipse project from them.
The reason I don't just create a project and copy in the source is that I don't know which eclipse template or project structure I should use for each sample.
So, what should I do with these sample projects to get them up and running in Eclipse?
Thanks in advance.
Assuming you have all the required software to run the Java EE tutorial:
Install latest Eclipse IDE for Java EE developers.
Install Maven Integration for Eclipse (M2E) plugin from the Eclipse Marketplace (Main Menu: Help -> Eclipse Marketplace).
Install Subclipse plugin from the Eclipse Marketplace.
Install Glassfish tools plugin for your Eclipse version. Eg: Glassfish tools for Luna.
Add Glassfish server to Eclipse.
Get the Java EE Tutorial code using the Glassfish Update Tool. In my case, the Glassfish Update Tool did not bring all the codes from the example, so I checked out the Java EE tutorial code from the SVN. (File -> Import -> SVN -> Checkout Project from SVN). Create a new repository location specifying the URL. Example URL: https://svn.java.net/svn/javatutorial~svn/trunk/example.
Ones you have the examples imported to an Eclipse workspace, you can build an individual example projects as follows:
From the Eclipse project explorer window select the project folder you want to build. Example: examples/web/jsf/hello1
Right click on the project folder and select import -> Maven -> Existing Maven projects option. Tick the option to add the project to your workspace.
From the project explorer window, now select the newly added project folder.
Now build the project using option Project -> Build project option.
After the successful build, run the application using Run -> Run As -> Run on Server option.
This worked for me. I had exactly the same question and being new to everything Eclipse, I had trouble figuring this out.
From the link you provided there is a Required Software section. Basically you would need to follow all those instructions except for where NetBeans IDE is concerned.
For Eclipse related configuration I would recommend the Eclipse (Helios) online documentation. Indigo is the latest version of Eclipse but not all plugins support that version.
There is a section in the documention for creating enterprise applications:
Creating an enterprise application project
After familiarising yourself with how enterprise projects are created within Eclipse you should be able to import the sample source applications used in the Java EE tutorial without too much hassle.
You would probably want to install the GlassFish plugin for Eclipse as well.