7 Replies Latest reply on Oct 22, 2004 4:17 PM by sung35

    Error after login on Duke´s  Bank

    lfalcao

      After I have deployed the Duke's Bank Example, I pointed the browser to the url http://localhost:8080/bank/main, and the application login page appeared. I filled the form with the ID of 200 and the password j2ee. Then the following error occurs:

      Your request cannot be completed. The server got the following error:
      javax.servlet.jsp.JspTagException: javax.servlet.jsp.el.ELException: An error occurred while getting property "accounts" from an instance of class com.sun.ebank.web.CustomerBean

      What is happening?

      Thanks for advice.

        • 1. Re: Error after login on Duke´s  Bank
          sung35

          Hi, I am trying to deploy Duke's Bank app. I've followed the Getting Started with JBoss 4.0 guide, but when I try to compile using ant -f jboss-build.xml compile on WinXP
          I get following output:

          Buildfile: ..\..\j2eetutorial14\examples\bank\jboss-build.xml
          
          prepare:
          
          compile:
           [javac] Compiling 56 source files to D:\ihk\game_design\j2eetutorial14\examples\bank\build
          
          BUILD FAILED
          D:\ihk\game_design\j2eetutorial14\examples\bank\jboss-build.xml:49: D:\ihk\game_design\j2eetutorial14\examples\bank${jboss.home}\client not found.


          I have also point jboss.home to my installation directory of JBoss in build.properties file:

          # Set the path to the JBoss directory containing the JBoss application server
          # (This is the one containing directories like "bin", "client" etc.)
          
          jboss.home=d:/ihk/jboss-4.0.0
          
          #d:/ihk/jboss-4.0.0
          # Set the path to the JBoss server environment. For 3.2.x it is under JBoss Home
          # in the server directory either "default" or "all"
          #jboss.server=${jboss.home}
          
          jboss.server=${jboss.home}/server/default
          
          jboss.deploy.dir=${jboss.server}/deploy
          
          # Set the path to the servlet archive
          servlet.jar=${jboss.server}/lib/javax.servlet.jar
          #servlet.jar=${jboss.home}/tomcat-4.1.x/common/lib/servlet.jar


          What client should I point and where? Does anybody know?

          • 2. Re: Error after login on Duke´s  Bank
            lfalcao

            I restarted JBoss Server, and now the error is not occurring, but the pages of the Duke´s Bank website isn´t showing any data.

            • 3. Re: Error after login on Duke´s  Bank
              aironyiu

              Hi:
              I have the similar problems before. However, after I shutdown and restarted several times, things back to normal.

              • 4. Re: Error after login on Duke´s  Bank
                tomb_fish

                Hi, I am trying to deploy Duke's Bank app. I've followed the Getting Started with JBoss 4.0 guide, but when I try to compile using ant -f jboss-build.xml compile on WinXP
                I get following output:

                Buildfile: ..\..\j2eetutorial14\examples\bank\jboss-build.xml
                
                prepare:
                
                compile:
                 [javac] Compiling 56 source files to D:\ihk\game_design\j2eetutorial14\examples\bank\build
                
                BUILD FAILED
                D:\ihk\game_design\j2eetutorial14\examples\bank\jboss-build.xml:49: D:\ihk\game_design\j2eetutorial14\examples\bank${jboss.home}\client not found.


                I have also point jboss.home to my installation directory of JBoss in build.properties file:

                # Set the path to the JBoss directory containing the JBoss application server
                # (This is the one containing directories like "bin", "client" etc.)
                
                jboss.home=d:/ihk/jboss-4.0.0
                
                #d:/ihk/jboss-4.0.0
                # Set the path to the JBoss server environment. For 3.2.x it is under JBoss Home
                # in the server directory either "default" or "all"
                #jboss.server=${jboss.home}
                
                jboss.server=${jboss.home}/server/default
                
                jboss.deploy.dir=${jboss.server}/deploy
                
                # Set the path to the servlet archive
                servlet.jar=${jboss.server}/lib/javax.servlet.jar
                #servlet.jar=${jboss.home}/tomcat-4.1.x/common/lib/servlet.jar


                What client should I point and where? Does anybody know?

                • 5. Re: Error after login on Duke´s  Bank
                  wy_zhu

                  I had the same problem. The root cause for the problem is still unknown. Any idea about restarting could have solved the problem? This is not working for me.

                  • 6. Re: Error after login on Duke´s  Bank
                    alchemista

                    I'm having the same problem. I added the security domain information, and then login works (it rejects if I've used a bad password, and lets me in if I use a correct password).

                    However, once I login with the correct password, I get the same error that the poster mentioned.

                    The stacktrace from the server says:

                    "Authentication exception, principal=null" which causes a SecurityException.

                    • 7. Re: Error after login on Duke´s  Bank
                      abue

                      I checked the console message and it catches a NamingNotFoundException for more detail it says:
                      DefaultDS not bound.
                      It must be interrupted at the method ctx.lookup().
                      And it should be JNDI's error.
                      But I don't know how to solve it .
                      Let's disscuss together.