1 Reply Latest reply on Sep 16, 2004 9:37 AM by ad asdf

    I am unable to get the finder methods in jboss

    ad asdf Newbie

      I am unable to get the finder methods to work. My client hangs when calling the finder methods of my CMP bean with jboss

      here i am providing deployment descriptors file.......


      ejb-jar.xml


      Stores UserName/Password Pairs
      <ejb-name>AuthenticationDataBean</ejb-name>
      com.hyperlevel.ejb.registration.AuthenticationDataHome
      com.hyperlevel.ejb.registration.AuthenticationData
      <ejb-class>com.hyperlevel.ejb.registration.AuthenticationDataBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>SAuthenticationDataBean</abstract-schema-name>
      <cmp-field><field-name>userName</field-name></cmp-field>
      <cmp-field><field-name>pass</field-name></cmp-field>
      <primkey-field>userName</primkey-field>


      jboss.xml

      <ejb-name>AuthenticationDataBean</ejb-name>
      <jndi-name>ejb-AuthenticationData</jndi-name>


      jbosscmp-jdbc.xml


      java:/DemoSource
      <datasource-mapping>MS SQLSERVER2000</datasource-mapping>
      <create-table>false</create-table>
      <remove-table>false</remove-table>
      <pk-constraint>true</pk-constraint>
      <preferred-relation-mapping>foreign-key</preferred-relation-mapping>




      <enterprise-beans>



      <ejb-name>AuthenticationDataBean</ejb-name>
      <table-name>playerauthenticationdata</table-name>
      <cmp-field><field-name>userName</field-name><column-name>USER_C_NAME</column-name></cmp-field>
      <cmp-field><field-name>pass</field-name><column-name>USER_C_PASSWD</column-name></cmp-field>




      any solution.........
      pla help me

        • 1. Re: I am unable to get the finder methods in jboss
          ad asdf Newbie

          hai this is bill78b again

          here i am again posting the Exception

          i am able to insert the records .............

          but when i find the methods means it is going to give me this Exception


          Exception in thread "main" javax.ejb.FinderException: Unknown query: public abstract emp.Emplo
          yee emp.EmployeeHome.findByPrimaryKey(java.lang.Integer) throws java.rmi.RemoteException,javax
          .ejb.FinderException
          at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.jav
          a:245)
          at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
          at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
          at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:
          135)
          at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
          at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
          at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
          at $Proxy0.findByPrimaryKey(Unknown Source)
          at EmployeeSalInsertClient.main(EmployeeSalInsertClient.java:34)



          any solution.............