Results 1 to 2 of 2

Thread: SimpleHttpServerFactoryBean cannot resolve util:map

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    4

    Default SimpleHttpServerFactoryBean cannot resolve util:map

    I've been working though some of the examples here. http://static.springsource.org/sprin.../remoting.html. I got the RMI example to work, so I wanted to try the HTTP invoker next. I am not running under a servlet container (my application is a standalone), so I added this element to my beans.xml file from the example in 19.4.1 :

    Code:
    <bean id="httpServer"
    		class="org.springframework.remoting.support.SimpleHttpServerFactoryBean">
    		<property name="contexts">
    			<util:map>
    				<entry key="/remoting/AccountService" value-ref="accountExporter" />
    			</util:map>
    		</property>
    		<property name="port" value="8080" />
    </bean>
    The STS is flagging an error on the <util:map> element saying :
    The prefix "util" for element "util:map" is not bound.
    I'm not really sure what to do to continue.

    Matt

  2. #2
    Join Date
    Sep 2011
    Posts
    4

    Default

    Got it. Solution to import the util schema is here.

    http://static.springsource.org/sprin...sd-config.html

Posting Permissions

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