[jboss-user] [JBoss Seam] - EntityQuery - framework:entity-query not bound

javalars do-not-reply at jboss.com
Fri Mar 30 14:40:01 EDT 2007


In Eclipse, we trying to copy how it is did in dvdstore sample so we can get list of all values in table adding 

  |          <framework:entity-query name="allAtoms"
  |                            ejbql="select a from Atom a"
  |                            order="a.ptSynbol">
  |        <!--  waiting for hibernate issue EJB-277
  |        <framework:hints>
  |            <key>org.hibernate.cacheable</key>
  |            <value>true</value>
  |        </framework:hints>
  |         -->
  |    </framework:entity-query>
to seam-gen eration components.xml but we are braking everything again this night :-((
We want this so it can show list of atoms in a s:selectItems in JSF. Is that terribel ideas or not so terribel?

The prefix "framework" for element "framework:entity-query" is not bound. Nested exception: The prefix "framework" for element "framework:entity-query" is not bound.


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:drools="http://jboss.com/products/seam/drools"
  |             xmlns:security="http://jboss.com/products/seam/security"
  |             xmlns:mail="http://jboss.com/products/seam/mail"
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |             xsi:schemaLocation=
  |                 "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
  |                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd
  |                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
  |                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd
  |                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
  |                  http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd">
  | 
  |    <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
  |      
  |    <core:manager concurrent-request-timeout="500" 
  |                  conversation-timeout="120000" 
  |                  conversation-id-parameter="cid" 
  |                  conversation-is-long-running-parameter="clr"/>    
  |         <!--  waiting for hibernate issue EJB-277
  |         <framework:hints>
  |             <key>org.hibernate.cacheable</key>
  |             <value>true</value>
  |         </framework:hints>
  |          -->
  |     
  |    <core:managed-persistence-context name="entityManager"
  |                               auto-create="true"
  |                persistence-unit-jndi-name="java:/moleculeEntityManagerFactory"/>
  | 
  |    <core:ejb installed="@embeddedEjb@"/>
  |    
  |    <drools:rule-base name="securityRules">
  |        <drools:rule-files>
  |            <value>/security.drl</value>
  |        </drools:rule-files>
  |    </drools:rule-base>
  | 
  |    <security:identity authenticate-method="#{authenticator.authenticate}"
  |                            security-rules="#{securityRules}"/>
  |    
  |    <event type="org.jboss.seam.notLoggedIn">
  |        <action expression="#{redirect.captureCurrentView}"/>
  |    </event>
  |    <event type="org.jboss.seam.postAuthenticate">
  |        <action expression="#{redirect.returnToCapturedView}"/>
  |    </event>
  |    
  |    <mail:mail-session host="localhost" port="2525" username="test" password="test" />
  |         
  |    <!-- For use with jBPM pageflow or process management -->
  |    <!--  
  |    <core:jbpm>
  |       <core:process-definitions></core:process-definitions>
  |       <core:pageflow-definitions></core:pageflow-definitions>
  |    </core:jbpm>
  |    -->
  |          <framework:entity-query name="allAtoms"
  |                            ejbql="select a from Atom a"
  |                            order="a.ptSynbol">
  |        <!--  waiting for hibernate issue EJB-277
  |        <framework:hints>
  |            <key>org.hibernate.cacheable</key>
  |            <value>true</value>
  |        </framework:hints>
  |         -->
  |    </framework:entity-query>
  | </components>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033327#4033327

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033327



More information about the jboss-user mailing list