-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: AnnotationException: Unknown Id.generator: platformBeanSeque
PostPosted: Thu Mar 05, 2009 7:23 am 
Newbie

Joined: Thu Mar 05, 2009 4:59 am
Posts: 1
Location: Dorking, UK
Could someone please help me with an issue that I am seeing in Hibernate running on WAS?
    Hibernate 3.2.4.sp1
    JBoss Seam 2.1.1.GA
    WAS 6.1 with EJB & Webservices feature packs
    Locally connecting to Derby but same problem with server deployment connecting to DB2

When I do a clean deploy of my application to WAS, my application including Hibernate stuff all works fine and I can do all CRUD operations to the database.
If I subsequently change a setting in WAS via the admin console then I get the 'org.hibernate.AnnotationException: Unknown Id.generator: platformBeanSequenceGenerator' problem.
It seems like in org.hibernate.cfg.BinderHelper that there is a list of SequenceGenerators and when the problem occurs, our 'platformBeanSequenceGenerator' hasn't been set into that list.
I have raised the problem with IBM who have responded by saying that it's a problem with SEAM and Hibernate running together. That doesn't make much sense to me since the application initially works fine in WAS and always works completely fine when deployed to Glassfish.
Can someone tell me how the list of sequence generators gets created so that I can give the people at IBM a better idea of what might be going wrong or give me some idea as to why WAS might be operating differently to Glassfish?

Thanks very much for any suggestions on how I can proceed.

The code in my entity bean is as follows:
Code:
    private static final String FWT_PLATFORM_ID = "FWT_PLATFORM_ID";
    private static final String PLATFORN_SEQUENCE_GENERATOR = "platformBeanSequenceGenerator";
   
    @Id
    @Column(name = FWT_PLATFORM_ID, nullable = false)
    @GeneratedValue(generator = PLATFORN_SEQUENCE_GENERATOR)
    @GenericGenerator(name = PLATFORN_SEQUENCE_GENERATOR,
            strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters = {
            @Parameter(name = "sequence_name", value = FWT_PLATFORM_ID),
            @Parameter(name = "initial_value", value = "2000"),
            @Parameter(name = "increment_size", value = "1"),
            @Parameter(name = "value_column", value = "FWT_PLATFORM_ID_ID") })
    private int platformId;

I am using the SequenceStyleGenerator so that I can generate IDs on DB2 in the server environmnet and also IDs on my local Derby database without having to change the code between environments.

The persistence.xml file is as follows:
Code:
<persistence version="1.0"
    xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="examplePersistenceUnit" >
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <jta-data-source>jdbc/exampleDatasource</jta-data-source>
        <class>com.fp.uiplat.persistence.PlatformBean</class>
        <properties>
           <property name="hibernate.dialect"
              value="com.fp.hibernate.dialect.PlatformDerbyDialect" />
           <property name="hibernate.cache.provider_class"
              value="org.hibernate.cache.HashtableCacheProvider" />
           <property name="hibernate.hbm2ddl.auto" value="create-drop" />
           <property name="hibernate.show_sql" value="true" />
           <property name="show_sql" value="true" />
           <property name="hibernate.format_sql" value="true" />
           <property name="hibernate.transaction.manager_lookup_class"
              value="org.hibernate.transaction.WebSphereTransactionManagerLookup" />
        </properties>
    </persistence-unit>
</persistence>


The stack trace is as follows:
Code:
WicketMessage: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = searchForm]] threw an exceptionRoot cause:org.hibernate.AnnotationException: Unknown Id.generator: platformBeanSequenceGenerator     at org.hibernate.cfg.BinderHelper.makeIdGenerator(BinderHelper.java:413)     at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1795)     at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1229)     at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733)     at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)     at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)     at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)     at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1269)     at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:150)     at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:888)     at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:186)     at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:246)     at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)     at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)     at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)     at org.jboss.seam.Component.callComponentMethod(Component.java:2209)     at org.jboss.seam.Component.callCreateMethod(Component.java:2124)     at org.jboss.seam.Component.newInstance(Component.java:2084)     at org.jboss.seam.Component.getInstance(Component.java:1978)     at org.jboss.seam.Component.getInstance(Component.java:1940)     at org.jboss.seam.Component.getInstance(Component.java:1934)     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)     at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)     at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)     at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)     at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)     at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)     at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:220)     at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:78)     at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:107)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)     at org.jboss.seam.Component.callComponentMethod(Component.java:2201)     at org.jboss.seam.Component.unwrap(Component.java:2227)     at org.jboss.seam.Component.getInstance(Component.java:1994)     at org.jboss.seam.Component.getInstance(Component.java:1940)     at org.jboss.seam.Component.getInstance(Component.java:1934)     at org.jboss.seam.Component.getInstance(Component.java:1929)     at org.jboss.seam.security.EntityPermissionChecker.getEntityManager(EntityPermissionChecker.java:39)     at org.jboss.seam.security.EntityPermissionChecker.checkEntityPermission(EntityPermissionChecker.java:89)     at org.jboss.seam.security.EntitySecurityListener.postLoad(EntitySecurityListener.java:24)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:31)     at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:78)     at org.hibernate.ejb.event.EntityCallbackHandler.postLoad(EntityCallbackHandler.java:71)     at org.hibernate.ejb.event.EJB3PostLoadEventListener.onPostLoad(EJB3PostLoadEventListener.java:33)     at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:201)     at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)     at org.hibernate.loader.Loader.doQuery(Loader.java:729)     at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)     at org.hibernate.loader.Loader.doList(Loader.java:2220)     at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)     at org.hibernate.loader.Loader.list(Loader.java:2099)     at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)     at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)     at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)     at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)     at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)     at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:66)     at com.fp.uiplat.session.PlatformSessionBean.search(PlatformSessionBean.java:123)     at java.lang.reflect.Method.invoke(Method.java:585)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:547)     at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:31)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)     at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)     at java.lang.reflect.Method.invoke(Method.java:585)     at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterceptor(InterceptorProxy.java:227)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:526)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.doAroundInvoke(InvocationContextImpl.java:184)     at com.ibm.ejs.container.EJSContainer.invoke(EJSContainer.java:5545)     at com.fp.uiplat.session.EJSLocal0SLPlatformSessionBean_51ead5f8.search(EJSLocal0SLPlatformSessionBean_51ead5f8.java)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)     at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)     at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)     at org.javassist.tmp.java.lang.Object_$$_javassist_1.search(Object_$$_javassist_1.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch100(SearchDatabasePage.java:127)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch(SearchDatabasePage.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit100(SearchDatabasePage.java:114)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit(SearchDatabasePage.java)     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1448)     at org.apache.wicket.markup.html.form.Form.process(Form.java:908)     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:873)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)     at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)     at org.jboss.seam.web.WicketFilter$1.process(WicketFilter.java:57)     at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)     at org.jboss.seam.web.WicketFilter.doFilter(WicketFilter.java:52)     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)     at org.jboss.seam.wicket.web.WicketRedirectFilter.doFilter(WicketRedirectFilter.java:42)     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)     at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:834)     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:744)     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:697)     at com.ibm.ws.wswebcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:118)     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:833)     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:771)     at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3444)     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)     at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1037)     at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:644)     at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)Complete stack:org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = searchForm]] threw an exception     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)java.lang.RuntimeException: java.lang.RuntimeException: javax.ejb.EJBException: See nested exception; nested exception is: org.jboss.seam.InstantiationException: Could not instantiate Seam component: examplePersistenceUnit     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit(SearchDatabasePage.java)     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1448)     at org.apache.wicket.markup.html.form.Form.process(Form.java:908)     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:873)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)java.lang.RuntimeException: javax.ejb.EJBException: See nested exception; nested exception is: org.jboss.seam.InstantiationException: Could not instantiate Seam component: examplePersistenceUnit     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch(SearchDatabasePage.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit100(SearchDatabasePage.java:114)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit(SearchDatabasePage.java)     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1448)     at org.apache.wicket.markup.html.form.Form.process(Form.java:908)     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:873)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)javax.ejb.EJBException: See nested exception; nested exception is: org.jboss.seam.InstantiationException: Could not instantiate Seam component: examplePersistenceUnitorg.jboss.seam.InstantiationException: Could not instantiate Seam component: examplePersistenceUnit     at org.jboss.seam.Component.newInstance(Component.java:2096)     at org.jboss.seam.Component.getInstance(Component.java:1978)     at org.jboss.seam.Component.getInstance(Component.java:1940)     at org.jboss.seam.Component.getInstance(Component.java:1934)     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)     at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)     at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)     at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)     at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)     at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)     at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:220)     at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:78)     at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:107)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)     at org.jboss.seam.Component.callComponentMethod(Component.java:2201)     at org.jboss.seam.Component.unwrap(Component.java:2227)     at org.jboss.seam.Component.getInstance(Component.java:1994)     at org.jboss.seam.Component.getInstance(Component.java:1940)     at org.jboss.seam.Component.getInstance(Component.java:1934)     at org.jboss.seam.Component.getInstance(Component.java:1929)     at org.jboss.seam.security.EntityPermissionChecker.getEntityManager(EntityPermissionChecker.java:39)     at org.jboss.seam.security.EntityPermissionChecker.checkEntityPermission(EntityPermissionChecker.java:89)     at org.jboss.seam.security.EntitySecurityListener.postLoad(EntitySecurityListener.java:24)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:31)     at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:78)     at org.hibernate.ejb.event.EntityCallbackHandler.postLoad(EntityCallbackHandler.java:71)     at org.hibernate.ejb.event.EJB3PostLoadEventListener.onPostLoad(EJB3PostLoadEventListener.java:33)     at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:201)     at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)     at org.hibernate.loader.Loader.doQuery(Loader.java:729)     at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)     at org.hibernate.loader.Loader.doList(Loader.java:2220)     at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)     at org.hibernate.loader.Loader.list(Loader.java:2099)     at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)     at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)     at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)     at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)     at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)     at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:66)     at com.fp.uiplat.session.PlatformSessionBean.search(PlatformSessionBean.java:123)     at java.lang.reflect.Method.invoke(Method.java:585)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:547)     at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:31)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)     at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)     at java.lang.reflect.Method.invoke(Method.java:585)     at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterceptor(InterceptorProxy.java:227)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:526)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.doAroundInvoke(InvocationContextImpl.java:184)     at com.ibm.ejs.container.EJSContainer.invoke(EJSContainer.java:5545)     at com.fp.uiplat.session.EJSLocal0SLPlatformSessionBean_51ead5f8.search(EJSLocal0SLPlatformSessionBean_51ead5f8.java)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)     at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)     at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)     at org.javassist.tmp.java.lang.Object_$$_javassist_1.search(Object_$$_javassist_1.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch100(SearchDatabasePage.java:127)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch(SearchDatabasePage.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit100(SearchDatabasePage.java:114)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit(SearchDatabasePage.java)     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1448)     at org.apache.wicket.markup.html.form.Form.process(Form.java:908)     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:873)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)javax.persistence.PersistenceException: org.hibernate.AnnotationException: Unknown Id.generator: platformBeanSequenceGenerator     at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:258)     at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)     at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)     at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)     at org.jboss.seam.Component.callComponentMethod(Component.java:2209)     at org.jboss.seam.Component.callCreateMethod(Component.java:2124)     at org.jboss.seam.Component.newInstance(Component.java:2084)     at org.jboss.seam.Component.getInstance(Component.java:1978)     at org.jboss.seam.Component.getInstance(Component.java:1940)     at org.jboss.seam.Component.getInstance(Component.java:1934)     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)     at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)     at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)     at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)     at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)     at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)     at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:220)     at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:78)     at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:107)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)     at org.jboss.seam.Component.callComponentMethod(Component.java:2201)     at org.jboss.seam.Component.unwrap(Component.java:2227)     at org.jboss.seam.Component.getInstance(Component.java:1994)     at org.jboss.seam.Component.getInstance(Component.java:1940)     at org.jboss.seam.Component.getInstance(Component.java:1934)     at org.jboss.seam.Component.getInstance(Component.java:1929)     at org.jboss.seam.security.EntityPermissionChecker.getEntityManager(EntityPermissionChecker.java:39)     at org.jboss.seam.security.EntityPermissionChecker.checkEntityPermission(EntityPermissionChecker.java:89)     at org.jboss.seam.security.EntitySecurityListener.postLoad(EntitySecurityListener.java:24)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:31)     at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:78)     at org.hibernate.ejb.event.EntityCallbackHandler.postLoad(EntityCallbackHandler.java:71)     at org.hibernate.ejb.event.EJB3PostLoadEventListener.onPostLoad(EJB3PostLoadEventListener.java:33)     at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:201)     at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)     at org.hibernate.loader.Loader.doQuery(Loader.java:729)     at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)     at org.hibernate.loader.Loader.doList(Loader.java:2220)     at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)     at org.hibernate.loader.Loader.list(Loader.java:2099)     at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)     at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)     at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)     at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)     at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)     at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:66)     at com.fp.uiplat.session.PlatformSessionBean.search(PlatformSessionBean.java:123)     at java.lang.reflect.Method.invoke(Method.java:585)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:547)     at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:31)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)     at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)     at java.lang.reflect.Method.invoke(Method.java:585)     at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterceptor(InterceptorProxy.java:227)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:526)     at com.ibm.ejs.container.interceptors.InvocationContextImpl.doAroundInvoke(InvocationContextImpl.java:184)     at com.ibm.ejs.container.EJSContainer.invoke(EJSContainer.java:5545)     at com.fp.uiplat.session.EJSLocal0SLPlatformSessionBean_51ead5f8.search(EJSLocal0SLPlatformSessionBean_51ead5f8.java)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)     at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)     at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)     at org.javassist.tmp.java.lang.Object_$$_javassist_1.search(Object_$$_javassist_1.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch100(SearchDatabasePage.java:127)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm.doSearch(SearchDatabasePage.java)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit100(SearchDatabasePage.java:114)     at com.fp.uiplatreference.ui.crud.SearchDatabasePage$SearchForm$1.onSubmit(SearchDatabasePage.java)     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1448)     at org.apache.wicket.markup.html.form.Form.process(Form.java:908)     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:873)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)     at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)     at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1188)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.