Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Jakarta EE 9 #737

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@



@javax.jws.WebService(name = "Benchmark", serviceName = "Benchmark",
@jakarta.jws.WebService(name = "Benchmark", serviceName = "Benchmark",
portName = "Benchmark",
targetNamespace = "http://www.extreme.indiana.edu/wsdl/Benchmark1",
endpointInterface = "edu.indiana.extreme.wsdl.benchmark1.Benchmark")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* Generated by WSDLToJava Compiler. */
package org.apache.cxf.performance.server;

import javax.xml.ws.Endpoint;
import jakarta.xml.ws.Endpoint;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.List;

import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
import jakarta.xml.ws.BindingProvider;

import org.apache.cxf.pat.internal.TestCaseBase;
import org.apache.cxf.pat.internal.TestResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package org.apache.cxf.performance.basic_type.server;

import javax.xml.ws.Endpoint;
import jakarta.xml.ws.Endpoint;


public class Server implements Runnable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.logging.Logger;

import org.apache.cxf.performance.basic_type.BasicPortType;
@javax.jws.WebService(portName = "SoapHttpPort", serviceName = "BasicService",
@jakarta.jws.WebService(portName = "SoapHttpPort", serviceName = "BasicService",
targetNamespace = "http://cxf.apache.org/performance/basic_type",
endpointInterface = "org.apache.cxf.performance.basic_type.BasicPortType",
wsdlLocation = "wsdl/basic_type.wsdl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package org.apache.cxf.performance.complex_type.server;

import javax.xml.ws.Endpoint;
import jakarta.xml.ws.Endpoint;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.cxf.performance.complex_type.ComplexPortType;
import org.apache.cxf.performance.complex_type.types.NestedComplexTypeSeq;

@javax.jws.WebService(portName = "SoapPort", serviceName = "ComplexService",
@jakarta.jws.WebService(portName = "SoapPort", serviceName = "ComplexService",
targetNamespace = "http://cxf.apache.org/performance/complex_type",
endpointInterface = "org.apache.cxf.performance.complex_type.ComplexPortType")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.namespace.QName;
import javax.xml.ws.Holder;
import jakarta.xml.ws.Holder;


import org.apache.cxf.frontend.ClientProxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import java.util.HashMap;
import java.util.Map;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;
import jakarta.security.auth.callback.Callback;
import jakarta.security.auth.callback.CallbackHandler;
import jakarta.security.auth.callback.UnsupportedCallbackException;

import org.apache.ws.security.WSPasswordCallback;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package org.apache.cxf.performance.complex_type.server;

import javax.xml.ws.Endpoint;
import jakarta.xml.ws.Endpoint;

import org.apache.cxf.BusFactory;
import org.apache.cxf.bus.spring.SpringBusFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.cxf.cxf.performance.types.NestedComplexTypeSeq;


@javax.jws.WebService(portName = "SoapHttpDocLitPort", serviceName = "PerfService",
@jakarta.jws.WebService(portName = "SoapHttpDocLitPort", serviceName = "PerfService",
targetNamespace = "http://cxf.apache.org/cxf/performance",
endpointInterface = "org.apache.cxf.cxf.performance.DocPortType",
wsdlLocation="/wsdl/perf.wsdl")
Expand All @@ -39,7 +39,7 @@ public class ServerImpl implements DocPortType {
Logger.getLogger("org.apache.xml.security.signature.Reference").setLevel(Level.WARNING);
}

public NestedComplexTypeSeq echoComplexTypeDoc(NestedComplexTypeSeq request, int id, javax.xml.ws.Holder<Integer> i) {
public NestedComplexTypeSeq echoComplexTypeDoc(NestedComplexTypeSeq request, int id, jakarta.xml.ws.Holder<Integer> i) {
//System.out.println("Executing operation echoComplexTypeDoc\n");
//System.out.println("Message received: " + request + "\n");
i.value = id;
Expand Down
10 changes: 5 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
org.springframework.core*;resolution:=optional;version="${cxf.osgi.spring.version}",
org.springframework.util*;resolution:=optional;version="${cxf.osgi.spring.version}",
org.objectweb.asm*;resolution:=optional;version="${cxf.osgi.asm.version}",
javax.activation;version="${cxf.osgi.javax.activation.version}",
javax.annotation;version="${cxf.osgi.javax.annotation.version}",
javax.xml.ws*;version="${cxf.osgi.javax.xml.ws.version}",
javax.xml.bind*;version="${cxf.osgi.javax.bind.version}",
jakarta.activation;version="${cxf.osgi.jakarta.activation.version}",
jakarta.annotation;version="${cxf.osgi.jakarta.annotation.version}",
jakarta.xml.ws*;version="${cxf.osgi.jakarta.xml.ws.version}",
jakarta.xml.bind*;version="${cxf.osgi.jakarta.bind.version}",
javax.xml.stream*;version="${cxf.osgi.javax.stream.version}",
javax.validation*;resolution:=optional;version="${cxf.validation.api.package.version}",
jakarta.validation*;resolution:=optional;version="${cxf.validation.api.package.version}",
org.apache.aries*;version="${cxf.aries.version.range}";resolution:=optional,
org.apache.karaf.jaas.boot.principal;resolution:=optional,
org.apache.commons.logging;resolution:=optional,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.io.InputStream;
import java.io.OutputStream;

import javax.activation.DataSource;
import jakarta.activation.DataSource;

import org.apache.cxf.helpers.IOUtils;
import org.apache.cxf.io.CacheSizeExceededException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.activation.DataSource;
import jakarta.activation.DataSource;

import org.apache.cxf.common.logging.LogUtils;
import org.apache.cxf.common.util.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.Iterator;
import java.util.Map;

import javax.activation.DataHandler;
import jakarta.activation.DataHandler;

import org.apache.cxf.message.Attachment;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.List;
import java.util.Map;

import javax.activation.DataHandler;
import jakarta.activation.DataHandler;

import org.apache.cxf.common.util.Base64Utility;
import org.apache.cxf.helpers.IOUtils;
Expand Down
16 changes: 8 additions & 8 deletions core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Logger;

import javax.activation.CommandInfo;
import javax.activation.CommandMap;
import javax.activation.DataContentHandler;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.activation.MailcapCommandMap;
import javax.activation.URLDataSource;
import jakarta.activation.CommandInfo;
import jakarta.activation.CommandMap;
import jakarta.activation.DataContentHandler;
import jakarta.activation.DataHandler;
import jakarta.activation.DataSource;
import jakarta.activation.FileDataSource;
import jakarta.activation.MailcapCommandMap;
import jakarta.activation.URLDataSource;

import org.apache.cxf.common.logging.LogUtils;
import org.apache.cxf.common.util.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.io.InputStream;
import java.io.OutputStream;

import javax.activation.DataSource;
import jakarta.activation.DataSource;

public class ByteDataSource implements DataSource {
private String contentType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
import java.nio.file.Files;
import java.util.Iterator;

import javax.activation.ActivationDataFlavor;
import javax.activation.DataContentHandler;
import javax.activation.DataSource;
import jakarta.activation.ActivationDataFlavor;
import jakarta.activation.DataContentHandler;
import jakarta.activation.DataSource;
import javax.imageio.ImageIO;
import javax.imageio.ImageWriter;
import javax.imageio.stream.ImageOutputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.Map;
import java.util.Set;

import javax.activation.DataHandler;
import jakarta.activation.DataHandler;

import org.apache.cxf.message.Attachment;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.Collection;
import java.util.stream.Collectors;

import javax.activation.DataSource;
import jakarta.activation.DataSource;

import org.apache.cxf.message.Attachment;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import java.util.Collection;

import javax.annotation.Resource;
import jakarta.annotation.Resource;
import javax.xml.namespace.QName;

import org.apache.cxf.Bus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArraySet;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.BusException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.ListIterator;
import java.util.concurrent.CopyOnWriteArrayList;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.buslifecycle.BusLifeCycleListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArraySet;

import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import jakarta.annotation.PreDestroy;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.BusException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArraySet;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.BusException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.common.injection.NoJSR250Annotations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import jakarta.annotation.PreDestroy;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.buslifecycle.BusLifeCycleListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.annotation.Resource;
import jakarta.annotation.Resource;
import javax.management.JMException;

import org.apache.cxf.Bus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import java.util.List;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.apache.cxf.Bus;
import org.apache.cxf.common.injection.NoJSR250Annotations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.xml.sax.EntityResolver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import javax.annotation.Resources;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.annotation.Resource;
import jakarta.annotation.Resources;


import org.apache.cxf.common.annotation.AbstractAnnotationVisitor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
import java.util.Set;
import java.util.regex.Pattern;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.annotation.XmlElementDecl;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBException;
import jakarta.xml.bind.annotation.XmlElementDecl;
import javax.xml.transform.dom.DOMSource;

import org.apache.cxf.common.classloader.ClassLoaderUtils;
Expand Down
Loading