|
|
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
Добрый день. Прошу помочь где смотреть, чтобы решить данную проблему Собираю war файл через Build artifacts в Intellij IDEA 10, при компиляции GWT сыпятся ошибки Information:Compilation completed with 16 errors and 21 warnings Information:16 errors Information:21 warnings Error:The import javax.persistence cannot be resolved Error:Entity cannot be resolved to a type Error:Table cannot be resolved to a type Error:The attribute name is undefined for the annotation type Table Error:Id cannot be resolved to a type Error:Column cannot be resolved to a type Error:The attribute name is undefined for the annotation type Column Error:Transient cannot be resolved to a type Error:Transient cannot be resolved to a type Error:Unable to find type 'kz.arta.synergy.web.configurator.client.registries.logic.RegistriesConfiguratorService' Error:Hint: Previous compiler errors may have made this type unavailable Error:Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly Error:Unable to find type 'arta.common.gwt.client.service.form.ASFormService' Error: Failed to resolve 'arta.common.gwt.client.service.form.ASFormService' via deferred binding Error:Cannot proceed due to previous errors /home/user/IdeaProjects/Configurator/src/kz/arta/synergy/web/configurator/client/registries/logic/RegistriesConfiguratorService.java Error:Error:line (31) Failed to resolve 'kz.arta.synergy.web.configurator.client.registries.logic.RegistriesConfiguratorService' via deferred binding... В проект подключены gwt-user.jar 2.4 и ejb3-persistence.jar ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 09:49:16 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
авторclient/registries/logic/RegistriesConfiguratorService client разве не подразумевает что это классы GWT, который работает в браузере и компилируется в JavaScript? Там нет JPA. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 10:08:55 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, а где мне перепроверить JPA? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 10:13:37 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
Adiseyа где мне перепроверить JPA? Что значит "перепроверить"? Вы понимаете, что GWT проект разделяется на две части. Серверную (services с JPA) и клиентскую (контролы, layout). Они компилиуются отдельно. У вас с этим путаницы нет? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 10:21:22 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, Да, верно, у меня в серверной части методы используют поля класса Item, который является сущностью таблицы Item, но тама import javax.persistence.*; указан...Может еще где то в настройках Gwt компилятора указать import javax.persistence ??? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 10:44:16 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
AdiseyДа, верно, у меня в серверной части методы используют поля класса Item, который является сущностью таблицы Item, но тама import javax.persistence.*; указан...Может еще где то в настройках Gwt компилятора указать import javax.persistence ??? Ааа, проблема в сущностях? Потому что у вас в ошибке сервис не компиляется. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 10:46:34 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
Это смотрели? https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernate http://stackoverflow.com/questions/6482090/jpa-entities-for-gwt Какая у вас структура проекта? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 10:48:13 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, Еще не смотрел, щас гляну... Структура такова GWT-проект Есть клиентская часть MyPackage.client Есть серверная часть MyPackage.server Есть gwt модуль xxx.gwt.xml ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 12:06:37 |
|
||
|
GWT compile error The import javax.persistence cannot be resolved
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2013, 12:11:26 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=38289947&tid=2129206]: |
0ms |
get settings: |
16ms |
get forum list: |
16ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
50ms |
get topic data: |
18ms |
get forum data: |
5ms |
get page messages: |
63ms |
get tp. blocked users: |
3ms |
| others: | 339ms |
| total: | 520ms |

| 0 / 0 |
