1 Reply Latest reply on Oct 1, 2001 10:06 PM by hstech

    NameNotFoundException: env not bound

    achoy

      When I tried to deploy some EJB classes in JBoss, it gives me the following error message:
      *************************
      [Default]
      javax.naming.NameNotFoundException: env not bound
      *************************
      I used lookup in a few places in my code to look for another EJB, and they should be in the namespace of java:comp/env/ejb. I'm also using jboss.xml to over-ride the JNDI name, but it still doesn't work.

      I also got the following error messages after the previous one mentioned above ...... does anyone have any clue what it means?
      Please note that I've used "deploytool" to deploy to J2EE environment, and it worked over there.
      *************************
      [Verifier]
      Bean : QuestionBean
      Method : public abstract QuestionRem findByPrimaryKey(String) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.

      [Verifier]
      Bean : QuestionBean
      Method : public abstract Enumeration findQuestionsForVote(String) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.

      [Verifier]
      Bean : QuestionBean
      Method : public abstract Enumeration findQuestionsForVote(String, boolean) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.

      [Verifier]
      Bean : OptionBean
      Method : public abstract Enumeration findOptionsForQuestion(String) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.

      [Verifier]
      Bean : OptionBean
      Method : public abstract OptionRem findByPrimaryKey(String) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.

      [Verifier]
      Bean : DomainsBean
      Method : public abstract DomainsRem findByPrimaryKey(String) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.

      [Verifier]
      Bean : DomainsBean
      Method : public abstract Enumeration findByTypeAndOrg(String, String) throws RemoteException
      Section: 9.2.8
      Warning: The throws clause of a finder method must include the javax.ejb.FinderException.
      *************************