Skip to content

Commit

Permalink
Merge pull request #9 from payara/master
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
Alan authored Jun 7, 2019
2 parents aa9cd57 + c5ddbc7 commit deb44da
Show file tree
Hide file tree
Showing 52 changed files with 447 additions and 377 deletions.
2 changes: 1 addition & 1 deletion api/payara-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) [2016-2018] Payara Foundation and/or its affiliates. All rights reserved.
Copyright (c) [2016-2019] Payara Foundation and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
javax.ejb.jar
javax.enterprise.deploy-api.jar
javax.jms-api.jar
javax.mail.jar
jakarta.mail.jar
javax.management.j2ee-api.jar
javax.persistence.jar
javax.resource-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
javax.ejb.jar
javax.enterprise.deploy-api.jar
javax.jms-api.jar
javax.mail.jar
jakarta.mail.jar
javax.management.j2ee-api.jar
javax.persistence.jar
javax.resource-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
javax.ejb.jar
javax.enterprise.deploy-api.jar
javax.jms-api.jar
javax.mail.jar
jakarta.mail.jar
javax.management.j2ee-api.jar
javax.persistence.jar
javax.resource-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
javax.ejb.jar
javax.enterprise.deploy-api.jar
javax.jms-api.jar
javax.mail.jar
jakarta.mail.jar
javax.management.j2ee-api.jar
javax.persistence.jar
javax.resource-api.jar
Expand Down
26 changes: 9 additions & 17 deletions appserver/admingui/cluster/src/main/resources/shared/handlers.inc
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,18 @@
-->
<handler id="gfj.checkNameExist">
urlencode(value="#{requestScope.nameToCheck}" result="#{requestScope.encodedNameToCheck}");
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/clusters/cluster/#{requestScope.encodedNameToCheck}", exists="#{requestScope.exx}");
if (#{requestScope.exx}){
setAttribute(key="nameAlreadyExists" value="#{true}");
}
if ("!#{requestScope.exx}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/servers/server/#{requestScope.encodedNameToCheck}", exists="#{requestScope.exx}");
}
if ("!#{requestScope.exx}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/depployment-groups/deployment-group/#{requestScope.encodedNameToCheck}", exists="#{requestScope.exx}");
}
if (#{requestScope.exx}){
setAttribute(key="nameAlreadyExists" value="#{true}");
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/clusters/cluster/#{requestScope.encodedNameToCheck}", exists="#{requestScope.nameAlreadyExists}");

if ("!#{requestScope.nameAlreadyExists}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/servers/server/#{requestScope.encodedNameToCheck}", exists="#{requestScope.nameAlreadyExists}");
}
if ("!#{requestScope.exx}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/configs/config/#{requestScope.encodedNameToCheck}", exists="#{requestScope.exx}");
if ("!#{requestScope.nameAlreadyExists}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/deployment-groups/deployment-group/#{requestScope.encodedNameToCheck}", exists="##{requestScope.nameAlreadyExists}");
}
if (#{requestScope.exx}){
setAttribute(key="nameAlreadyExists" value="#{true}");
if ("!#{requestScope.nameAlreadyExists}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/configs/config/#{requestScope.encodedNameToCheck}", exists="#{requestScope.nameAlreadyExists}");
}
if ("!#{requestScope.exx}"){
if ("!#{requestScope.nameAlreadyExists}"){
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/nodes/node/#{requestScope.encodedNameToCheck}", exists="#{requestScope.nameAlreadyExists}");
}

Expand Down
4 changes: 2 additions & 2 deletions appserver/admingui/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@
<scope>provided</scope>
</dependency>
<dependency> <!-- for FindBugs -->
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency> <!-- for FindBugs -->
Expand Down
6 changes: 3 additions & 3 deletions appserver/admingui/payara-console-extras/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) [2016-2017] Payara Foundation and/or its affiliates. All rights reserved.
Copyright (c) [2016-2019] Payara Foundation and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -97,8 +97,8 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion appserver/appclient/client/acc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@
<dependency>
<scope>runtime</scope>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<artifactId>jakarta.json</artifactId>
</dependency>

<!-- CDI support -->
Expand Down
2 changes: 1 addition & 1 deletion appserver/common/container-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<artifactId>jakarta.mail</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.main.security</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Object getObjectInstance(Object obj,
if (runtime.isACCRuntime() || runtime.isNonACCRuntime()) {
ConnectorDescriptor connectorDescriptor = null;
try {
Context ic = new InitialContext();
Context ic = new InitialContext(env);
String descriptorJNDIName = ConnectorAdminServiceUtils.
getReservePrefixedJNDINameForDescriptor(moduleName);
connectorDescriptor = (ConnectorDescriptor) ic.lookup(descriptorJNDIName);
Expand Down
6 changes: 3 additions & 3 deletions appserver/docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<artifactId>jakarta.json</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions appserver/ejb/ejb-http-remoting/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
<artifactId>jersey-common</artifactId>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
</dependency>

<dependency>
Expand Down
8 changes: 4 additions & 4 deletions appserver/ejb/ejb-http-remoting/endpoint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion appserver/extras/javaee/manifest-jar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<configuration>
<archive>
<manifestEntries>
<Class-Path>../modules/javax.servlet-api.jar ../modules/javax.annotation-api.jar ../modules/javax.ejb-api.jar ../modules/javax.transaction-api.jar ../modules/javax.enterprise.deploy-api.jar ../modules/javax.management.j2ee-api.jar ../modules/javax.resource-api.jar ../modules/jakarta.security.auth.message-api.jar ../modules/javax.security.jacc-api.jar ../modules/webservices-osgi.jar ../modules/jaxb-osgi.jar ../modules/jakarta.xml.bind-api.jar ../modules/webservices-api-osgi.jar ../modules/javax.xml.rpc-api.jar ../modules/javax.xml.registry-api.jar ../modules/javax.mail.jar ../modules/jakarta.faces.jar ../modules/javax.servlet.jsp-api.jar ../modules/javax.el.jar ../modules/javax.servlet.jsp.jstl-api.jar ../modules/javax.persistence.jar ../modules/javax.jms-api.jar ../modules/hibernate-validator.jar ../modules/cdi-api.jar ../../mq/lib/jaxm-api.jar ../modules/javax.ws.rs-api.jar ../modules/javax.json.jar ../modules/javax.websocket-api.jar ../modules/javax.enterprise.concurrent-api.jar ../modules/javax.batch-api.jar</Class-Path>
<Class-Path>../modules/javax.servlet-api.jar ../modules/javax.annotation-api.jar ../modules/javax.ejb-api.jar ../modules/javax.transaction-api.jar ../modules/javax.enterprise.deploy-api.jar ../modules/javax.management.j2ee-api.jar ../modules/javax.resource-api.jar ../modules/jakarta.security.auth.message-api.jar ../modules/javax.security.jacc-api.jar ../modules/webservices-osgi.jar ../modules/jaxb-osgi.jar ../modules/jakarta.xml.bind-api.jar ../modules/webservices-api-osgi.jar ../modules/javax.xml.rpc-api.jar ../modules/javax.xml.registry-api.jar ../modules/jakarta.mail.jar ../modules/jakarta.faces.jar ../modules/javax.servlet.jsp-api.jar ../modules/javax.el.jar ../modules/javax.servlet.jsp.jstl-api.jar ../modules/javax.persistence.jar ../modules/javax.jms-api.jar ../modules/hibernate-validator.jar ../modules/cdi-api.jar ../../mq/lib/jaxm-api.jar ../modules/jakarta.ws.rs-api.jar ../modules/jakarta.json.jar ../modules/javax.websocket-api.jar ../modules/javax.enterprise.concurrent-api.jar ../modules/javax.batch-api.jar</Class-Path>
<GlassFish-ServerExcluded>true</GlassFish-ServerExcluded>
</manifestEntries>
</archive>
Expand Down
6 changes: 3 additions & 3 deletions appserver/javaee-api/javax.javaee-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@
<optional>true</optional>
</dependency>
<!--
using com.sun.mail.java.mail instead of javax.mail:javax.mail-api
because javax.mail has a dependency to com.sun.mail classes,
using com.sun.mail.java.mail instead of jakarta.mail:jakarta.mail-api
because jakarta.mail has a dependency to com.sun.mail classes,
but the pom does not bring the dependency.
-->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<artifactId>jakarta.mail</artifactId>
</dependency>
<dependency>
<groupId>javax.resource</groupId>
Expand Down
8 changes: 4 additions & 4 deletions appserver/javaee-api/javax.javaee-web-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
Expand All @@ -163,8 +163,8 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions appserver/packager/glassfish-common-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<artifactId>jakarta.mail</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
Expand Down Expand Up @@ -356,8 +356,8 @@
<artifactId>webservices-extra-jdk-packages</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.istack</groupId>
Expand Down
4 changes: 2 additions & 2 deletions appserver/packager/json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
holder.
-->
<!-- Portions Copyright [2017] [Payara Foundation and/or its affiliates] -->
<!-- Portions Copyright [2017-2019] [Payara Foundation and/or its affiliates] -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -124,7 +124,7 @@
<dependencies>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<artifactId>jakarta.json</artifactId>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) [2018] Payara Foundation and/or its affiliates. All rights reserved.
* Copyright (c) [2018-2019] Payara Foundation and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -94,7 +94,7 @@ public WeightedSnapshot(Collection<WeightedSample> values) {

for (int i = 0; i < copy.length; i++) {
this.values[i] = copy[i].value;
this.normWeights[i] = copy[i].weight / sumWeight;
this.normWeights[i] = sumWeight == 0d ? 0d : copy[i].weight / sumWeight;
}

for (int i = 1; i < copy.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) [2016-2018] Payara Foundation and/or its affiliates. All rights reserved.
Copyright (c) [2016-2019] Payara Foundation and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -62,8 +62,8 @@
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
Expand Down
12 changes: 6 additions & 6 deletions appserver/payara-appserver-modules/security-openid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) [2018] Payara Foundation and/or its affiliates. All rights reserved.
Copyright (c) [2018-2019] Payara Foundation and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -82,13 +82,13 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -174,4 +174,4 @@
</resources>
</build>

</project>
</project>
Loading

0 comments on commit deb44da

Please sign in to comment.