02-14-2019 01:54 PM
We're in a process to migrate a Java plugin from GMSC (before 16.5) to GMSC version 15.5.323.9. Our plugin has a simple SOAP server (HTTP 1.1) that communicates with IE. In the Java plugin project, we only references the GMSC core jar files, no external jar file referenced, so so should be no version conflict. We also confirm that the SOAP server is working independently
Even though, there are some red warning, it still works.
However, when we load the plugin in the GMSC, the soap server suddenly throws exception "Couldn't load light weight http server" which is very confusing.
Appreciate all the suggestion and help. For convenience, I also attach the code implementing the SOAP service in GMSC Java plugin here
02-15-2019 11:26 PM
some Java EE modules (like javax.xml.soap and javax.xml.ws) formerly included in Java SE got deprecated in Java 9 and removed in Java 11. You have to manually add them as third party dependencies.
Hope this helps.
02-17-2019 01:21 PM - edited 02-17-2019 01:22 PM
As I mention, I create an independently project, references only the GMSC core jars and the SOAP service works just fine, but when it runs from a GMSC plugin, it throws the exception. So, something in the GMSC running environment prevents it.
02-18-2019 10:19 PM
I can see that you included the independent project to your post about which you say that it works fine. It would be helpful if you sent the code of the version included in a GMSC plugin that is not working for you.
02-18-2019 01:15 PM
Thank you for looking at that. Here is the plugin source code.
02-19-2019 10:13 PM
thanks for sharing your plugin code. Both the GMSC plugin (with GMSC 16.5 SP3) and the standalone application work fine for me. The endpoint is published correctly and I can call it via my browser.
19.02.2019 07:08:41 FINEST: ListenerPlugin - endpoint.isPublished()= true --> [pool-2-thread-2] nz.co.intergraph.extensions.ListenerPlugin.loadOnStart
All I did is reference my own GMSC jars library, because the path to the jars you referenced doesn't exist on my machine.
Maybe you have a bad reference or there is an issue with your GMSC client or server, I can't tell. Does it work if you install the plugin on the server and run it outside of debug mode?
02-19-2019 01:52 PM
Would you mind sending us back your updated working source code and your GMSC jars library?
In the mean time, I will try to use different references.
02-19-2019 02:24 PM
I've also just tried a couple of different ways to reference GMSC core jar library but it still shows the same error. So, I very appreciate if you could send us the updated working source code and explain how you do references. Thank you in advance
02-20-2019 09:49 PM
the only thing I ve changed is the reference in the classpath of the project and I cant send you that. Basically I've referenced every jar that is included in the GMSC program directory and it's subdirectories. I haven't changed anything in the code itself.
I doublechecked and noticed that I referenced the jars of version 16.5.304.1 because that's the version of my dev environment. Maybe thats the reason.
Sorry I can't help you on this issue.