how to specifiy a cutsom configure file

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

how to specifiy a cutsom configure file

by toughtalker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I begin to use jetty 5.1.14 and have a question.
When I put the following code into the default  jetty.xml , the project running well.

<Call name="addWebApplication">
        <Arg>/app</Arg>
        <Arg>d:/workspace/app</Arg>
        <Set name="extractWAR">false</Set>
        <Set name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set>
        <Set name="classLoaderJava2Compliant">true</Set>
        <Set name="virtualHosts">
                <Array type="java.lang.String">
                        <Item>localhost</Item>
                </Array>
        </Set>
</Call>

 However, when I setting  a new custom profile myjetty.xml, adding the same code,
 Using java-jar etc/jetty.xml etc/myjetty.xml to start,
 project is not running, showing the following errors:

 HTTP ERROR: 404
 / app Not Found
 RequestURI = / app

but the console shows that the project has been successfully loaded.