Overview:
currently we have a web application with multiple module in it. We are using following technology stack
- JAX-WS
- Spring framework (except spring MVC)
- JSF
- Hibernate
Application Server: IBM Websphere 7.0 (Production), Apache Tomcat 7.0.X (Development) We are using JAX-WS annotations to mark a class as web service, beside this we don't use any JAXB annotation in Data Objects, we are leaving this task for ws runtime.
Problem statement:
Once we deploy application on Apache Tomcat, web service doesn't get published on AS. As a solution we need to add "org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter" property in spring context file and then web service starts working perfectly. But when we deploy the application on WAS, web service gets publish without setting fore mentioned property. When we make first request to web service it respond slowly, during R&D of this issue we found following things;
- IBM using AXIS2 Web service engine
- JAXB implementation load classes like
className_used_in_web_service_method$JaxbAccessorM_getFieldName_setFieldName_java_util_Set from: <unknown>
for all the classes in hierarchy. This only happen first time. We were trying to load these at application start-up time, but couldn't succeeded. Can anyone please help us to tackle this issue?