{"id":961,"date":"2010-08-01T21:11:51","date_gmt":"2010-08-01T15:41:51","guid":{"rendered":"http:\/\/naveenbalani.com\/?p=961"},"modified":"2016-09-16T00:08:15","modified_gmt":"2016-09-15T18:38:15","slug":"deploying-apache-cxf-services-on-websphere-process-server","status":"publish","type":"post","link":"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/","title":{"rendered":"Deploying Apache CXF services on WebSphere Process Server"},"content":{"rendered":"<p style=\"text-align: left;\">In this blog, we will look at how to deploy CXF application on WebSphere Process Server (WPS). One of the readers had asked me on how to deploy the sample application from the <a href=\"http:\/\/books.naveenbalani.com\/wp-content\/plugins\/download-monitor\/download.php?id=2\" target=\"_blank\">Chapter 2<\/a> in WPS, since my book covers deployment on tomcat server only. It was a good exercise for me to validate if the sample CXF application run on other servers as I haven&#8217;t tried this before.<\/p>\n<p style=\"text-align: left;\">I was able to run the application successfully with a modification to the module class loading policy . Given below are the steps required to deploy the sample CXF application in WPS. The version of WPS used was 7.0.<!--more--><\/p>\n<ol style=\"text-align: left;\">\n<li>Build the war file (orderapp.war) as mentioned in Chapter 2.<\/li>\n<li>Logon to WPS Administration Console<\/li>\n<li>Go to <em>Applications -&gt; Application Types &#8211; &gt; WebSphere Enterprise applications<\/em>. Click Install<\/li>\n<li>In next screen , provide the location of orderapp.war file.Click <em>Next<\/em><\/li>\n<li>On the next screen, click <em>Fast Path<\/em> and click on <em>Next<\/em><\/li>\n<li>On the <em>Install New Application<\/em> screen, Click on <em>Step 3 Map virtual hosts for Web modules<\/em> and select the orderapp.war file to map it to default_host virtual host<\/li>\n<li>On the <em>Install New Application<\/em> screen, Click on<em> Step 4 Map context root for Web modules <\/em>and enter the context root as \/orderapp. Click <em>Next<\/em><\/li>\n<li>On the Summary screen, click Finish.<\/li>\n<li>The orderapp.war would be deployed. On the confirmation screen, click <em>Save <\/em>to save the configuration to master configuration.<\/li>\n<\/ol>\n<p style=\"text-align: left;\">Next, you need to change the class loading policy for orderapp web module, to ensure that the CXF libraries, CXF JAX-WS and JAX-RS runtime and dependent files present in web module (all jar files in WEB-INF\\lib) are loaded first , instead of WPS library to avoid any conflict. If you don&#8217;t change the class loading policy , the application deployment would be successful but would receive the following exception when you run the application &#8211;<\/p>\n<p style=\"padding-left: 30px; text-align: left;\">com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet CXFServlet in application orderapp_war. Exception created : java.lang.NoSuchMethodError: org\/apache\/ws\/commons\/schema\/XmlSchema.getSchemaDocument()Lorg\/w3c\/dom\/Document;<br \/>\nat org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:109)<br \/>\nat org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)<br \/>\nat org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:188)<br \/>\nat org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148)<\/p>\n<p style=\"text-align: left;\">To change the class loading policy , follow these steps<\/p>\n<ol style=\"text-align: left;\">\n<li>Go to <em>Applications <\/em>-&gt; <em>Application <\/em>Types &#8211; &gt; <em>WebSphere enterprise applications<\/em> and select <em>orderapp_war<\/em><\/li>\n<li>Click on <em>Manage modules<\/em><\/li>\n<li>Click on <em>orderapp.war<\/em><\/li>\n<\/ol>\n<p style=\"text-align: left;\">Change the class loader order to &#8220;<em>Classes loaded with local class loader first (parent last)<\/em>&#8221; \u00a0and click <em>Apply<\/em>. <em>Save <\/em>the configuration.<\/p>\n<ol style=\"text-align: left;\">\n<li>Start the <em>orderapp_war enterprise application<\/em><\/li>\n<li>Run the web service client as mentioned in Chapter 2<\/li>\n<\/ol>\n<p style=\"text-align: left;\">Note if you plan to use CXF JAX-WS implementation with WAS\/WPS , you would not be able to leverage the WS-Specifications (like WS-Security) offered by WAS\/WPS container for that application and instead need to rely on CXF WS-Specification implementation.<\/p>\n<p style=\"text-align: left;\">To know, more about how to develop SOAP and Restful web services, get a copy of my Apache CXF Web Service Book.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will look at how to deploy CXF application on WebSphere Process Server (WPS). One of the readers had asked me on how to deploy the sample application from the Chapter 2 in WPS, since my book covers deployment on tomcat server only. It was a good exercise for me to validate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":338,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,12,13,6],"tags":[108,109],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.0.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Deploying Apache CXF services on WebSphere Process Server - Current and Future Technology Trends by Navveen Balani<\/title>\n<meta name=\"description\" content=\"Deploying Apache CXF services on WebSphere Process Server -\" \/>\n<link rel=\"canonical\" href=\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploying Apache CXF services on WebSphere Process Server - Current and Future Technology Trends by Navveen Balani\" \/>\n<meta property=\"og:description\" content=\"Deploying Apache CXF services on WebSphere Process Server -\" \/>\n<meta property=\"og:url\" content=\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Current and Future Technology Trends by Navveen Balani\" \/>\n<meta property=\"article:published_time\" content=\"2010-08-01T15:41:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-15T18:38:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2010\/05\/folder_structure.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"190\" \/>\n\t<meta property=\"og:image:height\" content=\"238\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"3 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/navveenbalani.dev\/#website\",\"url\":\"https:\/\/navveenbalani.dev\/\",\"name\":\"Current and Future Technology Trends by Navveen Balani\",\"description\":\"Current and Future Technology Trends by Navveen Balani\",\"publisher\":{\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/navveenbalani.dev\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2010\/05\/folder_structure.jpg\",\"width\":\"190\",\"height\":\"238\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#webpage\",\"url\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/\",\"name\":\"Deploying Apache CXF services on WebSphere Process Server - Current and Future Technology Trends by Navveen Balani\",\"isPartOf\":{\"@id\":\"https:\/\/navveenbalani.dev\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#primaryimage\"},\"datePublished\":\"2010-08-01T15:41:51+00:00\",\"dateModified\":\"2016-09-15T18:38:15+00:00\",\"description\":\"Deploying Apache CXF services on WebSphere Process Server -\",\"breadcrumb\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/navveenbalani.dev\/\",\"url\":\"https:\/\/navveenbalani.dev\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/\",\"url\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/\",\"name\":\"Deploying Apache CXF services on WebSphere Process Server\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#webpage\"},\"author\":{\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\"},\"headline\":\"Deploying Apache CXF services on WebSphere Process Server\",\"datePublished\":\"2010-08-01T15:41:51+00:00\",\"dateModified\":\"2016-09-15T18:38:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#webpage\"},\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\"},\"image\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/deploying-apache-cxf-services-on-websphere-process-server\/#primaryimage\"},\"keywords\":\"WebSphere Process Server CXF,WPS CXF DEPLOY\",\"articleSection\":\"Articles,Books,CXF,Web Services\",\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\",\"name\":\"Navveen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/navveenbalani.dev\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2019\/07\/navveen_balani.jpeg\",\"width\":200,\"height\":200,\"caption\":\"Navveen\"},\"logo\":{\"@id\":\"https:\/\/navveenbalani.dev\/#personlogo\"},\"sameAs\":[\"http:\/\/naveenbalani.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts\/961"}],"collection":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/comments?post=961"}],"version-history":[{"count":17,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts\/961\/revisions"}],"predecessor-version":[{"id":2095,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts\/961\/revisions\/2095"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/media\/338"}],"wp:attachment":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/media?parent=961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/categories?post=961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/tags?post=961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}