Hi Freeman,
thanks, yes! Finally my xml seems to work but another problem has popped up.
Here is the XML configuration I'm using:

-----------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
  xmlns:beans="http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:sec="http://cxf.apache.org/configuration/security";
  xmlns:http="http://cxf.apache.org/transports/http/configuration";
  xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration";
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
  xsi:schemaLocation="http://cxf.apache.org/configuration/security
                      http://cxf.apache.org/schemas/configuration/security.xsd
            http://cxf.apache.org/transports/http/configuration
            http://cxf.apache.org/schemas/configuration/http-conf.xsd
            http://cxf.apache.org/transports/http-jetty/configuration
            http://cxf.apache.org/schemas/configuration/http-jetty.xsd
            http://www.springframework.org/schema/beans
           
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
<httpj:engine-factory bus="cxf"> 
<httpj:engine port="9001">
      <httpj:tlsServerParametersRef id="secure" />
      <httpj:threadingParameters minThreads="5"
                                 maxThreads="15" />

      <httpj:handlers>
        <beans:bean
class="org.eclipse.jetty.server.handler.ResourceHandler">
                <beans:property name = "resourceBase" value = "/Users/bertuz/" 
/>
        </beans:bean>
      </httpj:handlers>
      <httpj:sessionSupport>true</httpj:sessionSupport>
    </httpj:engine>
</httpj:engine-factory>
</beans>
-----------------------------------------------------------------------------

The program loads without any problem by loading the service:

                        this.endPoint = (EndpointImpl) 
Endpoint.publish(endpointAddress,
implementor);
                        (endpointaddress = "http://localhost:9002/test";)


now here is the problem: if I address the service address, everything works
as expected. But if I address my browser to http://localhost:9002/index.html
(and by having a index.html file in my /Users/bertuz of course), nothing
happens and jetty answers with a 404 error.

Mmmmm... am I setting the wrong handler? I'm not finding any
schema/documentation explaning what's the "handler architecture" in jetty
when I publish a service from Jetty. 

Cheerio
Matteo

--
View this message in context: 
http://cxf.547215.n5.nabble.com/static-pages-with-embedded-jetty-Where-can-I-find-better-doc-tp4373909p4384437.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to