我正在使用一个数据库,试图将一个有效的网页链接到该数据库。该网页应上传“ index.xhtml”,使您可以以用户身份登录。登录后,您可以在数据库上执行所有CRUD活动。
我使用以下链接连接到我的 Netbeans建立数据库:https://netbeans.org/kb/docs/web/jsf20-crud.html
我使用以下链接创建了登录和验证页面:https://www.journaldev.com/7252/jsf-authentication-login-logout-database-example。 我收到的错误消息是: `“类型异常报告
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."`
有人知道我在做什么错吗?
谢谢!