0 Replies Latest reply on Jan 18, 2005 12:08 PM by adrianob

    Error deploying application

    adrianob

      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?
      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