having problems deploying a simple finder method ... 

the xdoclet entry:

* @ejb.finder
*       query="SELECT OBJECT(o) FROM User AS o"
*       signature="java.util.Collection findAll()"

the jbosscmp-jdbc entry

 
            <query-method>
               <method-name>findAll</method-name>
               <method-params>
               </method-params>
            </query-method>
                        <jboss-ql><![CDATA[SELECT OBJECT(o) FROM User AS 
o]]></jboss-ql>
             

the ejb-jar entry

            <query-method>
               <method-name>findAll</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(o) FROM User AS o]]></ejb-ql>
          

the following exception appears while deploying the bean ... 

12:02:22,331 INFO  [EjbModule] Deploying User
12:02:23,296 ERROR [EntityContainer] Starting failed 
jboss.j2ee:jndiName=User,service=EJB
java.lang.NullPointerException
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.getInstance(JDBCQueryManager.java:88)
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.(JDBCJBossQLQuery.java:39)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createJBossQLQuery(JDBCCommandFactory.java:72)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:254)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:498)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)


thanks for your help

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to