thank you. The example is for 6.0 I think. I am trying Jetty 7.0 and Spring 3.0.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Annotation
Scan for @Repository, @Service, @Controller, @Component,
-->
<context:component-scan base-package="com.metaverse"/>
<!-- This activates post-processors for annotation-based configuration
Activates @Autowired for Controllers, ...
-->
<context:annotation-config/>
<!-- define Jetty stuff -->
<bean id="Server" class="org.eclipse.jetty.server.Server" init-method="start" destroy-method="stop">
<!-- Optional -->
<property name="threadPool">
<bean id="ThreadPool"
class="org.eclipse.jetty.util.thread.QueuedThreadPool">
<property name="minThreads" value="10"/>
<property name="maxThreads" value="100"/>
</bean>
</property>
<!-- Required -->
<property
name="connectors">
<list>
<bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<property name="port" value="8080"/>
<property name="host" value="localhost"/>
</bean>
</list>
</property>
<!-- Required -->
<property name="handler">
<bean id="handlers" class="org.eclipse.jetty.server.handler.HandlerList">
<property name="handlers">
<list>
<bean class="org.eclipse.jetty.server.handler.ResourceHandler">
<property name="directoriesListed" value="false"/>
<property name="welcomeFiles">
<list>
<value>index.html</value>
</list>
</property>
<property name="resourceBase" value="."/>
</bean>
<bean class="org.eclipse.jetty.servlet.ServletHandler">
<property name="servlets">
<list>
<bean class="org.eclipse.jetty.servlet.ServletHolder">
<property name="name" value="hello"/>
<property name="displayName" value="hello"/>
<property name="servlet">
<bean class="com.metaverse.servlet.HelloServlet">
</bean>
</property>
<property name="initParameters">
<map>
<entry key="resourceBase" value="/hello"/>
</map>
</property>
</bean>
</list>
</property>
</bean>
</list>
</property>
</bean>
</property>
</bean>
</beans>