openpojo
openpojo copied to clipboard
Use on Websphere Liberty and Websphere Traditional
Hello 😀
We are using OpenPojo in our app, we are generating an EAR artefact and deploy it to a WAS Liberty and a AS traditional server. The EAR is installed and launched sucessfully, but when the code calls OpenPojo functions the server shows the next error:
Caused by: java.lang.NoClassDefFoundError: sun.security.krb5.Credentials at com.openpojo.random.generator.security.CredentialsRandomGenerator.<clinit>(CredentialsRandomGenerator.java:39) at com.openpojo.registry.ServiceRegistrar.initializeRandomGeneratorService(ServiceRegistrar.java:94) at com.openpojo.registry.ServiceRegistrar.<init>(ServiceRegistrar.java:57) at com.openpojo.registry.ServiceRegistrar.<init>(ServiceRegistrar.java:49) at com.openpojo.registry.ServiceRegistrar$Instance.<clinit>(ServiceRegistrar.java:199) at com.openpojo.registry.ServiceRegistrar.getInstance(ServiceRegistrar.java:170) at com.openpojo.reflection.impl.PojoClassFactory.getPojoClass(PojoClassFactory.java:42) at com.openpojo.business.identity.impl.DefaultStringanizer.toString(DefaultStringanizer.java:39) at com.openpojo.business.identity.impl.DefaultIdentityHandler.toString(DefaultIdentityHandler.java:45) at com.openpojo.business.BusinessIdentity.toString(BusinessIdentity.java:79) at com.baxter.ots.model.Users.toString(Users.java:129) at java.lang.String.valueOf(String.java:3411) at java.lang.StringBuilder.append(StringBuilder.java:516) at com.baxter.ots.controllers.generic.GenericBusinessController.sucessResponse(GenericBusinessController.java:42) at com.baxter.ots.controllers.impl.LoginController.getUserProfile(LoginController.java:189) ... 83 more Caused by: java.lang.ClassNotFoundException: sun.security.krb5.Credentials at java.net.URLClassLoader.findClass(URLClassLoader.java:610) at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:243) at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:925) at java.lang.ClassLoader.loadClass(ClassLoader.java:870) at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:134) at java.lang.ClassLoader.loadClass(ClassLoader.java:853) at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62) at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:587) at java.lang.ClassLoader.loadClass(ClassLoader.java:853) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:587) at java.lang.ClassLoader.loadClass(ClassLoader.java:853) ... 98 more
environment Java version = 1.8.0_191, Java Runtime Version = 8.0.5.26 - pxa6480sr5fp26-20181115_03(SR5 FP26), Java Compiler = j9jit29, Java VM name = IBM J9 VM
There are known issues on IBM JVM?