Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem JEE Internal Server Error

Išiel som podľa tohto návodu

http://www.itnetwork.cz/java/jee/java-jee-tutorial -uvod-do-jsf

Všetko OK, až kým som sa nedostal k časti CDI bean, kde pridám do balíčka beans

GeneratorBean.java, po pridaní tohto súboru mi vráti stránku

HTTP Status 500 - Internal Server Error
type Exception report
messageInternal Server Error
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
org.jboss.weld.exceptions.IllegalStateException: WELD-000227: Bean identifier index inconsistency detected - the distributed container probably does not work with identical applications
Expected hash: -907470349
Current index: BeanIdentifierIndex [hash=2147418287, indexed=12]:
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.transac tion.TransactionalExtension%HttpSession
3: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext. cdi1x.internal.CdiComponentProvider%HttpSession
4: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext. cdi1x.servlet.internal.CdiExternalRequestScopeExte nsion%HttpSession
5: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext. cdi1x.transaction.internal.TransactionalExceptionI nterceptorProvider%HttpSession
6: WELD%AbstractBuiltInBean%org.glassfish.jms.injecti on.JMSCDIExtension%HttpSession
7: WELD%AbstractBuiltInBean%org.glassfish.osgicdi.imp l.OSGiServiceExtension%HttpSession
8: WELD%AbstractBuiltInBean%org.glassfish.sse.impl.Se rverSentEventCdiExtension%HttpSession
9: WELD%AbstractBuiltInBean%org.hibernate.validator.i nternal.cdi.ValidationExtension%HttpSession
10: WELD%AbstractBuiltInBean%root_web%HttpSession
11: WELD%AbstractBuiltInBean%web%HttpSession
exception
Tú triedu mi automaticky vygeneroval NetBeans 8.1, nič som v nej nemenil, ani ju nevolám z index.xhtml

package beans;

import javax.inject.Named;
import javax.enterprise.context.Dependent;

/**
*
* @author
*/
@Named(value = "generatorBean")
@Dependent
public class GeneratorBean {

/**
* Creates a new instance of GeneratorBean
*/
public GeneratorBean() {
}

}
Nejaké nápady ako to vyriešiť?

Odpověď na otázku

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny