added dependencies for jws

This commit is contained in:
Lucio Lelii 2022-11-29 15:07:02 +01:00
parent 410621a72b
commit 2d086e40b3
2 changed files with 24 additions and 14 deletions

35
pom.xml
View File

@ -2,6 +2,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>maven-parent</artifactId> <artifactId>maven-parent</artifactId>
<groupId>org.gcube.tools</groupId> <groupId>org.gcube.tools</groupId>
@ -22,7 +23,10 @@
<properties> <properties>
<webappDirectory>${project.basedir}/src/main/webapp/WEB-INF</webappDirectory> <webappDirectory>${project.basedir}/src/main/webapp/WEB-INF</webappDirectory>
<distroDirectory>${project.basedir}/distro</distroDirectory> <distroDirectory>${project.basedir}/distro</distroDirectory>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
@ -41,11 +45,7 @@
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>2.3.3</version>
</dependency>
<dependency> <dependency>
<groupId>org.gcube.core</groupId> <groupId>org.gcube.core</groupId>
@ -62,16 +62,21 @@
<artifactId>common-smartgears-app</artifactId> <artifactId>common-smartgears-app</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.sun.xml.ws</groupId> <groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId> <artifactId>jaxws-rt</artifactId>
<version>2.1.7</version> <version>3.0.0</version>
<scope>runtime</scope>
</dependency> </dependency>
<!-- <dependency> --> <dependency>
<!-- <groupId>org.jboss.weld.servlet</groupId> --> <groupId>com.sun.xml.ws</groupId>
<!-- <artifactId>weld-servlet</artifactId> --> <artifactId>jaxws-ri</artifactId>
<!-- <version>1.1.9.Final</version> --> <version>2.3.1</version>
<!-- </dependency> --> <type>pom</type>
</dependency>
<dependency> <dependency>
<groupId>org.jboss.weld.servlet</groupId> <groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet-core</artifactId> <artifactId>weld-servlet-core</artifactId>
@ -114,6 +119,14 @@
<!-- interpolates profiles and copies from distribution location to configuration <!-- interpolates profiles and copies from distribution location to configuration
location, where it is need for embedding into stub artifact, gar generation, location, where it is need for embedding into stub artifact, gar generation,
and service archive. --> and service archive. -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>

View File

@ -3,7 +3,6 @@ package org.gcube.vremanagement.whnmanager.jaxws.ws;
import static org.gcube.smartgears.provider.ProviderFactory.provider; import static org.gcube.smartgears.provider.ProviderFactory.provider;
import javax.jws.WebService; import javax.jws.WebService;
import org.gcube.common.authorization.client.proxy.AuthorizationProxy; import org.gcube.common.authorization.client.proxy.AuthorizationProxy;
import org.gcube.common.authorization.library.provider.AuthorizationProvider; import org.gcube.common.authorization.library.provider.AuthorizationProvider;
import org.gcube.common.authorization.library.provider.ContainerInfo; import org.gcube.common.authorization.library.provider.ContainerInfo;
@ -34,7 +33,6 @@ public class WhnManagerImpl implements WhnManager{
/** /**
* Add a scope to the ghn profile and publish it on IS * Add a scope to the ghn profile and publish it on IS
*/ */
@Override
public boolean addToContext(String context) throws GCUBEUnrecoverableException{ public boolean addToContext(String context) throws GCUBEUnrecoverableException{
logger.trace("WHNManager: addToContext method invokation with parameters context :{} and caller: {} curentContext: {}",context, AuthorizationProvider.instance.get(), ScopeProvider.instance.get() ); logger.trace("WHNManager: addToContext method invokation with parameters context :{} and caller: {} curentContext: {}",context, AuthorizationProvider.instance.get(), ScopeProvider.instance.get() );
ValidationUtils.valid("context", context); ValidationUtils.valid("context", context);
@ -69,7 +67,6 @@ public class WhnManagerImpl implements WhnManager{
/** /**
* Remove a scope from ghn profile and publish the new profile on IS * Remove a scope from ghn profile and publish the new profile on IS
*/ */
@Override
public boolean removeFromContext(String context) throws GCUBEUnrecoverableException { public boolean removeFromContext(String context) throws GCUBEUnrecoverableException {
logger.trace("WHNManager: removeFromContext method invokation with parameters context :{} and caller: {} curentContext: {}",context, AuthorizationProvider.instance.get(), ScopeProvider.instance.get() ); logger.trace("WHNManager: removeFromContext method invokation with parameters context :{} and caller: {} curentContext: {}",context, AuthorizationProvider.instance.get(), ScopeProvider.instance.get() );
ValidationUtils.valid("context", context); ValidationUtils.valid("context", context);