Java WebSphereSAAJ版本问题

Java WebSphereSAAJ版本问题,java,spring,tomcat,websphere-6.1,Java,Spring,Tomcat,Websphere 6.1,我目前正在为我的应用程序使用Tomcat服务器,pom.xml中的以下代码为我提供了适用于SOAP1.2协议的SAAJ版本1.3。但是当我们将服务器迁移到websphere时,我得到的错误如下 <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"> <property name="soapVersion"> <util

我目前正在为我的应用程序使用Tomcat服务器,pom.xml中的以下代码为我提供了适用于SOAP1.2协议的SAAJ版本1.3。但是当我们将服务器迁移到websphere时,我得到的错误如下

<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
    <property name="soapVersion">
        <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/>
    </property>
</bean>

请说明为什么tomcat工作正常,而websphere没有获得正确的SAAJ版本。另外,我们正在使用WebSphere6.1.23,我刚刚注意到我们在tomcat中构建的应用程序正在使用JDK1.6,但是WebSphere6.1只支持JDK1.5


我们得去websphere7。6.x不支持jdk1.6

是。was6.x已经很老了,已经走到了生命的尽头。事实上,如果第二年他7岁就寿终正寝,我也不会感到惊讶。你可能想考虑一个大版本的跳转,并一直到8×。是的,我经历了IBM文档6.1是非常旧的-当我用IBM java 7部署应用程序时,我得到了同样的错误。当我切换到IBMJava6时,它可以正常工作。有什么建议吗
try {
            if (SaajUtils.getSaajVersion() >= SaajUtils.SAAJ_13) {
                if (!StringUtils.hasLength(messageFactoryProtocol)) {
                    messageFactoryProtocol = SOAPConstants.SOAP_1_1_PROTOCOL;
                }
                if (logger.isInfoEnabled()) {
                    logger.info("Creating SAAJ 1.3 MessageFactory with " + messageFactoryProtocol);
                }
                messageFactory = MessageFactory.newInstance(messageFactoryProtocol);
            }
            else if (SaajUtils.getSaajVersion() == SaajUtils.SAAJ_12) {
                logger.info("Creating SAAJ 1.2 MessageFactory");
                messageFactory = MessageFactory.newInstance();
            }
            else if (SaajUtils.getSaajVersion() == SaajUtils.SAAJ_11) {
                logger.info("Creating SAAJ 1.1 MessageFactory");
                messageFactory = MessageFactory.newInstance();
            }
            **else {
                **throw new IllegalStateException(
                        "SaajSoapMessageFactory requires SAAJ 1.1, which was not found on the classpath");**
            }**
        }