Java.lang.NoClassDefFoundError: Could not initialize class.

887 views
Skip to first unread message

robbertjan.vanwijhe

unread,
Jan 11, 2017, 9:06:39 AM1/11/17
to Hippo Community
Hi all,

For a project (hippo 10) I'm using enterprise forms and added the dependencies for HST and CMS.
When processing the the form to a mail I get the following exception:

rg.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [default] in context with path [/xxxx] threw exception [Filter execution threw an exception] with root cause
 java.lang.NoClassDefFoundError: Could not initialize class com.onehippo.cms7.eforms.hst.util.VelocityParser at com.onehippo.cms7.eforms.hst.behaviors.AbstractMailBehavior.getHtml(AbstractMailBehavior.java:133)

Which would indicate that the Class file is not on the classpath.
The strange part is that the class is in the webbapps folder and gets deployed so it should be on the classpath.


With kind regards,

Robbert-Jan

Woonsan Ko

unread,
Jan 11, 2017, 9:11:05 AM1/11/17
to hippo-c...@googlegroups.com
Hi Robbert-Jan,

Do you have any other error logs in hippo-site.log file?

Woonsan

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
71 Summer Street, 2nd Floor, Boston, MA 02110
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466


...

Marijan Milicevic

unread,
Jan 11, 2017, 9:21:28 AM1/11/17
to hippo-c...@googlegroups.com
Hi,

your assumption is incorrect: this is not classnotfound exception, but rather: class could not be initialized for some reason exception. 
It could be it runtime depends on some other class or static initialization of the class went berserk. 
So, check if you are missing any other dependencies related (e.g. is velocity jar deployed, missing mail.jar etc) 
 
cheers
marijan

With kind regards,

Robbert-Jan

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.


...
Reply all
Reply to author
Forward
0 new messages