[ 
https://issues.apache.org/jira/browse/TUSCANY-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539436
 ] 

Chris Lo commented on TUSCANY-1884:
-----------------------------------

Hi,

The following is an example of how you would configure the  web.xml:

<servlet>
 <servlet-name>TuscanyServlet</servlet-name>
    <servlet-class>
         some servlet class
    </servlet-class>
 <init-param>
    <param-name>tuscanyConfigLocation</param-name>
    
<param-value>file:/C:/apache-tomcat-5.5.17/webapps/contextRoot/</param-value>
  </init-param>
 <load-on-startup>1</load-on-startup>
</servlet>

Inside this folder C:/apache-tomcat-5.5.17/webapps/contextRoot/, there should 
be the following
-META-INF/sca-contribution.xml
-any composite/xsd.wsdl files are located somewhere under this directory

Hope this helps,
Chris


> Allow the setting of the contribution root in the web.xml
> ---------------------------------------------------------
>
>                 Key: TUSCANY-1884
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1884
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Web App Integration
>    Affects Versions: Java-SCA-1.0
>         Environment: Solaris, WebSphere
>            Reporter: Sunny Ip
>            Priority: Minor
>         Attachments: WebAppServletHost.java
>
>
> Currently, the composite file must be located in the classpath, but it is 
> sometime useful to be able to specify the location of the composite file. In 
> our case, we'd like to place it outside of the EAR/WAR so the composite file 
> can be modified for different environments without modifying the EAR/WAR. The 
> attached code allows the servlet/filter to be configured in the web.xml with 
> the path to the contribution root. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to