Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To configure class loading, you should add the class loading configuration in a file named webapp-classloading.xml and place it in the META-INF directory folder of a web application. All the This folder should be created inside the src/main/webapp folder of you web application. All the artifacts related to a web application are saved in the following directory: <PRODUCT_HOME>/repository/deployment/server/<Web_Application_Type>/<Web_Application_Name>. For example: <PRODUCT_HOME>/repository/deployment/server/webapps/SampleApp.

...

  • Shown below is the webapp-classloading.xml file configuration to specify CXF as the runtime environment:

    Code Block
    languagehtml/xml
    <Classloading xmlns="http://wso2.org/projects/as/classloading">
       <Environments>CXF</Environments>
    </Classloading>
  • You might want to access some Carbon features in a CXF application. To achieve this, specify a comma-separated list of environments in the webapp-classloading.xml file. The following example specifies both CXF and Carbon as the runtime environments:

    Code Block
    languagehtml/xml
    <Classloading xmlns="http://wso2.org/projects/as/classloading">
       <Environments>Spring,Carbon</Environments>
    </Classloading>
  • From AS 5.3.0 onwards, JavaEE6 Java EE 6 Web Profile support is available as a feature, which allows you to enable the Javaee runtime environment, in addition to TomcatCarbon and CXF runtime environments. See the topic on enabling JavaEE Java EE 6 Web Profile for step-by-step instructions on configuring the Javaee runtime Java EE runtime.

Extending the runtime environments

...