In this post I’ll guide you to port web service developed using Apache CXF and Spring Framework into Oracle Application server. After hitting the first deployment issue, I referred to Apache CXF Application Server Specific Configuration Guide. When going through this page, I noted some of the information (e.g - Get rid of OC4J JAX-WS libraries section) risk your Oracle Application server, as it require customization of oc4j.jar file. Actually I have oc4j.jar file as per this page, however when starting my SOA 10.1.3.5 instance, I ended-up with number of exceptions. Rather trying to resolve this issue, I decided another way of deploying the web service application. Please refer to OC4J_Configuration_For_Apache_CXF for all the steps I followed during the deployment.
Summery..
1. Followed these Section on Apache CXF Application Server Specific Configuration Guide
- Preparing stax-api
- Replace the Oracle XML parser with Xerces
- Added xercesImpl.jar, xml-apis.jar, xalan.jar and serializer.jar from Xalan distribution
- Added geronimo-ws-metadata_2.0_spec-1.1.2.jar from CXF distribution.
- Swapping Oracle wsdl.jar with wsdl4j.jar
- Only nedded -Xbootclasspath/p:<path to wsdlj>/wsdl4j-1.6.1.jar
- Deploying applications
- Additionally I added all required CXF and Spring Framework libraries in WEB-INF/lib
2. I didn't follow these Sections on Apache CXF Application Server Specific Configuration Guide
- Get rid of OC4J JAX-WS libraries
3. I used following versions of software.
- Oracle SOA Suits 10.1.3.5.0 (I also tested on 10.1.3.3.0)
- Apache CXF 2.2.5
- Xalan 2.7.1
- Spring Framework 2.5.5
**********************************************************************************************************************
No comments:
Post a Comment