[jboss-user] [Beginner's Corner] - org.apache.commons.codec.binary.Base64 classnotfound inspite of commons-codec jar being there

vishals do-not-reply at jboss.com
Mon May 9 11:45:25 EDT 2011


vishals [http://community.jboss.org/people/vishals] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/604265#604265

--------------------------------------------------------------
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 at 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
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/604265#604265]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110509/8f761fbd/attachment.html 


More information about the jboss-user mailing list