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

Merge 6.x to master #23843

Merged
merged 40 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0159b68
Prepare release 6.2.5
glassfish-bot Feb 12, 2022
53bf67c
Prepare next development cycle for 6.2.6
glassfish-bot Feb 12, 2022
d1c92b5
Next version is 6.2.6-SNAPSHOT
arjantijms Feb 14, 2022
93474ed
Merge pull request #23806 from arjantijms/6.2.5-BRANCH
arjantijms Feb 14, 2022
07136c8
Merge pull request #23803 from eclipse-ee4j/6.2.5-BRANCH
arjantijms Feb 15, 2022
e5a2169
#23507 Added another paths to .gitignore
dmatej Mar 3, 2022
dd67475
#23507 Remobed NetBeans files
dmatej Mar 3, 2022
fd1b5a7
#23507 Fixed CciInteraction's compatibility with JDK17+
dmatej Mar 3, 2022
05fb554
#23507 Fixed connector tests + compatible with JDK17
dmatej Mar 3, 2022
a21c7ae
#23507 Tests - using ports set from the environment
dmatej Mar 3, 2022
7aea381
#23507 Using wsgen instead of wscompile
dmatej Mar 3, 2022
ab3f59c
#23507 CDI Tests: Removed generated classes
dmatej Mar 3, 2022
d7afb80
#23507 Deployment tests reenabled + deleted tests not easily repairable
dmatej Mar 3, 2022
bb5b9bd
#23507 EJB tests cleanup
dmatej Mar 3, 2022
fa4c67c
#23507 Naming tests reenabled and fixed
dmatej Mar 3, 2022
f8c6202
#23507 Security tests fixed + removed old soteria tests and other dea…
dmatej Mar 3, 2022
70914ba
#23507 Fixed webservice tests + removed dead tests
dmatej Mar 3, 2022
7c30041
#23507 gftest.sh now respects some variables possibly set by the caller
dmatej Mar 3, 2022
fce1243
#23507 Avoid confusing compiler by the java.lang.Record
dmatej Mar 3, 2022
ad18ab2
#23507 Fixed NPE in WebServiceReferenceManagerImpl
dmatej Mar 3, 2022
1cb11bf
#23507 Added add-opens for java.io
dmatej Mar 3, 2022
eb38ffc
#23507 runtests.sh extended
dmatej Mar 3, 2022
cbeddd3
#23507 Main from appclient removed - it was worthless and unused
dmatej Mar 3, 2022
de69523
#23507 Fixed appclient classpath issues
dmatej Mar 3, 2022
8001e4f
#23507 Fixed signing jars downloaded by the appclient - several bugs
dmatej Mar 3, 2022
a65caf9
#23507 Deleted MEJB classes
dmatej Mar 3, 2022
ff68d39
#23507 Enabled naming, deployment, security and webservice tests on j…
dmatej Mar 3, 2022
cf41ba4
#23507 Updated README.md
dmatej Mar 3, 2022
440c938
#23507 Yet one forgotten ZipOutputStream removed
dmatej Mar 4, 2022
6f92b83
Merge pull request #23842 from dmatej/jenkins2
arjantijms Mar 4, 2022
f9efa6d
Merge commit '07136c8ed9fb42c07' into merge-to-master
dmatej Mar 4, 2022
8359bba
Merge remote-tracking branch 'eclipse/6.x' into merge-to-master
dmatej Mar 4, 2022
652822f
#23507 Fixed compatibility with Jakarta EE 10
dmatej Mar 5, 2022
a2523dc
Merge remote-tracking branch 'eclipse/master' into merge-to-master
dmatej Mar 7, 2022
a0b6538
Merge remote-tracking branch 'eclipse/master' into merge-to-master
dmatej Mar 9, 2022
b50d5b1
Improved snapshot builds - parallelism, settings.xml
dmatej Mar 16, 2022
5f22f7a
Upgraded dependencies - servlet, metro, grizzly
dmatej Mar 16, 2022
87b99c5
Updated Maven and JDK in the Docker for Jenkins
dmatej Mar 16, 2022
538b72e
Sources are required in some builds.
dmatej Mar 16, 2022
4b6545c
Updated dependencies: grizzly, xmlsec, jersey, shoal
dmatej Mar 18, 2022
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
  •  
  •  
  •  
32 changes: 31 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.class
target/
.idea
nbproject/
nbactions.xml
nb-configuration.xml
.classpath
Expand All @@ -18,8 +19,16 @@ appserver/security/jaspic-provider-framework/auth.conf
appserver/tests/appserv-tests/devtests/web/JSESSIONID
/bundles/
appserver/tests/appserv-tests/devtests/**/count.txt
appserver/tests/appserv-tests/devtests/**/errors.txt
appserver/tests/appserv-tests/devtests/**/*.log
appserver/tests/appserv-tests/devtests/**/*.out
appserver/tests/appserv-tests/devtests/**/build/
appserver/tests/appserv-tests/**/results.html
appserver/tests/appserv-tests/**/tests-results.xml
appserver/tests/appserv-tests/security-gtest-results.xml
appserver/tests/appserv-tests/test_results_junit.xml
appserver/tests/appserv-tests/devtests/cdi/smoke-tests/simple-wab-with-cdi/build.properties
appserver/tests/appserv-tests/devtests/connector/v3/testdb/
appserver/tests/appserv-tests/devtests/connector/v3/**/*.log
appserver/tests/appserv-tests/devtests/connector/v3/**/*.lck
appserver/tests/appserv-tests/devtests/connector/v3/**/*.ctrl
appserver/tests/appserv-tests/devtests/connector/v3/**/*.dat
Expand All @@ -29,6 +38,27 @@ appserver/tests/appserv-tests/devtests/connector/**/*.[rj]ar
appserver/tests/appserv-tests/devtests/connector/**/tmp-*/
appserver/tests/appserv-tests/devtests/connector/**/seg0/

appserver/tests/appserv-tests/devtests/deployment/junit-4.12.jar
appserver/tests/appserv-tests/devtests/deployment/password.txt

appserver/tests/appserv-tests/devtests/jdbc/jpa-dsd/client/Client.java
appserver/tests/appserv-tests/devtests/jdbc/jpa-dsd/ejb/SfulBean.java

appserver/tests/appserv-tests/devtests/security/jmac/soap/client/Client.java
appserver/tests/appserv-tests/devtests/security/jmac/soapDefault/client/Client.java
appserver/tests/appserv-tests/devtests/security/jmac/soapEmbedded/webclient/Servlet.java

appserver/tests/appserv-tests/devtests/webservice/annotations/dol-override-1/client-sun-web.xml
appserver/tests/appserv-tests/devtests/webservice/annotations/dol-override-1/sun-web.xml
appserver/tests/appserv-tests/devtests/webservice/annotations/mtom/client-sun-web.xml
appserver/tests/appserv-tests/devtests/webservice/annotations/mtom/sun-web.xml
appserver/tests/appserv-tests/devtests/webservice/annotations/soap12/sun-application-client.xml
appserver/tests/appserv-tests/devtests/webservice/annotations/soap12/sun-web.xml
appserver/tests/appserv-tests/devtests/webservice/ejb_annotations/security/roles/passwordfile
appserver/tests/appserv-tests/devtests/webservice/security/*.cer
appserver/tests/appserv-tests/devtests/webservice/security/*.jks

appserver/tests/appserv-tests/temppwd

opendj-*.zip
/opendj/
10 changes: 7 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
env.label = "glassfish-ci-pod-${UUID.randomUUID().toString()}"

// Docker image defined in this project in [glassfish]/etc/docker/Dockerfile
env.gfImage = "ee4jglassfish/ci:tini-jdk-11.0.10"
env.gfImage = "dmatej/eclipse-jenkins-glassfish:11.0.14.1"

def jobs = [
"verifyPhase",
Expand All @@ -38,7 +38,11 @@ def jobs = [
"connector_group_3",
"connector_group_4",
"jdbc_all",
"persistence_all"
"persistence_all",
"naming_all",
"deployment_all",
"security_all",
"webservice_all"
]

def parallelStagesMap = jobs.collectEntries {
Expand Down Expand Up @@ -263,7 +267,7 @@ spec:
uname -a

# temporary build of external snapshot dependencies
mvn clean install -f ./snapshots/pom.xml -s ./snapshots/settings.xml
mvn clean install -f ./snapshots/pom.xml
# Until we fix ANTLR in cmp-support-sqlstore, broken in parallel builds. Just -Pfast after the fix.
mvn clean install -Pfastest,staging -T4C
./gfbuild.sh archive_bundles
Expand Down
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You can use also some maven optimizations, ie. using `-T4C` to allow parallel bu
### Special Scripts

* `./updateVersion.sh 6.99.99.experimental` - useful for custom distributions, so you can avoid conflicts with version in master branch.
* `./runTests.sh 6.2.0 cdi_all` - useful to run [additional](#additional-testing) tests locally; before that edit the script and update variables so they will reflect your environment.
* `./runtests.sh [testBlockName] [?glassfishVersion]` - useful to run [old additional tests](#old-additional-tests) locally
* `./validateJars.sh` - uses the bnd command to check OSGI dependencies in all target directories

## Additional Testing
Expand All @@ -65,26 +65,31 @@ They are quite old and have high technical debt, but at this moment they still p

:warning: if the script fails, sometimes it doesn't stop the domain and you have to do that manually.

* `./runTests.sh 7.0.0 batch_all` - Usual time: 4 minutes
* `./runTests.sh 7.0.0 cdi_all` - Usual time: 6 minutes
* `./runTests.sh 7.0.0 connector_group_1` - Usual time: 16 minutes
* `./runTests.sh 7.0.0 connector_group_2` - Usual time: 3 minutes
* `./runTests.sh 7.0.0 connector_group_3` - Usual time: 4 minutes
* `./runTests.sh 7.0.0 connector_group_4` - Usual time: 16 minutes
* `./runTests.sh 7.0.0 deployment_all` - Not fixed yet
* `./runTests.sh 7.0.0 ejb_group_1` - Usual time: 10 minutes
* `./runTests.sh 7.0.0 ejb_group_2` - Usual time: 7 minutes
* `./runTests.sh 7.0.0 ejb_group_3` - Usual time: 18 minutes
* `./runTests.sh 7.0.0 ejb_group_embedded` - Usual time: 4 minutes
* `./runTests.sh 7.0.0 jdbc_all` - Usual time: 20 minutes
* `./runTests.sh 7.0.0 persistence_all` - Usual time: 3 minutes
* `./runTests.sh 7.0.0 web_jsp` - Usual time: 8 minutes
* `./runtests.sh batch_all` - Usual time: 1 minute
* `./runtests.sh cdi_all` - Usual time: 6 minutes
* `./runtests.sh connector_group_1` - Usual time: 16 minutes
* `./runtests.sh connector_group_2` - Usual time: 3 minutes
* `./runtests.sh connector_group_3` - Usual time: 4 minutes
* `./runtests.sh connector_group_4` - Usual time: 16 minutes
* `./runtests.sh deployment_all` - Usual time: 8 minutes
* `./runtests.sh ejb_group_1` - Usual time: 10 minutes
* `./runtests.sh ejb_group_2` - Usual time: 7 minutes
* `./runtests.sh ejb_group_3` - Usual time: 18 minutes
* `./runtests.sh ejb_group_embedded` - Usual time: 4 minutes
* `./runtests.sh ejb_group_all` - Usual time: 4 minutes
* `./runtests.sh jdbc_all` - Usual time: 20 minutes
* `./runtests.sh naming_all` - Usual time: 2 minutes
* `./runtests.sh persistence_all` - Usual time: 3 minutes
* `./runtests.sh security_all` - Usual time: 8 minutes
* `./runtests.sh web_jsp` - Usual time: 8 minutes
* `./runtests.sh webservice_all` - Usual time: 10 minutes
* `./gfbuild.sh archive_bundles && ./gftest.sh ejb_web_all` - Usual time: 4 minutes
* `./gfbuild.sh archive_bundles && ./gftest.sh nucleus_admin_all` - Not fixed yet
* `./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_full_profile_all` - Usual time: 4 minutes
* `./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_nucleus_all` - Not fixed yet
* `./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_web_profile_all` - Usual time: 2 minutes
* There are many tests under appserver/tests subdirectories; they are still waiting for someone's attention.
* `./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_full_profile_all` - Usual time: 4 minutes

* many tests under appserver/tests subdirectories; they are still waiting for someone's attention.

## Basic Usage

Expand Down
16 changes: 9 additions & 7 deletions appserver/admin/template/src/main/resources/config/domain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,13 @@

<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-Xbootclasspath/a:${com.sun.aas.installRoot}/lib/grizzly-npn-api.jar</jvm-options>
<jvm-options>--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/java.io=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/java.lang=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/java.util=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.naming/javax.naming.spi=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED</jvm-options>
<jvm-options>--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED</jvm-options>
</java-config>
<network-config>
Expand Down Expand Up @@ -398,12 +399,13 @@
<jvm-options>-Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true</jvm-options>

<jvm-options>-Xbootclasspath/a:${com.sun.aas.installRoot}/lib/grizzly-npn-api.jar</jvm-options>
<jvm-options>--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/java.io=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/java.lang=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/java.util=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.naming/javax.naming.spi=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED</jvm-options>
<jvm-options>--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED</jvm-options>
<jvm-options>--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED</jvm-options>
</java-config>
<availability-service>
Expand Down Expand Up @@ -461,7 +463,7 @@
</thread-pools>
<group-management-service/>
<!--%%%DEFAULT_TOKENS_HERE%%%-->
<system-property name="ASADMIN_LISTENER_PORT" value="24848"/>
<system-property name="ASADMIN_LISTENER_PORT" value="24848" />
<system-property name="HTTP_LISTENER_PORT" value="28080"/>
<system-property name="HTTP_SSL_LISTENER_PORT" value="28181"/>
<system-property name="IIOP_LISTENER_PORT" value="23700"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ private void addProperties(final StringBuilder command) {
command.append(' ').append("--add-opens=java.base/java.lang=ALL-UNNAMED");
command.append(' ').append(INSTALL_ROOT_PROPERTY_EXPR).append(quote(gfInfo.home().getAbsolutePath()));
command.append(' ').append(SECURITY_POLICY_PROPERTY_EXPR).append(quote(gfInfo.securityPolicy().getAbsolutePath()));
command.append(' ').append("-classpath").append(' ').append(gfInfo.agentJarPath()).append(File.pathSeparatorChar).append('.');
command.append(' ').append(SYSTEM_CLASS_LOADER_PROPERTY_EXPR);
command.append(' ').append("-Xshare:off");
command.append(' ').append(SECURITY_AUTH_LOGIN_CONFIG_PROPERTY_EXPR).append(quote(gfInfo.loginConfig().getAbsolutePath()));
Expand Down Expand Up @@ -917,10 +918,6 @@ File configxml() {
return configXMLFile;
}

String[] endorsedPaths() {
return new String[] { new File(lib, "endorsed").getAbsolutePath(), new File(modules, "endorsed").getAbsolutePath() };
}

String extPaths() {
return new File(lib, "ext").getAbsolutePath();
}
Expand Down Expand Up @@ -986,10 +983,6 @@ String javaExe() {
return System.getenv(ACCJava_ENV_VAR_NAME);
}

File endorsed() {
return new File(lib(), "endorsed");
}

File ext() {
return new File(lib(), "ext");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,10 @@ private void completePreparation(final Instrumentation inst) throws

prepareURLStreamHandling();

//This is required for us to enable interrupt jaxws service
//creation calls
System.setProperty("jakarta.xml.ws.spi.Provider",
"com.sun.enterprise.webservice.spi.ProviderImpl");
//This is required for us to enable interrupt jaxws service creation calls
System.setProperty("jakarta.xml.ws.spi.Provider", "com.sun.xml.ws.spi.ProviderImpl");
//InjectionManager's injectClass will be called from getMainMethod


// Load any managed beans
ManagedBeanManager managedBeanManager = habitat.getService(ManagedBeanManager.class);
managedBeanManager.loadManagedBeans(desc.getApplication());
Expand Down

This file was deleted.

Loading