6 Replies Latest reply on Nov 20, 2007 7:30 AM by bentabol

    Duke's Bank problem

    jposnersails

      I was able to exectue each of the steps outlined in the getting started guide for dukes bank without a single warning...that is until deployment.
      I can ignure the warnings, I suppose. But ultimately, the application fails to load.

      Any advice would be appreciated. I am using 4.0.5.GA, JDK 1.5.11, WinXP

      Once deployed, I got the following dump:

      21:15:22,203 INFO [EARDeployer] Init J2EE application: file:/C:/JBoss/jboss-4.0.5.GA/server/default/deploy/JBossDukesBank.ear
      21:15:23,421 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.2
      Warning: The class must be defined as public and must not be abstract.

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.5
      Warning: Every entity bean must define the ejbFindByPrimaryKey method.

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
      Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerHome': No ClassLoaders found for: com.sun.ebank.ejb.customer.CustomerHome

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
      Info : Class not found on 'com.sun.ebank.ejb.customer.Customer': No ClassLoaders found for: com.sun.ebank.ejb.customer.Customer

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.1
      Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 12.2.2
      Warning: The class must be defined as public and must not be abstract.

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 12.2.5
      Warning: Every entity bean must define the ejbFindByPrimaryKey method.

      21:15:23,437 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
      Info : Class not found on 'com.sun.ebank.ejb.account.AccountHome': No ClassLoaders found for: com.sun.ebank.ejb.account.AccountHome

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
      Info : Class not found on 'com.sun.ebank.ejb.account.Account': No ClassLoaders found for: com.sun.ebank.ejb.account.Account

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 12.2.1
      Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 12.2.2
      Warning: The class must be defined as public and must not be abstract.

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 12.2.5
      Warning: Every entity bean must define the ejbFindByPrimaryKey method.

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
      Info : Class not found on 'com.sun.ebank.ejb.tx.TxHome': No ClassLoaders found for: com.sun.ebank.ejb.tx.TxHome

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
      Info : Class not found on 'com.sun.ebank.ejb.tx.Tx': No ClassLoaders found for: com.sun.ebank.ejb.tx.Tx

      21:15:23,453 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 12.2.1
      Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

      21:15:23,843 ERROR [MainDeployer] Could not create deployment: file:/C:/JBoss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp34154JBossDukesBank.ear-contents/bank-ejb.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      <CLIP....the rest of the stack dump>

        • 1. Re: Duke's Bank problem
          jposnersails

          NEVERMIND....I found the other explanations of this problem.

          SOrry for the bother.

          • 2. Re: Duke's Bank problem
            shuixiangz

            dear jposnersails,

            I meet the same problem, could you tell me how to solve it?

            • 3. Re: Duke's Bank problem
              jaikiran

              Might have to do with the version of the tutorial, you are using. I guess you are using the latest version " J2EE 1.4 Tutorial Update 7 (for Sun Java System Application Server Platform Edition 8.2) January 27, 2006 ". This version does not deploy on JBoss 4.0.x (ends up with bean verifier errors). The version that works for JBoss 4.0.x is " J2EE 1.4 Tutorial Update 2 (for Sun Java System Application Server Platform Edition 8 Update 1) June 22, 2004 " which can be found at http://java.sun.com/j2ee/1.4/previous_downloads.html . See if this version works for you.

              • 4. Re: Duke's Bank problem
                albert.chen

                Hi I'm wondering if the tutorial works in jboss-4.2.1 ? I encounter compilation problem while compiling the J2EE 1.4 Tutorial Update 7

                • 5. Re: Duke's Bank problem
                  albert.chen

                  Buildfile: jboss-build.xml

                  prepare:

                  compile:
                  [javac] Compiling 61 source files to /opt/Source/j2eetutorial14/examples/bank/build
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/jboss/ebank/WSClient.java:16: cannot find symbol
                  [javac] symbol : class ServiceImpl
                  [javac] location: package org.jboss.ws.jaxrpc
                  [javac] import org.jboss.ws.jaxrpc.ServiceImpl;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/DefinitionTag.java:31: package javax.servlet.jsp do
                  es not exist
                  [javac] import javax.servlet.jsp.JspTagException;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/DefinitionTag.java:32: package javax.servlet.jsp do
                  es not exist
                  [javac] import javax.servlet.jsp.PageContext;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/DefinitionTag.java:33: package javax.servlet.jsp.ta
                  gext does not exist
                  [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/DefinitionTag.java:37: cannot find symbol
                  [javac] symbol: class SimpleTagSupport
                  [javac] public class DefinitionTag extends SimpleTagSupport {
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/InsertTag.java:32: package javax.servlet.jsp does n
                  ot exist
                  [javac] import javax.servlet.jsp.JspTagException;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/InsertTag.java:33: package javax.servlet.jsp does n
                  ot exist
                  [javac] import javax.servlet.jsp.PageContext;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/InsertTag.java:34: package javax.servlet.jsp.tagext
                  does not exist
                  [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/InsertTag.java:38: cannot find symbol
                  [javac] symbol: class SimpleTagSupport
                  [javac] public class InsertTag extends SimpleTagSupport {
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/ParameterTag.java:31: package javax.servlet.jsp.tag
                  ext does not exist
                  [javac] import javax.servlet.jsp.tagext.*;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/ParameterTag.java:32: package javax.servlet.jsp doe
                  s not exist
                  [javac] import javax.servlet.jsp.PageContext;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/ParameterTag.java:36: cannot find symbol
                  [javac] symbol: class SimpleTagSupport
                  [javac] public class ParameterTag extends SimpleTagSupport {
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/ScreenTag.java:31: package javax.servlet.jsp.tagext
                  does not exist
                  [javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/ScreenTag.java:32: package javax.servlet.jsp does n
                  ot exist
                  [javac] import javax.servlet.jsp.PageContext;
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/ScreenTag.java:36: cannot find symbol
                  [javac] symbol: class SimpleTagSupport
                  [javac] public class ScreenTag extends SimpleTagSupport {
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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()).getScreens();
                  [javac] ^
                  [javac] /opt/Source/j2eetutorial14/examples/bank/src/com/sun/ebank/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: /opt/Source/j2eetutorial14/examples/bank/src/com/jboss/ebank/WSClient.java uses or overrides a deprecated API.
                  [javac] Note: Recompile with -Xlint:deprecation for details.
                  [javac] Note: Some input files use unchecked or unsafe operations.
                  [javac] Note: Recompile with -Xlint:unchecked for details.
                  [javac] 27 errors

                  BUILD FAILED
                  /opt/Source/j2eetutorial14/examples/bank/jboss-build.xml:44: Compile failed; see the compiler error output for details.

                  • 6. Re: Duke's Bank problem
                    bentabol

                    I also had some of your problems. There are some files missing. Try copying javax.servlet.jsp.jar, jboss-j2ee.jar and servlet-api.jar to your compile path. You can find those archives in the gettingstarted.zip which you can download from the jboss web.