0 Replies Latest reply on Jan 24, 2005 1:08 PM by Adriano Bonat

    findAll not found problem

    Adriano Bonat Newbie

      Hello, im trying to deploy a application and there are messages about findAll methods that cant be found. So, in almost all, there is a method findAll in the descriptor and in Home interface of the entities.

      Above follow an example of the output:

      16:15:56,303 INFO [EjbModule] Deploying Endereco
      ---16:15:56,650 INFO [EjbModule] Deploying Estabelecimento
      16:15:56,739 INFO [EjbModule] Deploying Filial
      16:15:56,827 INFO [EjbModule] Deploying Pessoa
      16:15:56,914 INFO [EjbModule] Deploying PessoaFisica
      16:15:56,999 INFO [EjbModule] Deploying PessoaJuridica
      16:15:57,086 INFO [EjbModule] Deploying Telefone
      16:15:57,170 INFO [EjbModule] Deploying Atividade
      16:15:57,252 INFO [EjbModule] Deploying Cep
      16:15:57,337 INFO [EjbModule] Deploying Cidade
      16:15:57,419 INFO [EjbModule] Deploying Contato
      16:15:57,502 INFO [EjbModule] Deploying Estado
      16:15:57,654 INFO [EjbModule] Deploying EstadoCivil
      16:15:57,735 INFO [EjbModule] Deploying NivelInstrucao
      16:15:57,816 INFO [EjbModule] Deploying Pais
      16:15:57,896 INFO [EjbModule] Deploying Profissao
      16:15:58,011 INFO [EjbModule] Deploying TipoContato
      16:15:58,112 INFO [EjbModule] Deploying TipoTelefone
      16:15:58,209 INFO [EjbModule] Deploying ServicoCadPessoa
      16:15:58,342 INFO [EjbModule] Deploying ServicoCadAuxiliaresPessoa
      16:15:59,482 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=local/Endereco,service=EJB
      org.jboss.deployment.DeploymentException: Query method not found: findAll()
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:322)
      [...]

      For example, Endereco dont have findAll method in your descriptor neither in home interface.. why this error?

      Above is the Endereco's part of descriptor:
      [...]

      <display-name>Endereco</display-name>
      <ejb-name>Endereco</ejb-name>
      <local-home>com.sistema.model.ejb.cmp.cadastrodepessoas.interfaces.EnderecoHome</local-home>
      com.sistema.model.ejb.cmp.cadastrodepessoas.interfaces.Endereco
      <ejb-class>com.sistema.model.ejb.cmp.cadastrodepessoas.EnderecoBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Long</prim-key-class>
      <primkey-field>enderecoPK</primkey-field>
      false
      <abstract-schema-name>Endereco</abstract-schema-name>
      <cmp-field>
      <field-name>enderecoPK</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>tipoEndereco</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>bairro</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>rua</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>numeroEnd</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>complemento</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>dataCadastro</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>dataUltimaAtual</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>observacao</field-name>
      </cmp-field>

      [...]

      16:16:08,861 INFO [EJBDeployer] Deployed: file:/usr/local/jboss-3.2.5/server/default/deploy/cadPessoaServer.jar
      16:16:09,916 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      MBeans waiting for other MBeans:
      ObjectName: jboss.j2ee:jndiName=local/Endereco,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: javax.management.MBeanException: org.jboss.deployment.DeploymentException: Query method not found: findAll()
      ObjectName: jboss.j2ee:service=EJB,plugin=pool,jndiName=local/Endereco
      state: CREATED
      I Depend On:
      Depends On Me:
      More closely to the end of deployment there are messages like this:
      [...]

      Why this state FAILED and after CREATED?

      Well, that's all, if i forget some useful information to help then please tell me :)

      Thanks.
      -Adriano