---
# System prepended metadata

title: Análise RA 4277 ARB - portal2IB

---

Análise RA 4277 ARB - portal2IB
Análise RA 5512 TOY - portal2IB

# Erro
```
java.lang.UnsupportedClassVersionError: jakarta/ws/rs/core/FeatureContext
```

# Diagnóstico
```
dependência com pacote jakarta, sendo, que projeto está rodando com Java 8
```

# Solução
```
eliminar bibliotecas com dependência indevida
eliminar import indevido
```

# no projeto br.com.autbank.ib.portal2
apagar import da classe para testes automatizados org.apache.http.client.HttpClient da classe br.com.autbank.ib.SmartShareClient
```
import org.apache.http.client.HttpClient;
```

# no projeto br.com.autbank.ib.portal2
adicionar tag de exclusion no POM.xml

a)
.de
```
		<dependency>
			<groupId>br.com.autbank.ib</groupId>
			<artifactId>ib-infobanc</artifactId>
			<version>${versao.ib}</version>
			<exclusions>
				<exclusion>
					<artifactId>commons-logging</artifactId>
					<groupId>commons-logging</groupId>
				</exclusion>
			</exclusions>
		</dependency>
```

.para
```
		<dependency>
			<groupId>br.com.autbank.ib</groupId>
			<artifactId>ib-infobanc</artifactId>
			<version>${versao.ib}</version>
			<exclusions>
				<exclusion>
					<artifactId>commons-logging</artifactId>
					<groupId>commons-logging</groupId>
				</exclusion>
				<exclusion>
					<artifactId>jersey-apache-client4</artifactId>
					<groupId>com.sun.jersey.contribs</groupId>
				</exclusion>
				<exclusion>
					<artifactId>jersey-media-json-jackson</artifactId>
					<groupId>org.glassfish.jersey.media</groupId>
				</exclusion>
			</exclusions>
		</dependency>
```

b)
.de
```
<dependency>
					<groupId>commons-cli</groupId>
					<artifactId>commons-cli</artifactId>
					<version>1.0</version>
					<exclusions>
						<exclusion>
							<groupId>commons-logging</groupId>
							<artifactId>commons-logging</artifactId>
						</exclusion>
					</exclusions>
				</dependency>
```

.para
```
				<dependency>
					<groupId>commons-cli</groupId>
					<artifactId>commons-cli</artifactId>
					<version>1.0</version>
					<exclusions>
						<exclusion>
							<groupId>commons-logging</groupId>
							<artifactId>commons-logging</artifactId>
						</exclusion>
						<exclusion>
							<groupId>junit</groupId>
							<artifactId>junit</artifactId>
						</exclusion>
					</exclusions>
				</dependency>
```