Saturday, September 19, 2009

CXF and Weblogic

Tried CXF with Tomcat - works like a dream. Next, tried deploying the war onto Weblogic and the dream turns sour. Well, eventually things did turn out all right, if only I'd read the documentation on the apache site earlier, details summarized below. There are 2 ways u can work it.

1. Put jars in endorsed folder (This way is not recommended, since it might break the application server itself. The method below is preferred, as it impacts a single module only.)
- Put the geronimo-ws-metadata_2.0_spec-1.1.1.jar in the $Weblogic_Home/jdk_../jre/lib/endorsed folder.
- Deploy the CXF war in weblogic.
2. Pack war in an ear, deploy the ear with weblogic-application.xml - Create a standard J2EE application.xml file in the META-INF folder.

No comments: