The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

seltzerlj (14) [Avatar] Offline
#1
Please disregard this post. I rebuilt the SPitter project with JSE 1.6, and I'm now getting past the problem described below.


I'm trying to get the Spitter app to run in the STS IDE. I've resolved a couple of problems, but I'm now getting the error below (partial stack trace). My lib directory contains hsqldb.jar (hsqldb-2.2.5) and commons-dbcp-1.4.jar, which are the latest versions. Which versions should I be using (or is the cause of the UnsupportedClassVersionError something else)?

Thanks.

Larry

SEVERE: Allocate exception for servlet spitter
java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:40smilie

In spitter-servlet.xml
------------------------------
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.hsqldb.jdbcDriver" />
<property name="url" value="jdbc:hsqldb:hsql://localhost/larrydb" />
<property name="username" value="sa" />
<property name="password" value="" />
<property name="initialSize" value="5" />
<property name="maxActive" value="10" />
</bean>

Message was edited by:
seltzerlj