5 Replies Latest reply on Jul 1, 2002 10:23 PM by taiwubrian

    Failed porting to 3.0.0

    taiwubrian

      I've been using 3.0.0alpha since last year without major problems. I decided not to use RC version. I then tried to port my ap from alpha to the formal release version. Unfortunately, I got some errors. I used the new DTD to modify and verify the three XML files: ejb-jar.xml, jbosscmp-jdbc.xml, and jboss.xml.

      I succesfully set up PostgreSQL 7.1.3 under Jboss 3.0.0 as a DataSource. Please help me out. I am attaching the error message here.

      (>>) Warning occured on every bean being deployed.
      Bean : company
      Method : public String ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.

      2002-06-30 04:11:21,042 INFO [org.jboss.ejb.EJBDeployer]
      Bean : company
      Method : public String ejbCreate(String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.

      2002-06-30 04:11:21,043 INFO [org.jboss.ejb.EJBDeployer]
      Bean : company
      Method : public String ejbCreate(CompanyVO)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.

      --------------

      Thanks,

      Brian

        • 1. Re: Failed porting to 3.0.0
          dsundstrom

          The EJB spec requires that all ejbCreate methods delcare that they can throw a CreateException, so just add "throws CreateException" to all of your entities.

          • 2. Re: Failed porting to 3.0.0
            dsundstrom

            The ejb specification requires ejbCreate methods to declare that they can throw a CreateException, so just add "throws CreateException" to your ejbCreate methods and the messages will go away.

            • 3. Re: Failed porting to 3.0.0
              taiwubrian

              It was not the case.I have declared all exceptions. My EJB beans can be deployed on 3.0.0alpha and have been up for three months. . I know that the jbosscmp-jdbc.dtd dramatically changed since 3.0.0RC1 and RC2.I bought the CMP2 document months ago. Are there updates? Where can I find more complicated jbosscmp-jdbc.xml examples? Thanks

              • 4. Re: Failed porting to 3.0.0
                dsundstrom

                These are just warnings, you should be getting other deployment errors.

                The docs were updated on 6.10.2002. If you purchase the docs since then, send flashline an email because you got the old docs. You can find more complicated verions of the jbosscmp-jdbc.xml file in the jboss testsuite. I think the only way to get the test suite is from cvs.

                • 5. Re: Failed porting to 3.0.0
                  taiwubrian

                  Thanks for the info. I checked out the updated docs from flashline. I will read it immediately and try again. You are always helpful.