Ok,
After a few jar problems i am nearly able to call WS method successfully.
I still got
Code:
java.lang.UnsupportedOperationException
at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:101)
when constructing response message but have enough info in my logs.
As I was suspecting in my previous post "no extra" interceptors are fired on glassfish.
Everything works as defined in application context files.
But on Websphere things got weird - beans defined in context file inside webservices modules are wrapped by one of the interceptors.
Logs from the ws request processing
websphere:
Code:
>>>[2008-09-09 12:38:04,703] INFO ModuleInterceptor: org.springframework.xml.xsd.XsdSchemaCollection.getXsdSchemas [log=ModuleInterceptor]
>>>[2008-09-09 12:38:04,843] INFO ModuleInterceptor: org.springframework.ws.WebServiceMessageFactory.createWebServiceMessage [log=ModuleInterceptor]
>>>[2008-09-09 12:38:04,921] INFO ModuleInterceptor: org.springframework.ws.server.EndpointMapping.getEndpoint [log=ModuleInterceptor]
>>>[2008-09-09 12:38:04,984] INFO ModuleInterceptor: java.lang.Object.toString [log=ModuleInterceptor]
>>>[2008-09-09 12:38:04,984] INFO ModuleInterceptor: java.lang.Object.toString [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,000] INFO ModuleInterceptor: org.springframework.ws.server.EndpointInterceptor.handleRequest [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,000] INFO EndPointInterceptor: org.springframework.ws.server.endpoint.MessageEndpoint.invoke [log=EndPointInterceptor]
>>>[2008-09-09 12:38:05,000] INFO ModuleInterceptor: org.springframework.ws.server.endpoint.MessageEndpoint.invoke [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,015] INFO ModuleInterceptor: org.springframework.oxm.mime.MimeUnmarshaller.unmarshal [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,109] DEBUG Unmarshalled payload request to [pl.test.aop.ws.schema.EndPaticipantCallRequest@62dc62dc] [log=EndParticipantCallEndPoint]
>>>[2008-09-09 12:38:05,109] INFO EndParticipantCallEndPoint.invokeInternal [log=EndParticipantCallEndPoint]
>>>[2008-09-09 12:38:05,109] INFO ModuleInterceptor: pl.test.aop.ws.util.TestKlasa.dawaj [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,109] INFO timeMeasureInterceptor1220956685109 pre invoke() IPrintable.doSth [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:38:05,109] INFO timeMeasureInterceptor1220956685109 pre invoke() IJakiesDAO.daoMethod [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:38:05,109] INFO timeMeasureInterceptor1220956685109 post invoke() IJakiesDAO.daoMethod() 0 ms. [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:38:05,109] INFO timeMeasureInterceptor1220956685109 post invoke() IPrintable.doSth() 0 ms. [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:38:05,125] INFO ModuleInterceptor: org.springframework.ws.WebServiceMessageFactory.createWebServiceMessage [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,125] DEBUG Marshalling [pl.test.aop.ws.schema.EndPaticipantCallResponse@3f403f4] to response payload [log=EndParticipantCallEndPoint]
>>>[2008-09-09 12:38:05,125] INFO ModuleInterceptor: org.springframework.oxm.mime.MimeMarshaller.marshal [log=ModuleInterceptor]
>>>[2008-09-09 12:38:05,218] INFO ModuleInterceptor: org.springframework.ws.server.EndpointInterceptor.handleResponse [log=ModuleInterceptor]
Glassfish:
Code:
INFO EndPointInterceptor: org.springframework.ws.server.endpoint.MessageEndpoint.invoke [log=EndPointInterceptor]
>>>[2008-09-09 12:56:07,111] DEBUG Unmarshalled payload request to [pl.test.aop.ws.schema.EndPaticipantCallRequest@1356db6] [log=EndParticipantCallEndPoint]
>>>[2008-09-09 12:56:07,111] INFO EndParticipantCallEndPoint.invokeInternal [log=EndParticipantCallEndPoint]
>>>[2008-09-09 12:56:07,111] INFO timeMeasureInterceptor1220957767111 pre invoke() IPrintable.doSth [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:56:07,111] INFO timeMeasureInterceptor1220957767111 pre invoke() IJakiesDAO.daoMethod [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:56:07,111] INFO timeMeasureInterceptor1220957767111 post invoke() IJakiesDAO.daoMethod() 0 ms. [log=TimeMeasureInterceptor]
>>>[2008-09-09 12:56:07,111] INFO timeMeasureInterceptor1220957767111 post invoke() IPrintable.doSth() 0 ms. [log=TimeMeasureInterceptor]
As it was mentioned above call to
com.sun.xml.messaging.saaj.soap.MessageFactoryImpl .createMessage(MessageFactoryImpl.java:101)
throws exception on glassfish so some entries do not exist in glassfish log file.
So it looks as it is websphere problem.