1 Reply Latest reply on Jan 26, 2005 10:42 AM by Gyounghwa Kim

    Problem in running Duke's Bank Application

    Gunjan Gupta Newbie

      I have already posted this in the getting started forum. I did not get any reply over there so I am posting it in this forum as well.

      I am able to deploy the Duke bank application. The login screen of the page is opening. But when I try to logon the application fails with 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

      I am using jboss 4.0.1 with java 1.4.1 on WinXP SP2

      Thanks in advance.

      The lserver logs are :-



      2005-01-22 17:02:47,056 INFO [STDOUT] Debug: CustomerControllerBean ejbCreate

      2005-01-22 17:02:47,066 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error in method: public abstract com.sun.ebank.ejb.customer.CustomerController com.sun.ebank.ejb.customer.CustomerControllerHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException

      java.lang.NoClassDefFoundError: $Proxy77

      at sun.reflect.GeneratedSerializationConstructorAccessor72.newInstance(Unknown Source)

      at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))

      at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:831)

      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1654)

      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)

      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:347)

      at java.rmi.MarshalledObject.get(MarshalledObject.java:146)

      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:51)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:566)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)

      at javax.naming.InitialContext.lookup(InitialContext.java:360)

      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:993)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:658)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)

      at javax.naming.InitialContext.lookup(InitialContext.java:360)

      at com.sun.ebank.util.EJBGetter.getCustomerHome(EJBGetter.java:66)

      at com.sun.ebank.ejb.customer.CustomerControllerBean.ejbCreate(CustomerControllerBean.java:278)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

      at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

      at org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:264)

      at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:323)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

      at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)

      at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:535)

      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:101)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)

      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:153)

      at org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:56)

      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:128)

      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)

      at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)

      at org.jboss.ejb.Container.invoke(Container.java:891)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

      at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java(Compiled Code))

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))

      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)

      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)

      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:115)

      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:101)

      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)

      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)

      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)

      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)

      at $Proxy76.create(Unknown Source)

      at com.sun.ebank.web.BeanManager.(BeanManager.java:53)

      at com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:47)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

      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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

      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:568)

      2005-01-22 17:02:47,076 INFO [STDOUT] Debug: Couldn't create customer bean.Unexpected Error; nested exception is:
      java.lang.NoClassDefFoundError: $Proxy77

        • 1. Re: Problem in running Duke's Bank Application
          Gyounghwa Kim Newbie

          I'm going through the Getting Started Documentation myself and I got it compiled. You have to download Duke's Bank Application code from sun first, and then you have to add more codes from Jboss Getting Started Documentation. Then you won't have class not found exceptions.

          I got it compiled and could run the standalone application from command line, but I couldn't make it work on the web browser. It generates 404 file not found error. If you make it work, would you please let me know how you did it?