| guest |
Mon Mar 09 21:01:19 GMT 2009 |
| |
I followed the instructions on the primose web site in order to configure my Tomcat 5.5.9 application server with primose.
My JAVA_HOME and JRE_HOME are: /usr/jdk/instances/jdk1.5.0
I get the following error when attempting to start Tomcat:
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class
file
If I comment out the creation of the pools in the server.xml file, then tomcat starts up. So I know the problem is with the entries in the server.xml file:
name="socPoolBPDB" auth="Container"
type="uk.org.primrose.vendor.tomcat.PrimroseDataSource"
description="The Schedule of Classes database pool"
factory="uk.org.primrose.vendor.tomcat.PrimroseDataSourceFactory"
poolName="socPoolBPDB"
primroseConfigFile="/opt/jakarta-tomcat-5.5.9/conf/primrose.config"/>
name="socPoolPPRD" auth="Container"
type="uk.org.primrose.vendor.tomcat.PrimroseDataSource"
description="The Schedule of Classes database pool"
factory="uk.org.primrose.vendor.tomcat.PrimroseDataSourceFactory"
poolName="socPoolPPRD"
primroseConfigFile="/opt/jakarta-tomcat-5.5.9/conf/primrose.config"
/>
name="webconsole" auth="Container"
type="uk.org.primrose.vendor.tomcat.WebConsoleFactory"
description="The primrose web console pool monitor"
factory="uk.org.primrose.vendor.tomcat.WebConsoleFactory"
username="admin"
password="admin"
port="8090"
logFile="/opt/jakarta-tomcat-5.5.9/conf/logs/wbconsole.log"
logLevel="info,warn,error,crisis" />
global="socPoolBPDB"
name="socPoolBPDB"
type="javax.sql.DataSource"/>
global="socPoolPPRD"
name="socPoolPPRD"
type="javax.sql.DataSource"/>
Any help would be most welcomed.
|
| |
| sedj |
Wed Mar 11 10:34:20 GMT 2009 |
| |
Did you download the jar compiled with JDK 1.6 ?
If so, download the version for 1.5, which is on the download page, or use this link http://primrose.org.uk/1.5/primrose.jar |
|