Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Virtual host configure in embedded jetty 7.3

Any reply on this please ???

On Wed, Mar 2, 2011 at 6:15 PM, Mitul Adhia <mituladhia19@xxxxxxxxx> wrote:
Hi All,

I am trying to configure virtual host in embedded jetty 7.3 using the following urls



In my case the servlet is register using the declarative service approach as shown in the link 
http://blog.fnord.se/ (see Deploying a servlet using jetty 7 using OSGI- DS).

I am not creating war file for my web application .

So how do i configure the jetty.xml  and context.xml???

jetty.xml 
 <Arg>
        <New class="org.eclipse.jetty.deploy.ContextDeployer">
          <Set name="contexts"><Ref id="Contexts"/></Set>
          <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
          <Set name="scanInterval">5</Set>
        </New>
      </Arg>
    </Call>

Context.xml . In assume that <Set name="war"><SystemProperty name="jetty.home"/>/webapps/A</Set> points to the war file located under /webapp/A folder location . In my case the possibility of having a war file is not their .

<Configure  class="org.eclipse.jetty.webapp.WebAppContext">      
      <Set name="war"><SystemProperty name="jetty.home"/>/webapps/A</Set>
      <Set name="contextPath">/webappA</Set>
      <Set name="connectorNames">
        <Array type="String">
          <Item>connA</Item>
        </Array>
       </Set>
      ...
    </Configure>
Best Regards,
Mitul


Back to the top