Entersekt_Suppo
12 years agoOccasional Contributor
LoadUI custom plugin: JVM and classloader
Dear support team,
I have a SoapUI pro license.
After porting my custom plugins from SoapUI (that work) to LoadUI I encountered problems with the JVM.
I make use of Java's JAXB interface to marshall and un-marshall data within my plugin.
However, when loaded to the LoadUI container, I encounter the following:
It seems as if LoadUI does not load all the classes from its packaged JRE runtime library.
I've attempted to circumvent this by packaging the plugin with a corresponding JAXB api and implementation,
but then I run into other problems (an internal Java class not having access to a particular superclass, which throws an IllegalAccessError).
Could someone please explain to me how the LoadUI JVM container is different from SoapUI's container.
How can I access standard Java classes like JAXB from LoadUI ?
Is this a defect or perhaps an intended feature for distributed load testing ?
Thank you,
- michael
I have a SoapUI pro license.
After porting my custom plugins from SoapUI (that work) to LoadUI I encountered problems with the JVM.
I make use of Java's JAXB interface to marshall and un-marshall data within my plugin.
However, when loaded to the LoadUI container, I encounter the following:
09:22:22,227 ERROR [AbstractTestRunner] Exception during Test Execution
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.qualitykernel.soapui.entersekt.extension.execution.EntersektCommand$RequestCommand$RequestCommandBuilder.build(EntersektCommand.java:338)
It seems as if LoadUI does not load all the classes from its packaged JRE runtime library.
I've attempted to circumvent this by packaging the plugin with a corresponding JAXB api and implementation,
but then I run into other problems (an internal Java class not having access to a particular superclass, which throws an IllegalAccessError).
Could someone please explain to me how the LoadUI JVM container is different from SoapUI's container.
How can I access standard Java classes like JAXB from LoadUI ?
Is this a defect or perhaps an intended feature for distributed load testing ?
Thank you,
- michael