Web facet page
Use this page to edit the settings for your Web facet.
The name of the facet.
Form the list of deployment descriptors for your application.
Alt+Insert . Create web.xml and add it to the list. The function is not active if the corresponding descriptor is already present in the list.
Alt+Delete . Remove the selected descriptor from the list.
Enter . Replace the selected descriptor with another one of the same type.
Add Application Server specific descriptor. Create an application server-specific deployment descriptor (for example glassfish-web.xml , jboss-web.xml ) and add it to the list.
Web Resource Directories
Specify the directories that contain your web app resources such as web pages, images, etc. (the Web Resource Directory column) and their locations in the corresponding artifact (the Path Relative to Deployment Root column).
For the resource directories to be included in an artifact, you should make sure that the artifact configuration contains a Web facet resources element. (All the resource directories are included in an artifact as a whole.) In that case, / in the Path Relative to Deployment Root column corresponds to the root of that element in the artifact configuration.
Select the source roots to be included in an artifact. Note:
- If the » compile output element is present in an artifact configuration, the classes for all the source roots are included in the corresponding artifact irrespective of which source roots are selected here.
- To include only the classes from the source roots selected on this page, use the following when configuring the artifact: | JavaEE Facet Classes | Web (in ) . As a result, the corresponding element in the artifact configuration will be shown as » module: ‘Web’ facet classes .
Не запускается проект GWT в Intellij Idea
Пытался добавить gwt через конфигурацию ‘add framework support’, но там не было gwt. Подскажите как исправить.
Отслеживать
задан 28 мая 2019 в 7:10
1,875 1 1 золотой знак 10 10 серебряных знаков 31 31 бронзовый знак
2 ответа 2
Сортировка: Сброс на вариант по умолчанию
Сталкивался с такой же проблемой — нашел решение, но уже немного подзабыл. Насколько помню:
Первым делом я на всякий случай создал шаблонный gwt maven проект из архетипа mojo: mvn archetype:generate
Все библиотеки подгрузились
Затем устранение самой ошибки — в проекте с ошибкой заходим в структуру проекта (обычно справа сверху значок папки с тремя синими квадратиками). Там слева в списке Project Settings выбираем Facets. в GWT Facet надо указать Target Web Facet и ниже (насколько помню) выбрать (из списка выпадающего) путь к модулю GWT.
После создания шаблонного maven-gwt я просто сравнивал эти настройки со своим и нашел в чем разница.
Отслеживать
ответ дан 10 июн 2019 в 10:05
Илья Вологжанин Илья Вологжанин
26 2 2 бронзовых знака
Добавление фреймворка, это лишь обозначение, что проект/модуль проекта является каким-то проектным типом. Если GWT, как фреймворк уже добавлен (это делается раз где-то в начале создания проекта/модуля проекта, создали, добавили один-другой фреймворк). Вообще, чтобы добавлять GW фреймворк в плагинах должна быть включена поддержка GWT.
Но это все не относится к ошибке. Если проект не под maven/gradle, где зависимости от GWT библиотек прописываются в соответствующих настройка сред сборок. Если проект без них, то GWT SDK, то есть все библиотеки нужно ручками скачать, куда-то положить, а затем их добавить/указать путь к файлам в Facet настройки в свойствах проекта.
Отслеживать
ответ дан 28 мая 2019 в 20:47
720 7 7 серебряных знаков 9 9 бронзовых знаков
- java
- gwt
-
Важное на Мете
Похожие
Подписаться на ленту
Лента вопроса
Для подписки на ленту скопируйте и вставьте эту ссылку в вашу программу для чтения RSS.
Дизайн сайта / логотип © 2024 Stack Exchange Inc; пользовательские материалы лицензированы в соответствии с CC BY-SA . rev 2024.1.3.2953
Нажимая «Принять все файлы cookie» вы соглашаетесь, что Stack Exchange может хранить файлы cookie на вашем устройстве и раскрывать информацию в соответствии с нашей Политикой в отношении файлов cookie.
Please configure web facet? what?

posted 3 years ago
Number of slices to send:
Optional ‘thank-you’ note:

I have a small maven project I started where I create a jsp file with a simple jogin page and then I have jdbc classes and all that which work with the login.
I am using intelliJ ultimate and I keep getting a message when I try to open the jsp on google chrome that I need to configure a web facet first and i tried looking into this for last few hours. I think it has something to do with tomcat or web.xml or something. can someone help?
Intellij IDEA: specify datasource for JPA validation
I have a Spring project for a small web app set up in Intellij IDEA. It uses JPA on top of Hibernate for the persistence layer. The datasource (MySQL) is defined in Spring application context :
The actual value are read from a properties file and injected at runtime by Spring using the property-override mechanism. And then the datasource is injected into the entity manager factory in the same application context:
Finally the entity manager injected into the DAOs using an annotation:
/** * Shared, thread-safe proxy for the actual transactional EntityManager */ @PersistenceContext private EntityManager em;
It all works fine when I build and deploy it to Tomcat, but Intellij’s JPA validation doesn’t seem to understand where to get the datasource from. In my entities, the tables’ names and columns’ names are underlined in red and the validation message is «cannot resolve table» or «cannot resolve column»:
@Entity @Table(name = "domain") public class Domain extends AbstractAgendaEntity
Int this example, it's the "domain" part that is not considered valid. I have manually configured my database in the "Database" tool window, I can see my tables and perform SQL queries in the console. How can I tell Intellij to use this datasource to resolve table names for my JPA entities?