5 Replies Latest reply on Apr 21, 2005 8:13 AM by Norman Richards

    Duke's bank application doesn't start

    Catalin Morosan Newbie

      Hi.
      I've done everything in the start guide for JBoss 1.4 but when I try to run http://localhost:8080/bank/main it gives me a "http status 404".
      I hava jdk1.5 and am using j2eetutorial1.4. All the builds were succesfull and I didn't get any errors while building.
      I've searched the forum for a solution but didn't find one.
      Does anyone know what's the problem?

        • 1. Re: Duke's bank application doesn't start
          Alpha Man Newbie

          OK I am in a similar boat as cercetasu. I have the latest version of JBoss...4.0.1SP1 with JAVA_HOME set to JDK 1.5. Unlike cercetasu, I am using j2eetuorial1.3 as this is what was mentioned in thr getting started tutorial.

          Builds are fine. Database creation,insertion, update, list are also fine. I can even see the start page of the web app http://localhost:8080/bank/main.

          I enter 200 and j2ee and I see an error... The following is thrown in the console of AppServer. It seems like I am unable to get a connection or connection cannot be registered. I have made sure more than once that the connection-url in the datasource xml is set to the value specified in the tutorial. Any suggestions here would be very much appreciated.


          17:28:48,714 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourse
          lf: org.jboss.resource.adapter.jdbc.WrappedConnection@1ffccd6
          java.lang.Exception: STACKTRACE
          at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:320)
          at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:477)
          at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:838)
          at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
          at com.sun.ebank.ejb.account.AccountBean.makeConnection(Unknown Source)
          at com.sun.ebank.ejb.account.AccountBean.selectByCustomerId(Unknown Source)
          at com.sun.ebank.ejb.account.AccountBean.ejbFindByCustomerId(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          ......................................................
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
          at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
          at java.lang.Thread.run(Thread.java:595)
          17:28:48,724 INFO [STDOUT] Debug: AccountBean unsetEntityContext
          17:28:48,724 ERROR [LogInterceptor] EJBException in method: public abstract java.util.Collection com.sun.ebank.ejb.account.AccountHome.findByCustomerId(java.lang.String) throws javax.ejb.FinderExcepti
          on,java.rmi.RemoteException:
          javax.ejb.EJBException: ejbFindByCustomerId Table not found: CUSTOMER_ACCOUNT_XREF in statement [select account_id from customer_account_xref where customer_id = ? ]
          at com.sun.ebank.ejb.account.AccountBean.ejbFindByCustomerId(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          ..............................................................
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
          at java.lang.Thread.run(Thread.java:595)
          17:28:48,744 ERROR [Engine] ApplicationDispatcher[/bank] Servlet.service() for servlet jsp threw exception
          java.lang.NullPointerException
          at org.apache.jsp.links_jsp._jspService(links_jsp.java:68)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
          .....................................................................
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
          at java.lang.Thread.run(Thread.java:595)


          • 2. Re: Duke's bank application doesn't start
            Alpha Man Newbie

            Was anybody able to get the Duke Bank's application running successfully on JBoss 4.0?

            Thanks,

            Praveen.

            • 3. Re: Duke's bank application doesn't start
              Norman Richards Master

              I have run it. :)

              The latest getting started guide available at docs.jboss.org works just fine with JBoss 4.0.1 and J2EE Tutorial 1.4.

              • 4. Re: Duke's bank application doesn't start
                Alpha Man Newbie

                Haa....But the tutorial says to use j2EE tutorial 1.3. Could this be my problem? May be I will try and get back to you.

                Praveen.

                • 5. Re: Duke's bank application doesn't start
                  Norman Richards Master

                  It says that if you are using the Getting Started guide meant for the J2EE 1.3 tutorial, which is probably targeted at the 3.2 branch. If you are using JBoss 4, then use the NEW Getting Started guide which was re-written for the NEW J2EE 1.4 tutorial.