I recently published my airline.war web application and verified that the wsdl and schema were published in a separate web application. However, when it came time to run the Airline servlet which would report the wsdl and schema metdata, I ran into the following problem. I had no issues with running the ant buildscript. I noticed that the saaj.jar file contained a two argument
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageHandlerAdapter' defined in ServletContext resource [/WEB-INF/airline-servlet.xml]: Cannot create inner bean 'org.springframework.ws.soap.saaj.SaajSoapMessageC ontextFactory#11f05a1' while setting bean property 'messageContextFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.ws.soap.saaj.SaajSoapMessageC ontextFactory#11f05a1' defined in ServletContext resource [/WEB-INF/airline-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.ws.soap.saaj.SaajSoapMessageCo ntextFactory]; constructor threw exception; nested exception is java.lang.NoSuchMethodError: javax.xml.soap.FactoryFinder.find(Ljava/lang/StringLjava/lang/Object;
The saaj.jar packaged with the sample project contains an implementation of this javax.xml.soap.FactoryFinder.find(x,x) with two arguments INSTEAD of ONE as the error message. I plugged into web-inf/classes the FactoryFinder from saajapi.jar from the jwsdp2.0 and it did not load this(after removing the class from saaj.jar). Substituting classes is probably not the right approach, perhaps there is an additional step or configuration that I might have missed somewhere.


Ljava/lang/Object;
Reply With Quote