7 Replies Latest reply on Oct 17, 2006 10:17 AM by Peter Johnson

    Does anyone go through the Duke's Bank example in the Gettin

    Dan Cheng Newbie

      I downloaded the jbossj2ee-src.zip
      but seems under the "examples\bank\src\com\jboss\ebank", there is only web subdirectory there and 4 additional java files

      In the original J@EE tutorial, there are like
      "j2eetutorial14\examples\bank\src\com\sun\ebank"
      and three more subdirectories under ebank other than web

      I wonder how we should add these additional jboss files to the new EAR.

      I cannot get through the example
      Seems some EJB cannot be found

      Thanks!

        • 2. Re: Does anyone go through the Duke's Bank example in the Ge
          Dan Cheng Newbie

          hello, thanks for replying
          I followed the instructions in the Guide exactly
          But seems the AccountControl EJB is missing when I deploy the application
          I cannot retrieve the transactions when I click into an account.

          Any hints to solve are appreciated! Thanks!

          • 3. Re: Does anyone go through the Duke's Bank example in the Ge
            Dan Cheng Newbie

            FYI, the error message from the jboss console is as follows:

            2006-09-20 10:55:10,875 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[200]
            2006-09-20 10:55:10,891 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[200]
            2006-09-20 10:55:10,937 ERROR [STDERR] Debug: Creating bean manager.


            That's when I log in using userID 200 and pwd j2ee.

            Then when I click the Account List, I can see the account, but when I click one of the account, the transactions associated with the account cannot be seen.

            Thanks!

            • 4. More info about the error message I got when I go to the ban
              Dan Cheng Newbie

              11:55:22,765 ERROR [STDERR] Debug: Creating bean manager.
              11:55:22,890 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
              11:55:22,921 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
              11:55:22,952 ERROR [STDERR] Debug: TxControllerBean ejbCreate
              11:55:22,999 ERROR [STDERR] Debug: /main
              11:55:22,999 ERROR [STDERR] Debug: Forwarding to template.
              11:55:24,531 ERROR [STDERR] Debug: CustomerControllerBean ejbCreate
              11:55:24,546 ERROR [STDERR] Debug: AccountControllerBean ejbCreate
              11:55:24,562 ERROR [STDERR] Debug: TxControllerBean ejbCreate
              11:55:24,624 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
              11:55:24,656 ERROR [STDERR] Debug: CustomerBean setEntityContext
              11:55:24,671 ERROR [STDERR] Debug: CustomerBean ejbLoad
              11:55:24,702 ERROR [STDERR] Debug: AccountBean setEntityContext
              11:55:24,702 ERROR [STDERR] Debug: AccountBean ejbActivate
              11:55:24,702 ERROR [STDERR] Debug: AccountBean ejbLoad
              11:55:24,702 ERROR [STDERR] Debug: AccountBean setEntityContext
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbActivate
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbLoad
              11:55:24,718 ERROR [STDERR] Debug: AccountBean setEntityContext
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbActivate
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbLoad
              11:55:24,718 ERROR [STDERR] Debug: AccountBean setEntityContext
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbActivate
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbLoad
              11:55:24,718 ERROR [STDERR] Debug: CustomerBean ejbStore
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbStore
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbStore
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbStore
              11:55:24,718 ERROR [STDERR] Debug: AccountBean ejbStore

              • 5. Re: Does anyone go through the Duke's Bank example in the Ge
                Nicolas Newbie

                I've got exactly the same problem and I am stuck :-/
                Any help would be appreciated ;-)

                (Running JBOSS 4.0.4 GA with first patch)

                • 6. Re: Does anyone go through the Duke's Bank example in the Ge
                  Nicolas Newbie

                   

                  "psbase" wrote:
                  I've got exactly the same problem and I am stuck :-/
                  Any help would be appreciated ;-)

                  (Running JBOSS 4.0.4 GA with first patch)


                  I don't know how I did, but the Problem is solved now. (probably restarted jboss)

                  Still very confusing is: In the Logs I see "DEBUG" Messages from the application, but "ERROR"-messages from the Jboss-Logging
                  like this:
                  06:16:37,297 ERROR [STDERR] Debug: /accountList


                  anyway looks good now. thanx

                  • 7. Re: Does anyone go through the Duke's Bank example in the Ge
                    Peter Johnson Master

                    The output such as:

                    06:16:37,297 ERROR [STDERR] Debug: /accountList

                    If you look at the code, it writes logging text to stderr, which shows up as a error output when it is trapped by log4j. This is pretty lame, if you ask me, but I think the code's authors (Sun Microsystems) did not want to include any third-party libraries like log4j due to licensing issues.