0 Replies Latest reply on Jan 22, 2013 7:52 AM by Vivek Mittal

    java.lang.ClassNotFoundException: net.sf.ehcache.CacheException from [Module "deployment.Test.ear.common.jar:main" from Service Module Loader]

    Vivek Mittal Newbie

      Hi,

       

      I have packaged my EAR file such that there are 2 war files and 3 jar files inside the EAR.

       

      Also when I try and explode the EAR I can see the ehcache.jar is present in the <EAR>/lib directory.

       

      When I try and invoke the application using the url, I get the error:

      java.lang.ClassNotFoundException: net.sf.ehcache.CacheException from [Module "deployment.Test.ear.common.jar:main" from Service Module Loader]

       

      Can some one help me to get pass this error.

       

      java.lang.ClassNotFoundException: net.sf.ehcache.CacheException from [Module "deployment.Test.ear.common.jar:main" from Service Module Loader]

      org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

      org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

      org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

      org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

      org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

      ws.src.taglib.MessageTag.doEndTag(MessageTag.java:102)

      org.apache.jsp.Application.mainLogin_jsp._jspx_meth_tms_005fmessage_005f0(mainLogin_jsp.java:585)

      org.apache.jsp.Application.mainLogin_jsp._jspService(mainLogin_jsp.java:118)

      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365)

      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)

      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:689)

      org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:663)

      org.apache.jsp.index_jsp._jspService(index_jsp.java:65)

      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365)

      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)

      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      Regards,

      Vivek