| <div class="wiki-content maincontent"> |
| |
| <p>If you get an exception like this</p> |
| |
| <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> |
| <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[ |
| java.lang.NoClassDefFoundError - org/springframework/core/io/Resource |
| ]]></script> |
| </div></div> |
| |
| <h3 id="NoClassDefFoundError-org.springframework.core.io.Resource-Cause">Cause</h3> |
| |
| <p>You were probably trying to use the <a shape="rect" href="xml-configuration.xml">XML Configuration</a> mechanism, which uses Spring, but without having the Spring jar on your classpath.</p> |
| |
| <h3 id="NoClassDefFoundError-org.springframework.core.io.Resource-Solution">Solution</h3> |
| |
| <p>Add the Spring jar to your classpath.</p></div> |
| |