1 2 3 Previous Next 30 Replies Latest reply: Apr 21, 2008 2:14 AM by Niraj Singh RSS

    Duke's Bank Application Problem

    dominik heller Newbie

      I followed the instructions in the getting started Documentation and everything worked out fine so far, but I can't start the Duke's Bank Application.

      The Database is setup correctly and I also deployed the EAR File.

      The URL http://localhost:8080/bank/main points to an empty page. Has someone encountered the same Problem or does anyone knows an answer?

      THX in advance

        • 1. Re: Duke's Bank Application Problem
          David Wu Newbie

          I couldn't get it to build. The compilation step from the jBoss-build.xml was looking for the client directory under the Java tutorial directory. How did you get past that?

          • 2. Re: Duke's Bank Application Problem
            dominik heller Newbie

            I am not sure if I really understand what your problem is, but did you edit the jboss-build.properties to point to your jboss-as folder? If not then you should do this first...

            • 3. Re: Duke's Bank Application Problem
              dominik heller Newbie

              So here I am again with a new Problem. After the logon I get an Exception from the CustomerBEan:

              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

              --> Do I guess right that I have a problem with my Database Cofigurations? Has anyone encountered a similar problem or has an idea what might went wrong?

              THX in advance

              • 4. Re: Duke's Bank Application Problem
                Paula Bentabol Newbie

                Hello,

                When I try to compile Duke's Bank Application, I obtain the next errors:

                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:31: package javax.servlet.jsp does not exist
                [javac] import javax.servlet.jsp.JspTagException;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:32: package javax.servlet.jsp does not exist
                [javac] import javax.servlet.jsp.PageContext;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:33: package javax.servlet.jsp.tagext does not
                exist
                [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:37: cannot find symbol
                [javac] symbol: class SimpleTagSupport
                [javac] public class DefinitionTag extends SimpleTagSupport {
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:32: package javax.servlet.jsp does not exist
                [javac] import javax.servlet.jsp.JspTagException;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:33: package javax.servlet.jsp does not exist
                [javac] import javax.servlet.jsp.PageContext;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:34: package javax.servlet.jsp.tagext does not exi
                st
                [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:38: cannot find symbol
                [javac] symbol: class SimpleTagSupport
                [javac] public class InsertTag extends SimpleTagSupport {
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:54: cannot find symbol
                [javac] symbol : class JspTagException
                [javac] location: class com.sun.ebank.web.template.InsertTag
                [javac] public void doTag() throws JspTagException {
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ParameterTag.java:31: package javax.servlet.jsp.tagext does not
                exist
                [javac] import javax.servlet.jsp.tagext.*;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ParameterTag.java:32: package javax.servlet.jsp does not exist
                [javac] import javax.servlet.jsp.PageContext;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ParameterTag.java:36: cannot find symbol
                [javac] symbol: class SimpleTagSupport
                [javac] public class ParameterTag extends SimpleTagSupport {
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ScreenTag.java:31: package javax.servlet.jsp.tagext does not exi
                st
                [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ScreenTag.java:32: package javax.servlet.jsp does not exist
                [javac] import javax.servlet.jsp.PageContext;
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ScreenTag.java:36: cannot find symbol
                [javac] symbol: class SimpleTagSupport
                [javac] public class ScreenTag extends SimpleTagSupport {
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:62: cannot find symbol
                [javac] symbol : method getJspBody()
                [javac] location: class com.sun.ebank.web.template.DefinitionTag
                [javac] getJspBody()
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:66: cannot find symbol
                [javac] symbol : class PageContext
                [javac] location: class com.sun.ebank.web.template.DefinitionTag
                [javac] PageContext context = (PageContext) getJspContext();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:66: cannot find symbol
                [javac] symbol : class PageContext
                [javac] location: class com.sun.ebank.web.template.DefinitionTag
                [javac] PageContext context = (PageContext) getJspContext();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\DefinitionTag.java:66: cannot find symbol
                [javac] symbol : method getJspContext()
                [javac] location: class com.sun.ebank.web.template.DefinitionTag
                [javac] PageContext context = (PageContext) getJspContext();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:58: cannot find symbol
                [javac] symbol : class PageContext
                [javac] location: class com.sun.ebank.web.template.InsertTag
                [javac] PageContext context = (PageContext) getJspContext();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:58: cannot find symbol
                [javac] symbol : class PageContext
                [javac] location: class com.sun.ebank.web.template.InsertTag
                [javac] PageContext context = (PageContext) getJspContext();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:58: cannot find symbol
                [javac] symbol : method getJspContext()
                [javac] location: class com.sun.ebank.web.template.InsertTag
                [javac] PageContext context = (PageContext) getJspContext();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\InsertTag.java:92: cannot find symbol
                [javac] symbol : class JspTagException
                [javac] location: class com.sun.ebank.web.template.InsertTag
                [javac] throw new JspTagException(ex.getMessage(), rootCause);
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ParameterTag.java:70: cannot find symbol
                [javac] symbol : method getParent()
                [javac] location: class com.sun.ebank.web.template.ParameterTag
                [javac] ((ScreenTag) getParent()).getParameters();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ScreenTag.java:55: cannot find symbol
                [javac] symbol : method getParent()
                [javac] location: class com.sun.ebank.web.template.ScreenTag
                [javac] HashMap screens = (HashMap) ((DefinitionTag) getParent()).ge
                tScreens();
                [javac] ^
                [javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
                nk\web\template\ScreenTag.java:63: cannot find symbol
                [javac] symbol : method getJspBody()
                [javac] location: class com.sun.ebank.web.template.ScreenTag
                [javac] getJspBody()
                [javac] ^
                [javac] Note: Some input files use unchecked or unsafe operations.
                [javac] Note: Recompile with -Xlint:unchecked for details.
                [javac] 26 errors

                Does anyone know why is this happening?. Could please anyone help me?.

                Thanks in advance.

                • 5. Re: Duke's Bank Application Problem
                  dominik heller Newbie

                  Hi bentabol,
                  I had the same problem at first there are some jar files missing in the lib folder of the server like javax.sevlet.jsp.jar and javax.servlet.jar. You will find them in the getting started exampel which u can downlaod here
                  http://www.redhat.com/docs/manuals/jboss/
                  just copy the jar into the lib folder and try it again

                  hope that helps

                  • 6. Re: Duke's Bank Application Problem
                    Paula Bentabol Newbie

                    Hi odin69,

                    Thank you for your help. I will try that and let you know if it solves the problem.

                    • 7. Re: Duke's Bank Application Problem
                      dominik heller Newbie

                      So now after I finally got started with the duke's bank application I want to build the wasdl file as described in the gettingstarted documentation. But by executing the ant -f jboss-build.xml wsdl I get the message that this target doesn't exist, Has anyone an idea how I can build the wsdl? I am using JBOSS 4.0.5, so I know that I could build a WSDL file manually or with java2wsdl, is there any schema I would have to follow?

                      THX in advance

                      • 8. Re: Duke's Bank Application Problem
                        dominik heller Newbie

                        Ok problem solved, the command is no longer ant -f jboss-build.xml wsdl now it is wstool.

                        My wsdl is build correctly and I am also able to deploy the wole thing, but I can't invoke the wsdl with the browser with the following address

                        http://localhost:8080/bankws-ejb/TellerService?wsdl

                        Any idea someone? THX

                        • 9. Re: Duke's Bank Application Problem
                          dominik heller Newbie

                          So once again the problem is solved, the service endpoint wasn't at http://localhost:8080/bankws-ejb/TellerService?wsdl....

                          If anyone should encounter the same problem look at http://localhost:8080/jbossws/services where you will get a list of all of your SE, copy the address to your client java file and recompile/deploy it. that should do the trick.

                          • 10. Re: Duke's Bank Application Problem
                            Paula Bentabol Newbie

                            Hi odin69,

                            I tried what you told me but I still obtain the same errors when compiling. I don't know what the problem can be...

                            • 11. Re: Duke's Bank Application Problem
                              Paula Bentabol Newbie

                              Hi,

                              It is solved!. I copied also the files: jboss-j2ee.jar and servlet-api.jar and it was built sucessfully!.

                              • 12. Re: Duke's Bank Application Problem
                                dominik heller Newbie

                                Hi bentabol,
                                I am glad to hear about your success, have fun playing...

                                • 13. Re: Duke's Bank Application Problem
                                  Paula Bentabol Newbie

                                  Hi odin69,

                                  Thanks!.

                                  • 14. Re: Duke's Bank Application Problem
                                    Paula Bentabol Newbie

                                    Hello again,

                                    When I try to create the tables with the db-create-table target, by doing: ant -f jboss-build.xml db-create-table, it builds successfully, but I obtain the next error:

                                    [java] SQL Error at line 54: java.sql.SQLException: Table is referenced by
                                    a constraint in table SYS_REF_FK6713A03980734EA4_58 table: BOOKING in statement
                                    [
                                    [java] DROP TABLE customer if exists]

                                    Can anyone help me to solve it?.

                                    Thanks in advance.

                                    1 2 3 Previous Next