Spring Boot: Cannot change version of project facet to 3.1 - java

I am working on a Spring Boot web application and facing some problem with Project Facets. By default, the java compiler version is 1.6 and project facet is 2.3 but am working on Java 8. When I try to change jre library to 1.8 in java build path and try changing Dynamic Web Module to 3.1, i get this error:
Cannot change version of project facet Dynamic Web Module to 3.1. MyApplication line 1 Maven Java EE Configuration Problem
This problem is occuring after I did JSP configuration in Spring Boot application and removed web.xml which was of no use. The content of my application.properties is:
#JSP Settings
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
How do I solve this problem?

you can try this..
vim /.settings/org.eclipse.wst.common.project.facet.core.xml
change jst.web property to 3.1
i refer from here..
https://www.admfactory.com/how-to-fix-cannot-change-version-of-project-facet-dynamic-web-module-to-3-1-error-in-eclipse/

Related

Problem while creating a new spring boot project

In the help.md file it's telling me that JVM was changed from 11 to 17
this is what the help.md file looks like
The following was discovered as part of building this project:
* The JVM level was changed from '11' to '17', review the [JDK Version Range](https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#jdk-version-range) on the wiki for more details.
and here is an example of later problems
And even if i change the project structure manually to java 11 sdk
i have issues with versions next .
This problem is occurring in the newer version of Spring Boot. So when creating project using Spring Initializr or Spring Starter Project select the older version of Spring Boot (like 3.0.1 or 2.7.7).
This should solve the problem.

Not able to create JSF 2.2 project in Eclipse/RAD 9.5 without disabling library configuration

I am using IBM RAD 9.5. I am not sure what version of Eclipse that corresponds to. This version of RAD comes with WebSphere version 8.5.
When I try to create project:
New > Web Project > Java Server Faces
Under 'JSF Settings', if I pick version 2.2, it won't allow me to create the project unless I go under 'JSF Library' and select 'Disable Library Configuration' (Version 2.0 selects 'Default JSF Implementation', this option is not available when 2.2 is picked.)
When I do select 'Disable Library Configuration', I get the message
This facet requires JSF implementation library to be present on the project
classpath. By disabling library configuration, user takes on responsibility
of configuring classpath appropriately via alternate means
What does this mean? What else do I need to do to ensure my configurations are OK.
NB: My environment would not allow me to post screenshots. So I have described the issue.
It would appear WebSphere 8.5 contains only JSF 2.0 implementation. In order to get the application work with JSF 2.2, the JSF 2.2 JARs would need to be included in the application classpath.

Project facet Dynamic Web Module 4.0 is not supported by this server

When, in Spring Tool Suite, I try to run my project with Weblogic 12 I get this error:
Project facet Dynamic Web Module 4.0 is not supported by this server
Inside org.eclipse.wst.common.project.facet.core.xml I turned <installed facet="jst.web" version="4.0"/> into <installed facet="jst.web" version="3.1"/> but after doing maven->update project the version came back to 4.
I tried also to change the version here, but I get the error: Cannot change version of project facet Dynamic Web Module to 3.1
I even tried to uncheck Dynamic Web Module (as suggested in another post) but I get the error: Dynamic Web Module 4.0 cannot be uninstalled
Does anybody know how to solde the problem?
I just recently had the same problem. The Dynamic Web Module is set by Maven according to your version of javax.servlet-api. Since Spring Boot 2.1.x imports Servlet-API version 4.0, Maven changes the project facet to match it.
Set Spring Boot's version to 2.0.8 or newer, which uses Servlet-API 3.1, and you'll be able to deploy your app to Weblogic 12c via Eclipse.

Project not deploying due to "Project facet Java 1.7 is not supported by this server."

I am having trouble trying to deploy a WAR project on Oracle Weblogic Server 11gR1 (10.3.5), tried both to deploy it in an EAR project, or by itself as a war.
The error I get is this:
"Project facet Java 1.7 is not supported by this server."
The problem is that there is no Project Facet Java 1.7 in this project. The facets selected are this:
Dynamic Web Module 2.5
Java 1.6
JavaScript 1.0
I only have JRE6 installed in eclipse and I'm using it as default.
Other projects are deploying succesfully.
I found a workaround, deploying the EAR empty, and then adding the WAR project to the EAR. But in that case I get other problems at runtime which shouldn't be happening, I guess caused by the tricky solution.
Any ideas?
Thank you.
I just solved the issue, I had java project facet 1.7 in a project included in the war.
Weblogic 10.3.5 only supports JDK6. If you want to use JDK 7, you'll need version 10.3.6 as outlined here (10.3.5) and here (10.3.6).
Cheers,

Does NetBeans 7.0 has built in support for spring 3.0?

I want to use spring 3.0.5 in NetBeans 7.0 IDE.. I have done following steps
Created a new Web Application project
downloaded the jars of spring framework
Added the jar folder to project library
but still it is not working... the default domain object "command" is not accessible inside my htm / jsp pages.
can anyone help me on this ?
thanks,
Netbeans 7.0 has support for Spring 3.0, Hibernate, JSF, etc
For Complete instructions & tutorial for NetBeans+Spring go to : http://netbeans.org/kb/docs/web/quickstart-webapps-spring.html
What I can tell for sure is that spring framework 3.0.2 is available. When I create a new web application, I can select the framework.

Categories

Resources