[keycloak-dev] class not found

keycloak-dev at lists.haus42.com keycloak-dev at lists.haus42.com
Tue Dec 1 23:42:40 EST 2015


Hello,

hmmm, I have the same issue w/ version built directly from master 
yesterday. So I'm not sure if it is only WildFly 10. Sure, I could have 
done something wrong...

Thanks,
Dietmar

Happend for registration email, using Java 1.7 on Linux...

06:19:20,788 ERROR [io.undertow.request] (default task-19) UT005023: 
Exception handling request to 
/auth/realms/publicitas/login-actions/required-action: 
java.lang.RuntimeException: request path: 
/auth/realms/publicitas/login-actions/required-action
 	at 
org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:75)
 	at 
io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
 	at 
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
 	at 
io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
 	at 
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
 	at 
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
 	at 
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
 	at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 	at 
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
 	at 
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
 	at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 	at 
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
 	at 
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
 	at 
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
 	at 
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)
 	at 
io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
 	at 
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
 	at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 	at 
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
 	at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 	at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 	at 
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)
 	at 
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)
 	at 
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)
 	at 
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)
 	at 
io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)
 	at 
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)
 	at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 	at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 	at java.lang.Thread.run(Thread.java:744)
Caused by: org.jboss.resteasy.spi.UnhandledException: 
java.lang.NoClassDefFoundError: javax/mail/Multipart
 	at 
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
 	at 
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
 	at 
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)
 	at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)
 	at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
 	at 
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
 	at 
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
 	at 
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
 	at 
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)
 	at 
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
 	at 
org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:61)
 	... 29 more
Caused by: java.lang.NoClassDefFoundError: javax/mail/Multipart
 	at 
org.keycloak.email.DefaultEmailSenderProviderFactory.create(DefaultEmailSenderProviderFactory.java:14)
 	at 
org.keycloak.email.DefaultEmailSenderProviderFactory.create(DefaultEmailSenderProviderFactory.java:10)
 	at 
org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:103)
 	at 
org.keycloak.email.freemarker.FreeMarkerEmailTemplateProvider.send(FreeMarkerEmailTemplateProvider.java:163)
 	at 
org.keycloak.email.freemarker.FreeMarkerEmailTemplateProvider.send(FreeMarkerEmailTemplateProvider.java:156)
 	at 
org.keycloak.email.freemarker.FreeMarkerEmailTemplateProvider.send(FreeMarkerEmailTemplateProvider.java:129)
 	at 
org.keycloak.email.freemarker.FreeMarkerEmailTemplateProvider.sendVerifyEmail(FreeMarkerEmailTemplateProvider.java:125)
 	at 
org.keycloak.login.freemarker.FreeMarkerLoginFormsProvider.createResponse(FreeMarkerLoginFormsProvider.java:156)
 	at 
org.keycloak.authentication.requiredactions.VerifyEmail.requiredActionChallenge(VerifyEmail.java:56)
 	at 
org.keycloak.services.managers.AuthenticationManager.executionActions(AuthenticationManager.java:521)
 	at 
org.keycloak.services.managers.AuthenticationManager.actionRequired(AuthenticationManager.java:453)
 	at 
org.keycloak.services.managers.AuthenticationManager.nextActionAfterAuthentication(AuthenticationManager.java:421)
 	at 
org.keycloak.services.resources.LoginActionsService.processRequireAction(LoginActionsService.java:781)
 	at 
org.keycloak.services.resources.LoginActionsService.requiredActionGET(LoginActionsService.java:760)
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 	at java.lang.reflect.Method.invoke(Method.java:606)
 	at 
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
 	at 
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
 	at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
 	at 
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)
 	at 
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)
 	at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
 	... 37 more
Caused by: java.lang.ClassNotFoundException: javax.mail.Multipart from 
[Module "org.keycloak.keycloak-services:main" from local module loader 
@5537c1f1 (finder: local module finder @3f9de0ec (roots: 
/home/keycloak/middleware/keycloak-1.7.0.Final-SNAPSHOT/modules,/home/keycloak/middleware/keycloak-1.7.0.Final-SNAPSHOT/modules/system/layers/base))]
 	at 
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
 	at 
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
 	at 
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
 	at 
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
 	at 
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
 	... 61 more

On Mon, 30 Nov 2015, Stian Thorgersen wrote:

> We do not support deploying Keycloak server on WildFly 10 yet.
> 
> On 30 November 2015 at 08:41, Michael Gerber <gerbermichi at me.com> wrote:
>       Hi all,
> 
> I had to add the javax.mail.api module to the keycloak-services today, otherwise the reset password mail could not be
> sent. (Because the class javax.mail.Multipart could not be found)
> 
> I am using wildlfy 10 with the newest keycloak version. 
> 
> Is this a known issue?
> 
> Michael
> 
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
> 
> 
> 
>


More information about the keycloak-dev mailing list