Сообщение об ошибке Glassfish (при подключении к базе данных) - PullRequest
0 голосов
/ 24 ноября 2018

Я работаю с базой данных, пытаясь привязать к ней рабочую веб-страницу.Веб-страница должна загрузить «index.xhtml», который позволяет войти в систему как пользователь.После входа в систему вы можете выполнять все действия CRUD в базе данных.

Я использовал следующую ссылку для подключения к моей базе данных с Netbeans: https://netbeans.org/kb/docs/web/jsf20-crud.html

Я использовал следующую ссылку для создания страницы входа и проверки: https://www.journaldev.com/7252/jsf-authentication-login-logout-database-example. Сообщение об ошибкеЯ получаю это: `" type Exception report

messageInternal Server Error

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception

org.jboss.weld.exceptions.IllegalStateException: WELD-000227: Bean identifier index inconsistency detected - the distributed container probably does not work with identical applications
Expected hash: 1065582071
Current index: BeanIdentifierIndex [hash=-1101228481, indexed=22]:
   0: WELD%AbstractBuiltInBean%com.ibm.jbatch.container.cdi.BatchCDIInjectionExtension%HttpSession
   1: WELD%AbstractBuiltInBean%com.sun.faces.application.view.ViewScopeExtension%HttpSession
   2: WELD%AbstractBuiltInBean%org.glassfish.cdi.transaction.TransactionScopedContextExtension%HttpSession
   3: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider%HttpSession
   4: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext.cdi1x.servlet.internal.CdiExternalRequestScopeExtension%HttpSession
   5: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext.cdi1x.transaction.internal.TransactionalExceptionInterceptorProvider%HttpSession
   6: WELD%AbstractBuiltInBean%org.glassfish.jms.injection.JMSCDIExtension%HttpSession
   7: WELD%AbstractBuiltInBean%org.glassfish.osgicdi.impl.OSGiServiceExtension%HttpSession
   8: WELD%AbstractBuiltInBean%org.glassfish.sse.impl.ServerSentEventCdiExtension%HttpSession
   9: WELD%AbstractBuiltInBean%org.hibernate.validator.internal.cdi.ValidationExtension%HttpSession
  10: WELD%AbstractBuiltInBean%root_web%HttpSession
  11: WELD%AbstractBuiltInBean%web%HttpSession
  12: WELD%ManagedBean%project1|web|jsf.AbsentController|null|false
  13: WELD%ManagedBean%project1|web|jsf.AccountController|null|false
  14: WELD%ManagedBean%project1|web|jsf.BankController|null|false
  15: WELD%ManagedBean%project1|web|jsf.BookingController|null|false
  16: WELD%ManagedBean%project1|web|jsf.CustomerController|null|false
  17: WELD%ManagedBean%project1|web|jsf.HolidayController|null|false
  18: WELD%ManagedBean%project1|web|jsf.ProductController|null|false
  19: WELD%ManagedBean%project1|web|jsf.RotaController|null|false
  20: WELD%ManagedBean%project1|web|jsf.StaffController|null|false
  21: WELD%ManagedBean%project1|web|jsf.SupplierController|null|false
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1.1 logs."` 

Кто-нибудь знает, что я делаю неправильно?

Спасибо !!

...