Results 1 to 3 of 3

Thread: Spring remoting exception

  1. #1
    Join Date
    Sep 2004
    Location
    Sydney
    Posts
    27

    Default Spring remoting exception

    I'm trying to implement a simple webservice using spring http invokers.
    I have set it up basically identical to the docs, but get this error:
    Code:
    Exception in thread "main" org.springframework.remoting.RemoteAccessException: Cannot access HTTP invoker remote service at [http://localhost:8080/AccountService]; nested exception is java.io.FileNotFoundException: http://localhost:8080/AccountService
    java.io.FileNotFoundException: http://localhost:8080/AccountService
    	at sun.net.http://www.protocol.http.HttpURLConn...:1131)
    	at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:52)
    	at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:67)
    	at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvoker
    I'm not sure why/how to fix this though?
    I am running the client as a command prompt, calling to the running resin application on the same machine..

  2. #2
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    This may simply be a problem in the url.
    What happens when you telnet localhost 80
    and then GET /AccountService ?
    Olivier

  3. #3
    Join Date
    Sep 2004
    Location
    Sydney
    Posts
    27

    Default

    You were right. I spent some time trying to track it down.
    It is because I was missing my url-mapping entry in web.xml.
    I copied and pasted the test from the document, and that part wasn't included!
    Sorted out now.

Similar Threads

  1. Spring, Remoting and Spring Rich Client
    By shaby775 in forum Swing
    Replies: 9
    Last Post: Jan 6th, 2011, 07:30 AM
  2. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  3. Replies: 0
    Last Post: Jul 11th, 2005, 05:49 PM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 3
    Last Post: Nov 8th, 2004, 07:30 PM

Posting Permissions

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