0 Replies Latest reply on Sep 25, 2012 1:04 AM by pandu_jboss

    problem in access the database from my application while creating the entity Manager from the other application?

    pandu_jboss

      Hi Every One,

       

         I am newbie to this seam and jboss framework. i am using MySQL as database and seam and JSF and jboss server,I am working on two projects socailDB and MangeDB ,i have table common in both the database from socailDB application i am inserting the record to the database in ManageDB ,i am successfully inserting the recod to the MangeDB table when i check manully though MySQL table i found record are inserted,but when i access the application i am getting the error. from the ManageDB project for every query whitch retrivers the data from the database

       

      this is the code where i access the data from the database from ManageDB project

       

      public List<NewsBoard> showallnewsupdate()

                {

                               try

                               {

                                     return entityManager.createQuery("from NewsBoard ns where 1=1").getResultList();

                 }

                                catch(IllegalArgumentException ex)

                                {

                                               ex.printStackTrace();

                                }catch(QueryException e)

                                     {

                                               e.printStackTrace();

                                     }

                           return null;

                }

       

       

      14:25:36,604 ERROR [STDERR] java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: NewsBoard is not mapped [from NewsBoard ns where 1=1]

      14:25:36,605 ERROR [STDERR]           at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:616)

      14:25:36,605 ERROR [STDERR]           at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.persistence.EntityManagerProxy.createQuery(EntityManagerProxy.java:81)

      14:25:36,605 ERROR [STDERR]           at com.ManageDB.master.PlatformMasterNewsAction.showallnewsupdate(PlatformMasterNewsAction.java:71)

      14:25:36,605 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      14:25:36,605 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,605 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,605 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Unknown Source)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:65)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)

      14:25:36,605 ERROR [STDERR]           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)

      14:25:36,605 ERROR [STDERR]           at com.ManageDB.master.PlatformMasterNewsAction_$$_javassist_3.showallnewsupdate(PlatformMasterNewsAction_$$_javassist_3.java)

      14:25:36,605 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      14:25:36,605 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,605 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,605 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Unknown Source)

      14:25:36,605 ERROR [STDERR]           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)

      14:25:36,605 ERROR [STDERR]           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)

      14:25:36,605 ERROR [STDERR]           at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)

      14:25:36,605 ERROR [STDERR]           at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)

      14:25:36,605 ERROR [STDERR]           at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

      14:25:36,605 ERROR [STDERR]           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)

      14:25:36,605 ERROR [STDERR]           at javax.faces.component.UIData.getValue(UIData.java:609)

      14:25:36,605 ERROR [STDERR]           at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1640)

      14:25:36,605 ERROR [STDERR]           at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:48)

      14:25:36,605 ERROR [STDERR]           at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:42)

      14:25:36,605 ERROR [STDERR]           at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:122)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)

      14:25:36,606 ERROR [STDERR]           at org.richfaces.renderkit.AbstractTableRenderer.encodeTableStructure(AbstractTableRenderer.java:121)

      14:25:36,606 ERROR [STDERR]           at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:206)

      14:25:36,606 ERROR [STDERR]           at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:194)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:101)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIData.encodeBegin(UIData.java:962)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1220)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:934)

      14:25:36,606 ERROR [STDERR]           at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:178)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:126)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.ui.renderkit.FragmentRendererBase.doEncodeChildren(FragmentRendererBase.java:29)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)

      14:25:36,606 ERROR [STDERR]           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)

      14:25:36,606 ERROR [STDERR]           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

      14:25:36,606 ERROR [STDERR]           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

      14:25:36,606 ERROR [STDERR]           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

      14:25:36,606 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      14:25:36,606 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)

      14:25:36,606 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,606 ERROR [STDERR]           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)

      14:25:36,607 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,607 ERROR [STDERR]           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

      14:25:36,607 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,607 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      14:25:36,607 ERROR [STDERR]           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

      14:25:36,607 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)

      14:25:36,607 ERROR [STDERR]           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      14:25:36,607 ERROR [STDERR]           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      14:25:36,607 ERROR [STDERR]           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      14:25:36,607 ERROR [STDERR]           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      14:25:36,607 ERROR [STDERR]           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      14:25:36,607 ERROR [STDERR]           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      14:25:36,607 ERROR [STDERR]           at java.lang.Thread.run(Unknown Source)

      14:25:36,607 ERROR [STDERR] Caused by: org.hibernate.hql.ast.QuerySyntaxException: NewsBoard is not mapped [from NewsBoard ns where 1=1]

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:255)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)

      14:25:36,607 ERROR [STDERR]           at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:92)

      14:25:36,607 ERROR [STDERR]           ... 110 more

      14:25:36,610 ERROR [STDERR] java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: NewsBoard is not mapped [from NewsBoard ns where 1=1]

      14:25:36,611 ERROR [STDERR]           at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:616)

      14:25:36,611 ERROR [STDERR]           at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.persistence.EntityManagerProxy.createQuery(EntityManagerProxy.java:81)

      14:25:36,611 ERROR [STDERR]           at com.ManageDB.master.PlatformMasterNewsAction.showallnewsupdate(PlatformMasterNewsAction.java:71)

      14:25:36,611 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      14:25:36,611 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,611 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,611 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Unknown Source)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:65)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)

      14:25:36,611 ERROR [STDERR]           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)

      14:25:36,611 ERROR [STDERR]           at com.ManageDB.master.PlatformMasterNewsAction_$$_javassist_3.showallnewsupdate(PlatformMasterNewsAction_$$_javassist_3.java)

      14:25:36,611 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      14:25:36,611 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,611 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      14:25:36,611 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Unknown Source)

      14:25:36,611 ERROR [STDERR]           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)

      14:25:36,611 ERROR [STDERR]           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)

      14:25:36,611 ERROR [STDERR]           at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)

      14:25:36,611 ERROR [STDERR]           at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)

      14:25:36,611 ERROR [STDERR]           at org.jboss.el.parser.AstEqual.getValue(AstEqual.java:21)

      14:25:36,611 ERROR [STDERR]           at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

      14:25:36,611 ERROR [STDERR]           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)

      14:25:36,611 ERROR [STDERR]           at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:227)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)

      14:25:36,611 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:178)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:126)

      14:25:36,611 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,611 ERROR [STDERR]           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)

      14:25:36,611 ERROR [STDERR]           at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)

      14:25:36,611 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)

      14:25:36,611 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,611 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)

      14:25:36,612 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:178)

      14:25:36,612 ERROR [STDERR]           at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:126)

      14:25:36,612 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.ui.renderkit.FragmentRendererBase.doEncodeChildren(FragmentRendererBase.java:29)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)

      14:25:36,612 ERROR [STDERR]           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

      14:25:36,612 ERROR [STDERR]           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)

      14:25:36,612 ERROR [STDERR]           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)

      14:25:36,612 ERROR [STDERR]           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)

      14:25:36,612 ERROR [STDERR]           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)

      14:25:36,612 ERROR [STDERR]           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)

      14:25:36,612 ERROR [STDERR]           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)

      14:25:36,612 ERROR [STDERR]           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

      14:25:36,612 ERROR [STDERR]           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

      14:25:36,612 ERROR [STDERR]           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)

      14:25:36,612 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)

      14:25:36,612 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)

      14:25:36,612 ERROR [STDERR]           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      14:25:36,612 ERROR [STDERR]           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      14:25:36,612 ERROR [STDERR]           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

      14:25:36,612 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)

      14:25:36,612 ERROR [STDERR]           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      14:25:36,612 ERROR [STDERR]           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      14:25:36,612 ERROR [STDERR]           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      14:25:36,612 ERROR [STDERR]           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      14:25:36,612 ERROR [STDERR]           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      14:25:36,612 ERROR [STDERR]           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      14:25:36,613 ERROR [STDERR]           at java.lang.Thread.run(Unknown Source)

      14:25:36,613 ERROR [STDERR] Caused by: org.hibernate.hql.ast.QuerySyntaxException: NewsBoard is not mapped [from NewsBoard ns where 1=1]

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:255)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)

      14:25:36,613 ERROR [STDERR]           at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:92)

      14:25:36,613 ERROR [STDERR]           ... 105 more

       

       

       

      i have inserted the data from socailDB project by creating seprate entityManager.by confiring the xml files

      persistence-dev.xml

       

      <persistence-unit name="socialDB">

            <provider>org.hibernate.ejb.HibernatePersistence</provider>

            <jta-data-source>java:/socialDBDatasource</jta-data-source>

            <properties>

               <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

               <property name="hibernate.hbm2ddl.auto" value="update"/>

               <property name="hibernate.show_sql" value="true"/>

               <property name="hibernate.format_sql" value="true"/>

               <property name="jboss.entity.manager.factory.jndi.name" value="java:/socialDBEntityManagerFactory"/>

            </properties>

         </persistence-unit>

       

         <persistence-unit name="manageDB">

            <provider>org.hibernate.ejb.HibernatePersistence</provider>

            <jta-data-source>java:/manageDBDatasource1</jta-data-source>

            <properties>

               <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

               <property name="hibernate.hbm2ddl.auto" value="update"/>

               <property name="hibernate.show_sql" value="true"/>

               <property name="hibernate.format_sql" value="true"/>

               <property name="jboss.entity.manager.factory.jndi.name" value="java:/manageDBEntityManagerFactory"/>

            </properties>

         </persistence-unit>

       

      components.xml

       

      <persistence:managed-persistence-context name="entityManager"

                                           auto-create="true"

                            persistence-unit-jndi-name="java:/socialDBEntityManagerFactory"/>

       

         <persistence:managed-persistence-context name="entityManagersecond"

                                           auto-create="true"

                            persistence-unit-jndi-name="java:/manageDBEntityManagerFactory"/>

       

       

      hillsLMS-dev-ds.xml

       

       

       

         <local-tx-datasource>

            <jndi-name>socialDBDatasource</jndi-name>

            <connection-url>jdbc:mysql:///Social</connection-url>

            <driver-class>com.mysql.jdbc.Driver</driver-class>

            <user-name>root</user-name>

            <password>john</password>

      <!--

            <exception-sorter-class-name>

               org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter

            </exception-sorter-class-name>

            <metadata>

               <type-mapping>mySQL</type-mapping>

            </metadata>

      -->

         </local-tx-datasource>

       

         <local-tx-datasource>

            <jndi-name>manageDBDatasource1</jndi-name>

            <connection-url>jdbc:mysql:///manage</connection-url>

            <driver-class>com.mysql.jdbc.Driver</driver-class>

            <user-name>root</user-name>

            <password>john</password>

          <!--

            <exception-sorter-class-name>

               org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter

            </exception-sorter-class-name>

            <metadata>

               <type-mapping>mySQL</type-mapping>

            </metadata>

        -->

         </local-tx-datasource>

       

       

      and i have written the Actionclass.java

      @Name("userSetup")

      @Scope(ScopeType.CONVERSATION)

      public class Actionclass {

       

      {

           @In(value="entityManagersecond")

             EntityManager entityManagersecond;

            private UserClint usec =new UserClint();

       

       

       

      @Begin(join=true)

                public String conformuser()

                {

       

                               if(usec.getId()==0)

                                    {

       

                                               this.entityManagersecond.persist(usec);

                                               entityManagersecond.flush();

                                               this.entityManagersecond.refresh(usec);

       

                                    }

                               else {

       

                                                   this.entityManagersecond .merge(usec);

                                         entityManagersecond.flush();

                                         this.entityManagersecond.refresh(usec);

       

                                         }

                          return "/userManagement/userManagement.xhtml";

                }

       

       

      }

       

      and i  have written  UserClint.java has pojo class i can able to insert data successfully to the database ManageDB project table,and when i deploy my manageDB project i will get this above error

      can any one help me with this problem. to fix it.

       

      one more issue i noticed in the database once creating the entityManagersecond in the SocailDB project all the tables in the socialDB database  are once agin created in the ManageDB database.

      its is very urgently need to solve this issue.

       

      waiting for the replay....