diff --git a/core/src/main/java/org/springframework/ws/config/AnnotationDrivenBeanDefinitionParser.java b/core/src/main/java/org/springframework/ws/config/AnnotationDrivenBeanDefinitionParser.java index ff85422b..2d582798 100644 --- a/core/src/main/java/org/springframework/ws/config/AnnotationDrivenBeanDefinitionParser.java +++ b/core/src/main/java/org/springframework/ws/config/AnnotationDrivenBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2011 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { ClassUtils.isPresent("javax.xml.bind.Binder", AnnotationDrivenBeanDefinitionParser.class.getClassLoader()); private static final boolean jdomPresent = - ClassUtils.isPresent("org.jdom.Element", AnnotationDrivenBeanDefinitionParser.class.getClassLoader()); + ClassUtils.isPresent("org.jdom2.Element", AnnotationDrivenBeanDefinitionParser.class.getClassLoader()); private static final boolean staxPresent = ClassUtils .isPresent("javax.xml.stream.XMLInputFactory", AnnotationDrivenBeanDefinitionParser.class.getClassLoader()); diff --git a/core/src/main/java/org/springframework/ws/server/endpoint/AbstractJDomPayloadEndpoint.java b/core/src/main/java/org/springframework/ws/server/endpoint/AbstractJDomPayloadEndpoint.java index 6be8d919..e091464c 100644 --- a/core/src/main/java/org/springframework/ws/server/endpoint/AbstractJDomPayloadEndpoint.java +++ b/core/src/main/java/org/springframework/ws/server/endpoint/AbstractJDomPayloadEndpoint.java @@ -1,11 +1,11 @@ /* - * Copyright 2005-2010 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -22,11 +22,11 @@ import javax.xml.transform.dom.DOMSource; import org.springframework.xml.transform.TransformerObjectSupport; -import org.jdom.Document; -import org.jdom.Element; -import org.jdom.input.DOMBuilder; -import org.jdom.transform.JDOMResult; -import org.jdom.transform.JDOMSource; +import org.jdom2.Document; +import org.jdom2.Element; +import org.jdom2.input.DOMBuilder; +import org.jdom2.transform.JDOMResult; +import org.jdom2.transform.JDOMSource; import org.w3c.dom.Node; /** diff --git a/core/src/main/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessor.java b/core/src/main/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessor.java index c6de1592..a75da5ba 100644 --- a/core/src/main/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessor.java +++ b/core/src/main/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessor.java @@ -1,11 +1,11 @@ /* - * Copyright 2005-2010 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -22,11 +22,11 @@ import javax.xml.transform.dom.DOMSource; import org.springframework.core.MethodParameter; import org.springframework.ws.server.endpoint.adapter.method.AbstractPayloadSourceMethodProcessor; -import org.jdom.Document; -import org.jdom.Element; -import org.jdom.input.DOMBuilder; -import org.jdom.transform.JDOMResult; -import org.jdom.transform.JDOMSource; +import org.jdom2.Document; +import org.jdom2.Element; +import org.jdom2.input.DOMBuilder; +import org.jdom2.transform.JDOMResult; +import org.jdom2.transform.JDOMSource; import org.w3c.dom.Node; /** diff --git a/core/src/test/java/org/springframework/ws/server/endpoint/JDomPayloadEndpointTest.java b/core/src/test/java/org/springframework/ws/server/endpoint/JDomPayloadEndpointTest.java index a18040ab..79dee8e2 100644 --- a/core/src/test/java/org/springframework/ws/server/endpoint/JDomPayloadEndpointTest.java +++ b/core/src/test/java/org/springframework/ws/server/endpoint/JDomPayloadEndpointTest.java @@ -1,11 +1,11 @@ /* - * Copyright 2005-2010 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -16,8 +16,8 @@ package org.springframework.ws.server.endpoint; -import org.jdom.Element; -import org.jdom.Namespace; +import org.jdom2.Element; +import org.jdom2.Namespace; import static org.junit.Assert.*; diff --git a/core/src/test/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessorTest.java b/core/src/test/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessorTest.java index 65928bae..afee33c6 100644 --- a/core/src/test/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessorTest.java +++ b/core/src/test/java/org/springframework/ws/server/endpoint/adapter/method/dom/JDomPayloadMethodProcessorTest.java @@ -1,11 +1,11 @@ /* - * Copyright 2005-2010 the original author or authors. + * Copyright 2005-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -22,7 +22,7 @@ import org.springframework.ws.server.endpoint.adapter.method.AbstractPayloadSour import org.springframework.ws.server.endpoint.annotation.RequestPayload; import org.springframework.ws.server.endpoint.annotation.ResponsePayload; -import org.jdom.Element; +import org.jdom2.Element; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; diff --git a/core/template.mf b/core/template.mf index a25b9cfa..650a389e 100644 --- a/core/template.mf +++ b/core/template.mf @@ -19,7 +19,7 @@ Import-Template: org.apache.commons.httpclient.*;version="[3.1.0, 4.0.0)";resolution:=optional, org.apache.commons.logging.*;version="[1.1.1, 2.0.0)", org.dom4j.*;version="[1.6.1, 2.0.0)";resolution:=optional, - org.jdom.*;version="[1.0.0, 2.0.0)";resolution:=optional, + org.jdom2.*;version="[2.0.0, 3.0.0)";resolution:=optional, org.springframework.aop.*;version=${spring.framework.osgi.range}, org.springframework.beans.*;version=${spring.framework.osgi.range}, org.springframework.context.*;version=${spring.framework.osgi.range}, diff --git a/parent/pom.xml b/parent/pom.xml index 11b3155a..2f708fe1 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -366,7 +366,7 @@ org.jdom jdom - 1.1 + 2.0.1 dom4j