Announcement Announcement Module
Collapse
No announcement yet.
Spring remoting exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    This may simply be a problem in the url.
    What happens when you telnet localhost 80
    and then GET /AccountService ?

    Comment


    • #3
      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.

      Comment

      Working...
      X