简体   繁体   中英

Java Web Start hangs on some classess

I have made a Java Web Start project with only one .jar file. This file is fired by JNLP fire, and it's all right, the app starts, but it hangs when the application tries to do something with classess like SOAPConnectionFactory or other.

Why do I know? Because I've made some logging.

What can be the cause? The application is self signed and works perfectly in debug mode.

Can you retry running under Java 8? This seems to be part of the deprecated JEE classes:

https://docs.oracle.com/javase/9/docs/api/java.xml.ws-summary.html

I had issues with JAXB via JWS under Java 9 and 10, which is deprecated as well.

My attempts to adjust the module loading via JNLP options failed, as did attempts to add JAXB as external jar.

This could be due to errors on my part or due to the semi-removed state of JAXB in Java 9 and 10.

I decided to switch to Jackson and managed to circumvent my JAXB issues. Such an approach might be an option for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM