3 Replies Latest reply on Dec 21, 2012 2:33 AM by shiv kumar

    org.apache.commons.codec.binary.Base64 classnotfound inspite of commons-codec jar being there

    vishals Newbie

      Hi,

       

      I am using JBOSS 5.1.0 EAP. My application does Base64 encoding & decoding using apache commons codec.

      I have commons-codec jar included in my ear. It still throws ClassNotFoundException when I invoke the encoding/decoding functionality. All other parts of the application work fine.

       

      Any suggestions?

       

      java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 from BaseClassLoader@1a2ac44{vfszip:/C:/deploy/app.ear/}

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

              at org.comp.app.dao.hibernate.Compress.compress(Compress.java:23)

              at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:169)

              at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2016)

              at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2262)

              at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2679)

              at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)

              at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)

              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)

              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)

              at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)

              at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)

              at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1029)

              at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:367)

              at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)

             at org.apache.jsp.debug.clear_005fcache_005fbatch_jsp._jspService(clear_005fcache_005fbatch_jsp.java:188)

              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

       

      Thanks,

      Vishal