Results 1 to 3 of 3

Thread: Remoting and RemotingAccessException

  1. #1

    Default Remoting and RemotingAccessException

    Hello,

    I have exposed one of my beans in my existing Spring web-app as an HttpInvokerService using the HttpInvokerServiceExporter. In the
    metaanalysis-servlet.xml file I have:

    !--Server Side Spring Http Invoker-->
    <bean name="/ArrayDesignService"
    class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
    <property name="service">
    <ref bean="arraydesignMan"/>
    </property>
    <property name="serviceInterface">
    <value>bus.ArrayDesignManagerInterface</value>
    </property>
    </bean>


    I have a command line client that is trying to access this service, but to no avail. I am getting:

    org.springframework.remoting.RemoteAccessException : Cannot access HTTP invoker remote service at [http://localhost:8080/ArrayDesignService] ...

    My client side bean factory looks as follows:

    <beans>
    <!-- Remoting -->
    <bean id="simpleclientobject" class="tools.SimpleClientObject">
    <property name="arrayDesignManagerInterface">
    <ref bean="arrayDesignManagerProxy"/>
    </property>
    </bean>

    <!-- Spring Http Invoker Client-->
    <bean id="arrayDesignManagerProxy"
    class="org.springframework.remoting.httpinvoker.Ht tpInvokerProxyFactoryBean">
    <property name="serviceUrl">
    <value>http://localhost:8080/ArrayDesignService</value>
    </property>
    <property name="serviceInterface">
    <value>bus.ArrayDesignManagerInterface</value>
    </property>
    </bean>
    </beans>

    I have taken the url mappings out of my metaanalysis-servlet.xml file as well as the servlet mappings out of the [i][b]web.xml[b][i] file.

    Any ideas?

    I've tried to expose the service via HttpInvoker, Hessian, Burlap, and RMI and am getting the same error.

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Can you post the full stack trace? That way I can trace this to a particular method or line.

    Thanks.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3

    Default

    Thanks, Rob.

    I was in fact able to sort this out. The webapp context name was not included in the client bean-factory. I had:

    https://localhost:8080/metaanalysis/ArrayDesignService as opposed to

    https://localhost:8080/webapp context/metaanalysis/ArrayDesignService

    I have created different servlets and corresponding beanFactories to handle different types of requests (ie. one for web-requests, one for remoting-requests etc.). Just wondering if it is possibe to import beans from one factory to the other to avoid error prone copy and paste. I saw a reference to the

    <import resource="beanFactory.xml"/> but this doesn't seem to work when depending on Tomcat to load the beanFactory. I'm sure I've missed something ... any advice? I you'ld like, I can post this on a different area of the forum.

    Regards,

    Kiran

Similar Threads

  1. Replies: 8
    Last Post: Oct 19th, 2012, 02:49 AM
  2. Spring, Remoting and Spring Rich Client
    By shaby775 in forum Swing
    Replies: 9
    Last Post: Jan 6th, 2011, 07:30 AM
  3. CORBA remoting
    By karaznie in forum Remoting
    Replies: 5
    Last Post: Sep 5th, 2006, 09:46 AM
  4. Asynchronous Remoting with Spring and ActiveMQ
    By jpwinans in forum Remoting
    Replies: 2
    Last Post: Sep 21st, 2005, 10:29 AM
  5. Remoting Factory Objects
    By ibbo in forum Remoting
    Replies: 0
    Last Post: Sep 20th, 2004, 08:17 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
  •