java.lang.ClassNotFoundException

tip

Check if the version of resteasy is using is the same JBoss is using. To find it out, search for resteasy-jaxrs* in JBoss/Wildfly directory and at your pom.xml.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE from [Module "deployment.ROOT.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)[jboss-modules.jar:1.0.2.GA] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)[jboss-modules.jar:1.0.2.GA] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)[jboss-modules.jar:1.0.2.GA] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)[jboss-modules.jar:1.0.2.GA] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)[jboss-modules.jar:1.0.2.GA] at java.lang.Class.forName0(Native Method)[:1.7.0_10] at java.lang.Class.forName(Class.java:186)[:1.7.0_10] at com.liferay.util.Encryptor.getProvider(Encryptor.java:92)[util-java.jar:] at com.liferay.util.Encryptor.encryptUnencoded(Encryptor.java:206)[util-java.jar:] at com.liferay.util.Encryptor.encryptUnencoded(Encryptor.java:230)[util-java.jar:] at com.liferay.util.Encryptor.encrypt(Encryptor.java:189)[util-java.jar:] at org.apache.jsp.html.common.themes.bottom_jsp._jspService(bottom_jsp.java:1491) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)[portal-service.jar:private-2011/04/13-23:33:42] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at com.liferay.taglib.util.VelocityTaglib.include(VelocityTaglib.java:377)[util-taglib.jar:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_10] at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_10] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)[velocity.jar:] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)[velocity.jar:] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)[velocity.jar:] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)[velocity.jar:] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)[velocity.jar:] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)[velocity.jar:] at org.apache.velocity.Template.merge(Template.java:328)[velocity.jar:] at org.apache.velocity.Template.merge(Template.java:235)[velocity.jar:] at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381)[velocity.jar:] at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:184)[portal-impl.jar:] at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:194)[portal-impl.jar:] at com.liferay.portal.kernel.velocity.VelocityEngineUtil.mergeTemplate(VelocityEngineUtil.java:71)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.taglib.util.ThemeUtil.includeVM(ThemeUtil.java:409)[util-taglib.jar:] at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:99)[util-taglib.jar:] at com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:39)[util-taglib.jar:] at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:454) at org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:399) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)[portal-service.jar:private-2011/04/13-23:33:42] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:79)[portal-impl.jar:] at com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:280)[portal-impl.jar:] at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)[struts.jar:] at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)[struts.jar:] at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)[struts.jar:] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)[struts.jar:] at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)[portal-impl.jar:] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)[struts.jar:] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)[struts.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)[portal-impl.jar:] at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)[portal-impl.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)[portal-impl.jar:] at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)[portal-impl.jar:] at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)[portal-impl.jar:] at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)[portal-impl.jar:] at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)[portal-impl.jar:] at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)[portal-impl.jar:] at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)[portal-service.jar:private-2011/04/13-23:33:42] at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)[urlrewrite.jar:] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)[portal-service.jar:private-2011/04/13-23:33:42] at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)[portal-service.jar:private-2011/04/13-23:33:42] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)[jboss-as-web-7.0.2.Final.jar:7.0.2.Final] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:388)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)[jboss-as-web-7.0.2.Final.jar:7.0.2.Final] at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)[jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)[jbossweb-7.0.1.Final.jar:7.0.2.Final] at java.lang.Thread.run(Thread.java:722)[:1.7.0_10]

Users with the same issue

Unknown visitor1 times, last one,
Andreas Häber
1 times, last one,
andyglick
92 times, last one,
pbabcsany
2 times, last one,
Unknown visitor1 times, last one,
81 more bugmates