jetty 6.1.3 doesn't seem to run web.xml

View: New views
1 Messages — Rating Filter:   Alert me  

jetty 6.1.3 doesn't seem to run web.xml

by thesilverline :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

These are my jetty run files and confs:
Start.java
=============================                      
                       Server server = new Server();
                        XmlConfiguration configuration = new XmlConfiguration(new File("conf/jetty-config.xml").toURI().toURL());
                        configuration.configure(server);
                        server.start();

jetty-config.xml
================================
<Configure class="org.mortbay.jetty.Server">
       
        <Call name="addConnector">
                <Arg>
                        <New class="org.mortbay.jetty.nio.SelectChannelConnector">
                                <Set name="port">
                                        <SystemProperty name="jetty.port" default="8081" />
                                </Set>
                        </New>
                </Arg>
        </Call>

        <Set name="handler">
                <!-- the collection of handlers that will handle the request -->
                <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
                        <Set name="handlers">
                                <Array type="org.mortbay.jetty.Handler">
                                        <Item>
                                                <New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection" />
                                        </Item>
                                </Array>
                        </Set>
                </New>
        </Set>

 <Call name="addLifeCycle">
      <Arg>
        <New class="org.mortbay.jetty.deployer.ContextDeployer">
          <Set name="contexts"><Ref id="Contexts"/></Set>
          <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/context</Set>
        </New>
      </Arg>
    </Call>

In the context folder:
raj.xml
==========================
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home"
  default="."/>/webapp</Set>
</Configure>

and webapp dir structure is:
webapp
   WEB-INF
    web.xml
   faces-config.xml

I have integrated richfaces, spring, jsf, hibernate on jetty 6.1.3. I don't have any archive file nor do I want now. I just in development phase and want jetty to process my web.xml file.
When I run start.java, it runs jetty-config.xml and then raj.xml and server starts successfully but web.xml doesn't seem to have processed.
I dont run like ; java -jar start.jar ....
With jetty 5.x, this way of my running was fine but this time I failed.
what is the reason?
With jetty 5 I had