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

PAYARA-4218 Add JDK11 support to JAX-WS commands #4291

Merged
merged 4 commits into from Nov 12, 2019

Conversation

Cousjava
Copy link
Contributor

Description

This is a bug fix

This allows running of the JAX-WS commands i.e. wsimport, wscompile on both JDKs 8 and 11, since the endorsed has been removed in JDK9+ and required classes were removed from Java SE in JDK11.

Testing

Testing Performed

Ran all changed commands on JDKs 8 and 11 on Windows and Linux

Testing Environment

Zulu JDK 1.8_222 on Ubuntu 19.04
Zulu JDK 11.0.5 on Ubuntu 19.04
IBM JDK 1.8_221 on Ubuntu 19.04
Zulu JDK 1.8_181 on Windows 10
Zulu JDK 11.0.3 on Windows 10

@Cousjava Cousjava added this to the 5.194 milestone Oct 30, 2019
@Cousjava
Copy link
Contributor Author

Jenkins test please

@Cousjava Cousjava changed the title PAYARA-4128 Add JDK11 support to JAX-WS commands PAYARA-4218 Add JDK11 support to JAX-WS commands Nov 5, 2019
@@ -59,4 +59,11 @@ if [ ${AS_JAVA} ]; then
JAVA=${AS_JAVA}/bin/java
fi

exec "$JAVA" $WSCOMPILE_OPTS -Djava.endorsed.dirs="$AS_INSTALL_LIB/endorsed" -cp "$AS_INSTALL_LIB/webservices-osgi.jar:$AS_INSTALL_LIB/javax.xml.rpc-api.jar:$AS_INSTALL_LIB/jaxb-osgi.jar:$JAVAX_MAIL_JAR:$JAVA_HOME/lib/tools.jar:$AS_INSTALL_LIB/aixporting-repackaged.jar" com.sun.xml.rpc.tools.wscompile.Main "$@"
./jdkcheck
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't safe - you're assuming that the script is being invoked from the bin directory, which it may not be.

exec "$JAVA" $WSCOMPILE_OPTS -Djava.endorsed.dirs="$AS_INSTALL_LIB/endorsed" -cp "$AS_INSTALL_LIB/webservices-osgi.jar:$AS_INSTALL_LIB/javax.xml.rpc-api.jar:$AS_INSTALL_LIB/jaxb-osgi.jar:$JAVAX_MAIL_JAR:$JAVA_HOME/lib/tools.jar:$AS_INSTALL_LIB/aixporting-repackaged.jar" com.sun.xml.rpc.tools.wscompile.Main "$@"
./jdkcheck

if [ checkEndorsedAvailable = true ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this works, either the method is wrong or the if syntax is wrong. Running with the following Java version has it go into the JDK11 block

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (IcedTea 3.13.0) (build 1.8.0_222-b10 suse-lp151.2.3.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

@Cousjava Cousjava force-pushed the PAYARA-4128-jaxws-commands-jdk11 branch from a15df2c to d59aa1d Compare November 11, 2019 11:16
@Cousjava
Copy link
Contributor Author

Jenkins test please

@Cousjava Cousjava closed this Nov 11, 2019
@Cousjava Cousjava reopened this Nov 11, 2019
@Cousjava
Copy link
Contributor Author

Jenkins test please

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work for me!

@Cousjava Cousjava merged commit dfbcaaf into payara:master Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants