Example 4: WAR

     Web servers can also load WARs, as shown in the example in the video below.

WebServer.dml

<?xml version='1.0' encoding='utf-8'?>

<JettyServer name="WebServer" descriptors="xworker.jetty.JettyServer" port="8080">
     <Handlers>
         <WebAppContext name="WebAppContext" contextPath="/" webApp=".\helloworld.war" throwIfStartupException="true" dirAllowed="true"/>
     </Handlers>
</JettyServer>

Notes

    The class library in the war file cannot contain the class library already included by XWorker, otherwise it will conflict because XWorker is a container. For WEB applications developed using XWorker, packaging into war only requires copying the model and web.xml.

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号