Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Accessing-EJB-SSL Err:javax.naming.NoInitialContextExceptio

  1. #11
    Join Date
    Oct 2005
    Location
    NE,USA
    Posts
    21

    Default HI please get me through this .

    Hi Andreas ,i've put my applicationontext.xml in the classpath and added the throw clause.Now i am getting an error like this in the server side .please guide me.


    Code:

    21:39:35,562 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'EchoServiceEJB'
    21:39:35,593 ERROR [LogInterceptor] EJBException, causedBy:
    org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'echoService' is defined: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [EchoServiceImpl,EchoServiceEJB]; root of BeanFactory hierarchy
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.getBeanDefinition(DefaultListab leBeanFactory.java:356)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getMergedBeanDefinition(AbstractBeanFa ctory.java:583)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:504)
    at spn.EchoServiceEJB.onEjbCreate(EchoServiceEJB.java :34)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.StatelessSessionEnterpriseContext.<i nit>(StatelessSessionEnterpriseContext.java:52)
    at org.jboss.ejb.plugins.StatelessSessionInstancePool .create(StatelessSessionInstancePool.java:61)
    at org.jboss.ejb.plugins.AbstractInstancePool.get(Abs tractInstancePool.java:209)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInte rceptor.invoke(StatelessSessionInstanceInterceptor .java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:107)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:178)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:60)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(S ecurityInterceptor.java:130)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:204)
    at org.jboss.ejb.StatelessSessionContainer.invoke(Sta telessSessionContainer.java:313)
    at org.jboss.ejb.Container.invoke(Container.java:712)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:517)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invok e(JRMPInvoker.java:382)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 48)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:536)
    21:39:35,687 INFO [ContextJndiBeanFactoryLocator] BeanFactoryPath from JNDI is [applicationContext.xml]
    21:39:35,687 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [applicationContext.xml]
    21:39:35,687 INFO [ClassPathXmlApplicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=15911276]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [EchoServiceImpl,EchoServiceEJB]; root of BeanFactory hierarchy
    21:39:35,687 INFO [ClassPathXmlApplicationContext] 2 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=15911276]
    21:39:35,687 INFO [ClassPathXmlApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.StaticMessageS ource: {}]
    21:39:35,687 INFO [ClassPathXmlApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@1e9f5cc]
    21:39:35,687 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [EchoServiceImpl,EchoServiceEJB]; root of BeanFactory hierarchy]
    21:39:35,687 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'EchoServiceImpl'
    21:39:35,703 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'EchoServiceEJB'
    21:39:35,718 ERROR [LogInterceptor] EJBException, causedBy:


    In the client side as

    Code:


    java.lang.reflect.UndeclaredThrowableException
    at $Proxy2.echo(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.remoting.rmi.RmiClientIntercep torUtils.doInvoke(RmiClientInterceptorUtils.java:9 8)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.doInvoke(SimpleRemoteSlsbInvokerIn terceptor.java:75)
    at org.springframework.ejb.access.AbstractRemoteSlsbI nvokerInterceptor.invoke(AbstractRemoteSlsbInvoker Interceptor.java:78)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :144)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:174)
    at $Proxy1.echo(Unknown Source)
    at Executor.main(Executor.java:42)
    Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: EJBException:; nested exception is:
    javax.ejb.EJBException: nested exception is: org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'echoService' is defined: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [EchoServiceImpl,EchoServiceEJB]; root of BeanFactory hierarchy
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:292)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 48)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:536)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unk nown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub. invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerPr oxy.invoke(JRMPInvokerProxy.java:138)
    at org.jboss.invocation.InvokerInterceptor.invoke(Inv okerInterceptor.java:108)
    at org.jboss.proxy.TransactionInterceptor.invoke(Tran sactionInterceptor.java:77)
    at org.jboss.proxy.SecurityInterceptor.invoke(Securit yInterceptor.java:80)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.in voke(StatelessSessionInterceptor.java:111)
    at org.jboss.proxy.ClientContainer.invoke(ClientConta iner.java:76)
    ... 12 more

  2. #12
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    I kindly advise you to consult some documentation about the basics of EJB and Spring. As a starting point, you might have a look here.

    The described application seems to resemble to what you are trying to achieve. Hope it is useful for you.

    Regards,
    Andreas

  3. #13
    Join Date
    Oct 2005
    Location
    NE,USA
    Posts
    21

    Default Thanx Mr.Andreas , I am done with the bean.

    Thanx Mr.Andreas , I am done with the bean.

Similar Threads

  1. Replies: 8
    Last Post: Jun 12th, 2007, 01:45 PM
  2. Accessing Service Objects in Actions
    By curtney in forum Web Flow
    Replies: 8
    Last Post: Dec 29th, 2006, 02:55 AM
  3. Replies: 3
    Last Post: Jun 19th, 2005, 04:53 PM
  4. Accessing methods from beans in the Flow Scope
    By jackcholt in forum Web Flow
    Replies: 4
    Last Post: May 26th, 2005, 10:28 PM
  5. Replies: 3
    Last Post: May 4th, 2005, 08:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •