Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by SimonNash:
http://wiki.apache.org/ws/Tuscany/TuscanyJava/SCA_Java/GettingStarted

------------------------------------------------------------------------------
  This instructs the Tuscany maven war plugin to create a war file that does 
not include dependent jar files of Tuscany extensions.  Instead, these jar 
files will be loaded on demand by the Tuscany runtime.  If the value of this 
element is set to true, then the Tuscany maven war plugin will bundle all 
required dependent jar files within the war file.
  
  If you are not using maven to build a Tuscany war file, then you will need to 
ensure that the following files are included in the war file:
+ {{{
    WEB-INF/default.scdl                             see description above
- 
    WEB-INF/web.xml                                  see below
- 
    WEB-INF/classes                                  application executable 
code and resources
- 
+   WEB-INF/lib                                      Tuscany runtime jars from 
<sca-home>/lib,
-   WEB-INF/lib                                      Tuscany runtime jars from 
<sca-home>/lib, plus webapp-1.0-incubator-M2.jar (available from maven 
repository)
+                                                     plus 
webapp-1.0-incubator-M2.jar (available from maven repository)
+   WEB-INF/tuscany/boot                             Tuscany runtime jars from 
<sca-home>/boot,
+                                                     plus 
webapp-host-1.0-incubator-M2.jar (available from maven repository)
- 
-   WEB-INF/tuscany/boot                             Tuscany runtime jars from 
<sca-home>/boot, plus webapp-host-1.0-incubator-M2.jar (available from maven 
repository)
- 
    WEB-INF/tuscany/extensions                       required Tuscany extensions
- 
    WEB-INF/tuscany/repository/dependency.metadata   see below
- 
+ }}}
  The <web-app>...</webapp> section of the WEB-INF/web.xml file must contain 
the following code:
+ {{{
    <listener>
       
<listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
    </listener>
- 
    <servlet>
       <servlet-name>TuscanyServlet</servlet-name>
- 
       <display-name>Tuscany Servlet</display-name>
- 
       
<servlet-class>org.apache.tuscany.runtime.webapp.TuscanyServlet</servlet-class>
    </servlet>
- 
    <servlet-mapping>
       <servlet-name>TuscanyServlet</servlet-name>
- 
       <url-pattern>/services/*</url-pattern>
    </servlet-mapping>
- 
+ }}}
  For runtime loading of dependent jars (see the description of the 
<loadExtensionDependencies> element above), the 
WEB-INF/tuscany/repository/dependency.metadata file must contain the following 
code:
+ {{{
    <?xml version="1.0" encoding="UTF-8"?> 
- 
    <java version="1.5.0_06" class="java.beans.XMLDecoder"> 
     <object class="java.util.HashMap"/> 
    </java> 
- 
+ }}}
  If these dependent jars are packaged within the web application's 
WEB-INF/tuscany/repository/ directory, please refer to the output of the 
Tuscany war plugin (with <loadExtensionDependencies> set to true) to see what 
code needs to be included within
  the WEB-INF/tuscany/repository/dependency.metadata file.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to