| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| <!-- Generated by Apache Maven Doxia at Apr 17, 2012 -->
|
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
| <head>
|
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
| <title>Apache Axis2 - |
| Application Server Specific Configuration Guide</title>
|
| <style type="text/css" media="all">
|
| @import url("../css/maven-base.css");
|
| @import url("../css/maven-theme.css");
|
| @import url("../css/site.css");
|
| </style>
|
| <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
|
| <meta name="Date-Revision-yyyymmdd" content="20120417" />
|
| <meta http-equiv="Content-Language" content="en" />
|
|
|
| </head>
|
| <body class="composite">
|
| <div id="banner">
|
| <a href="http://www.apache.org/" id="bannerLeft">
|
| <img src="http://www.apache.org/images/asf_logo_wide.png" alt="Apache Axis2" />
|
| </a>
|
| <a href="" id="bannerRight">
|
| <img src="../images/axis.jpg" alt="Apache Axis2" />
|
| </a>
|
| <div class="clear">
|
| <hr/>
|
| </div>
|
| </div>
|
| <div id="breadcrumbs">
|
|
|
|
|
| <div class="xleft">
|
| <span id="publishDate">Last Published: 2012-04-17</span>
|
| | <span id="projectVersion">Version: 1.6.2</span>
|
| </div>
|
| <div class="xright"> <a href="../index.html" title="Axis2/Java">Axis2/Java</a>
|
| |
|
| <a href="http://www.apache.org" class="externalLink" title="Apache">Apache</a>
|
|
|
|
|
| </div>
|
| <div class="clear">
|
| <hr/>
|
| </div>
|
| </div>
|
| <div id="leftColumn">
|
| <div id="navcolumn">
|
|
|
|
|
| <h5>Axis2/Java</h5>
|
| <ul>
|
| <li class="none">
|
| <a href="../index.html" title="Home">Home</a>
|
| </li>
|
| </ul>
|
| <h5>Downloads</h5>
|
| <ul>
|
| <li class="none">
|
| <a href="../download.cgi" title="Releases">Releases</a>
|
| </li>
|
| <li class="none">
|
| <a href="../modules/index.html" title="Modules">Modules</a>
|
| </li>
|
| <li class="none">
|
| <a href="../tools/index.html" title="Tools">Tools</a>
|
| </li>
|
| </ul>
|
| <h5>Documentation</h5>
|
| <ul>
|
| <li class="none">
|
| <a href="../docs/toc.html" title="Table of Contents">Table of Contents</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/installationguide.html" title="Installation Guide">Installation Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/quickstartguide.html" title="QuickStart Guide">QuickStart Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/userguide.html" title="User Guide">User Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/jaxws-guide.html" title="JAXWS Guide">JAXWS Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/pojoguide.html" title="POJO Guide">POJO Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/spring.html" title="Spring Guide">Spring Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/webadminguide.html" title="Web Administrator's Guide">Web Administrator's Guide</a>
|
| </li>
|
| <li class="none">
|
| <a href="../docs/migration.html" title="Migration Guide (from Axis1)">Migration Guide (from Axis1)</a>
|
| </li>
|
| </ul>
|
| <h5>Resources</h5>
|
| <ul>
|
| <li class="none">
|
| <a href="../faq.html" title="FAQ">FAQ</a>
|
| </li>
|
| <li class="none">
|
| <a href="../articles.html" title="Articles">Articles</a>
|
| </li>
|
| <li class="none">
|
| <a href="http://wiki.apache.org/ws/FrontPage/Axis2/" class="externalLink" title="Wiki">Wiki</a>
|
| </li>
|
| <li class="none">
|
| <a href="../refLib.html" title="Reference Library">Reference Library</a>
|
| </li>
|
| <li class="none">
|
| <a href="../api/index.html" title="Online Java Docs">Online Java Docs</a>
|
| </li>
|
| </ul>
|
| <h5>Get Involved</h5>
|
| <ul>
|
| <li class="none">
|
| <a href="../overview.html" title="Overview">Overview</a>
|
| </li>
|
| <li class="none">
|
| <a href="../svn.html" title="Checkout the Source">Checkout the Source</a>
|
| </li>
|
| <li class="none">
|
| <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a>
|
| </li>
|
| <li class="none">
|
| <a href="../release-process.html" title="Release Process">Release Process</a>
|
| </li>
|
| <li class="none">
|
| <a href="../guidelines.html" title="Developer Guidelines">Developer Guidelines</a>
|
| </li>
|
| <li class="none">
|
| <a href="../siteHowTo.html" title="Build the Site">Build the Site</a>
|
| </li>
|
| </ul>
|
| <h5>Project Information</h5>
|
| <ul>
|
| <li class="none">
|
| <a href="../team-list.html" title="Project Team">Project Team</a>
|
| </li>
|
| <li class="none">
|
| <a href="../issue-tracking.html" title="Issue Tracking">Issue Tracking</a>
|
| </li>
|
| <li class="none">
|
| <a href="http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/" class="externalLink" title="Source Code">Source Code</a>
|
| </li>
|
| <li class="none">
|
| <a href="../thanks.html" title="Acknowledgements">Acknowledgements</a>
|
| </li>
|
| <li class="none">
|
| <a href="http://www.apache.org/licenses/LICENSE-2.0.html" class="externalLink" title="License">License</a>
|
| </li>
|
| <li class="none">
|
| <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">Sponsorship</a>
|
| </li>
|
| <li class="none">
|
| <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">Thanks</a>
|
| </li>
|
| <li class="none">
|
| <a href="http://www.apache.org/security/" class="externalLink" title="Security">Security</a>
|
| </li>
|
| </ul>
|
| <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
|
| <img class="poweredBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
|
| </a>
|
|
|
|
|
| </div>
|
| </div>
|
| <div id="bodyColumn">
|
| <div id="contentBox">
|
| <!-- ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. --> |
| |
| <h1>Application Server Specific Configuration Guide</h1> |
| <p>This document provides configuration information required for |
| your Application Server to run Apache Axis2 to its fullest |
| potential.</p> |
| <div class="section"><h2>WebLogic<a name="WebLogic"></a></h2> |
| <div class="section"><h3>Use exploded configuration to deploy Axis2 WAR<a name="Use_exploded_configuration_to_deploy_Axis2_WAR"></a></h3> |
| <p>We recommend using the exploded configuration to deploy Axis2 |
| WAR in WebLogic application server to support the |
| hotupdate/ hotdeployment features in Axis2. However, if you want to |
| deploy custom WARs, say in a clustering environment, you need to |
| add two additional files into the WEB-INF named "services.list" and |
| "modules.list" under the modules and services directory |
| respectively.</p> |
| <ul> |
| <li><b>WEB-INF/services/services.list</b> : should list all the |
| services (aar files) that you want to expose.</li> |
| <li><b>WEB-INF/modules/modules.list</b> : should list all the |
| modules (mar files) that you want to use.</li> |
| </ul> |
| NOTE: In both cases, please list one entry per line. |
| <p>WebLogic ships with JARs that conflict with JARs present in |
| Axis2. Therefore use <prefer-web-inf-classes> to ensure that |
| JARs packaged in Axis2 WAR are picked up from WEB-INF/lib. You can |
| do this by setting the <prefer-web-inf-classes> element in |
| WEB-INF/weblogic.xml to true. An example of weblogic.xml is shown |
| below:</p> |
| <div><pre> |
| <weblogic-web-app> |
| <container-descriptor> |
| <prefer-web-inf-classes>true</prefer-web-inf-classes> |
| </container-descriptor> |
| </weblogic-web-app> |
| </pre></div> |
| <p>If set to true, the <prefer-web-inf-classes> element will |
| force WebLogic's classloader to load classes located in the WEB-INF |
| directory of a Web application in preference to application or |
| system classes. This is a recommended approach since it only |
| impacts a single Web module.</p> |
| <p>Please refer to the following documents in WebLogic |
| for more information:</p> |
| <ul> |
| <li><a class="externalLink" href="http://e-docs.bea.com/wls/docs81/programming/classloading.html">WebLogic |
| ServerApplication Classloading</a>- For more information on how |
| WebLogic's class loader works</li> |
| <li><a class="externalLink" href="http://e-docs.bea.com/wls/docs81/webapp/deployment.html">Redeploying |
| a Web Application in Exploded Directory Format</a></li> |
| </ul> |
| </div> |
| <div class="section"><h3>Lack of namespacing on serialised items<a name="Lack_of_namespacing_on_serialised_items"></a></h3> |
| <p>BEA WebLogic Server 9.0 comes with its own StAX implementation. |
| This results in lack of namespacing on serialised items. In turn, |
| WebLogic server (WLS) breaks with AXIOM on the WLS classpath. Hence |
| a filtering classloader is required:</p> |
| <p>Adding the following to weblogic-application.xml should resolve |
| this issue:</p> |
| <div><pre> |
| <prefer-application-packages> |
| <package-name>com.ctc.wstx.*</package-name> |
| <package-name>javax.xml.*</package-name> |
| <package-name>org.apache.*</package-name> |
| </prefer-application-packages> |
| </pre></div> |
| <p>Note that the libraries listed--Xerces, StAX API, Woodstox--need |
| to be on the application classpath.</p> |
| </div> |
| </div> |
| <div class="section"><h2>WebSphere<a name="WebSphere"></a></h2> |
| <div class="section"><h3>Avoiding conflicts with WebSphere's JAX-WS runtime<a name="Avoiding_conflicts_with_WebSpheres_JAX-WS_runtime"></a></h3> |
| <p> |
| The JAX-WS runtime in WebSphere Application Server is based on a modified version of Axis2 and these |
| classes are visible to application class loaders. This means that when deploying |
| a standard version of Axis2 on WAS 7.0 (and WAS 6.1 with the Web Services feature pack installed), |
| special configuration is required to avoid conflicts with the Axis2 classes used internally by WebSphere. |
| In particular it is necessary to change the class loader policy of the Web module to parent last. However, |
| this is not sufficient because Axis2 creates additional class loaders for modules and services, and |
| these use parent first class loading by default. Therefore, two things must be done to make a standard |
| Axis2 distribution work with WebSphere: |
| </p> |
| <ol style="list-style-type: decimal"> |
| <li> |
| Before deploying the Axis2 WAR, edit the <tt>axis2.xml</tt> file and set the |
| <tt>EnableChildFirstClassLoading</tt> parameter to <tt>true</tt>. |
| Please note that this parameter is only supported in Axis2 1.5.5 or higher. |
| The parameter is already present in the default <tt>axis2.xml</tt> file included in the |
| WAR distribution, but its value is set to <tt>false</tt>. Therefore it is enough to change |
| the parameter value. |
| </li> |
| <li> |
| After deployment, modify the application configuration to enable parent last class loading |
| for the Web module: in the WebSphere admin console, go the the configuration page for |
| the enterprise application, click on <i>Manage Modules</i> and locate the WAR containing |
| Axis2 (in the default WAR distribution, the module is called <i>Apache-Axis2</i>), then |
| change the <i>Class loader order</i> option to <i>Classes loaded with local class |
| loader first (parent last)</i>. Note that the class loader policy for the enterprise |
| application itself (which can be specified under <i>Class loading and update detection</i>) |
| is irrelevant, unless a custom EAR distribution is used that includes the Axis2 libraries |
| in the EAR instead of the WAR. |
| </li> |
| </ol> |
| </div> |
| <div class="section"><h3>Deploying services and modules<a name="Deploying_services_and_modules"></a></h3> |
| <p> |
| By default (i.e. if the <i>Distribute application</i> option has not been disabled explicitly) |
| WebSphere will deploy the application in exploded form. The standard location for these files is |
| in the <tt>installedApps</tt> subdirectory in the WebSphere profile directory. This means that AAR |
| and MAR files can simply be deployed by dropping them into the corresponding folders. In this |
| scenario, hot deployment is supported and there is no need to update the <tt>services.list</tt> |
| and <tt>modules.list</tt> files. |
| </p> |
| <p> |
| However, the directory is still under control of WebSphere and manually deployed AAR and MAR files |
| will be removed e.g. when the application is upgraded. It may therefore be a good idea to configure |
| Axis2 to use a repository location outside of the <tt>installedApps</tt> directory. |
| </p> |
| </div> |
| <div class="section"><h3>Deploying older Axis2 versions<a name="Deploying_older_Axis2_versions"></a></h3> |
| <p> |
| The instructions given above apply to Axis2 1.5.5 or higher. Older versions don't support |
| the <tt>EnableChildFirstClassLoading</tt> parameter, and we don't provide any support for |
| deploying these versions on WAS 6.1 (with the Web Services feature pack installed) or 7.0. |
| However, IBM has published a <a class="externalLink" href="https://www-304.ibm.com/support/docview.wss?uid=swg21315686">technote</a> |
| with an alternative approach that may work for older Axis2 versions. |
| </p> |
| </div> |
| <div class="section"><h3>Known issues<a name="Known_issues"></a></h3> |
| <p> |
| On some WAS versions the following error may occur, e.g. when accessing a WSDL exposed by Axis2: |
| </p> |
| <div><pre>java.lang.VerifyError: JVMVRFY013 class loading constraint violated; |
| class=org/apache/xerces/dom/CoreDocumentImpl, method=getDomConfig()Lorg/w3c/dom/DOMConfiguration</pre></div> |
| <p> |
| This is caused by the XmlBeans library |
| packaged with Axis2. This library contains a set of interfaces in the <tt>org.w3c.dom</tt> package |
| and this may cause issues with class loaders that don't use a simple parent-first policy. |
| To avoid this issue, upgrade your WAS to a more recent fix pack level, remove the XmlBeans library |
| from the Axis2 WAR or remove the content of the <tt>org.w3c.dom</tt> package from the XmlBeans library. |
| </p> |
| </div> |
| </div> |
| |
|
|
| </div>
|
| </div>
|
| <div class="clear">
|
| <hr/>
|
| </div>
|
| <div id="footer">
|
| <div class="xright">Copyright © 2004-2012
|
| <a href="http://www.apache.org/">The Apache Software Foundation</a>.
|
| All Rights Reserved.
|
|
|
| </div>
|
| <div class="clear">
|
| <hr/>
|
| </div>
|
| </div>
|
| </body>
|
| </html>
|