Results 1 to 6 of 6

Thread: HttpInvoker and SLSB

Threaded View

  1. #1
    Join Date
    Aug 2004
    Location
    Northridge, CA
    Posts
    151

    Default HttpInvoker and SLSB

    This might have been answered somewhere but i just can't seem to find the solution.

    I simply wnt to expose my SLSB through HttpInvoker so my rich client can access it. My app is packaged in ear.

    ws.servlet
    Code:
      <!-- HttpInvoker exporter for the core service -->
      <bean name="/rbacx-httpInvoker" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
        <property name="service"><ref bean="core"/></property>
        <property name="serviceInterface"><value>com.vaau.core.MainService</value></property>
      </bean>
    what i want to is have something like this
    Code:
    <bean id="core" lazy-init="true" class="org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean">
            <property name="jndiName">
    	    <value>local/coreSLSB</value>
    	</property>
    	<property name="businessInterface">
    	    <value>com.vaau.core.MainService</value>
    	</property>
        </bean>
    I just not sure where to define this bean "core". I have tried declaring this into my aplicationContext.xml but when i executure my business method I get,
    Code:
    org.springframework.beans.FatalBeanException: Unable to return specified BeanFactory instance: factory key [java:comp/env/ejb/BeanFactoryPat
    h], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitio
    nException: No bean named 'java:comp/env/ejb/BeanFactoryPath' is defined: org.springframework.beans.factory.support.DefaultListableBeanFacto
    ry defining beans []; root of BeanFactory hierarchy
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'java:comp/env/ejb/BeanFactoryPath' is defined: org.springfra
    mework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:332)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:672)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
            at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:496)
            at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:387)
            at org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactory(AbstractEnterpriseBean.java:115)
            at org.springframework.ejb.support.AbstractStatelessSessionBean.ejbCreate(AbstractStatelessSessionBean.java:63)
    Please help me !!! I am going Nuts over this...

    Amad
    [/quote]
    Last edited by afida; May 30th, 2006 at 12:02 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
  •