13 Replies Latest reply on Dec 8, 2007 7:43 PM by mirko27

    NamedQuery not known in Component

    mirko27

      We are trying to implement resourcebundle in database.
      Everything works fine, but it seems that our entitymanager is not able to
      resolve any namedqueries in resourceLoader.
      Is it some kind of instancing issue with SMPC entitymanager? Or something else?

      components.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
       xmlns:core="http://jboss.com/products/seam/core"
       xmlns:persistence="http://jboss.com/products/seam/persistence"
       xmlns:security="http://jboss.com/products/seam/security"
       xmlns:transaction="http://jboss.com/products/seam/transaction"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation=
       "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
       http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd
      http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
      
       <core:init jndi-pattern="java:comp/env/soov/#{ejbName}/local" debug="true"/>
       <persistence:entity-manager-factory name="entityManagerFactory" persistence-unit-name="soovPU"/>
       <persistence:managed-persistence-context name="em" auto-create="true"
       entity-manager-factory="#{entityManagerFactory}"/>
       <transaction:ejb-transaction/>
      
       <core:manager conversation-timeout="120000"
       concurrent-request-timeout="500"
       conversation-id-parameter="cid"/>
      
       <security:identity authenticate-method="#{authenticator.authenticate}"/>
      
      </components>
      

      Messages.java (Entity)

      @Entity
      @Table(name = "MESSAGES")
      @NamedQueries({
      @NamedQuery(name = "keys", query = "select m.messagekey from Messages m where " +
      "m.channel = :channel and " +
      "m.locale = :locale"),
      @NamedQuery(name="lamp",query="select m from Messages m"),
      @NamedQuery(name = "value", query = "select m.message from Messages m where " +
      "m.channel = :channel and " +
      "m.locale = :locale and m.messagekey = :messagekey")
      })
      public class Messages implements Serializable {
      ...
      }
      

      And resourceloader:
      @Name("org.jboss.seam.core.resourceLoader")
      @BypassInterceptors
      public class MessageResourceLoader extends ResourceLoader {
      
       @Override
       public ResourceBundle loadBundle(final String bundleName) {
       return new ResourceBundle() {
      
       public Enumeration<String> getKeys() {
       Locale locale = org.jboss.seam.core.Locale.instance();
       EntityManager entityManager = (EntityManager) Component.getInstance("em");
       List resources = entityManager.createNamedQuery("keys")
       .setParameter("channel", "soov")
       .setParameter("locale", locale.toString())
       .getResultList();
       return Collections.enumeration(resources);
       }
      
       protected Object handleGetObject(String key) {
       Locale locale = org.jboss.seam.core.Locale.instance();
       EntityManager entityManager = (EntityManager) Component.getInstance("em");
       entityManager.createNamedQuery("lamp");
       try {
       /* return entityManager.createNamedQuery("value")
       .setParameter("channel", "soov")
       .setParameter("locale", locale.toString())
       .setParameter("messagekey", key)
       .getSingleResult();*/
       return null;
       } catch (NoResultException e) {
       return null;
       }
       }
       };

      Stacktrace:
      Problem in renderResponse: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
      javax.el.ELException: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
       at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50)
       at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:581)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
       at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:320)
       at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:156)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
       at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
       at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:146)
       at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
       at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
       at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
       at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
       at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
       at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:117)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:37)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:76)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
       at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
       at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
       at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
       at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
       at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
       at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
       at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
       at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
       at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
       at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: javax.persistence.PersistenceException: org.hibernate.MappingException: Named query not known: lamp
       at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
       at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:107)
       at org.jboss.seam.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:44)
       at ee.soov.resource.MessageResourceLoader$1.handleGetObject(MessageResourceLoader.java:45)
       at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
       at org.jboss.seam.core.SeamResourceBundle.handleGetObject(SeamResourceBundle.java:102)
       at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
       at java.util.ResourceBundle.getString(ResourceBundle.java:346)
       at org.jboss.seam.international.Messages$1.get(Messages.java:56)
       at org.jboss.seam.international.Messages$1.get(Messages.java:42)
       at javax.el.MapELResolver.getValue(MapELResolver.java:164)
       at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
       at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
       at org.jboss.el.parser.AstBracketSuffix.getValue(AstBracketSuffix.java:59)
       at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
       at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
       at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
       at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
       at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
       ... 77 more
      Caused by: org.hibernate.MappingException: Named query not known: lamp
       at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)
       at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
       at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:104)
       ... 94 more
      
      


        • 1. Re: NamedQuery not known in Component
          pmuir

          Named queries work fine with an SMPC. Do your named queries get registered at startup?

          • 2. Re: NamedQuery not known in Component
            mirko27

            Yes they do, they are showed binded in startup log.
            The named queries work fine from actions later on.
            Just it wont find query in this resourceloader.

            Binding entity from annotated class: ee.soov.entity.Messages
            Binding Named query: keys => select m.messagekey from Messages m where m.channel = :channel and m.locale = :locale
            Binding Named query: lamp => select m from Messages m
            Binding Named query: value => select m.message from Messages m where m.channel = :channel and m.locale = :locale and m.messagekey = :messagekey
            Bind entity ee.soov.entity.Messages on table MESSAGES
            


            • 3. Re: NamedQuery not known in Component
              pmuir

              Can you post more of the startup log from around that area?

              • 4. Re: NamedQuery not known in Component
                mirko27

                Sure. Here is full log. It seems like seam managed pc entitymanager I define in components.xml is not properly bound or instantied yet... Because later when I inject it @In EntityManager em in one of my beans it finds those queries.

                ADM1064:The upload file at [C:\TEMP\s1astempdomain1server-1872362455\soov.ear] exists and will be overwritten.
                ADM1006:Uploading the file to:[C:\TEMP\s1astempdomain1server-1872362455\soov.ear]
                deployed with moduleid = soov
                ADM1041:Sent the event to instance:[ApplicationDeployEvent -- enable soov]
                Hibernate Annotations 3.3.0.GA
                Hibernate 3.2.4.sp1
                hibernate.properties not found
                Bytecode provider name : cglib
                using JDK 1.4 java.sql.Timestamp handling
                Hibernate EntityManager 3.3.1.GA
                Processing PersistenceUnitInfo [
                 name: soovPU
                 ...]
                found EJB3 Entity bean: ee.soov.entity.Ad
                found EJB3 Entity bean: ee.soov.entity.AdAgent
                found EJB3 Entity bean: ee.soov.entity.AdArchive
                found EJB3 Entity bean: ee.soov.entity.AdBasket
                found EJB3 Entity bean: ee.soov.entity.AdminUnit
                found EJB3 Entity bean: ee.soov.entity.AdminUser
                found EJB3 Entity bean: ee.soov.entity.AdText
                found EJB3 Entity bean: ee.soov.entity.AgentColumn
                found EJB3 Entity bean: ee.soov.entity.Balance
                found EJB3 Entity bean: ee.soov.entity.BankPaymentFile
                found EJB3 Entity bean: ee.soov.entity.Banner
                found EJB3 Entity bean: ee.soov.entity.BannerColumn
                found EJB3 Entity bean: ee.soov.entity.BannerStatistics
                found EJB3 Entity bean: ee.soov.entity.BlackList
                found EJB3 Entity bean: ee.soov.entity.Calendar
                found EJB3 Entity bean: ee.soov.entity.Client
                found EJB3 Entity bean: ee.soov.entity.ClientColumn
                found EJB3 Entity bean: ee.soov.entity.ClientHistory
                found EJB3 Entity bean: ee.soov.entity.ClientPackage
                found EJB3 Entity bean: ee.soov.entity.ColumnHier
                found EJB3 Entity bean: ee.soov.entity.ColumnHierText
                found EJB3 Entity bean: ee.soov.entity.ColumnStru
                found EJB3 Entity bean: ee.soov.entity.ColumnTransaction
                found EJB3 Entity bean: ee.soov.entity.CommType
                found EJB3 Entity bean: ee.soov.entity.ComTrans
                found EJB3 Entity bean: ee.soov.entity.Contact
                found EJB3 Entity bean: ee.soov.entity.ContactData
                found EJB3 Entity bean: ee.soov.entity.ContactTime
                found EJB3 Entity bean: ee.soov.entity.Contract
                found EJB3 Entity bean: ee.soov.entity.Deadline
                found EJB3 Entity bean: ee.soov.entity.Domain
                found EJB3 Entity bean: ee.soov.entity.DomainValue
                found EJB3 Entity bean: ee.soov.entity.DomainValueText
                found EJB3 Entity bean: ee.soov.entity.EmGroup
                found EJB3 Entity bean: ee.soov.entity.GroupAd
                found EJB3 Entity bean: ee.soov.entity.GroupClient
                found EJB3 Entity bean: ee.soov.entity.History
                found EJB3 Entity bean: ee.soov.entity.Image
                found EJB3 Entity bean: ee.soov.entity.Invoice
                found EJB3 Entity bean: ee.soov.entity.InvoiceArchive
                found EJB3 Entity bean: ee.soov.entity.InvoiceInvoiceRow
                found EJB3 Entity bean: ee.soov.entity.InvoiceRow
                found EJB3 Entity bean: ee.soov.entity.JobAd
                found EJB3 Entity bean: ee.soov.entity.Messages
                found EJB3 Entity bean: ee.soov.entity.MessagesLarge
                found EJB3 Entity bean: ee.soov.entity.Owner
                found EJB3 Entity bean: ee.soov.entity.PackageRange
                found EJB3 Entity bean: ee.soov.entity.PaperStruct
                found EJB3 Entity bean: ee.soov.entity.PaperWeb
                found EJB3 Entity bean: ee.soov.entity.Payment
                found EJB3 Entity bean: ee.soov.entity.Privillege
                found EJB3 Entity bean: ee.soov.entity.PubDate
                found EJB3 Entity bean: ee.soov.entity.PubDays
                found EJB3 Entity bean: ee.soov.entity.RealEstateAd
                found EJB3 Entity bean: ee.soov.entity.RealEstatePurpose
                found EJB3 Entity bean: ee.soov.entity.RealEstateValidity
                found EJB3 Entity bean: ee.soov.entity.SalesPricelist
                found EJB3 Entity bean: ee.soov.entity.ScalaFile
                found EJB3 Entity bean: ee.soov.entity.SchWd
                found EJB3 Entity bean: ee.soov.entity.Service
                found EJB3 Entity bean: ee.soov.entity.Settlement
                found EJB3 Entity bean: ee.soov.entity.SoovBanner
                found EJB3 Entity bean: ee.soov.entity.SoovPackage
                found EJB3 Entity bean: ee.soov.entity.TransPubDate
                found EJB3 Entity bean: ee.soov.entity.Ug
                found EJB3 Entity bean: ee.soov.entity.Ugp
                found EJB3 Entity bean: ee.soov.entity.UserUg
                found EJB3 Entity bean: ee.soov.entity.VehiAd
                found EJB3 Entity bean: org.jboss.seam.example.booking.Booking
                found EJB3 Entity bean: org.jboss.seam.example.booking.Hotel
                found EJB3 Entity bean: org.jboss.seam.example.booking.User
                Binding entity from annotated class: ee.soov.entity.Ad
                Bind entity ee.soov.entity.Ad on table AD
                Binding entity from annotated class: ee.soov.entity.AdAgent
                Bind entity ee.soov.entity.AdAgent on table AD_AGENT
                Binding entity from annotated class: ee.soov.entity.AdArchive
                Bind entity ee.soov.entity.AdArchive on table AD_ARCHIVE
                Binding entity from annotated class: ee.soov.entity.AdBasket
                Bind entity ee.soov.entity.AdBasket on table AD_BASKET
                Binding entity from annotated class: ee.soov.entity.AdminUnit
                Bind entity ee.soov.entity.AdminUnit on table ADMIN_UNIT
                Binding entity from annotated class: ee.soov.entity.AdminUser
                Bind entity ee.soov.entity.AdminUser on table ADMIN_USER
                Binding entity from annotated class: ee.soov.entity.AdText
                Bind entity ee.soov.entity.AdText on table AD_TEXT
                Binding entity from annotated class: ee.soov.entity.AgentColumn
                Bind entity ee.soov.entity.AgentColumn on table AGENT_COLUMN
                Binding entity from annotated class: ee.soov.entity.Balance
                Bind entity ee.soov.entity.Balance on table BALANCE
                Binding entity from annotated class: ee.soov.entity.BankPaymentFile
                Bind entity ee.soov.entity.BankPaymentFile on table BANK_PAYMENT_FILE
                Binding entity from annotated class: ee.soov.entity.Banner
                Bind entity ee.soov.entity.Banner on table BANNER
                Binding entity from annotated class: ee.soov.entity.BannerColumn
                Bind entity ee.soov.entity.BannerColumn on table BANNER_COLUMN
                Binding entity from annotated class: ee.soov.entity.BannerStatistics
                Bind entity ee.soov.entity.BannerStatistics on table BANNER_STATISTICS
                Binding entity from annotated class: ee.soov.entity.BlackList
                Bind entity ee.soov.entity.BlackList on table BLACK_LIST
                Binding entity from annotated class: ee.soov.entity.Calendar
                Bind entity ee.soov.entity.Calendar on table CALENDAR
                Binding entity from annotated class: ee.soov.entity.Client
                Bind entity ee.soov.entity.Client on table CLIENT
                Binding entity from annotated class: ee.soov.entity.ClientColumn
                Bind entity ee.soov.entity.ClientColumn on table CLIENT_COLUMN
                Binding entity from annotated class: ee.soov.entity.ClientHistory
                Bind entity ee.soov.entity.ClientHistory on table CLIENT_HISTORY
                Binding entity from annotated class: ee.soov.entity.ClientPackage
                Bind entity ee.soov.entity.ClientPackage on table CLIENT_PACKAGE
                Binding entity from annotated class: ee.soov.entity.ColumnHier
                Bind entity ee.soov.entity.ColumnHier on table COLUMN_HIER
                Binding entity from annotated class: ee.soov.entity.ColumnHierText
                Bind entity ee.soov.entity.ColumnHierText on table COLUMN_HIER_TEXT
                Binding entity from annotated class: ee.soov.entity.ColumnStru
                Bind entity ee.soov.entity.ColumnStru on table COLUMN_STRU
                Binding entity from annotated class: ee.soov.entity.ColumnTransaction
                Bind entity ee.soov.entity.ColumnTransaction on table COLUMN_TRANSACTION
                Binding entity from annotated class: ee.soov.entity.CommType
                Bind entity ee.soov.entity.CommType on table COMM_TYPE
                Binding entity from annotated class: ee.soov.entity.ComTrans
                Bind entity ee.soov.entity.ComTrans on table COM_TRANS
                Binding entity from annotated class: ee.soov.entity.Contact
                Bind entity ee.soov.entity.Contact on table CONTACT
                Binding entity from annotated class: ee.soov.entity.ContactData
                Bind entity ee.soov.entity.ContactData on table CONTACT_DATA
                Binding entity from annotated class: ee.soov.entity.ContactTime
                Bind entity ee.soov.entity.ContactTime on table CONTACT_TIME
                Binding entity from annotated class: ee.soov.entity.Contract
                Bind entity ee.soov.entity.Contract on table CONTRACT
                Binding entity from annotated class: ee.soov.entity.Deadline
                Bind entity ee.soov.entity.Deadline on table DEADLINE
                Binding entity from annotated class: ee.soov.entity.Domain
                Bind entity ee.soov.entity.Domain on table DOMAIN
                Binding entity from annotated class: ee.soov.entity.DomainValue
                Bind entity ee.soov.entity.DomainValue on table DOMAIN_VALUE
                Binding entity from annotated class: ee.soov.entity.DomainValueText
                Bind entity ee.soov.entity.DomainValueText on table DOMAIN_VALUE_TEXT
                Binding entity from annotated class: ee.soov.entity.EmGroup
                Bind entity ee.soov.entity.EmGroup on table EM_GROUP
                Binding entity from annotated class: ee.soov.entity.GroupAd
                Bind entity ee.soov.entity.GroupAd on table GROUP_AD
                Binding entity from annotated class: ee.soov.entity.GroupClient
                Bind entity ee.soov.entity.GroupClient on table GROUP_CLIENT
                Binding entity from annotated class: ee.soov.entity.History
                Bind entity ee.soov.entity.History on table HISTORY
                Binding entity from annotated class: ee.soov.entity.Image
                Bind entity ee.soov.entity.Image on table IMAGE
                Binding entity from annotated class: ee.soov.entity.Invoice
                Bind entity ee.soov.entity.Invoice on table INVOICE
                Binding entity from annotated class: ee.soov.entity.InvoiceArchive
                Bind entity ee.soov.entity.InvoiceArchive on table INVOICE_ARCHIVE
                Binding entity from annotated class: ee.soov.entity.InvoiceInvoiceRow
                Bind entity ee.soov.entity.InvoiceInvoiceRow on table INVOICE_INVOICE_ROW
                Binding entity from annotated class: ee.soov.entity.InvoiceRow
                Bind entity ee.soov.entity.InvoiceRow on table INVOICE_ROW
                Binding entity from annotated class: ee.soov.entity.JobAd
                Bind entity ee.soov.entity.JobAd on table JOB_AD
                Binding entity from annotated class: ee.soov.entity.Messages
                Binding Named query: keys => select m.messagekey from Messages m where m.channel = :channel and m.locale = :locale
                Binding Named query: lamp => select m from Messages m
                Binding Named query: value => select m.message from Messages m where m.channel = :channel and m.locale = :locale and m.messagekey = :messagekey
                Bind entity ee.soov.entity.Messages on table MESSAGES
                Binding entity from annotated class: ee.soov.entity.MessagesLarge
                Bind entity ee.soov.entity.MessagesLarge on table MESSAGES_LARGE
                Binding entity from annotated class: ee.soov.entity.Owner
                Bind entity ee.soov.entity.Owner on table OWNER
                Binding entity from annotated class: ee.soov.entity.PackageRange
                Bind entity ee.soov.entity.PackageRange on table PACKAGE_RANGE
                Binding entity from annotated class: ee.soov.entity.PaperStruct
                Bind entity ee.soov.entity.PaperStruct on table PAPER_STRUCT
                Binding entity from annotated class: ee.soov.entity.PaperWeb
                Bind entity ee.soov.entity.PaperWeb on table PAPER_WEB
                Binding entity from annotated class: ee.soov.entity.Payment
                Bind entity ee.soov.entity.Payment on table PAYMENT
                Binding entity from annotated class: ee.soov.entity.Privillege
                Bind entity ee.soov.entity.Privillege on table PRIVILLEGE
                Binding entity from annotated class: ee.soov.entity.PubDate
                Bind entity ee.soov.entity.PubDate on table PUB_DATE
                Binding entity from annotated class: ee.soov.entity.PubDays
                Bind entity ee.soov.entity.PubDays on table PUB_DAYS
                Binding entity from annotated class: ee.soov.entity.RealEstateAd
                Bind entity ee.soov.entity.RealEstateAd on table REAL_ESTATE_AD
                Binding entity from annotated class: ee.soov.entity.RealEstatePurpose
                Bind entity ee.soov.entity.RealEstatePurpose on table REAL_ESTATE_PURPOSE
                Binding entity from annotated class: ee.soov.entity.RealEstateValidity
                Bind entity ee.soov.entity.RealEstateValidity on table REAL_ESTATE_VALIDITY
                Binding entity from annotated class: ee.soov.entity.SalesPricelist
                Bind entity ee.soov.entity.SalesPricelist on table SALES_PRICELIST
                Binding entity from annotated class: ee.soov.entity.ScalaFile
                Bind entity ee.soov.entity.ScalaFile on table SCALA_FILE
                Binding entity from annotated class: ee.soov.entity.SchWd
                Bind entity ee.soov.entity.SchWd on table SCH_WD
                Binding entity from annotated class: ee.soov.entity.Service
                Bind entity ee.soov.entity.Service on table SERVICE
                Binding entity from annotated class: ee.soov.entity.Settlement
                Bind entity ee.soov.entity.Settlement on table SETTLEMENT
                Binding entity from annotated class: ee.soov.entity.SoovBanner
                Bind entity ee.soov.entity.SoovBanner on table SOOV_BANNER
                Binding entity from annotated class: ee.soov.entity.SoovPackage
                Bind entity ee.soov.entity.SoovPackage on table SOOV_PACKAGE
                Binding entity from annotated class: ee.soov.entity.TransPubDate
                Bind entity ee.soov.entity.TransPubDate on table TRANS_PUB_DATE
                Binding entity from annotated class: ee.soov.entity.Ug
                Bind entity ee.soov.entity.Ug on table UG
                Binding entity from annotated class: ee.soov.entity.Ugp
                Bind entity ee.soov.entity.Ugp on table UGP
                Binding entity from annotated class: ee.soov.entity.UserUg
                Bind entity ee.soov.entity.UserUg on table USER_UG
                Binding entity from annotated class: ee.soov.entity.VehiAd
                Bind entity ee.soov.entity.VehiAd on table VEHI_AD
                Binding entity from annotated class: org.jboss.seam.example.booking.Booking
                Bind entity org.jboss.seam.example.booking.Booking on table Booking
                Binding entity from annotated class: org.jboss.seam.example.booking.Hotel
                Bind entity org.jboss.seam.example.booking.Hotel on table Hotel
                Binding entity from annotated class: org.jboss.seam.example.booking.User
                Bind entity org.jboss.seam.example.booking.User on table Customer
                Mapping collection: ee.soov.entity.Ad.adAgentCollection -> AD_AGENT
                Mapping collection: ee.soov.entity.Ad.adBasketCollection -> AD_BASKET
                Mapping collection: ee.soov.entity.Ad.adTextCollection -> AD_TEXT
                Mapping collection: ee.soov.entity.Ad.contactDataCollection -> CONTACT_DATA
                Mapping collection: ee.soov.entity.Ad.groupAdCollection -> GROUP_AD
                Mapping collection: ee.soov.entity.Ad.historyCollection -> HISTORY
                Mapping collection: ee.soov.entity.Ad.imageCollection -> IMAGE
                Mapping collection: ee.soov.entity.Ad.jobAdCollection -> JOB_AD
                Mapping collection: ee.soov.entity.Ad.ownerCollection -> OWNER
                Mapping collection: ee.soov.entity.Ad.pubDateCollection -> PUB_DATE
                Mapping collection: ee.soov.entity.Ad.realEstateAdCollection -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.Ad.realEstateValidityCollection -> REAL_ESTATE_VALIDITY
                Mapping collection: ee.soov.entity.Ad.vehiAdCollection -> VEHI_AD
                Mapping collection: ee.soov.entity.AdAgent.agentColumnCollection -> AGENT_COLUMN
                Mapping collection: ee.soov.entity.AdAgent.invoiceRowCollection -> INVOICE_ROW
                Mapping collection: ee.soov.entity.AdminUser.adCollection -> AD
                Mapping collection: ee.soov.entity.AdminUser.clientCollection -> CLIENT
                Mapping collection: ee.soov.entity.AdminUser.comTransCollection -> COM_TRANS
                Mapping collection: ee.soov.entity.AdminUser.contactCollection -> CONTACT
                Mapping collection: ee.soov.entity.AdminUser.contactTimeCollection -> CONTACT_TIME
                Mapping collection: ee.soov.entity.AdminUser.historyCollection -> HISTORY
                Mapping collection: ee.soov.entity.AdminUser.userUgCollection -> USER_UG
                Mapping collection: ee.soov.entity.Balance.balanceCollection -> BALANCE
                Mapping collection: ee.soov.entity.Banner.bannerColumnCollection -> BANNER_COLUMN
                Mapping collection: ee.soov.entity.Banner.bannerStatisticsCollection -> BANNER_STATISTICS
                Mapping collection: ee.soov.entity.Client.adAgentCollection -> AD_AGENT
                Mapping collection: ee.soov.entity.Client.adBasketCollection -> AD_BASKET
                Mapping collection: ee.soov.entity.Client.adCollection -> AD
                Mapping collection: ee.soov.entity.Client.adCollection1 -> AD
                Mapping collection: ee.soov.entity.Client.adminUserCollection -> ADMIN_USER
                Mapping collection: ee.soov.entity.Client.balanceCollection -> BALANCE
                Mapping collection: ee.soov.entity.Client.bannerCollection -> BANNER
                Mapping collection: ee.soov.entity.Client.clientColumnCollection -> CLIENT_COLUMN
                Mapping collection: ee.soov.entity.Client.clientPackageCollection -> CLIENT_PACKAGE
                Mapping collection: ee.soov.entity.Client.comTransCollection -> COM_TRANS
                Mapping collection: ee.soov.entity.Client.contactCollection -> CONTACT
                Mapping collection: ee.soov.entity.Client.contactDataCollection -> CONTACT_DATA
                Mapping collection: ee.soov.entity.Client.contactTimeCollection -> CONTACT_TIME
                Mapping collection: ee.soov.entity.Client.contractCollection -> CONTRACT
                Mapping collection: ee.soov.entity.Client.groupClientCollection -> GROUP_CLIENT
                Mapping collection: ee.soov.entity.Client.imageCollection -> IMAGE
                Mapping collection: ee.soov.entity.Client.invoiceCollection -> INVOICE
                Mapping collection: ee.soov.entity.Client.invoiceRowCollection -> INVOICE_ROW
                Mapping collection: ee.soov.entity.Client.paymentCollection -> PAYMENT
                Mapping collection: ee.soov.entity.Client.realEstateValidityCollection -> REAL_ESTATE_VALIDITY
                Mapping collection: ee.soov.entity.ColumnHier.adCollection -> AD
                Mapping collection: ee.soov.entity.ColumnHier.agentColumnCollection -> AGENT_COLUMN
                Mapping collection: ee.soov.entity.ColumnHier.bannerColumnCollection -> BANNER_COLUMN
                Mapping collection: ee.soov.entity.ColumnHier.columnHierTextCollection -> COLUMN_HIER_TEXT
                Mapping collection: ee.soov.entity.ColumnHier.columnTransactionCollection -> COLUMN_TRANSACTION
                Mapping collection: ee.soov.entity.ColumnHier.paperWebCollection -> PAPER_WEB
                Mapping collection: ee.soov.entity.ComTrans.commTypeCollection -> COMM_TYPE
                Mapping collection: ee.soov.entity.ComTrans.transPubDateCollection -> TRANS_PUB_DATE
                Mapping collection: ee.soov.entity.Contract.commTypeCollection -> COMM_TYPE
                Mapping collection: ee.soov.entity.Domain.domainValueCollection -> DOMAIN_VALUE
                Mapping collection: ee.soov.entity.DomainValue.adAgentCollection -> AD_AGENT
                Mapping collection: ee.soov.entity.DomainValue.adCollection -> AD
                Mapping collection: ee.soov.entity.DomainValue.adCollection1 -> AD
                Mapping collection: ee.soov.entity.DomainValue.adCollection2 -> AD
                Mapping collection: ee.soov.entity.DomainValue.adCollection3 -> AD
                Mapping collection: ee.soov.entity.DomainValue.adCollection4 -> AD
                Mapping collection: ee.soov.entity.DomainValue.adCollection5 -> AD
                Mapping collection: ee.soov.entity.DomainValue.adTextCollection -> AD_TEXT
                Mapping collection: ee.soov.entity.DomainValue.bankPaymentFileCollection -> BANK_PAYMENT_FILE
                Mapping collection: ee.soov.entity.DomainValue.bankPaymentFileCollection1 -> BANK_PAYMENT_FILE
                Mapping collection: ee.soov.entity.DomainValue.bannerCollection -> BANNER
                Mapping collection: ee.soov.entity.DomainValue.bannerStatisticsCollection -> BANNER_STATISTICS
                Mapping collection: ee.soov.entity.DomainValue.clientColumnCollection -> CLIENT_COLUMN
                Mapping collection: ee.soov.entity.DomainValue.columnHierTextCollection -> COLUMN_HIER_TEXT
                Mapping collection: ee.soov.entity.DomainValue.columnTransactionCollection -> COLUMN_TRANSACTION
                Mapping collection: ee.soov.entity.DomainValue.comTransCollection -> COM_TRANS
                Mapping collection: ee.soov.entity.DomainValue.comTransCollection1 -> COM_TRANS
                Mapping collection: ee.soov.entity.DomainValue.contactDataCollection -> CONTACT_DATA
                Mapping collection: ee.soov.entity.DomainValue.domainValueTextCollection -> DOMAIN_VALUE_TEXT
                Mapping collection: ee.soov.entity.DomainValue.imageCollection -> IMAGE
                Mapping collection: ee.soov.entity.DomainValue.imageCollection1 -> IMAGE
                Mapping collection: ee.soov.entity.DomainValue.invoiceCollection -> INVOICE
                Mapping collection: ee.soov.entity.DomainValue.jobAdCollection -> JOB_AD
                Mapping collection: ee.soov.entity.DomainValue.paymentCollection -> PAYMENT
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection1 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection10 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection11 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection12 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection13 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection14 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection15 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection16 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection17 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection18 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection19 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection2 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection20 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection21 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection22 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection23 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection24 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection25 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection26 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection3 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection4 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection5 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection6 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection7 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection8 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstateAdCollection9 -> REAL_ESTATE_AD
                Mapping collection: ee.soov.entity.DomainValue.realEstatePurposeCollection -> REAL_ESTATE_PURPOSE
                Mapping collection: ee.soov.entity.DomainValue.scalaFileCollection -> SCALA_FILE
                Mapping collection: ee.soov.entity.DomainValue.schWdCollection -> SCH_WD
                Mapping collection: ee.soov.entity.DomainValue.serviceCollection -> SERVICE
                Mapping collection: ee.soov.entity.DomainValue.soovPackageCollection -> SOOV_PACKAGE
                Mapping collection: ee.soov.entity.DomainValue.vehiAdCollection -> VEHI_AD
                Mapping collection: ee.soov.entity.DomainValue.vehiAdCollection1 -> VEHI_AD
                Mapping collection: ee.soov.entity.DomainValue.vehiAdCollection2 -> VEHI_AD
                Mapping collection: ee.soov.entity.EmGroup.groupAdCollection -> GROUP_AD
                Mapping collection: ee.soov.entity.EmGroup.groupClientCollection -> GROUP_CLIENT
                Mapping collection: ee.soov.entity.Image.bannerCollection -> BANNER
                Mapping collection: ee.soov.entity.Invoice.balanceCollection -> BALANCE
                Mapping collection: ee.soov.entity.Invoice.invoiceInvoiceRowCollection -> INVOICE_INVOICE_ROW
                Mapping collection: ee.soov.entity.Invoice.settlementCollection -> SETTLEMENT
                Mapping collection: ee.soov.entity.InvoiceRow.invoiceInvoiceRowCollection -> INVOICE_INVOICE_ROW
                Mapping collection: ee.soov.entity.InvoiceRow.pubDateCollection -> PUB_DATE
                Mapping collection: ee.soov.entity.Owner.contactDataCollection -> CONTACT_DATA
                Mapping collection: ee.soov.entity.PaperStruct.paperWebCollection -> PAPER_WEB
                Mapping collection: ee.soov.entity.Payment.balanceCollection -> BALANCE
                Mapping collection: ee.soov.entity.Payment.settlementCollection -> SETTLEMENT
                Mapping collection: ee.soov.entity.Privillege.ugpCollection -> UGP
                Mapping collection: ee.soov.entity.RealEstateAd.realEstatePurposeCollection -> REAL_ESTATE_PURPOSE
                Mapping collection: ee.soov.entity.SalesPricelist.comTransCollection -> COM_TRANS
                Mapping collection: ee.soov.entity.Service.invoiceRowCollection -> INVOICE_ROW
                Mapping collection: ee.soov.entity.Settlement.settlementCollection -> SETTLEMENT
                Mapping collection: ee.soov.entity.SoovPackage.clientPackageCollection -> CLIENT_PACKAGE
                Mapping collection: ee.soov.entity.SoovPackage.packageRangeCollection -> PACKAGE_RANGE
                Mapping collection: ee.soov.entity.Ug.ugpCollection -> UGP
                Mapping collection: ee.soov.entity.Ug.userUgCollection -> USER_UG
                Hibernate Validator 3.0.0.GA
                Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
                Using provided datasource
                RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
                With the Partitioning, OLAP and Data Mining options
                JDBC driver: Oracle JDBC driver, version: 11.1.0.6.0-Production+
                Using dialect: org.hibernate.dialect.OracleDialect
                Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
                instantiating TransactionManagerLookup: org.hibernate.transaction.SunONETransactionManagerLookup
                instantiated TransactionManagerLookup
                Automatic flush during beforeCompletion(): disabled
                Automatic session close at end of transaction: disabled
                JDBC batch size: 15
                JDBC batch updates for versioned data: disabled
                Scrollable result sets: enabled
                JDBC3 getGeneratedKeys(): disabled
                Connection release mode: auto
                Default batch fetch size: 1
                Generate SQL with comments: disabled
                Order SQL updates by primary key: disabled
                Order SQL inserts for batching: disabled
                Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                Using ASTQueryTranslatorFactory
                Query language substitutions: {}
                JPA-QL strict compliance: enabled
                Second-level cache: enabled
                Query cache: disabled
                Cache provider: org.hibernate.cache.HashtableCacheProvider
                Optimize cache for minimal puts: disabled
                Structured second-level cache entries: disabled
                Echoing all SQL to stdout
                Statistics: disabled
                Deleted entity synthetic identifier rollback: disabled
                Default entity-mode: pojo
                Named query checking : enabled
                building session factory
                Not binding factory to JNDI, no JNDI name configured
                JNDI InitialContext properties:{}
                naming.bind
                naming.bind
                naming.bind
                naming.bind
                naming.bind
                naming.bind
                naming.bind
                LDR5010: All ejb(s) of [soov] loaded successfully!
                Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/soov'
                ICEsoft Technologies, Inc.
                ICEfaces x.x.x
                Build number: x
                Revision: x
                Welcome to Seam null
                scanning: /C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/soov-war_war/WEB-INF/lib/jboss-seam-ui.jar
                scanning: C:\server\glassfish\v2\domains\domain1\applications\j2ee-apps\soov\jboss-seam_jar
                Namespace: http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix: org.jboss.seam.async
                Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
                Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
                Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
                Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
                Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
                Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
                Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
                Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
                Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
                Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
                Namespace: http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
                Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
                Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
                scanning: C:\server\glassfish\v2\domains\domain1\applications\j2ee-apps\soov\soov-ejb_jar
                scanning: /C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/soov-war_war/WEB-INF/lib/jboss-seam-debug.jar
                reading /WEB-INF/components.xml
                reading file:/C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/jboss-seam_jar/META-INF/components.xml
                reading jar:file:/C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/soov-war_war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml
                reading jar:file:/C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/soov-war_war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml
                reading properties from: /seam.properties
                reading properties from: /jndi.properties
                initializing Seam
                scanning: C:\server\glassfish\v2\domains\domain1\applications\j2ee-apps\soov\soov-ejb_jar
                scanning: /C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/soov-war_war/WEB-INF/lib/jboss-seam-debug.jar
                scanning: /C:/server/glassfish/v2/domains/domain1/applications/j2ee-apps/soov/soov-war_war/WEB-INF/lib/jboss-seam-ui.jar
                scanning: C:\server\glassfish\v2\domains\domain1\applications\j2ee-apps\soov\jboss-seam_jar
                two components with same name, higher precedence wins: org.jboss.seam.core.locale
                two components with same name, higher precedence wins: org.jboss.seam.transaction.synchronizations
                two components with same name, higher precedence wins: org.jboss.seam.core.manager
                two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
                two components with same name, higher precedence wins: org.jboss.seam.core.locale
                two components with same name, higher precedence wins: org.jboss.seam.web.userPrincipal
                two components with same name, higher precedence wins: org.jboss.seam.bpm.businessProcess
                two components with same name, higher precedence wins: org.jboss.seam.web.isUserInRole
                two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
                two components with same name, higher precedence wins: org.jboss.seam.core.expressions
                two components with same name, higher precedence wins: org.jboss.seam.web.parameters
                two components with same name, higher precedence wins: org.jboss.seam.security.identity
                two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
                Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
                Installing components...
                Component: advertiseTabs, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: ee.soov.add.AdvertiseTabsAction, JNDI: java:comp/env/soov/AdvertiseTabsAction/local
                Component: authenticator, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.AuthenticatorAction, JNDI: java:comp/env/soov/AuthenticatorAction/local
                Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
                Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: java:comp/env/soov/BookingListAction/local
                Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: java:comp/env/soov/ChangePasswordAction/local
                Component: domainFacade, scope: SESSION, type: STATELESS_SESSION_BEAN, class: ee.soov.dao.DomainFacadeBean, JNDI: java:comp/env/soov/DomainFacadeBean/local
                Component: em, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext
                Component: entityManagerFactory, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.EntityManagerFactory
                Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
                Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: java:comp/env/soov/HotelBookingAction/local
                Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelSearchingAction, JNDI: java:comp/env/soov/HotelSearchingAction/local
                Component: org.jboss.seam.async.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.async.ThreadPoolDispatcher
                Component: org.jboss.seam.core.contexts, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Contexts
                Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
                Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
                Component: org.jboss.seam.core.conversationListFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
                Component: org.jboss.seam.core.conversationPropagation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationPropagation
                Component: org.jboss.seam.core.conversationStackFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
                Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
                Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesExpressions
                Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
                Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Locale
                Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesManager
                Component: org.jboss.seam.core.resourceBundle, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
                Component: org.jboss.seam.core.resourceLoader, scope: STATELESS, type: JAVA_BEAN, class: ee.soov.resource.MessageResourceLoader
                Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
                Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
                Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
                Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
                Component: org.jboss.seam.exception.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.exception.Exceptions
                Component: org.jboss.seam.faces.dataModels, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.DataModels
                Component: org.jboss.seam.faces.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesContext
                Component: org.jboss.seam.faces.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesMessages
                Component: org.jboss.seam.faces.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesPage
                Component: org.jboss.seam.faces.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.HttpError
                Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
                Component: org.jboss.seam.faces.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
                Component: org.jboss.seam.faces.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.Switcher
                Component: org.jboss.seam.faces.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.UiComponent
                Component: org.jboss.seam.faces.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.Validation
                Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
                Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
                Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
                Component: org.jboss.seam.graphicImage.image, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.Image
                Component: org.jboss.seam.international.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.LocaleSelector
                Component: org.jboss.seam.international.messagesFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Messages
                Component: org.jboss.seam.international.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZone
                Component: org.jboss.seam.international.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZoneSelector
                Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
                Component: org.jboss.seam.navigation.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.Pages
                Component: org.jboss.seam.navigation.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.SafeActions
                Component: org.jboss.seam.persistence.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.PersistenceContexts
                Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
                Component: org.jboss.seam.security.configurationFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
                Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
                Component: org.jboss.seam.theme.themeFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
                Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
                Component: org.jboss.seam.transaction.ejbTransaction, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.transaction.EjbTransaction
                Component: org.jboss.seam.transaction.synchronizations, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.transaction.EjbSynchronizations, JNDI: java:comp/env/soov/EjbSynchronizations/local
                Component: org.jboss.seam.transaction.transaction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
                Component: org.jboss.seam.ui.EntityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.EntityConverter
                Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.EntityConverterStore
                Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
                Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
                Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
                Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
                Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
                Component: org.jboss.seam.web.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.IsUserInRole
                Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
                Component: org.jboss.seam.web.parameters, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.Parameters
                Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
                Component: org.jboss.seam.web.servletContexts, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.web.ServletContexts
                Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session
                Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
                Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: java:comp/env/soov/RegisterAction/local
                Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
                starting up: entityManagerFactory
                JNDI InitialContext properties:{java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
                Using datasource: jdbc/soov
                RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
                With the Partitioning, OLAP and Data Mining options
                JDBC driver: Oracle JDBC driver, version: 11.1.0.6.0-Production+
                Using dialect: org.hibernate.dialect.OracleDialect
                Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
                instantiating TransactionManagerLookup: org.hibernate.transaction.SunONETransactionManagerLookup
                instantiated TransactionManagerLookup
                Automatic flush during beforeCompletion(): disabled
                Automatic session close at end of transaction: disabled
                JDBC batch size: 15
                JDBC batch updates for versioned data: disabled
                Scrollable result sets: enabled
                JDBC3 getGeneratedKeys(): disabled
                Connection release mode: auto
                Default batch fetch size: 1
                Generate SQL with comments: disabled
                Order SQL updates by primary key: disabled
                Order SQL inserts for batching: disabled
                Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                Using ASTQueryTranslatorFactory
                Query language substitutions: {}
                JPA-QL strict compliance: enabled
                Second-level cache: enabled
                Query cache: disabled
                Cache provider: org.hibernate.cache.HashtableCacheProvider
                Optimize cache for minimal puts: disabled
                Structured second-level cache entries: disabled
                Echoing all SQL to stdout
                Statistics: disabled
                Deleted entity synthetic identifier rollback: disabled
                Default entity-mode: pojo
                Named query checking : enabled
                building session factory
                Not binding factory to JNDI, no JNDI name configured
                JNDI InitialContext properties:{java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
                starting up: org.jboss.seam.ui.graphicImage.graphicImageResource
                starting up: org.jboss.seam.ui.resource.styleResource
                starting up: org.jboss.seam.ui.resource.webResource
                done initializing Seam
                Initializing filter: org.jboss.seam.web.redirectFilter
                Initializing filter: org.jboss.seam.web.exceptionFilter
                Initializing filter: org.jboss.seam.web.multipartFilter
                Initializing filter: org.jboss.seam.debug.hotDeployFilter
                starting up: org.jboss.seam.security.identity
                starting up: org.jboss.seam.web.session
                Seam environment detected
                Problem in renderResponse: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
                javax.el.ELException: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
                 at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50)
                 at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:581)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:320)
                 at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:156)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                 at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
                 at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
                 at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:146)
                 at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
                 at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
                 at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48)
                 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
                 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
                 at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
                 at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
                 at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:117)
                 at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:37)
                 at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
                 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
                 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:76)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
                 at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                 at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
                 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                 at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
                 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
                 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
                 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
                 at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
                 at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
                 at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
                 at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
                 at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
                 at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
                 at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
                 at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
                Caused by: javax.persistence.PersistenceException: org.hibernate.MappingException: Named query not known: lamp
                 at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
                 at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:107)
                 at org.jboss.seam.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:44)
                 at ee.soov.resource.MessageResourceLoader$1.handleGetObject(MessageResourceLoader.java:45)
                 at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
                 at org.jboss.seam.core.SeamResourceBundle.handleGetObject(SeamResourceBundle.java:102)
                 at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
                 at java.util.ResourceBundle.getString(ResourceBundle.java:346)
                 at org.jboss.seam.international.Messages$1.get(Messages.java:56)
                 at org.jboss.seam.international.Messages$1.get(Messages.java:42)
                 at javax.el.MapELResolver.getValue(MapELResolver.java:164)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                 at org.jboss.el.parser.AstBracketSuffix.getValue(AstBracketSuffix.java:59)
                 at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                 at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
                 at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
                 at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
                 ... 77 more
                Caused by: org.hibernate.MappingException: Named query not known: lamp
                 at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)
                 at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
                 at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:104)
                 ... 94 more
                executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@19106ba) threw exception
                javax.faces.FacesException: Problem in renderResponse: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
                 at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:332)
                 at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:156)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                 at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
                 at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
                 at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:146)
                 at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
                 at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
                 at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48)
                 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
                 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
                 at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
                 at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
                 at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:117)
                 at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:37)
                 at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
                 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
                 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:76)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
                 at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                 at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
                 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                 at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
                 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
                 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
                 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
                 at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
                 at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
                 at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
                 at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
                 at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
                 at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
                 at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
                 at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
                Caused by: javax.el.ELException: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
                 at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50)
                 at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:581)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588)
                 at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:320)
                 ... 63 more
                Caused by: javax.persistence.PersistenceException: org.hibernate.MappingException: Named query not known: lamp
                 at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
                 at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:107)
                 at org.jboss.seam.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:44)
                 at ee.soov.resource.MessageResourceLoader$1.handleGetObject(MessageResourceLoader.java:45)
                 at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
                 at org.jboss.seam.core.SeamResourceBundle.handleGetObject(SeamResourceBundle.java:102)
                 at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
                 at java.util.ResourceBundle.getString(ResourceBundle.java:346)
                 at org.jboss.seam.international.Messages$1.get(Messages.java:56)
                 at org.jboss.seam.international.Messages$1.get(Messages.java:42)
                 at javax.el.MapELResolver.getValue(MapELResolver.java:164)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                 at org.jboss.el.parser.AstBracketSuffix.getValue(AstBracketSuffix.java:59)
                 at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                 at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
                 at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
                 at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
                 ... 77 more
                Caused by: org.hibernate.MappingException: Named query not known: lamp
                 at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)
                 at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
                 at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:104)
                 ... 94 more
                handling uncaught exception
                javax.faces.FacesException: Problem in renderResponse: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp
                 at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:332)
                 at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:156)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                 at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
                 at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
                 at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:146)
                 at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
                 at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
                 at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48)
                 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
                 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
                 at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
                 at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
                 at com.icesoft.faces.webapp.h


                • 5. Re: NamedQuery not known in Component
                  mirko27

                  any ideas on this one?

                  • 6. Re: NamedQuery not known in Component
                    pmuir

                    Take it to the hibernate forums - its not caused by Seam afaics.

                    • 7. Re: NamedQuery not known in Component
                      mirko27

                      I did some tests and found out that we we`re accidently using @PersistenceContext to inject entitymanager at the time of testing. So Injection entitymanager from EJB-s also give same results - no createQuery or createNameDQuery functionaility work. So therefore seam is not setting up my entitymanager correctly.
                      So the question raises... what is wrong in my EAR deployment on glassfish? I have copied files components.xml and persistence.xml here, information should be sufficient. Any suggestions appreciated.

                      • 8. Re: NamedQuery not known in Component
                        mirko27

                        persistence.xml inside ejb.jar

                        <?xml version="1.0" encoding="UTF-8"?>
                        <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="soovPU" transaction-type="JTA">
                         <provider>org.hibernate.ejb.HibernatePersistence</provider>
                         <jta-data-source>jdbc/soov</jta-data-source>
                         <exclude-unlisted-classes>false</exclude-unlisted-classes>
                         <properties>
                         <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/>
                         <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.SunONETransactionManagerLookup"/>
                         <property name="hibernate.show_sql" value="true"/>
                         <property name="hibernate.format_sql" value="true"/>
                         <property name="hibernate.hibernate.max_fetch_depth" value="0"/>
                         <property name="hibernate.cache.provider_class"
                         value="org.hibernate.cache.TreeCacheProvider"/>
                         </properties>
                         </persistence-unit>
                        </persistence>
                        


                        • 9. Re: NamedQuery not known in Component
                          mirko27

                          Isn`t the persistence unit available to web module from ejb module? Any assistance would be great.

                          • 10. Re: NamedQuery not known in Component
                            mirko27

                            After some more testing I found out something wierd. Native queries are working, they work for right database.

                            • 11. Re: NamedQuery not known in Component
                              pmuir

                              I don't understand why you are doing this in the web module?

                              • 12. Re: NamedQuery not known in Component
                                sahoo

                                There is a tool called verifier in GlassFish bin directory. Can you use it to verify your ear file? You can run it as shown below:

                                $GlassFishHOME/bin/verifier path/to/your/ear

                                It produces a .txt file which can help you in debugging persistence unit visbility.

                                Thanks,
                                Sahoo

                                • 13. Re: NamedQuery not known in Component
                                  mirko27

                                  I got it working. It was hibernate bug afterall.
                                  <exclude-unlisted-classes>false was causing the triouble.
                                  After we removed it everything worked out smoothly.
                                  Thank you all.
                                  Btw. about glassfish EAR deployment example, all you have to do are:
                                  - create separate entites.jar with persistence.xml
                                  - put persistence-unit-ref`s into web.xml